Compare commits
No commits in common. "67d830c567178934077e2b82c64b30b7ce518892" and "a62c3425a25180d45383673a1f934fb480bf8b4d" have entirely different histories.
67d830c567
...
a62c3425a2
|
@ -1,26 +0,0 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 空气监测列表
|
||||
export function apiAirMonitorLists(params: any) {
|
||||
return request.get({ url: '/device.air_monitor/lists', params })
|
||||
}
|
||||
|
||||
// 添加空气监测
|
||||
export function apiAirMonitorAdd(params: any) {
|
||||
return request.post({ url: '/device.air_monitor/add', params })
|
||||
}
|
||||
|
||||
// 编辑空气监测
|
||||
export function apiAirMonitorEdit(params: any) {
|
||||
return request.post({ url: '/device.air_monitor/edit', params })
|
||||
}
|
||||
|
||||
// 删除空气监测
|
||||
export function apiAirMonitorDelete(params: any) {
|
||||
return request.post({ url: '/device.air_monitor/delete', params })
|
||||
}
|
||||
|
||||
// 空气监测详情
|
||||
export function apiAirMonitorDetail(params: any) {
|
||||
return request.get({ url: '/device.air_monitor/detail', params })
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 监测设备列表
|
||||
export function apiDeviceLists(params: any) {
|
||||
return request.get({ url: '/device.device/lists', params })
|
||||
}
|
||||
|
||||
// 添加监测设备
|
||||
export function apiDeviceAdd(params: any) {
|
||||
return request.post({ url: '/device.device/add', params })
|
||||
}
|
||||
|
||||
// 编辑监测设备
|
||||
export function apiDeviceEdit(params: any) {
|
||||
return request.post({ url: '/device.device/edit', params })
|
||||
}
|
||||
|
||||
// 删除监测设备
|
||||
export function apiDeviceDelete(params: any) {
|
||||
return request.post({ url: '/device.device/delete', params })
|
||||
}
|
||||
|
||||
// 监测设备详情
|
||||
export function apiDeviceDetail(params: any) {
|
||||
return request.get({ url: '/device.device/detail', params })
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 监测报警列表
|
||||
export function apiMonitorAlarmLists(params: any) {
|
||||
return request.get({ url: '/device.monitor_alarm/lists', params })
|
||||
}
|
||||
|
||||
// 添加监测报警
|
||||
export function apiMonitorAlarmAdd(params: any) {
|
||||
return request.post({ url: '/device.monitor_alarm/add', params })
|
||||
}
|
||||
|
||||
// 编辑监测报警
|
||||
export function apiMonitorAlarmEdit(params: any) {
|
||||
return request.post({ url: '/device.monitor_alarm/edit', params })
|
||||
}
|
||||
|
||||
// 删除监测报警
|
||||
export function apiMonitorAlarmDelete(params: any) {
|
||||
return request.post({ url: '/device.monitor_alarm/delete', params })
|
||||
}
|
||||
|
||||
// 监测报警详情
|
||||
export function apiMonitorAlarmDetail(params: any) {
|
||||
return request.get({ url: '/device.monitor_alarm/detail', params })
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 报警配置列表
|
||||
export function apiMonitorThresholdLists(params: any) {
|
||||
return request.get({ url: '/device.monitor_threshold/lists', params })
|
||||
}
|
||||
|
||||
// 添加报警配置
|
||||
export function apiMonitorThresholdAdd(params: any) {
|
||||
return request.post({ url: '/device.monitor_threshold/add', params })
|
||||
}
|
||||
|
||||
// 编辑报警配置
|
||||
export function apiMonitorThresholdEdit(params: any) {
|
||||
return request.post({ url: '/device.monitor_threshold/edit', params })
|
||||
}
|
||||
|
||||
// 删除报警配置
|
||||
export function apiMonitorThresholdDelete(params: any) {
|
||||
return request.post({ url: '/device.monitor_threshold/delete', params })
|
||||
}
|
||||
|
||||
// 报警配置详情
|
||||
export function apiMonitorThresholdDetail(params: any) {
|
||||
return request.get({ url: '/device.monitor_threshold/detail', params })
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 土壤监测列表
|
||||
export function apiSoilMonitorLists(params: any) {
|
||||
return request.get({ url: '/device.soil_monitor/lists', params })
|
||||
}
|
||||
|
||||
// 添加土壤监测
|
||||
export function apiSoilMonitorAdd(params: any) {
|
||||
return request.post({ url: '/device.soil_monitor/add', params })
|
||||
}
|
||||
|
||||
// 编辑土壤监测
|
||||
export function apiSoilMonitorEdit(params: any) {
|
||||
return request.post({ url: '/device.soil_monitor/edit', params })
|
||||
}
|
||||
|
||||
// 删除土壤监测
|
||||
export function apiSoilMonitorDelete(params: any) {
|
||||
return request.post({ url: '/device.soil_monitor/delete', params })
|
||||
}
|
||||
|
||||
// 土壤监测详情
|
||||
export function apiSoilMonitorDetail(params: any) {
|
||||
return request.get({ url: '/device.soil_monitor/detail', params })
|
||||
}
|
|
@ -1,181 +0,0 @@
|
|||
<template>
|
||||
<div class="edit-popup">
|
||||
<popup
|
||||
ref="popupRef"
|
||||
:title="popupTitle"
|
||||
:async="true"
|
||||
width="550px"
|
||||
@confirm="handleSubmit"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input v-model="formData.device_id" disabled clearable placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="风向" prop="wind_direction">
|
||||
<el-input v-model="formData.wind_direction" disabled clearable placeholder="请输入风向" />
|
||||
</el-form-item>
|
||||
<el-form-item label="风速" prop="wind_speed">
|
||||
<el-input v-model="formData.wind_speed" disabled clearable placeholder="请输入风速" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气温度" prop="temperature">
|
||||
<el-input v-model="formData.temperature" disabled clearable placeholder="请输入空气温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气湿度" prop="moisture">
|
||||
<el-input v-model="formData.moisture" disabled clearable placeholder="请输入空气湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="二氧化碳含量" prop="co2_content">
|
||||
<el-input v-model="formData.co2_content" disabled clearable placeholder="请输入二氧化碳含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="大气压强" prop="pressure">
|
||||
<el-input v-model="formData.pressure" disabled clearable placeholder="请输入大气压强" />
|
||||
</el-form-item>
|
||||
<el-form-item label="降雨量" prop="rainfall">
|
||||
<el-input v-model="formData.rainfall" disabled clearable placeholder="请输入降雨量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="光照强度" prop="light_intensity">
|
||||
<el-input v-model="formData.light_intensity" disabled clearable placeholder="请输入光照强度" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="airMonitorEdit">
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiAirMonitorAdd, apiAirMonitorEdit, apiAirMonitorDetail } from '@/api/air_monitor'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['success', 'close'])
|
||||
const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
const popupTitle = computed(() => {
|
||||
return mode.value == 'edit' ? '空气监测数据' : '新增空气监测'
|
||||
})
|
||||
|
||||
// 表单数据
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
device_id: '',
|
||||
wind_direction: '',
|
||||
wind_speed: '',
|
||||
temperature: '',
|
||||
moisture: '',
|
||||
co2_content: '',
|
||||
pressure: '',
|
||||
rainfall: '',
|
||||
light_intensity: '',
|
||||
})
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
device_id: [{
|
||||
required: true,
|
||||
message: '请输入设备ID',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
wind_direction: [{
|
||||
required: true,
|
||||
message: '请输入风向',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
wind_speed: [{
|
||||
required: true,
|
||||
message: '请输入风速',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
temperature: [{
|
||||
required: true,
|
||||
message: '请输入空气温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
moisture: [{
|
||||
required: true,
|
||||
message: '请输入空气湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
co2_content: [{
|
||||
required: true,
|
||||
message: '请输入二氧化碳含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
pressure: [{
|
||||
required: true,
|
||||
message: '请输入大气压强',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
rainfall: [{
|
||||
required: true,
|
||||
message: '请输入降雨量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
light_intensity: [{
|
||||
required: true,
|
||||
message: '请输入光照强度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
for (const key in formData) {
|
||||
if (data[key] != null && data[key] != undefined) {
|
||||
//@ts-ignore
|
||||
formData[key] = data[key]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const getDetail = async (row: Record<string, any>) => {
|
||||
const data = await apiAirMonitorDetail({
|
||||
id: row.id
|
||||
})
|
||||
setFormData(data)
|
||||
}
|
||||
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiAirMonitorEdit(data)
|
||||
: await apiAirMonitorAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
//打开弹窗
|
||||
const open = (type = 'add') => {
|
||||
mode.value = type
|
||||
popupRef.value?.open()
|
||||
}
|
||||
|
||||
// 关闭回调
|
||||
const handleClose = () => {
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
getDetail
|
||||
})
|
||||
</script>
|
|
@ -1,130 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form
|
||||
class="mb-[-16px]"
|
||||
:model="queryParams"
|
||||
inline
|
||||
>
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input class="w-[280px]" v-model="queryParams.device_id" clearable placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="create_time">
|
||||
<daterange-picker
|
||||
v-model:startTime="queryParams.start_time"
|
||||
v-model:endTime="queryParams.end_time"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
<el-button @click="resetParams">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="ID" prop="id" show-overflow-tooltip />
|
||||
<el-table-column label="设备ID" prop="device_id" show-overflow-tooltip />
|
||||
<el-table-column label="设备名称" prop="device.name" show-overflow-tooltip />
|
||||
<el-table-column label="风向" prop="wind_direction" show-overflow-tooltip />
|
||||
<el-table-column label="风速" prop="wind_speed" show-overflow-tooltip />
|
||||
<el-table-column label="空气温度" prop="temperature" show-overflow-tooltip />
|
||||
<el-table-column label="空气湿度" prop="moisture" show-overflow-tooltip />
|
||||
<el-table-column label="二氧化碳含量" prop="co2_content" show-overflow-tooltip />
|
||||
<el-table-column label="大气压强" prop="pressure" show-overflow-tooltip />
|
||||
<el-table-column label="降雨量" prop="rainfall" show-overflow-tooltip />
|
||||
<el-table-column label="光照强度" prop="light_intensity" show-overflow-tooltip />
|
||||
<el-table-column label="创建时间" prop="create_time" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['device.air_monitor/edit']"
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-perms="['device.air_monitor/delete']"
|
||||
type="danger"
|
||||
link
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="airMonitorLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiAirMonitorLists, apiAirMonitorDelete } from '@/api/air_monitor'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
device_id: '',
|
||||
create_time: '',
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([])
|
||||
|
||||
// 表格选择后回调事件
|
||||
const handleSelectionChange = (val: any[]) => {
|
||||
selectData.value = val.map(({ id }) => id)
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: apiAirMonitorLists,
|
||||
params: queryParams
|
||||
})
|
||||
|
||||
// 添加
|
||||
const handleAdd = async () => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiAirMonitorDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
|
@ -1,182 +0,0 @@
|
|||
<template>
|
||||
<div class="edit-popup">
|
||||
<popup
|
||||
ref="popupRef"
|
||||
:title="popupTitle"
|
||||
:async="true"
|
||||
width="550px"
|
||||
@confirm="handleSubmit"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
|
||||
<el-form-item label="设备编码" prop="code">
|
||||
<el-input v-model="formData.code" clearable placeholder="请输入设备编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设备名称" prop="name">
|
||||
<el-input v-model="formData.name" clearable placeholder="请输入设备名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设备类型" prop="type">
|
||||
<el-select class="flex-1" v-model="formData.type" clearable placeholder="请选择设备类型">
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_type"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备状态" prop="status">
|
||||
<el-select class="flex-1" v-model="formData.status" clearable placeholder="请选择设备状态">
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否在线" prop="is_online">
|
||||
<el-select class="flex-1" v-model="formData.is_online" clearable placeholder="请选择是否在线">
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_online_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否绑定土地" prop="is_bind">
|
||||
<el-select class="flex-1" v-model="formData.is_bind" clearable placeholder="请选择是否绑定土地">
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_bind_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="deviceEdit">
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiDeviceAdd, apiDeviceEdit, apiDeviceDetail } from '@/api/device'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['success', 'close'])
|
||||
const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
const popupTitle = computed(() => {
|
||||
return mode.value == 'edit' ? '编辑监测设备' : '新增监测设备'
|
||||
})
|
||||
|
||||
// 表单数据
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
code: '',
|
||||
name: '',
|
||||
type: '',
|
||||
status: '',
|
||||
is_online: '',
|
||||
is_bind: '',
|
||||
})
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
code: [{
|
||||
required: true,
|
||||
message: '请输入设备编码',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
name: [{
|
||||
required: true,
|
||||
message: '请输入设备名称',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
type: [{
|
||||
required: true,
|
||||
message: '请选择设备类型',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
status: [{
|
||||
required: true,
|
||||
message: '请选择设备状态',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
is_online: [{
|
||||
required: true,
|
||||
message: '请选择是否在线',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
is_bind: [{
|
||||
required: true,
|
||||
message: '请选择是否绑定土地',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
for (const key in formData) {
|
||||
if (data[key] != null && data[key] != undefined) {
|
||||
//@ts-ignore
|
||||
formData[key] = data[key]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const getDetail = async (row: Record<string, any>) => {
|
||||
const data = await apiDeviceDetail({
|
||||
id: row.id
|
||||
})
|
||||
setFormData(data)
|
||||
}
|
||||
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiDeviceEdit(data)
|
||||
: await apiDeviceAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
//打开弹窗
|
||||
const open = (type = 'add') => {
|
||||
mode.value = type
|
||||
popupRef.value?.open()
|
||||
}
|
||||
|
||||
// 关闭回调
|
||||
const handleClose = () => {
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
getDetail
|
||||
})
|
||||
</script>
|
|
@ -1,186 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form
|
||||
class="mb-[-16px]"
|
||||
:model="queryParams"
|
||||
inline
|
||||
>
|
||||
<el-form-item label="设备编码" prop="code">
|
||||
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入设备编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设备名称" prop="name">
|
||||
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入设备名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设备类型" prop="type">
|
||||
<el-select class="w-[280px]" v-model="queryParams.type" clearable placeholder="请选择设备类型">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_type"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备状态" prop="status">
|
||||
<el-select class="w-[280px]" v-model="queryParams.status" clearable placeholder="请选择设备状态">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否在线" prop="is_online">
|
||||
<el-select class="w-[280px]" v-model="queryParams.is_online" clearable placeholder="请选择是否在线">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_online_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否绑定土地" prop="is_bind">
|
||||
<el-select class="w-[280px]" v-model="queryParams.is_bind" clearable placeholder="请选择是否绑定土地">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.device_bind_status"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
<el-button @click="resetParams">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="ID" prop="id" show-overflow-tooltip />
|
||||
<el-table-column label="设备编码" prop="code" show-overflow-tooltip />
|
||||
<el-table-column label="设备名称" prop="name" show-overflow-tooltip />
|
||||
<el-table-column label="设备类型" prop="type">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.device_type" :value="row.type" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备状态" prop="status">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.device_status" :value="row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否在线" prop="is_online">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.device_online_status" :value="row.is_online" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否绑定土地" prop="is_bind">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.device_bind_status" :value="row.is_bind" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['device.device/edit']"
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-perms="['device.device/delete']"
|
||||
type="danger"
|
||||
link
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="deviceLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiDeviceLists, apiDeviceDelete } from '@/api/device'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
code: '',
|
||||
name: '',
|
||||
type: '',
|
||||
status: '',
|
||||
is_online: '',
|
||||
is_bind: '',
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([])
|
||||
|
||||
// 表格选择后回调事件
|
||||
const handleSelectionChange = (val: any[]) => {
|
||||
selectData.value = val.map(({ id }) => id)
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('device_type,device_status,device_online_status,device_bind_status')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: apiDeviceLists,
|
||||
params: queryParams
|
||||
})
|
||||
|
||||
// 添加
|
||||
const handleAdd = async () => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiDeviceDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
|
@ -57,6 +57,9 @@
|
|||
</el-form-item>
|
||||
<el-form-item label="种植图片" prop="pic">
|
||||
<material-picker v-model="formData.pic" />
|
||||
</el-form-item>
|
||||
<el-form-item label="溯源二维码" prop="qr_code">
|
||||
<material-picker v-model="formData.qr_code" />
|
||||
</el-form-item>
|
||||
<el-form-item label="播种时间" prop="plant_date">
|
||||
<el-date-picker
|
||||
|
|
|
@ -1,152 +0,0 @@
|
|||
<template>
|
||||
<div class="edit-popup">
|
||||
<popup
|
||||
ref="popupRef"
|
||||
:title="popupTitle"
|
||||
:async="true"
|
||||
width="550px"
|
||||
@confirm="handleSubmit"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="90px" :rules="formRules">
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input v-model="formData.device_id" clearable disabled placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="监测类型" prop="type">
|
||||
<el-select class="flex-1" v-model="formData.type" disabled clearable placeholder="请选择监测类型">
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.alarm_type"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="parseInt(item.value)"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="报警内容" prop="content">
|
||||
<el-input class="flex-1" v-model="formData.content" type="textarea" rows="4" disabled clearable placeholder="请输入报警内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="报警数值" prop="value">
|
||||
<el-input v-model="formData.value" disabled clearable placeholder="请输入报警数值" />
|
||||
</el-form-item>
|
||||
<el-form-item label="解决方案" prop="solution">
|
||||
<el-input class="flex-1" v-model="formData.solution" type="textarea" rows="4" clearable placeholder="请输入解决方案" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="monitorAlarmEdit">
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiMonitorAlarmAdd, apiMonitorAlarmEdit, apiMonitorAlarmDetail } from '@/api/monitor_alarm'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['success', 'close'])
|
||||
const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
const popupTitle = computed(() => {
|
||||
return mode.value == 'edit' ? '监测报警数据' : '新增监测报警'
|
||||
})
|
||||
|
||||
// 表单数据
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
device_id: '',
|
||||
type: '',
|
||||
content: '',
|
||||
value: '',
|
||||
solution: '',
|
||||
})
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
device_id: [{
|
||||
required: true,
|
||||
message: '请输入设备ID',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
type: [{
|
||||
required: true,
|
||||
message: '请选择监测类型',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
content: [{
|
||||
required: true,
|
||||
message: '请输入报警内容',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
value: [{
|
||||
required: true,
|
||||
message: '请输入报警数值',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
solution: [{
|
||||
required: true,
|
||||
message: '请输入解决方案',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
for (const key in formData) {
|
||||
if (data[key] != null && data[key] != undefined) {
|
||||
//@ts-ignore
|
||||
formData[key] = data[key]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const getDetail = async (row: Record<string, any>) => {
|
||||
const data = await apiMonitorAlarmDetail({
|
||||
id: row.id
|
||||
})
|
||||
setFormData(data)
|
||||
}
|
||||
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiMonitorAlarmEdit(data)
|
||||
: await apiMonitorAlarmAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
//打开弹窗
|
||||
const open = (type = 'add') => {
|
||||
mode.value = type
|
||||
popupRef.value?.open()
|
||||
}
|
||||
|
||||
// 关闭回调
|
||||
const handleClose = () => {
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
getDetail
|
||||
})
|
||||
</script>
|
|
@ -1,144 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form
|
||||
class="mb-[-16px]"
|
||||
:model="queryParams"
|
||||
inline
|
||||
>
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input class="w-[280px]" v-model="queryParams.device_id" clearable placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="监测类型" prop="type">
|
||||
<el-select class="w-[280px]" v-model="queryParams.type" clearable placeholder="请选择监测类型">
|
||||
<el-option label="全部" value=""></el-option>
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.alarm_type"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="create_time">
|
||||
<daterange-picker
|
||||
v-model:startTime="queryParams.start_time"
|
||||
v-model:endTime="queryParams.end_time"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
<el-button @click="resetParams">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="ID" prop="id" show-overflow-tooltip />
|
||||
<el-table-column label="设备ID" prop="device_id" show-overflow-tooltip />
|
||||
<el-table-column label="设备名称" prop="device.name" show-overflow-tooltip />
|
||||
<el-table-column label="监测类型" prop="type">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.alarm_type" :value="row.type" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="报警内容" prop="content" show-overflow-tooltip />
|
||||
<el-table-column label="报警数值" prop="value" show-overflow-tooltip />
|
||||
<el-table-column label="报警时间" prop="plant_date">
|
||||
<template #default="{ row }">
|
||||
<span>{{ row.create_time ? timeFormat(row.plant_date, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['device.monitor_alarm/edit']"
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-perms="['device.monitor_alarm/delete']"
|
||||
type="danger"
|
||||
link
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="monitorAlarmLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiMonitorAlarmLists, apiMonitorAlarmDelete } from '@/api/monitor_alarm'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
device_id: '',
|
||||
type: '',
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([])
|
||||
|
||||
// 表格选择后回调事件
|
||||
const handleSelectionChange = (val: any[]) => {
|
||||
selectData.value = val.map(({ id }) => id)
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('alarm_type')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: apiMonitorAlarmLists,
|
||||
params: queryParams
|
||||
})
|
||||
|
||||
// 添加
|
||||
const handleAdd = async () => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiMonitorAlarmDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
|
@ -1,280 +0,0 @@
|
|||
<template>
|
||||
<div class="edit-popup">
|
||||
<popup
|
||||
ref="popupRef"
|
||||
:title="popupTitle"
|
||||
:async="true"
|
||||
width="650px"
|
||||
@confirm="handleSubmit"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="170px" :rules="formRules">
|
||||
<el-form-item label="土壤最高温度" prop="soil_temp_max">
|
||||
<el-input v-model="formData.soil_temp_max" clearable placeholder="请输入土壤最高温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低温度" prop="soil_temp_min">
|
||||
<el-input v-model="formData.soil_temp_min" clearable placeholder="请输入土壤最低温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最高湿度" prop="soil_mois_max">
|
||||
<el-input v-model="formData.soil_mois_max" clearable placeholder="请输入土壤最高湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低湿度" prop="soil_mois_min">
|
||||
<el-input v-model="formData.soil_mois_min" clearable placeholder="请输入土壤最低湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最高PH值" prop="soil_ph_max">
|
||||
<el-input v-model="formData.soil_ph_max" clearable placeholder="请输入土壤最高PH值" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低PH值" prop="soil_ph_min">
|
||||
<el-input v-model="formData.soil_ph_min" clearable placeholder="请输入土壤最低PH值" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最高氮含量" prop="soil_n_content_max">
|
||||
<el-input v-model="formData.soil_n_content_max" clearable placeholder="请输入土壤最高氮含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低氮含量" prop="soil_n_content_min">
|
||||
<el-input v-model="formData.soil_n_content_min" clearable placeholder="请输入土壤最低氮含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最高磷含量" prop="soil_p_content_max">
|
||||
<el-input v-model="formData.soil_p_content_max" clearable placeholder="请输入土壤最高磷含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低磷含量" prop="soil_p_content_min">
|
||||
<el-input v-model="formData.soil_p_content_min" clearable placeholder="请输入土壤最低磷含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最高钾含量" prop="soil_k_content_max">
|
||||
<el-input v-model="formData.soil_k_content_max" clearable placeholder="请输入土壤最高钾含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤最低钾含量" prop="soil_k_content_min">
|
||||
<el-input v-model="formData.soil_k_content_min" clearable placeholder="请输入土壤最低钾含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最高温度" prop="air_temp_max">
|
||||
<el-input v-model="formData.air_temp_max" clearable placeholder="请输入空气最高温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最低温度" prop="air_temp_min">
|
||||
<el-input v-model="formData.air_temp_min" clearable placeholder="请输入空气最低温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最高湿度" prop="air_mois_max">
|
||||
<el-input v-model="formData.air_mois_max" clearable placeholder="请输入空气最高湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最低湿度" prop="air_mois_min">
|
||||
<el-input v-model="formData.air_mois_min" clearable placeholder="请输入空气最低湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最大二氧化碳含量" prop="air_co2_content_max">
|
||||
<el-input v-model="formData.air_co2_content_max" clearable placeholder="请输入空气最大二氧化碳含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="空气最小二氧化碳含量" prop="air_co2_content_min">
|
||||
<el-input v-model="formData.air_co2_content_min" clearable placeholder="请输入空气最小二氧化碳含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="最大风速" prop="wind_speed_max">
|
||||
<el-input v-model="formData.wind_speed_max" clearable placeholder="请输入最大风速" />
|
||||
</el-form-item>
|
||||
<el-form-item label="最小风速" prop="wind_speed_min">
|
||||
<el-input v-model="formData.wind_speed_min" clearable placeholder="请输入最小风速" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="monitorThresholdEdit">
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiMonitorThresholdAdd, apiMonitorThresholdEdit, apiMonitorThresholdDetail } from '@/api/monitor_threshold'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['success', 'close'])
|
||||
const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
const popupTitle = computed(() => {
|
||||
return mode.value == 'edit' ? '编辑报警配置' : '新增报警配置'
|
||||
})
|
||||
|
||||
// 表单数据
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
soil_temp_max: '',
|
||||
soil_temp_min: '',
|
||||
soil_mois_max: '',
|
||||
soil_mois_min: '',
|
||||
soil_ph_max: '',
|
||||
soil_ph_min: '',
|
||||
soil_n_content_max: '',
|
||||
soil_n_content_min: '',
|
||||
soil_p_content_max: '',
|
||||
soil_p_content_min: '',
|
||||
soil_k_content_max: '',
|
||||
soil_k_content_min: '',
|
||||
air_temp_max: '',
|
||||
air_temp_min: '',
|
||||
air_mois_max: '',
|
||||
air_mois_min: '',
|
||||
air_co2_content_max: '',
|
||||
air_co2_content_min: '',
|
||||
wind_speed_max: '',
|
||||
wind_speed_min: '',
|
||||
})
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
soil_temp_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_temp_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_mois_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_mois_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_ph_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高PH值',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_ph_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低PH值',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_n_content_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高氮含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_n_content_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低氮含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_p_content_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高磷含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_p_content_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低磷含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_k_content_max: [{
|
||||
required: true,
|
||||
message: '请输入土壤最高钾含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
soil_k_content_min: [{
|
||||
required: true,
|
||||
message: '请输入土壤最低钾含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_temp_max: [{
|
||||
required: true,
|
||||
message: '请输入空气最高温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_temp_min: [{
|
||||
required: true,
|
||||
message: '请输入空气最低温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_mois_max: [{
|
||||
required: true,
|
||||
message: '请输入空气最高湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_mois_min: [{
|
||||
required: true,
|
||||
message: '请输入空气最低湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_co2_content_max: [{
|
||||
required: true,
|
||||
message: '请输入空气最大二氧化碳含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
air_co2_content_min: [{
|
||||
required: true,
|
||||
message: '请输入空气最小二氧化碳含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
wind_speed_max: [{
|
||||
required: true,
|
||||
message: '请输入最大风速',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
wind_speed_min: [{
|
||||
required: true,
|
||||
message: '请输入最小风速',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
for (const key in formData) {
|
||||
if (data[key] != null && data[key] != undefined) {
|
||||
//@ts-ignore
|
||||
formData[key] = data[key]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const getDetail = async (row: Record<string, any>) => {
|
||||
const data = await apiMonitorThresholdDetail({
|
||||
id: row.id
|
||||
})
|
||||
setFormData(data)
|
||||
}
|
||||
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiMonitorThresholdEdit(data)
|
||||
: await apiMonitorThresholdAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
//打开弹窗
|
||||
const open = (type = 'add') => {
|
||||
mode.value = type
|
||||
popupRef.value?.open()
|
||||
}
|
||||
|
||||
// 关闭回调
|
||||
const handleClose = () => {
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
getDetail
|
||||
})
|
||||
</script>
|
|
@ -1,98 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
|
||||
<el-table-column label="土壤最高温度" prop="soil_temp_max" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最低温度" prop="soil_temp_min" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最高湿度" prop="soil_mois_max" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最低湿度" prop="soil_mois_min" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最高PH值" prop="soil_ph_max" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最低PH值" prop="soil_ph_min" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最高氮含量" prop="soil_n_content_max" show-overflow-tooltip />
|
||||
<el-table-column label="土壤最低氮含量" prop="soil_n_content_min" show-overflow-tooltip />
|
||||
<el-table-column label="最大风速" prop="wind_speed_max" show-overflow-tooltip />
|
||||
<el-table-column label="最小风速" prop="wind_speed_min" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['device.monitor_threshold/edit']"
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="monitorThresholdLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiMonitorThresholdLists, apiMonitorThresholdDelete } from '@/api/monitor_threshold'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([])
|
||||
|
||||
// 表格选择后回调事件
|
||||
const handleSelectionChange = (val: any[]) => {
|
||||
selectData.value = val.map(({ id }) => id)
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: apiMonitorThresholdLists,
|
||||
params: queryParams
|
||||
})
|
||||
|
||||
// 添加
|
||||
const handleAdd = async () => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiMonitorThresholdDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
|
@ -1,173 +0,0 @@
|
|||
<template>
|
||||
<div class="edit-popup">
|
||||
<popup
|
||||
ref="popupRef"
|
||||
:title="popupTitle"
|
||||
:async="true"
|
||||
width="550px"
|
||||
@confirm="handleSubmit"
|
||||
@close="handleClose"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input v-model="formData.device_id" disabled clearable placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤温度" prop="temperature">
|
||||
<el-input v-model="formData.temperature" disabled clearable placeholder="请输入土壤温度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤湿度" prop="moisture">
|
||||
<el-input v-model="formData.moisture" disabled clearable placeholder="请输入土壤湿度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="电导率" prop="conductivity">
|
||||
<el-input v-model="formData.conductivity" disabled clearable placeholder="请输入电导率" />
|
||||
</el-form-item>
|
||||
<el-form-item label="土壤酸碱度" prop="ph">
|
||||
<el-input v-model="formData.ph" disabled clearable placeholder="请输入土壤酸碱度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="氮含量" prop="n_content">
|
||||
<el-input v-model="formData.n_content" disabled clearable placeholder="请输入氮含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="磷含量" prop="p_content">
|
||||
<el-input v-model="formData.p_content" disabled clearable placeholder="请输入磷含量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="钾含量" prop="k_content">
|
||||
<el-input v-model="formData.k_content" disabled clearable placeholder="请输入钾含量" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="soilMonitorEdit">
|
||||
import type { FormInstance } from 'element-plus'
|
||||
import Popup from '@/components/popup/index.vue'
|
||||
import { apiSoilMonitorAdd, apiSoilMonitorEdit, apiSoilMonitorDetail } from '@/api/soil_monitor'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
dictData: {
|
||||
type: Object as PropType<Record<string, any[]>>,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['success', 'close'])
|
||||
const formRef = shallowRef<FormInstance>()
|
||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||
const mode = ref('add')
|
||||
|
||||
|
||||
// 弹窗标题
|
||||
const popupTitle = computed(() => {
|
||||
return mode.value == 'edit' ? '土壤监测数据' : '新增土壤监测'
|
||||
})
|
||||
|
||||
// 表单数据
|
||||
const formData = reactive({
|
||||
id: '',
|
||||
device_id: '',
|
||||
temperature: '',
|
||||
moisture: '',
|
||||
conductivity: '',
|
||||
ph: '',
|
||||
n_content: '',
|
||||
p_content: '',
|
||||
k_content: '',
|
||||
})
|
||||
|
||||
|
||||
// 表单验证
|
||||
const formRules = reactive<any>({
|
||||
device_id: [{
|
||||
required: true,
|
||||
message: '请输入设备ID',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
temperature: [{
|
||||
required: true,
|
||||
message: '请输入土壤温度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
moisture: [{
|
||||
required: true,
|
||||
message: '请输入土壤湿度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
conductivity: [{
|
||||
required: true,
|
||||
message: '请输入电导率',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
ph: [{
|
||||
required: true,
|
||||
message: '请输入土壤酸碱度',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
n_content: [{
|
||||
required: true,
|
||||
message: '请输入氮含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
p_content: [{
|
||||
required: true,
|
||||
message: '请输入磷含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
k_content: [{
|
||||
required: true,
|
||||
message: '请输入钾含量',
|
||||
trigger: ['blur']
|
||||
}],
|
||||
})
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
for (const key in formData) {
|
||||
if (data[key] != null && data[key] != undefined) {
|
||||
//@ts-ignore
|
||||
formData[key] = data[key]
|
||||
}
|
||||
}
|
||||
|
||||
//@ts-ignore
|
||||
formData.create_time = timeFormat(formData.create_time,'yyyy-mm-dd hh:MM:ss')
|
||||
}
|
||||
|
||||
const getDetail = async (row: Record<string, any>) => {
|
||||
const data = await apiSoilMonitorDetail({
|
||||
id: row.id
|
||||
})
|
||||
setFormData(data)
|
||||
}
|
||||
|
||||
|
||||
// 提交按钮
|
||||
const handleSubmit = async () => {
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiSoilMonitorEdit(data)
|
||||
: await apiSoilMonitorAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
||||
//打开弹窗
|
||||
const open = (type = 'add') => {
|
||||
mode.value = type
|
||||
popupRef.value?.open()
|
||||
}
|
||||
|
||||
// 关闭回调
|
||||
const handleClose = () => {
|
||||
emit('close')
|
||||
}
|
||||
|
||||
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
setFormData,
|
||||
getDetail
|
||||
})
|
||||
</script>
|
|
@ -1,134 +0,0 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form
|
||||
class="mb-[-16px]"
|
||||
:model="queryParams"
|
||||
inline
|
||||
>
|
||||
<el-form-item label="设备ID" prop="device_id">
|
||||
<el-input class="w-[280px]" v-model="queryParams.device_id" clearable placeholder="请输入设备ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="create_time">
|
||||
<daterange-picker
|
||||
v-model:startTime="queryParams.start_time"
|
||||
v-model:endTime="queryParams.end_time"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="resetPage">查询</el-button>
|
||||
<el-button @click="resetParams">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="ID" prop="id" show-overflow-tooltip />
|
||||
<el-table-column label="设备ID" prop="device_id" show-overflow-tooltip />
|
||||
<el-table-column label="设备名称" prop="device.name" show-overflow-tooltip />
|
||||
<el-table-column label="土壤温度" prop="temperature" show-overflow-tooltip />
|
||||
<el-table-column label="土壤湿度" prop="moisture" show-overflow-tooltip />
|
||||
<el-table-column label="电导率" prop="conductivity" show-overflow-tooltip />
|
||||
<el-table-column label="土壤酸碱度" prop="ph" show-overflow-tooltip />
|
||||
<el-table-column label="氮含量" prop="n_content" show-overflow-tooltip />
|
||||
<el-table-column label="磷含量" prop="p_content" show-overflow-tooltip />
|
||||
<el-table-column label="钾含量" prop="k_content" show-overflow-tooltip />
|
||||
<el-table-column label="创建时间" prop="create_time">
|
||||
<template #default="{ row }">
|
||||
<span>{{ row.create_time ? timeFormat(row.create_time, 'yyyy-mm-dd hh:MM:ss') : '' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
v-perms="['device.soil_monitor/edit']"
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(row)"
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
v-perms="['device.soil_monitor/delete']"
|
||||
type="danger"
|
||||
link
|
||||
@click="handleDelete(row.id)"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="soilMonitorLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiSoilMonitorLists, apiSoilMonitorDelete } from '@/api/soil_monitor'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
device_id: '',
|
||||
create_time: '',
|
||||
})
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([])
|
||||
|
||||
// 表格选择后回调事件
|
||||
const handleSelectionChange = (val: any[]) => {
|
||||
selectData.value = val.map(({ id }) => id)
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
const { dictData } = useDictData('')
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: apiSoilMonitorLists,
|
||||
params: queryParams
|
||||
})
|
||||
|
||||
// 添加
|
||||
const handleAdd = async () => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(data)
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiSoilMonitorDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
|
@ -34,7 +34,6 @@ class BaseAdminController extends BaseLikeAdminController
|
|||
if (isset($this->request->adminInfo) && $this->request->adminInfo) {
|
||||
$this->adminInfo = $this->request->adminInfo;
|
||||
$this->adminId = $this->request->adminInfo['admin_id'];
|
||||
$this->userId = $this->request->adminInfo['user_id'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\device;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\device\AirMonitorLists;
|
||||
use app\adminapi\logic\device\AirMonitorLogic;
|
||||
use app\adminapi\validate\device\AirMonitorValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AirMonitor控制器
|
||||
* Class AirMonitorController
|
||||
* @package app\adminapi\controller\device
|
||||
*/
|
||||
class AirMonitorController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new AirMonitorLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new AirMonitorValidate())->post()->goCheck('add');
|
||||
$result = AirMonitorLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AirMonitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new AirMonitorValidate())->post()->goCheck('edit');
|
||||
$result = AirMonitorLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(AirMonitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new AirMonitorValidate())->post()->goCheck('delete');
|
||||
AirMonitorLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new AirMonitorValidate())->goCheck('detail');
|
||||
$result = AirMonitorLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\device;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\device\DeviceLists;
|
||||
use app\adminapi\logic\device\DeviceLogic;
|
||||
use app\adminapi\validate\device\DeviceValidate;
|
||||
|
||||
|
||||
/**
|
||||
* Device控制器
|
||||
* Class DeviceController
|
||||
* @package app\adminapi\controller\device
|
||||
*/
|
||||
class DeviceController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new DeviceLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new DeviceValidate())->post()->goCheck('add');
|
||||
$result = DeviceLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(DeviceLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new DeviceValidate())->post()->goCheck('edit');
|
||||
$result = DeviceLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(DeviceLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new DeviceValidate())->post()->goCheck('delete');
|
||||
DeviceLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new DeviceValidate())->goCheck('detail');
|
||||
$result = DeviceLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\device;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\device\MonitorAlarmLists;
|
||||
use app\adminapi\logic\device\MonitorAlarmLogic;
|
||||
use app\adminapi\validate\device\MonitorAlarmValidate;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorAlarm控制器
|
||||
* Class MonitorAlarmController
|
||||
* @package app\adminapi\controller\device
|
||||
*/
|
||||
class MonitorAlarmController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MonitorAlarmLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MonitorAlarmValidate())->post()->goCheck('add');
|
||||
$result = MonitorAlarmLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MonitorAlarmLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MonitorAlarmValidate())->post()->goCheck('edit');
|
||||
$result = MonitorAlarmLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MonitorAlarmLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MonitorAlarmValidate())->post()->goCheck('delete');
|
||||
MonitorAlarmLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MonitorAlarmValidate())->goCheck('detail');
|
||||
$result = MonitorAlarmLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\device;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\device\MonitorThresholdLists;
|
||||
use app\adminapi\logic\device\MonitorThresholdLogic;
|
||||
use app\adminapi\validate\device\MonitorThresholdValidate;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorThreshold控制器
|
||||
* Class MonitorThresholdController
|
||||
* @package app\adminapi\controller\device
|
||||
*/
|
||||
class MonitorThresholdController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new MonitorThresholdLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new MonitorThresholdValidate())->post()->goCheck('add');
|
||||
$result = MonitorThresholdLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MonitorThresholdLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new MonitorThresholdValidate())->post()->goCheck('edit');
|
||||
$result = MonitorThresholdLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(MonitorThresholdLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new MonitorThresholdValidate())->post()->goCheck('delete');
|
||||
MonitorThresholdLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new MonitorThresholdValidate())->goCheck('detail');
|
||||
$result = MonitorThresholdLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,108 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
namespace app\adminapi\controller\device;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\device\SoilMonitorLists;
|
||||
use app\adminapi\logic\device\SoilMonitorLogic;
|
||||
use app\adminapi\validate\device\SoilMonitorValidate;
|
||||
|
||||
|
||||
/**
|
||||
* SoilMonitor控制器
|
||||
* Class SoilMonitorController
|
||||
* @package app\adminapi\controller\device
|
||||
*/
|
||||
class SoilMonitorController extends BaseAdminController
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function lists()
|
||||
{
|
||||
return $this->dataLists(new SoilMonitorLists());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new SoilMonitorValidate())->post()->goCheck('add');
|
||||
$result = SoilMonitorLogic::add($params);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SoilMonitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$params = (new SoilMonitorValidate())->post()->goCheck('edit');
|
||||
$result = SoilMonitorLogic::edit($params);
|
||||
if (true === $result) {
|
||||
return $this->success('编辑成功', [], 1, 1);
|
||||
}
|
||||
return $this->fail(SoilMonitorLogic::getError());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
$params = (new SoilMonitorValidate())->post()->goCheck('delete');
|
||||
SoilMonitorLogic::delete($params);
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @return \think\response\Json
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
$params = (new SoilMonitorValidate())->goCheck('detail');
|
||||
$result = SoilMonitorLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -71,7 +71,7 @@ class LoginMiddleware
|
|||
//给request赋值,用于控制器
|
||||
$request->adminInfo = $adminInfo;
|
||||
$request->adminId = $adminInfo['admin_id'] ?? 0;
|
||||
$request->userId = $adminInfo['user_id'] ?? 0;
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,79 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\device;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\device\AirMonitor;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* AirMonitor列表
|
||||
* Class AirMonitorLists
|
||||
* @package app\adminapi\listsdevice
|
||||
*/
|
||||
class AirMonitorLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
$allowSearch = ['start_time', 'end_time'];
|
||||
if (!empty($this->params['device_id'])) {
|
||||
$allowSearch[] = 'device_id';
|
||||
}
|
||||
return array_intersect(array_keys($this->params), $allowSearch);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return AirMonitor::withSearch($this->setSearch(), $this->params)->with('device')
|
||||
->field(['id', 'device_id', 'wind_direction', 'wind_speed', 'temperature', 'moisture', 'co2_content', 'pressure', 'rainfall', 'light_intensity', 'create_time'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return AirMonitor::withSearch($this->setSearch(), $this->params)->count();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,79 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\device;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\device\Device;
|
||||
use app\common\model\land\LandDevice;
|
||||
use app\common\model\land\Land;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* Device列表
|
||||
* Class DeviceLists
|
||||
* @package app\adminapi\listsdevice
|
||||
*/
|
||||
class DeviceLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['code', 'name', 'type', 'status', 'is_online', 'is_bind'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return Device::where($this->searchWhere)
|
||||
->field(['id', 'code', 'name', 'type', 'status', 'is_online', 'is_bind'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return Device::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,82 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\device;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\device\MonitorAlarm;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorAlarm列表
|
||||
* Class MonitorAlarmLists
|
||||
* @package app\adminapi\listsdevice
|
||||
*/
|
||||
class MonitorAlarmLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
$allowSearch = ['start_time', 'end_time'];
|
||||
if (!empty($this->params['device_id'])) {
|
||||
$allowSearch[] = 'device_id';
|
||||
}
|
||||
if (!empty($this->params['type'])) {
|
||||
$allowSearch[] = 'type';
|
||||
}
|
||||
return array_intersect(array_keys($this->params), $allowSearch);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return MonitorAlarm::withSearch($this->setSearch(), $this->params)->with('device')
|
||||
->field(['id', 'device_id', 'type', 'content', 'value', 'solution', 'create_time'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return MonitorAlarm::withSearch($this->setSearch(), $this->params)->count();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,77 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\device;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\device\MonitorThreshold;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorThreshold列表
|
||||
* Class MonitorThresholdLists
|
||||
* @package app\adminapi\listsdevice
|
||||
*/
|
||||
class MonitorThresholdLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return MonitorThreshold::where($this->searchWhere)
|
||||
->field(['id', 'soil_temp_max', 'soil_temp_min', 'soil_mois_max', 'soil_mois_min', 'soil_ph_max', 'soil_ph_min', 'soil_n_content_max', 'soil_n_content_min', 'soil_p_content_max', 'soil_p_content_min', 'soil_k_content_max', 'soil_k_content_min', 'air_temp_max', 'air_temp_min', 'air_mois_max', 'air_mois_min', 'air_co2_content_max', 'air_co2_content_min', 'wind_speed_max', 'wind_speed_min'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return MonitorThreshold::where($this->searchWhere)->count();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,79 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\lists\device;
|
||||
|
||||
|
||||
use app\adminapi\lists\BaseAdminDataLists;
|
||||
use app\common\model\device\SoilMonitor;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
|
||||
|
||||
/**
|
||||
* SoilMonitor列表
|
||||
* Class SoilMonitorLists
|
||||
* @package app\adminapi\listsdevice
|
||||
*/
|
||||
class SoilMonitorLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 设置搜索条件
|
||||
* @return \string[][]
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function setSearch(): array
|
||||
{
|
||||
$allowSearch = ['start_time', 'end_time'];
|
||||
if (!empty($this->params['device_id'])) {
|
||||
$allowSearch[] = 'device_id';
|
||||
}
|
||||
return array_intersect(array_keys($this->params), $allowSearch);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取列表
|
||||
* @return array
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function lists(): array
|
||||
{
|
||||
return SoilMonitor::withSearch($this->setSearch(), $this->params)->with('device')
|
||||
->field(['id', 'device_id', 'temperature', 'moisture', 'conductivity', 'ph', 'n_content', 'p_content', 'k_content', 'create_time'])
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取数量
|
||||
* @return int
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return SoilMonitor::withSearch($this->setSearch(), $this->params)->count();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,122 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\logic\device;
|
||||
|
||||
|
||||
use app\common\model\device\AirMonitor;
|
||||
use app\common\logic\BaseLogic;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* AirMonitor逻辑
|
||||
* Class AirMonitorLogic
|
||||
* @package app\adminapi\logic\device
|
||||
*/
|
||||
class AirMonitorLogic extends BaseLogic
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
AirMonitor::create([
|
||||
'device_id' => $params['device_id'],
|
||||
'wind_direction' => $params['wind_direction'],
|
||||
'wind_speed' => $params['wind_speed'],
|
||||
'temperature' => $params['temperature'],
|
||||
'moisture' => $params['moisture'],
|
||||
'co2_content' => $params['co2_content'],
|
||||
'pressure' => $params['pressure'],
|
||||
'rainfall' => $params['rainfall'],
|
||||
'light_intensity' => $params['light_intensity'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public static function edit(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
AirMonitor::where('id', $params['id'])->update([
|
||||
'device_id' => $params['device_id'],
|
||||
'wind_direction' => $params['wind_direction'],
|
||||
'wind_speed' => $params['wind_speed'],
|
||||
'temperature' => $params['temperature'],
|
||||
'moisture' => $params['moisture'],
|
||||
'co2_content' => $params['co2_content'],
|
||||
'pressure' => $params['pressure'],
|
||||
'rainfall' => $params['rainfall'],
|
||||
'light_intensity' => $params['light_intensity'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
return AirMonitor::destroy($params['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @param $params
|
||||
* @return array
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return AirMonitor::findOrEmpty($params['id'])->toArray();
|
||||
}
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\logic\device;
|
||||
|
||||
|
||||
use app\common\model\device\Device;
|
||||
use app\common\logic\BaseLogic;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* Device逻辑
|
||||
* Class DeviceLogic
|
||||
* @package app\adminapi\logic\device
|
||||
*/
|
||||
class DeviceLogic extends BaseLogic
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
Device::create([
|
||||
'code' => $params['code'],
|
||||
'name' => $params['name'],
|
||||
'type' => $params['type'],
|
||||
'status' => $params['status'],
|
||||
'is_online' => $params['is_online'],
|
||||
'is_bind' => $params['is_bind'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public static function edit(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
Device::where('id', $params['id'])->update([
|
||||
'code' => $params['code'],
|
||||
'name' => $params['name'],
|
||||
'type' => $params['type'],
|
||||
'status' => $params['status'],
|
||||
'is_online' => $params['is_online'],
|
||||
'is_bind' => $params['is_bind'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
return Device::destroy($params['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @param $params
|
||||
* @return array
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return Device::findOrEmpty($params['id'])->toArray();
|
||||
}
|
||||
}
|
|
@ -1,114 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\logic\device;
|
||||
|
||||
|
||||
use app\common\model\device\MonitorAlarm;
|
||||
use app\common\logic\BaseLogic;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorAlarm逻辑
|
||||
* Class MonitorAlarmLogic
|
||||
* @package app\adminapi\logic\device
|
||||
*/
|
||||
class MonitorAlarmLogic extends BaseLogic
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
MonitorAlarm::create([
|
||||
'device_id' => $params['device_id'],
|
||||
'type' => $params['type'],
|
||||
'content' => $params['content'],
|
||||
'value' => $params['value'],
|
||||
'solution' => $params['solution'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public static function edit(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
MonitorAlarm::where('id', $params['id'])->update([
|
||||
'device_id' => $params['device_id'],
|
||||
'type' => $params['type'],
|
||||
'content' => $params['content'],
|
||||
'value' => $params['value'],
|
||||
'solution' => $params['solution'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
return MonitorAlarm::destroy($params['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @param $params
|
||||
* @return array
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return MonitorAlarm::findOrEmpty($params['id'])->toArray();
|
||||
}
|
||||
}
|
|
@ -1,144 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\logic\device;
|
||||
|
||||
|
||||
use app\common\model\device\MonitorThreshold;
|
||||
use app\common\logic\BaseLogic;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorThreshold逻辑
|
||||
* Class MonitorThresholdLogic
|
||||
* @package app\adminapi\logic\device
|
||||
*/
|
||||
class MonitorThresholdLogic extends BaseLogic
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
MonitorThreshold::create([
|
||||
'soil_temp_max' => $params['soil_temp_max'],
|
||||
'soil_temp_min' => $params['soil_temp_min'],
|
||||
'soil_mois_max' => $params['soil_mois_max'],
|
||||
'soil_mois_min' => $params['soil_mois_min'],
|
||||
'soil_ph_max' => $params['soil_ph_max'],
|
||||
'soil_ph_min' => $params['soil_ph_min'],
|
||||
'soil_n_content_max' => $params['soil_n_content_max'],
|
||||
'soil_n_content_min' => $params['soil_n_content_min'],
|
||||
'soil_p_content_max' => $params['soil_p_content_max'],
|
||||
'soil_p_content_min' => $params['soil_p_content_min'],
|
||||
'soil_k_content_max' => $params['soil_k_content_max'],
|
||||
'soil_k_content_min' => $params['soil_k_content_min'],
|
||||
'air_temp_max' => $params['air_temp_max'],
|
||||
'air_temp_min' => $params['air_temp_min'],
|
||||
'air_mois_max' => $params['air_mois_max'],
|
||||
'air_mois_min' => $params['air_mois_min'],
|
||||
'air_co2_content_max' => $params['air_co2_content_max'],
|
||||
'air_co2_content_min' => $params['air_co2_content_min'],
|
||||
'wind_speed_max' => $params['wind_speed_max'],
|
||||
'wind_speed_min' => $params['wind_speed_min'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public static function edit(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
MonitorThreshold::where('id', $params['id'])->update([
|
||||
'soil_temp_max' => $params['soil_temp_max'],
|
||||
'soil_temp_min' => $params['soil_temp_min'],
|
||||
'soil_mois_max' => $params['soil_mois_max'],
|
||||
'soil_mois_min' => $params['soil_mois_min'],
|
||||
'soil_ph_max' => $params['soil_ph_max'],
|
||||
'soil_ph_min' => $params['soil_ph_min'],
|
||||
'soil_n_content_max' => $params['soil_n_content_max'],
|
||||
'soil_n_content_min' => $params['soil_n_content_min'],
|
||||
'soil_p_content_max' => $params['soil_p_content_max'],
|
||||
'soil_p_content_min' => $params['soil_p_content_min'],
|
||||
'soil_k_content_max' => $params['soil_k_content_max'],
|
||||
'soil_k_content_min' => $params['soil_k_content_min'],
|
||||
'air_temp_max' => $params['air_temp_max'],
|
||||
'air_temp_min' => $params['air_temp_min'],
|
||||
'air_mois_max' => $params['air_mois_max'],
|
||||
'air_mois_min' => $params['air_mois_min'],
|
||||
'air_co2_content_max' => $params['air_co2_content_max'],
|
||||
'air_co2_content_min' => $params['air_co2_content_min'],
|
||||
'wind_speed_max' => $params['wind_speed_max'],
|
||||
'wind_speed_min' => $params['wind_speed_min'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
return MonitorThreshold::destroy($params['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @param $params
|
||||
* @return array
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return MonitorThreshold::findOrEmpty($params['id'])->toArray();
|
||||
}
|
||||
}
|
|
@ -1,120 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\logic\device;
|
||||
|
||||
|
||||
use app\common\model\device\SoilMonitor;
|
||||
use app\common\logic\BaseLogic;
|
||||
use think\facade\Db;
|
||||
|
||||
|
||||
/**
|
||||
* SoilMonitor逻辑
|
||||
* Class SoilMonitorLogic
|
||||
* @package app\adminapi\logic\device
|
||||
*/
|
||||
class SoilMonitorLogic extends BaseLogic
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public static function add(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
SoilMonitor::create([
|
||||
'device_id' => $params['device_id'],
|
||||
'temperature' => $params['temperature'],
|
||||
'moisture' => $params['moisture'],
|
||||
'conductivity' => $params['conductivity'],
|
||||
'ph' => $params['ph'],
|
||||
'n_content' => $params['n_content'],
|
||||
'p_content' => $params['p_content'],
|
||||
'k_content' => $params['k_content'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public static function edit(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
SoilMonitor::where('id', $params['id'])->update([
|
||||
'device_id' => $params['device_id'],
|
||||
'temperature' => $params['temperature'],
|
||||
'moisture' => $params['moisture'],
|
||||
'conductivity' => $params['conductivity'],
|
||||
'ph' => $params['ph'],
|
||||
'n_content' => $params['n_content'],
|
||||
'p_content' => $params['p_content'],
|
||||
'k_content' => $params['k_content'],
|
||||
]);
|
||||
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
self::setError($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public static function delete(array $params): bool
|
||||
{
|
||||
return SoilMonitor::destroy($params['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 获取详情
|
||||
* @param $params
|
||||
* @return array
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
return SoilMonitor::findOrEmpty($params['id'])->toArray();
|
||||
}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\validate\device;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* AirMonitor验证器
|
||||
* Class AirMonitorValidate
|
||||
* @package app\adminapi\validate\device
|
||||
*/
|
||||
class AirMonitorValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'device_id' => 'require',
|
||||
'wind_direction' => 'require',
|
||||
'wind_speed' => 'require',
|
||||
'temperature' => 'require',
|
||||
'moisture' => 'require',
|
||||
'co2_content' => 'require',
|
||||
'pressure' => 'require',
|
||||
'rainfall' => 'require',
|
||||
'light_intensity' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'device_id' => '设备ID',
|
||||
'wind_direction' => '风向',
|
||||
'wind_speed' => '风速',
|
||||
'temperature' => '空气温度',
|
||||
'moisture' => '空气湿度',
|
||||
'co2_content' => '二氧化碳含量',
|
||||
'pressure' => '大气压强',
|
||||
'rainfall' => '降雨量',
|
||||
'light_intensity' => '光照强度',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return AirMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->only(['device_id','wind_direction','wind_speed','temperature','moisture','co2_content','pressure','rainfall','light_intensity']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return AirMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id','device_id','wind_direction','wind_speed','temperature','moisture','co2_content','pressure','rainfall','light_intensity']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return AirMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return AirMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,106 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\validate\device;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* Device验证器
|
||||
* Class DeviceValidate
|
||||
* @package app\adminapi\validate\device
|
||||
*/
|
||||
class DeviceValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'code' => 'require',
|
||||
'name' => 'require',
|
||||
'type' => 'require',
|
||||
'status' => 'require',
|
||||
'is_online' => 'require',
|
||||
'is_bind' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'code' => '设备编码',
|
||||
'name' => '设备名称',
|
||||
'type' => '设备类型',
|
||||
'status' => '设备状态',
|
||||
'is_online' => '是否在线',
|
||||
'is_bind' => '是否绑定土地',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return DeviceValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->only(['code','name','type','status','is_online','is_bind']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return DeviceValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id','code','name','type','status','is_online','is_bind']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return DeviceValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return DeviceValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 15:30
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,104 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\validate\device;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorAlarm验证器
|
||||
* Class MonitorAlarmValidate
|
||||
* @package app\adminapi\validate\device
|
||||
*/
|
||||
class MonitorAlarmValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'device_id' => 'require',
|
||||
'type' => 'require',
|
||||
'content' => 'require',
|
||||
'value' => 'require',
|
||||
'solution' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'device_id' => '设备ID',
|
||||
'type' => '监测类型',
|
||||
'content' => '报警内容',
|
||||
'value' => '报警数值',
|
||||
'solution' => '解决方案',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return MonitorAlarmValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->only(['device_id','type','content','value','solution']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return MonitorAlarmValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id','device_id','type','content','value','solution']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return MonitorAlarmValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return MonitorAlarmValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,134 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\validate\device;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* MonitorThreshold验证器
|
||||
* Class MonitorThresholdValidate
|
||||
* @package app\adminapi\validate\device
|
||||
*/
|
||||
class MonitorThresholdValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'soil_temp_max' => 'require',
|
||||
'soil_temp_min' => 'require',
|
||||
'soil_mois_max' => 'require',
|
||||
'soil_mois_min' => 'require',
|
||||
'soil_ph_max' => 'require',
|
||||
'soil_ph_min' => 'require',
|
||||
'soil_n_content_max' => 'require',
|
||||
'soil_n_content_min' => 'require',
|
||||
'soil_p_content_max' => 'require',
|
||||
'soil_p_content_min' => 'require',
|
||||
'soil_k_content_max' => 'require',
|
||||
'soil_k_content_min' => 'require',
|
||||
'air_temp_max' => 'require',
|
||||
'air_temp_min' => 'require',
|
||||
'air_mois_max' => 'require',
|
||||
'air_mois_min' => 'require',
|
||||
'air_co2_content_max' => 'require',
|
||||
'air_co2_content_min' => 'require',
|
||||
'wind_speed_max' => 'require',
|
||||
'wind_speed_min' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'soil_temp_max' => '土壤最高温度',
|
||||
'soil_temp_min' => '土壤最低温度',
|
||||
'soil_mois_max' => '土壤最高湿度',
|
||||
'soil_mois_min' => '土壤最低湿度',
|
||||
'soil_ph_max' => '土壤最高PH值',
|
||||
'soil_ph_min' => '土壤最低PH值',
|
||||
'soil_n_content_max' => '土壤最高氮含量',
|
||||
'soil_n_content_min' => '土壤最低氮含量',
|
||||
'soil_p_content_max' => '土壤最高磷含量',
|
||||
'soil_p_content_min' => '土壤最低磷含量',
|
||||
'soil_k_content_max' => '土壤最高钾含量',
|
||||
'soil_k_content_min' => '土壤最低钾含量',
|
||||
'air_temp_max' => '空气最高温度',
|
||||
'air_temp_min' => '空气最低温度',
|
||||
'air_mois_max' => '空气最高湿度',
|
||||
'air_mois_min' => '空气最低湿度',
|
||||
'air_co2_content_max' => '空气最大二氧化碳含量',
|
||||
'air_co2_content_min' => '空气最小二氧化碳含量',
|
||||
'wind_speed_max' => '最大风速',
|
||||
'wind_speed_min' => '最小风速',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return MonitorThresholdValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->only(['soil_temp_max','soil_temp_min','soil_mois_max','soil_mois_min','soil_ph_max','soil_ph_min','soil_n_content_max','soil_n_content_min','soil_p_content_max','soil_p_content_min','soil_k_content_max','soil_k_content_min','air_temp_max','air_temp_min','air_mois_max','air_mois_min','air_co2_content_max','air_co2_content_min','wind_speed_max','wind_speed_min']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return MonitorThresholdValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id','soil_temp_max','soil_temp_min','soil_mois_max','soil_mois_min','soil_ph_max','soil_ph_min','soil_n_content_max','soil_n_content_min','soil_p_content_max','soil_p_content_min','soil_k_content_max','soil_k_content_min','air_temp_max','air_temp_min','air_mois_max','air_mois_min','air_co2_content_max','air_co2_content_min','wind_speed_max','wind_speed_min']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return MonitorThresholdValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return MonitorThresholdValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:17
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,110 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\adminapi\validate\device;
|
||||
|
||||
|
||||
use app\common\validate\BaseValidate;
|
||||
|
||||
|
||||
/**
|
||||
* SoilMonitor验证器
|
||||
* Class SoilMonitorValidate
|
||||
* @package app\adminapi\validate\device
|
||||
*/
|
||||
class SoilMonitorValidate extends BaseValidate
|
||||
{
|
||||
|
||||
/**
|
||||
* 设置校验规则
|
||||
* @var string[]
|
||||
*/
|
||||
protected $rule = [
|
||||
'id' => 'require',
|
||||
'device_id' => 'require',
|
||||
'temperature' => 'require',
|
||||
'moisture' => 'require',
|
||||
'conductivity' => 'require',
|
||||
'ph' => 'require',
|
||||
'n_content' => 'require',
|
||||
'p_content' => 'require',
|
||||
'k_content' => 'require',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* 参数描述
|
||||
* @var string[]
|
||||
*/
|
||||
protected $field = [
|
||||
'id' => 'id',
|
||||
'device_id' => '设备ID',
|
||||
'temperature' => '土壤温度',
|
||||
'moisture' => '土壤湿度',
|
||||
'conductivity' => '电导率',
|
||||
'ph' => '土壤酸碱度',
|
||||
'n_content' => '氮含量',
|
||||
'p_content' => '磷含量',
|
||||
'k_content' => '钾含量',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* @notes 添加场景
|
||||
* @return SoilMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function sceneAdd()
|
||||
{
|
||||
return $this->only(['device_id','temperature','moisture','conductivity','ph','n_content','p_content','k_content']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 编辑场景
|
||||
* @return SoilMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function sceneEdit()
|
||||
{
|
||||
return $this->only(['id','device_id','temperature','moisture','conductivity','ph','n_content','p_content','k_content']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 删除场景
|
||||
* @return SoilMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function sceneDelete()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @notes 详情场景
|
||||
* @return SoilMonitorValidate
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function sceneDetail()
|
||||
{
|
||||
return $this->only(['id']);
|
||||
}
|
||||
|
||||
}
|
|
@ -37,7 +37,7 @@ class UploadController extends BaseApiController
|
|||
{
|
||||
try {
|
||||
$result = UploadService::image(0, $this->userId,FileEnum::SOURCE_USER);
|
||||
return $this->success('上传成功', ['url'=>env('project.project_url').'/'.$result['url']]);
|
||||
return $this->success('上传成功', $result);
|
||||
} catch (Exception $e) {
|
||||
return $this->fail($e->getMessage());
|
||||
}
|
||||
|
|
|
@ -89,7 +89,6 @@ class AdminTokenCache extends BaseCache
|
|||
|
||||
$adminInfo = [
|
||||
'admin_id' => $admin->id,
|
||||
'user_id' => $admin->user_id,
|
||||
'root' => $admin->root,
|
||||
'name' => $admin->name,
|
||||
'account' => $admin->account,
|
||||
|
|
|
@ -1,77 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* AirMonitor模型
|
||||
* Class AirMonitor
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class AirMonitor extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'air_monitor';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 关联device
|
||||
* @return \think\model\relation\HasOne
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:49
|
||||
*/
|
||||
public function device()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\device\Device::class, 'id', 'device_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchStartTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '>=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchEndTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '<=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,40 +1,10 @@
|
|||
<?php
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\common\model\device;
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
/**
|
||||
* Device模型
|
||||
* Class Device
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class Device extends BaseModel
|
||||
{
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class Device extends BaseModel
|
||||
{
|
||||
protected $name = 'device';
|
||||
|
||||
/**
|
||||
* @notes 关联land
|
||||
* @return \think\model\relation\HasOne
|
||||
* @author likeadmin
|
||||
* @date 2023/11/23 11:32
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,75 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* MonitorAlarm模型
|
||||
* Class MonitorAlarm
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class MonitorAlarm extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'monitor_alarm';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 关联device
|
||||
* @return \think\model\relation\HasOne
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 16:34
|
||||
*/
|
||||
public function device()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\device\Device::class, 'id', 'device_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchStartTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '>=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchEndTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '<=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* MonitorThreshold模型
|
||||
* Class MonitorThreshold
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class MonitorThreshold extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'monitor_threshold';
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -1,76 +0,0 @@
|
|||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* SoilMonitor模型
|
||||
* Class SoilMonitor
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class SoilMonitor extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'soil_monitor';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @notes 关联device
|
||||
* @return \think\model\relation\HasOne
|
||||
* @author likeadmin
|
||||
* @date 2023/11/24 17:02
|
||||
*/
|
||||
public function device()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\device\Device::class, 'id', 'device_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchStartTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '>=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 搜索器-注册时间
|
||||
* @param $query
|
||||
* @param $value
|
||||
* @param $data
|
||||
* @author 段誉
|
||||
* @date 2022/9/22 16:13
|
||||
*/
|
||||
public function searchEndTimeAttr($query, $value, $data)
|
||||
{
|
||||
if ($value) {
|
||||
$query->where('create_time', '<=', strtotime($value));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,34 +1,10 @@
|
|||
<?php
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | likeadmin快速开发前后端分离管理后台(PHP版)
|
||||
// +----------------------------------------------------------------------
|
||||
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
|
||||
// | 开源版本可自由商用,可去除界面版权logo
|
||||
// | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
|
||||
// | github下载:https://github.com/likeshop-github/likeadmin
|
||||
// | 访问官网:https://www.likeadmin.cn
|
||||
// | likeadmin团队 版权所有 拥有最终解释权
|
||||
// +----------------------------------------------------------------------
|
||||
// | author: likeadminTeam
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\common\model\land;
|
||||
|
||||
namespace app\common\model\land;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* LandPlant模型
|
||||
* Class LandPlant
|
||||
* @package app\common\model\land
|
||||
*/
|
||||
class LandDevice extends BaseModel
|
||||
{
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class LandDevice extends BaseModel
|
||||
{
|
||||
protected $name = 'land_device';
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +1 @@
|
|||
import o from"./error.5818b11e.js";import{d as r,o as i,c as p,U as m,L as e,a as t}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const s="/admin/assets/no_perms.a56e95a5.png",a={class:"error404"},u=t("div",{class:"flex justify-center"},[t("img",{class:"w-[150px] h-[150px]",src:s,alt:""})],-1),T=r({__name:"403",setup(c){return(n,_)=>(i(),p("div",a,[m(o,{code:"403",title:"\u60A8\u7684\u8D26\u53F7\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0\u6743\u9650\uFF01","show-btn":!1},{content:e(()=>[u]),_:1})]))}});export{T as default};
|
||||
import o from"./error.b442c8b1.js";import{d as r,o as i,c as p,U as m,L as e,a as t}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const s="/admin/assets/no_perms.a56e95a5.png",a={class:"error404"},u=t("div",{class:"flex justify-center"},[t("img",{class:"w-[150px] h-[150px]",src:s,alt:""})],-1),T=r({__name:"403",setup(c){return(n,_)=>(i(),p("div",a,[m(o,{code:"403",title:"\u60A8\u7684\u8D26\u53F7\u6743\u9650\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6DFB\u52A0\u6743\u9650\uFF01","show-btn":!1},{content:e(()=>[u]),_:1})]))}});export{T as default};
|
|
@ -1 +1 @@
|
|||
import o from"./error.5818b11e.js";import{d as r,o as t,c as m,U as p}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const i={class:"error404"},P=r({__name:"404",setup(e){return(u,c)=>(t(),m("div",i,[p(o,{code:"404",title:"\u54CE\u5440\uFF0C\u51FA\u9519\u4E86\uFF01\u60A8\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u2026"})]))}});export{P as default};
|
||||
import o from"./error.b442c8b1.js";import{d as r,o as t,c as m,U as p}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const i={class:"error404"},P=r({__name:"404",setup(e){return(u,c)=>(t(),m("div",i,[p(o,{code:"404",title:"\u54CE\u5440\uFF0C\u51FA\u9519\u4E86\uFF01\u60A8\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728\u2026"})]))}});export{P as default};
|
|
@ -1 +1 @@
|
|||
import"./account-adjust.vue_vue_type_script_setup_true_lang.94236488.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.94236488.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
||||
import"./account-adjust.vue_vue_type_script_setup_true_lang.1e2ab54d.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.1e2ab54d.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.e641c07a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
|
@ -1 +1 @@
|
|||
import{C as k,N as x,O as B,B as R,D as N}from"./element-plus.c4a2af8a.js";import{P as g}from"./index.a5d54722.js";import{f as F}from"./index.a7ae38ad.js";import{d as q,s as C,$ as A,e as I,w as D,o as S,K as U,L as a,a as j,U as o,S as r,T as b,u as P}from"./@vue.e8706010.js";const T={class:"pr-8"},G=r("\u589E\u52A0\u4F59\u989D"),K=r("\u6263\u51CF\u4F59\u989D"),z=q({__name:"account-adjust",props:{show:{type:Boolean,required:!0},value:{type:[Number,String],required:!0}},emits:["update:show","confirm"],setup(d,{emit:p}){const i=d,n=C(),u=A({action:1,num:"",remark:""}),s=C(),c=I(()=>Number(i.value)+Number(u.num)*(u.action==1?1:-1)),E={num:[{required:!0,message:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D"}]},w=e=>{if(e.includes("-"))return F.msgError("\u8BF7\u8F93\u5165\u6B63\u6574\u6570");u.num=e},h=async()=>{var e;await((e=n.value)==null?void 0:e.validate()),p("confirm",u)},v=()=>{var e;p("update:show",!1),(e=n.value)==null||e.resetFields()};return D(()=>i.show,e=>{var l,t;e?(l=s.value)==null||l.open():(t=s.value)==null||t.close()}),D(c,e=>{e<0&&(F.msgError("\u8C03\u6574\u540E\u4F59\u989D\u9700\u5927\u4E8E0"),u.num="")}),(e,l)=>{const t=k,f=x,y=B,_=R,V=N;return S(),U(g,{ref_key:"popupRef",ref:s,title:"\u4F59\u989D\u8C03\u6574",width:"500px",onConfirm:h,async:!0,onClose:v},{default:a(()=>[j("div",T,[o(V,{ref_key:"formRef",ref:n,model:u,"label-width":"120px",rules:E},{default:a(()=>[o(t,{label:"\u5F53\u524D\u4F59\u989D"},{default:a(()=>[r("\xA5 "+b(d.value),1)]),_:1}),o(t,{label:"\u4F59\u989D\u589E\u51CF",required:"",prop:"action"},{default:a(()=>[o(y,{modelValue:u.action,"onUpdate:modelValue":l[0]||(l[0]=m=>u.action=m)},{default:a(()=>[o(f,{label:1},{default:a(()=>[G]),_:1}),o(f,{label:2},{default:a(()=>[K]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(t,{label:"\u8C03\u6574\u4F59\u989D",prop:"num"},{default:a(()=>[o(_,{"model-value":u.num,placeholder:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D",type:"number",onInput:w},null,8,["model-value"])]),_:1}),o(t,{label:"\u8C03\u6574\u540E\u4F59\u989D"},{default:a(()=>[r(" \xA5 "+b(P(c)),1)]),_:1}),o(t,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[o(_,{modelValue:u.remark,"onUpdate:modelValue":l[1]||(l[1]=m=>u.remark=m),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)}}});export{z as _};
|
||||
import{C as k,G as x,H as B,B as R,D as g}from"./element-plus.f958bb38.js";import{P as N}from"./index.e641c07a.js";import{f as F}from"./index.5b73f28d.js";import{d as q,s as C,$ as A,e as I,w as D,o as S,K as U,L as a,a as j,U as o,S as r,T as b,u as G}from"./@vue.e8706010.js";const P={class:"pr-8"},T=r("\u589E\u52A0\u4F59\u989D"),H=r("\u6263\u51CF\u4F59\u989D"),z=q({__name:"account-adjust",props:{show:{type:Boolean,required:!0},value:{type:[Number,String],required:!0}},emits:["update:show","confirm"],setup(d,{emit:p}){const i=d,n=C(),u=A({action:1,num:"",remark:""}),s=C(),c=I(()=>Number(i.value)+Number(u.num)*(u.action==1?1:-1)),E={num:[{required:!0,message:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D"}]},w=e=>{if(e.includes("-"))return F.msgError("\u8BF7\u8F93\u5165\u6B63\u6574\u6570");u.num=e},h=async()=>{var e;await((e=n.value)==null?void 0:e.validate()),p("confirm",u)},v=()=>{var e;p("update:show",!1),(e=n.value)==null||e.resetFields()};return D(()=>i.show,e=>{var l,t;e?(l=s.value)==null||l.open():(t=s.value)==null||t.close()}),D(c,e=>{e<0&&(F.msgError("\u8C03\u6574\u540E\u4F59\u989D\u9700\u5927\u4E8E0"),u.num="")}),(e,l)=>{const t=k,f=x,y=B,_=R,V=g;return S(),U(N,{ref_key:"popupRef",ref:s,title:"\u4F59\u989D\u8C03\u6574",width:"500px",onConfirm:h,async:!0,onClose:v},{default:a(()=>[j("div",P,[o(V,{ref_key:"formRef",ref:n,model:u,"label-width":"120px",rules:E},{default:a(()=>[o(t,{label:"\u5F53\u524D\u4F59\u989D"},{default:a(()=>[r("\xA5 "+b(d.value),1)]),_:1}),o(t,{label:"\u4F59\u989D\u589E\u51CF",required:"",prop:"action"},{default:a(()=>[o(y,{modelValue:u.action,"onUpdate:modelValue":l[0]||(l[0]=m=>u.action=m)},{default:a(()=>[o(f,{label:1},{default:a(()=>[T]),_:1}),o(f,{label:2},{default:a(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(t,{label:"\u8C03\u6574\u4F59\u989D",prop:"num"},{default:a(()=>[o(_,{"model-value":u.num,placeholder:"\u8BF7\u8F93\u5165\u8C03\u6574\u7684\u91D1\u989D",type:"number",onInput:w},null,8,["model-value"])]),_:1}),o(t,{label:"\u8C03\u6574\u540E\u4F59\u989D"},{default:a(()=>[r(" \xA5 "+b(G(c)),1)]),_:1}),o(t,{label:"\u5907\u6CE8",prop:"remark"},{default:a(()=>[o(_,{modelValue:u.remark,"onUpdate:modelValue":l[1]||(l[1]=m=>u.remark=m),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},512)}}});export{z as _};
|
|
@ -1 +1 @@
|
|||
import"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import{_ as Y}from"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
||||
import"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import{_ as Y}from"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -1 +1 @@
|
|||
import{B,w as D}from"./element-plus.c4a2af8a.js";import{_ as F}from"./index.6819103f.js";import{_ as A}from"./picker.ef328d49.js";import{_ as y}from"./picker.9d3b0e12.js";import{f as p,b as E}from"./index.a7ae38ad.js";import{D as U}from"./vuedraggable.2903c55e.js";import{d as C,e as w,o as c,c as N,a as e,U as t,L as m,K as $,u as r,k as z,S as L}from"./@vue.e8706010.js";const I={class:"bg-fill-light flex items-center w-full p-4 mb-4 cursor-move"},K={class:"upload-btn w-[60px] h-[60px]"},P={class:"ml-3 flex-1"},R={class:"flex"},S=e("span",{class:"text-tx-regular flex-none mr-3"},"\u540D\u79F0",-1),T={class:"flex mt-[18px]"},j=e("span",{class:"text-tx-regular flex-none mr-3"},"\u94FE\u63A5",-1),q=L("\u6DFB\u52A0"),X=C({__name:"add-nav",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:10},min:{type:Number,default:1}},emits:["update:modelValue"],setup(_,{emit:i}){const o=_,s=w({get(){return o.modelValue},set(a){i("update:modelValue",a)}}),f=()=>{var a;((a=o.modelValue)==null?void 0:a.length)<o.max?s.value.push({image:"",name:"\u5BFC\u822A\u540D\u79F0",link:{}}):p.msgError(`\u6700\u591A\u6DFB\u52A0${o.max}\u4E2A`)},V=a=>{var u;if(((u=o.modelValue)==null?void 0:u.length)<=o.min)return p.msgError(`\u6700\u5C11\u4FDD\u7559${o.min}\u4E2A`);s.value.splice(a,1)};return(a,u)=>{const x=E,g=y,h=B,v=A,k=F,b=D;return c(),N("div",null,[e("div",null,[t(r(U),{class:"draggable",modelValue:r(s),"onUpdate:modelValue":u[0]||(u[0]=l=>z(s)?s.value=l:null),animation:"300"},{item:m(({element:l,index:d})=>[(c(),$(k,{class:"max-w-[400px]",key:d,onClose:n=>V(d)},{default:m(()=>[e("div",I,[t(g,{modelValue:l.image,"onUpdate:modelValue":n=>l.image=n,"upload-class":"bg-body",size:"60px","exclude-domain":""},{upload:m(()=>[e("div",K,[t(x,{name:"el-icon-Plus",size:20})])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("div",P,[e("div",R,[S,t(h,{modelValue:l.name,"onUpdate:modelValue":n=>l.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),e("div",T,[j,t(v,{modelValue:l.link,"onUpdate:modelValue":n=>l.link=n},null,8,["modelValue","onUpdate:modelValue"])])])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])]),e("div",null,[t(b,{type:"primary",onClick:f},{default:m(()=>[q]),_:1})])])}}});export{X as _};
|
||||
import{B,w as D}from"./element-plus.f958bb38.js";import{_ as F}from"./index.ab63c955.js";import{_ as A}from"./picker.1bb7f93a.js";import{_ as y}from"./picker.898b0bc4.js";import{f as p,b as E}from"./index.5b73f28d.js";import{D as U}from"./vuedraggable.2903c55e.js";import{d as C,e as w,o as c,c as N,a as e,U as t,L as m,K as $,u as r,k as z,S as L}from"./@vue.e8706010.js";const I={class:"bg-fill-light flex items-center w-full p-4 mb-4 cursor-move"},K={class:"upload-btn w-[60px] h-[60px]"},P={class:"ml-3 flex-1"},R={class:"flex"},S=e("span",{class:"text-tx-regular flex-none mr-3"},"\u540D\u79F0",-1),T={class:"flex mt-[18px]"},j=e("span",{class:"text-tx-regular flex-none mr-3"},"\u94FE\u63A5",-1),q=L("\u6DFB\u52A0"),X=C({__name:"add-nav",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:10},min:{type:Number,default:1}},emits:["update:modelValue"],setup(_,{emit:i}){const o=_,s=w({get(){return o.modelValue},set(a){i("update:modelValue",a)}}),f=()=>{var a;((a=o.modelValue)==null?void 0:a.length)<o.max?s.value.push({image:"",name:"\u5BFC\u822A\u540D\u79F0",link:{}}):p.msgError(`\u6700\u591A\u6DFB\u52A0${o.max}\u4E2A`)},V=a=>{var u;if(((u=o.modelValue)==null?void 0:u.length)<=o.min)return p.msgError(`\u6700\u5C11\u4FDD\u7559${o.min}\u4E2A`);s.value.splice(a,1)};return(a,u)=>{const x=E,g=y,h=B,v=A,k=F,b=D;return c(),N("div",null,[e("div",null,[t(r(U),{class:"draggable",modelValue:r(s),"onUpdate:modelValue":u[0]||(u[0]=l=>z(s)?s.value=l:null),animation:"300"},{item:m(({element:l,index:d})=>[(c(),$(k,{class:"max-w-[400px]",key:d,onClose:n=>V(d)},{default:m(()=>[e("div",I,[t(g,{modelValue:l.image,"onUpdate:modelValue":n=>l.image=n,"upload-class":"bg-body",size:"60px","exclude-domain":""},{upload:m(()=>[e("div",K,[t(x,{name:"el-icon-Plus",size:20})])]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("div",P,[e("div",R,[S,t(h,{modelValue:l.name,"onUpdate:modelValue":n=>l.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),e("div",T,[j,t(v,{modelValue:l.link,"onUpdate:modelValue":n=>l.link=n},null,8,["modelValue","onUpdate:modelValue"])])])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])]),e("div",null,[t(b,{type:"primary",onClick:f},{default:m(()=>[q]),_:1})])])}}});export{X as _};
|
|
@ -1 +1 @@
|
|||
import{r as e}from"./index.a7ae38ad.js";function a(t){return e.get({url:"/article.articleCate/lists",params:t})}function l(t){return e.get({url:"/article.articleCate/all",params:t})}function i(t){return e.post({url:"/article.articleCate/add",params:t})}function c(t){return e.post({url:"/article.articleCate/edit",params:t})}function u(t){return e.post({url:"/article.articleCate/delete",params:t})}function n(t){return e.get({url:"/article.articleCate/detail",params:t})}function s(t){return e.post({url:"/article.articleCate/updateStatus",params:t})}function o(t){return e.get({url:"/article.article/lists",params:t})}function d(t){return e.post({url:"/article.article/add",params:t})}function f(t){return e.post({url:"/article.article/edit",params:t})}function C(t){return e.post({url:"/article.article/delete",params:t})}function p(t){return e.get({url:"/article.article/detail",params:t})}function g(t){return e.post({url:"/article.article/updateStatus",params:t})}export{c as a,i as b,n as c,a as d,u as e,s as f,p as g,l as h,f as i,d as j,o as k,g as l,C as m};
|
||||
import{r as e}from"./index.5b73f28d.js";function a(t){return e.get({url:"/article.articleCate/lists",params:t})}function l(t){return e.get({url:"/article.articleCate/all",params:t})}function i(t){return e.post({url:"/article.articleCate/add",params:t})}function c(t){return e.post({url:"/article.articleCate/edit",params:t})}function u(t){return e.post({url:"/article.articleCate/delete",params:t})}function n(t){return e.get({url:"/article.articleCate/detail",params:t})}function s(t){return e.post({url:"/article.articleCate/updateStatus",params:t})}function o(t){return e.get({url:"/article.article/lists",params:t})}function d(t){return e.post({url:"/article.article/add",params:t})}function f(t){return e.post({url:"/article.article/edit",params:t})}function C(t){return e.post({url:"/article.article/delete",params:t})}function p(t){return e.get({url:"/article.article/detail",params:t})}function g(t){return e.post({url:"/article.article/updateStatus",params:t})}export{c as a,i as b,n as c,a as d,u as e,s as f,p as g,l as h,f as i,d as j,o as k,g as l,C as m};
|
|
@ -0,0 +1 @@
|
|||
import"./attr-setting.vue_vue_type_script_setup_true_lang.fea66051.js";import{_ as bm}from"./attr-setting.vue_vue_type_script_setup_true_lang.fea66051.js";import"./index.6058f827.js";import"./attr.vue_vue_type_script_setup_true_lang.7effa325.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./content.vue_vue_type_script_setup_true_lang.865fd81a.js";import"./decoration-img.964a25c6.js";import"./attr.vue_vue_type_script_setup_true_lang.c65a6e91.js";import"./content.c7603ecf.js";import"./attr.vue_vue_type_script_setup_true_lang.d54afe36.js";import"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import"./content.7eded87b.js";import"./attr.vue_vue_type_script_setup_true_lang.77e3143d.js";import"./content.vue_vue_type_script_setup_true_lang.60459d3b.js";import"./attr.vue_vue_type_script_setup_true_lang.bc88ba14.js";import"./content.84e70027.js";import"./decoration.084dceba.js";import"./attr.vue_vue_type_script_setup_true_lang.775b5e18.js";import"./content.b9821153.js";import"./attr.vue_vue_type_script_setup_true_lang.f5ef7815.js";import"./content.vue_vue_type_script_setup_true_lang.b42db601.js";import"./attr.vue_vue_type_script_setup_true_lang.d0ae40ff.js";import"./content.0460e413.js";export{bm as default};
|
|
@ -1 +0,0 @@
|
|||
import"./attr-setting.vue_vue_type_script_setup_true_lang.2876bbc1.js";import{_ as bm}from"./attr-setting.vue_vue_type_script_setup_true_lang.2876bbc1.js";import"./index.8a707152.js";import"./attr.vue_vue_type_script_setup_true_lang.7af05f59.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./content.vue_vue_type_script_setup_true_lang.4967495d.js";import"./decoration-img.8b733ad5.js";import"./attr.vue_vue_type_script_setup_true_lang.7a132408.js";import"./content.c6c2213d.js";import"./attr.vue_vue_type_script_setup_true_lang.b5e0d598.js";import"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import"./content.52abd369.js";import"./attr.vue_vue_type_script_setup_true_lang.8e273af8.js";import"./content.vue_vue_type_script_setup_true_lang.4bd98663.js";import"./attr.vue_vue_type_script_setup_true_lang.bc88ba14.js";import"./content.7f5510da.js";import"./decoration.227a5f16.js";import"./attr.vue_vue_type_script_setup_true_lang.775b5e18.js";import"./content.44b3477e.js";import"./attr.vue_vue_type_script_setup_true_lang.9697bf68.js";import"./content.vue_vue_type_script_setup_true_lang.c9f17ce2.js";import"./attr.vue_vue_type_script_setup_true_lang.d0ae40ff.js";import"./content.e5be36d3.js";export{bm as default};
|
|
@ -1 +1 @@
|
|||
import{e as c}from"./index.8a707152.js";import{d as l,o as t,c as p,a as d,T as m,K as r,Q as f,u as g,aI as y}from"./@vue.e8706010.js";const b={class:"pages-setting"},u={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},v=l({__name:"attr-setting",props:{widget:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(e){return(w,x)=>{var s,a,n,o,i;return t(),p("div",b,[d("div",u,m((s=e.widget)==null?void 0:s.title),1),(t(),r(y,null,[(t(),r(f((n=g(c)[(a=e.widget)==null?void 0:a.name])==null?void 0:n.attr),{class:"pt-5 pr-4",content:(o=e.widget)==null?void 0:o.content,styles:(i=e.widget)==null?void 0:i.styles,type:e.type},null,8,["content","styles","type"]))],1024))])}}});export{v as _};
|
||||
import{e as c}from"./index.6058f827.js";import{d as l,o as t,c as p,a as d,T as m,K as r,Q as f,u as g,aI as y}from"./@vue.e8706010.js";const b={class:"pages-setting"},u={class:"title flex items-center before:w-[3px] before:h-[14px] before:block before:bg-primary before:mr-2"},v=l({__name:"attr-setting",props:{widget:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(e){return(w,x)=>{var s,a,n,o,i;return t(),p("div",b,[d("div",u,m((s=e.widget)==null?void 0:s.title),1),(t(),r(y,null,[(t(),r(f((n=g(c)[(a=e.widget)==null?void 0:a.name])==null?void 0:n.attr),{class:"pt-5 pr-4",content:(o=e.widget)==null?void 0:o.content,styles:(i=e.widget)==null?void 0:i.styles,type:e.type},null,8,["content","styles","type"]))],1024))])}}});export{v as _};
|
|
@ -1 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.b5e0d598.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.b5e0d598.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
||||
import"./attr.vue_vue_type_script_setup_true_lang.d54afe36.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.d54afe36.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
|
@ -1 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.8e273af8.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.8e273af8.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
||||
import"./attr.vue_vue_type_script_setup_true_lang.77e3143d.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.77e3143d.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Z as default};
|
|
@ -1 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.7af05f59.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.7af05f59.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
||||
import"./attr.vue_vue_type_script_setup_true_lang.7effa325.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.7effa325.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -1 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.7a132408.js";import{_ as X}from"./attr.vue_vue_type_script_setup_true_lang.7a132408.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.9d3b0e12.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6819103f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{X as default};
|
||||
import"./attr.vue_vue_type_script_setup_true_lang.c65a6e91.js";import{_ as X}from"./attr.vue_vue_type_script_setup_true_lang.c65a6e91.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.898b0bc4.js";import"./index.e641c07a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.ab63c955.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{X as default};
|
|
@ -1 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.9697bf68.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.9697bf68.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.6819103f.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.ef328d49.js";import"./index.a5d54722.js";import"./picker.9d3b0e12.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
||||
import"./attr.vue_vue_type_script_setup_true_lang.f5ef7815.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.f5ef7815.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.ab63c955.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./picker.1bb7f93a.js";import"./index.e641c07a.js";import"./picker.898b0bc4.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";export{Y as default};
|
|
@ -1 +1 @@
|
|||
import{N as c,O as r,C as i,D as f}from"./element-plus.c4a2af8a.js";import{_ as p}from"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import{d as F,o as E,c as b,U as e,L as t,a as d,S as s}from"./@vue.e8706010.js";const V=s("\u5F00\u542F"),x=s("\u505C\u7528"),B={class:"flex-1"},A=d("div",{class:"form-tips mb-4"},"\u6700\u591A\u53EF\u6DFB\u52A010\u4E2A\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A100px*100px",-1),y=F({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(C,a)=>{const u=c,m=r,n=i,_=f;return E(),b("div",null,[e(_,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(m,{modelValue:o.content.enabled,"onUpdate:modelValue":a[0]||(a[0]=l=>o.content.enabled=l)},{default:t(()=>[e(u,{label:1},{default:t(()=>[V]),_:1}),e(u,{label:0},{default:t(()=>[x]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[d("div",B,[A,e(p,{modelValue:o.content.data,"onUpdate:modelValue":a[1]||(a[1]=l=>o.content.data=l)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{y as _};
|
||||
import{G as c,H as r,C as i,D as f}from"./element-plus.f958bb38.js";import{_ as p}from"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import{d as F,o as E,c as b,U as e,L as t,a as d,S as s}from"./@vue.e8706010.js";const V=s("\u5F00\u542F"),x=s("\u505C\u7528"),B={class:"flex-1"},A=d("div",{class:"form-tips mb-4"},"\u6700\u591A\u53EF\u6DFB\u52A010\u4E2A\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A100px*100px",-1),D=F({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(C,a)=>{const u=c,m=r,n=i,_=f;return E(),b("div",null,[e(_,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(m,{modelValue:o.content.enabled,"onUpdate:modelValue":a[0]||(a[0]=l=>o.content.enabled=l)},{default:t(()=>[e(u,{label:1},{default:t(()=>[V]),_:1}),e(u,{label:0},{default:t(()=>[x]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[d("div",B,[A,e(p,{modelValue:o.content.data,"onUpdate:modelValue":a[1]||(a[1]=l=>o.content.data=l)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{D as _};
|
|
@ -1 +1 @@
|
|||
import{N as D,O as U,C as v,B as w,w as N,D as O}from"./element-plus.c4a2af8a.js";import{_ as R}from"./index.6819103f.js";import{_ as $}from"./picker.ef328d49.js";import{_ as j}from"./picker.9d3b0e12.js";import{f as b}from"./index.a7ae38ad.js";import{D as I}from"./vuedraggable.2903c55e.js";import{d as S,o as n,c as G,U as l,L as t,K as s,R as _,a as r,u as K,S as p}from"./@vue.e8706010.js";const L=p("\u5F00\u542F"),T=p("\u505C\u7528"),q={class:"flex-1"},z=r("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*340px",-1),H={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},J={class:"ml-3 flex-1"},M=p("\u6DFB\u52A0\u56FE\u7247"),te=S({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(o){const c=o,i=5,g=()=>{var d;((d=c.content.data)==null?void 0:d.length)<i?c.content.data.push({image:"",name:"",link:{}}):b.msgError(`\u6700\u591A\u6DFB\u52A0${i}\u5F20\u56FE\u7247`)},k=d=>{var u;if(((u=c.content.data)==null?void 0:u.length)<=1)return b.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");c.content.data.splice(d,1)};return(d,u)=>{const f=D,h=U,m=v,y=j,F=w,B=$,x=R,A=N,C=O;return n(),G("div",null,[l(C,{"label-width":"70px"},{default:t(()=>{var V;return[o.type=="mobile"?(n(),s(m,{key:0,label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[l(h,{modelValue:o.content.enabled,"onUpdate:modelValue":u[0]||(u[0]=e=>o.content.enabled=e)},{default:t(()=>[l(f,{label:1},{default:t(()=>[L]),_:1}),l(f,{label:0},{default:t(()=>[T]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),l(m,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[r("div",q,[z,l(K(I),{class:"draggable",modelValue:o.content.data,"onUpdate:modelValue":u[1]||(u[1]=e=>o.content.data=e),animation:"300"},{item:t(({element:e,index:E})=>[(n(),s(x,{key:E,onClose:a=>k(E),class:"max-w-[400px]"},{default:t(()=>[r("div",H,[l(y,{modelValue:e.image,"onUpdate:modelValue":a=>e.image=a,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),r("div",J,[l(m,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[l(F,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(m,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[o.type=="mobile"?(n(),s(B,{key:0,modelValue:e.link,"onUpdate:modelValue":a=>e.link=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),o.type=="pc"?(n(),s(F,{key:1,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",modelValue:e.link.path,"onUpdate:modelValue":a=>e.link.path=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0)]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((V=o.content.data)==null?void 0:V.length)<i?(n(),s(m,{key:1},{default:t(()=>[l(A,{type:"primary",onClick:g},{default:t(()=>[M]),_:1})]),_:1})):_("",!0)]}),_:1})])}}});export{te as _};
|
||||
import{G as D,H as U,C as v,B as w,w as N,D as R}from"./element-plus.f958bb38.js";import{_ as $}from"./index.ab63c955.js";import{_ as j}from"./picker.1bb7f93a.js";import{_ as G}from"./picker.898b0bc4.js";import{f as b}from"./index.5b73f28d.js";import{D as I}from"./vuedraggable.2903c55e.js";import{d as O,o as n,c as S,U as l,L as t,K as s,R as _,a as r,u as H,S as p}from"./@vue.e8706010.js";const K=p("\u5F00\u542F"),L=p("\u505C\u7528"),T={class:"flex-1"},q=r("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*340px",-1),z={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},J={class:"ml-3 flex-1"},M=p("\u6DFB\u52A0\u56FE\u7247"),te=O({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},type:{type:String,default:"mobile"}},setup(o){const c=o,i=5,g=()=>{var d;((d=c.content.data)==null?void 0:d.length)<i?c.content.data.push({image:"",name:"",link:{}}):b.msgError(`\u6700\u591A\u6DFB\u52A0${i}\u5F20\u56FE\u7247`)},k=d=>{var u;if(((u=c.content.data)==null?void 0:u.length)<=1)return b.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");c.content.data.splice(d,1)};return(d,u)=>{const f=D,h=U,m=v,y=G,F=w,B=j,x=$,A=N,C=R;return n(),S("div",null,[l(C,{"label-width":"70px"},{default:t(()=>{var V;return[o.type=="mobile"?(n(),s(m,{key:0,label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[l(h,{modelValue:o.content.enabled,"onUpdate:modelValue":u[0]||(u[0]=e=>o.content.enabled=e)},{default:t(()=>[l(f,{label:1},{default:t(()=>[K]),_:1}),l(f,{label:0},{default:t(()=>[L]),_:1})]),_:1},8,["modelValue"])]),_:1})):_("",!0),l(m,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[r("div",T,[q,l(H(I),{class:"draggable",modelValue:o.content.data,"onUpdate:modelValue":u[1]||(u[1]=e=>o.content.data=e),animation:"300"},{item:t(({element:e,index:E})=>[(n(),s(x,{key:E,onClose:a=>k(E),class:"max-w-[400px]"},{default:t(()=>[r("div",z,[l(y,{modelValue:e.image,"onUpdate:modelValue":a=>e.image=a,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),r("div",J,[l(m,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[l(F,{modelValue:e.name,"onUpdate:modelValue":a=>e.name=a,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(m,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[o.type=="mobile"?(n(),s(B,{key:0,modelValue:e.link,"onUpdate:modelValue":a=>e.link=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0),o.type=="pc"?(n(),s(F,{key:1,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",modelValue:e.link.path,"onUpdate:modelValue":a=>e.link.path=a},null,8,["modelValue","onUpdate:modelValue"])):_("",!0)]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((V=o.content.data)==null?void 0:V.length)<i?(n(),s(m,{key:1},{default:t(()=>[l(A,{type:"primary",onClick:g},{default:t(()=>[M]),_:1})]),_:1})):_("",!0)]}),_:1})])}}});export{te as _};
|
|
@ -1 +1 @@
|
|||
import{B as c,C as i,D as F}from"./element-plus.c4a2af8a.js";import{_ as p}from"./picker.9d3b0e12.js";import{d as r,o as f,c as V,U as e,L as o,a as m}from"./@vue.e8706010.js";const B=m("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A200*200\u50CF\u7D20\uFF1B\u56FE\u7247\u683C\u5F0F\uFF1Ajpg\u3001png\u3001jpeg",-1),A=r({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(E,l)=>{const a=c,n=i,d=p,s=F;return f(),V("div",null,[e(s,{"label-width":"90px"},{default:o(()=>[e(n,{label:"\u5BA2\u670D\u6807\u9898"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.title,"onUpdate:modelValue":l[0]||(l[0]=u=>t.content.title=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u670D\u52A1\u65F6\u95F4"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.time,"onUpdate:modelValue":l[1]||(l[1]=u=>t.content.time=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.mobile,"onUpdate:modelValue":l[2]||(l[2]=u=>t.content.mobile=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u670D\u4E8C\u7EF4\u7801"},{default:o(()=>[m("div",null,[e(d,{modelValue:t.content.qrcode,"onUpdate:modelValue":l[3]||(l[3]=u=>t.content.qrcode=u),"exclude-domain":""},null,8,["modelValue"]),B])]),_:1})]),_:1})])}}});export{A as _};
|
||||
import{B as c,C as i,D as F}from"./element-plus.f958bb38.js";import{_ as p}from"./picker.898b0bc4.js";import{d as r,o as f,c as V,U as e,L as o,a as m}from"./@vue.e8706010.js";const B=m("div",{class:"form-tips"},"\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A200*200\u50CF\u7D20\uFF1B\u56FE\u7247\u683C\u5F0F\uFF1Ajpg\u3001png\u3001jpeg",-1),A=r({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(E,l)=>{const a=c,n=i,d=p,s=F;return f(),V("div",null,[e(s,{"label-width":"90px"},{default:o(()=>[e(n,{label:"\u5BA2\u670D\u6807\u9898"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.title,"onUpdate:modelValue":l[0]||(l[0]=u=>t.content.title=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u670D\u52A1\u65F6\u95F4"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.time,"onUpdate:modelValue":l[1]||(l[1]=u=>t.content.time=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u8054\u7CFB\u7535\u8BDD"},{default:o(()=>[e(a,{class:"w-[400px]",modelValue:t.content.mobile,"onUpdate:modelValue":l[2]||(l[2]=u=>t.content.mobile=u)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u670D\u4E8C\u7EF4\u7801"},{default:o(()=>[m("div",null,[e(d,{modelValue:t.content.qrcode,"onUpdate:modelValue":l[3]||(l[3]=u=>t.content.qrcode=u),"exclude-domain":""},null,8,["modelValue"]),B])]),_:1})]),_:1})])}}});export{A as _};
|
|
@ -1 +1 @@
|
|||
import{N as _,O as i,C as r,B as f,D as p}from"./element-plus.c4a2af8a.js";import{_ as V}from"./add-nav.vue_vue_type_script_setup_true_lang.c2a9c958.js";import{d as b,o as E,c as x,U as e,L as t,a as B,S as d}from"./@vue.e8706010.js";const F=d("\u6A2A\u6392"),y=d("\u7AD6\u6392"),C={class:"flex-1"},A=b({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(l){return(D,o)=>{const u=_,s=i,n=r,m=f,c=p;return E(),x("div",null,[e(c,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u6392\u7248\u6837\u5F0F"},{default:t(()=>[e(s,{modelValue:l.content.style,"onUpdate:modelValue":o[0]||(o[0]=a=>l.content.style=a)},{default:t(()=>[e(u,{label:1},{default:t(()=>[F]),_:1}),e(u,{label:2},{default:t(()=>[y]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u6807\u9898\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[400px]",modelValue:l.content.title,"onUpdate:modelValue":o[1]||(o[1]=a=>l.content.title=a)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[B("div",C,[e(V,{modelValue:l.content.data,"onUpdate:modelValue":o[2]||(o[2]=a=>l.content.data=a)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{A as _};
|
||||
import{G as _,H as i,C as r,B as f,D as p}from"./element-plus.f958bb38.js";import{_ as V}from"./add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js";import{d as b,o as E,c as x,U as e,L as t,a as B,S as d}from"./@vue.e8706010.js";const F=d("\u6A2A\u6392"),y=d("\u7AD6\u6392"),C={class:"flex-1"},N=b({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(l){return(D,o)=>{const u=_,s=i,n=r,m=f,c=p;return E(),x("div",null,[e(c,{"label-width":"70px"},{default:t(()=>[e(n,{label:"\u6392\u7248\u6837\u5F0F"},{default:t(()=>[e(s,{modelValue:l.content.style,"onUpdate:modelValue":o[0]||(o[0]=a=>l.content.style=a)},{default:t(()=>[e(u,{label:1},{default:t(()=>[F]),_:1}),e(u,{label:2},{default:t(()=>[y]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u6807\u9898\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[400px]",modelValue:l.content.title,"onUpdate:modelValue":o[1]||(o[1]=a=>l.content.title=a)},null,8,["modelValue"])]),_:1}),e(n,{label:"\u83DC\u5355\u8BBE\u7F6E"},{default:t(()=>[B("div",C,[e(V,{modelValue:l.content.data,"onUpdate:modelValue":o[2]||(o[2]=a=>l.content.data=a)},null,8,["modelValue"])])]),_:1})]),_:1})])}}});export{N as _};
|
|
@ -1 +1 @@
|
|||
import{N as D,O as U,C as y,B as v,w,D as N}from"./element-plus.c4a2af8a.js";import{_ as O}from"./index.6819103f.js";import{_ as R}from"./picker.ef328d49.js";import{_ as $}from"./picker.9d3b0e12.js";import{f as F}from"./index.a7ae38ad.js";import{D as j}from"./vuedraggable.2903c55e.js";import{d as I,o as _,c as G,U as e,L as t,a as m,u as K,K as E,R as L,S as r}from"./@vue.e8706010.js";const S=r("\u5F00\u542F"),T=r("\u505C\u7528"),q={class:"flex-1"},z=m("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*200px",-1),H={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},J={class:"ml-3 flex-1"},M=r("\u6DFB\u52A0\u56FE\u7247"),te=I({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(a){const s=a,c=5,V=()=>{var u;((u=s.content.data)==null?void 0:u.length)<c?s.content.data.push({image:"",name:"",link:{}}):F.msgError(`\u6700\u591A\u6DFB\u52A0${c}\u5F20\u56FE\u7247`)},g=u=>{var l;if(((l=s.content.data)==null?void 0:l.length)<=1)return F.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");s.content.data.splice(u,1)};return(u,l)=>{const i=D,b=U,d=y,h=$,B=v,k=R,x=O,A=w,C=N;return _(),G("div",null,[e(C,{"label-width":"70px"},{default:t(()=>{var p;return[e(d,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(b,{modelValue:a.content.enabled,"onUpdate:modelValue":l[0]||(l[0]=o=>a.content.enabled=o)},{default:t(()=>[e(i,{label:1},{default:t(()=>[S]),_:1}),e(i,{label:0},{default:t(()=>[T]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[m("div",q,[z,e(K(j),{class:"draggable",modelValue:a.content.data,"onUpdate:modelValue":l[1]||(l[1]=o=>a.content.data=o),animation:"300"},{item:t(({element:o,index:f})=>[(_(),E(x,{key:f,onClose:n=>g(f),class:"max-w-[400px]"},{default:t(()=>[m("div",H,[e(h,{modelValue:o.image,"onUpdate:modelValue":n=>o.image=n,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),m("div",J,[e(d,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[e(B,{modelValue:o.name,"onUpdate:modelValue":n=>o.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(d,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[e(k,{modelValue:o.link,"onUpdate:modelValue":n=>o.link=n},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((p=a.content.data)==null?void 0:p.length)<c?(_(),E(d,{key:0},{default:t(()=>[e(A,{type:"primary",onClick:V},{default:t(()=>[M]),_:1})]),_:1})):L("",!0)]}),_:1})])}}});export{te as _};
|
||||
import{G as D,H as U,C as y,B as v,w,D as N}from"./element-plus.f958bb38.js";import{_ as R}from"./index.ab63c955.js";import{_ as $}from"./picker.1bb7f93a.js";import{_ as j}from"./picker.898b0bc4.js";import{f as F}from"./index.5b73f28d.js";import{D as G}from"./vuedraggable.2903c55e.js";import{d as I,o as _,c as O,U as e,L as t,a as m,u as H,K as E,R as K,S as r}from"./@vue.e8706010.js";const L=r("\u5F00\u542F"),S=r("\u505C\u7528"),T={class:"flex-1"},q=m("div",{class:"form-tips"},"\u6700\u591A\u6DFB\u52A05\u5F20\uFF0C\u5EFA\u8BAE\u56FE\u7247\u5C3A\u5BF8\uFF1A750px*200px",-1),z={class:"bg-fill-light flex items-center w-full p-4 mt-4 cursor-move"},J={class:"ml-3 flex-1"},M=r("\u6DFB\u52A0\u56FE\u7247"),te=I({__name:"attr",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(a){const s=a,c=5,V=()=>{var u;((u=s.content.data)==null?void 0:u.length)<c?s.content.data.push({image:"",name:"",link:{}}):F.msgError(`\u6700\u591A\u6DFB\u52A0${c}\u5F20\u56FE\u7247`)},g=u=>{var l;if(((l=s.content.data)==null?void 0:l.length)<=1)return F.msgError("\u6700\u5C11\u4FDD\u7559\u4E00\u5F20\u56FE\u7247");s.content.data.splice(u,1)};return(u,l)=>{const i=D,b=U,d=y,h=j,B=v,k=$,x=R,A=w,C=N;return _(),O("div",null,[e(C,{"label-width":"70px"},{default:t(()=>{var p;return[e(d,{label:"\u662F\u5426\u542F\u7528"},{default:t(()=>[e(b,{modelValue:a.content.enabled,"onUpdate:modelValue":l[0]||(l[0]=o=>a.content.enabled=o)},{default:t(()=>[e(i,{label:1},{default:t(()=>[L]),_:1}),e(i,{label:0},{default:t(()=>[S]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(d,{label:"\u56FE\u7247\u8BBE\u7F6E"},{default:t(()=>[m("div",T,[q,e(H(G),{class:"draggable",modelValue:a.content.data,"onUpdate:modelValue":l[1]||(l[1]=o=>a.content.data=o),animation:"300"},{item:t(({element:o,index:f})=>[(_(),E(x,{key:f,onClose:n=>g(f),class:"max-w-[400px]"},{default:t(()=>[m("div",z,[e(h,{modelValue:o.image,"onUpdate:modelValue":n=>o.image=n,"upload-class":"bg-body","exclude-domain":""},null,8,["modelValue","onUpdate:modelValue"]),m("div",J,[e(d,{label:"\u56FE\u7247\u540D\u79F0"},{default:t(()=>[e(B,{modelValue:o.name,"onUpdate:modelValue":n=>o.name=n,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e(d,{class:"mt-[18px]",label:"\u56FE\u7247\u94FE\u63A5"},{default:t(()=>[e(k,{modelValue:o.link,"onUpdate:modelValue":n=>o.link=n},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)])])]),_:2},1032,["onClose"]))]),_:1},8,["modelValue"])])]),_:1}),((p=a.content.data)==null?void 0:p.length)<c?(_(),E(d,{key:0},{default:t(()=>[e(A,{type:"primary",onClick:V},{default:t(()=>[M]),_:1})]),_:1})):K("",!0)]}),_:1})])}}});export{te as _};
|
|
@ -1 +1 @@
|
|||
import"./auth.vue_vue_type_script_setup_true_lang.e55ffaa1.js";import{_ as O}from"./auth.vue_vue_type_script_setup_true_lang.e55ffaa1.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./role.f37cd4a9.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.a5d54722.js";import"./menu.cd013879.js";export{O as default};
|
||||
import"./auth.vue_vue_type_script_setup_true_lang.4ddf59c9.js";import{_ as O}from"./auth.vue_vue_type_script_setup_true_lang.4ddf59c9.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./role.f940b74a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e641c07a.js";import"./menu.07b08b1d.js";export{O as default};
|
|
@ -1 +1 @@
|
|||
import{U as q,E as M,F as N,C as P,D as H,K as I}from"./element-plus.c4a2af8a.js";import{a as O}from"./role.f37cd4a9.js";import{P as $}from"./index.a5d54722.js";import{q as j}from"./index.a7ae38ad.js";import{m as z}from"./menu.cd013879.js";import{d as G,s as p,r as c,$ as J,o as v,c as Q,U as o,L as u,M as W,K as X,a as k,n as y}from"./@vue.e8706010.js";const Y={class:"edit-popup"},ne=G({__name:"auth",emits:["success","close"],setup(Z,{expose:C,emit:f}){const t=p(),_=p(),r=p(),x=c(!1),d=c(!0),i=c(!1),h=c([]),m=c([]),s=J({id:"",name:"",desc:"",sort:0,menu_id:[]}),b={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["blur"]}]},g=()=>{i.value=!0,z().then(e=>{m.value=e,h.value=j(e),y(()=>{D()}),i.value=!1})},E=()=>{var a,n;const e=(a=t.value)==null?void 0:a.getCheckedKeys(),l=(n=t.value)==null?void 0:n.getHalfCheckedKeys();return e==null||e.unshift.apply(e,l),e},D=()=>{s.menu_id.forEach(e=>{y(()=>{var l;(l=t.value)==null||l.setChecked(e,!0,!1)})})},w=e=>{const l=m.value;for(let a=0;a<l.length;a++)t.value.store.nodesMap[l[a].id].expanded=e},F=e=>{var l,a;e?(l=t.value)==null||l.setCheckedKeys(h.value.map(n=>n.id)):(a=t.value)==null||a.setCheckedKeys([])},K=async()=>{var e,l;await((e=_.value)==null?void 0:e.validate()),s.menu_id=E(),await O(s),(l=r.value)==null||l.close(),f("success")},A=()=>{f("close")},R=()=>{var e;(e=r.value)==null||e.open()},B=async e=>{for(const l in s)e[l]!=null&&e[l]!=null&&(s[l]=e[l])};return g(),C({open:R,setFormData:B}),(e,l)=>{const a=N,n=q,V=P,S=M,T=H,L=I;return v(),Q("div",Y,[o($,{ref_key:"popupRef",ref:r,title:"\u5206\u914D\u6743\u9650",async:!0,width:"550px",onConfirm:K,onClose:A},{default:u(()=>[W((v(),X(T,{class:"ls-form",ref_key:"formRef",ref:_,rules:b,model:s,"label-width":"60px"},{default:u(()=>[o(S,{class:"h-[400px] sm:h-[600px]"},{default:u(()=>[o(V,{label:"\u6743\u9650",prop:"menu_id"},{default:u(()=>[k("div",null,[o(a,{label:"\u5C55\u5F00/\u6298\u53E0",onChange:w}),o(a,{label:"\u5168\u9009/\u4E0D\u5168\u9009",onChange:F}),o(a,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=U=>d.value=U),label:"\u7236\u5B50\u8054\u52A8"},null,8,["modelValue"]),k("div",null,[o(n,{ref_key:"treeRef",ref:t,data:m.value,props:{label:"name",children:"children"},"check-strictly":!d.value,"node-key":"id","default-expand-all":x.value,"show-checkbox":""},null,8,["data","check-strictly","default-expand-all"])])])]),_:1})]),_:1})]),_:1},8,["model"])),[[L,i.value]])]),_:1},512)])}}});export{ne as _};
|
||||
import{T as q,E as M,F as P,C as U,D as H,N as I}from"./element-plus.f958bb38.js";import{a as O}from"./role.f940b74a.js";import{P as $}from"./index.e641c07a.js";import{q as j}from"./index.5b73f28d.js";import{m as z}from"./menu.07b08b1d.js";import{d as G,s as p,r as c,$ as J,o as v,c as Q,U as o,L as u,M as W,K as X,a as k,n as y}from"./@vue.e8706010.js";const Y={class:"edit-popup"},ne=G({__name:"auth",emits:["success","close"],setup(Z,{expose:C,emit:f}){const t=p(),_=p(),r=p(),x=c(!1),d=c(!0),i=c(!1),h=c([]),m=c([]),s=J({id:"",name:"",desc:"",sort:0,menu_id:[]}),b={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0",trigger:["blur"]}]},g=()=>{i.value=!0,z().then(e=>{m.value=e,h.value=j(e),y(()=>{D()}),i.value=!1})},E=()=>{var a,n;const e=(a=t.value)==null?void 0:a.getCheckedKeys(),l=(n=t.value)==null?void 0:n.getHalfCheckedKeys();return e==null||e.unshift.apply(e,l),e},D=()=>{s.menu_id.forEach(e=>{y(()=>{var l;(l=t.value)==null||l.setChecked(e,!0,!1)})})},w=e=>{const l=m.value;for(let a=0;a<l.length;a++)t.value.store.nodesMap[l[a].id].expanded=e},F=e=>{var l,a;e?(l=t.value)==null||l.setCheckedKeys(h.value.map(n=>n.id)):(a=t.value)==null||a.setCheckedKeys([])},A=async()=>{var e,l;await((e=_.value)==null?void 0:e.validate()),s.menu_id=E(),await O(s),(l=r.value)==null||l.close(),f("success")},K=()=>{f("close")},R=()=>{var e;(e=r.value)==null||e.open()},B=async e=>{for(const l in s)e[l]!=null&&e[l]!=null&&(s[l]=e[l])};return g(),C({open:R,setFormData:B}),(e,l)=>{const a=P,n=q,T=U,V=M,S=H,L=I;return v(),Q("div",Y,[o($,{ref_key:"popupRef",ref:r,title:"\u5206\u914D\u6743\u9650",async:!0,width:"550px",onConfirm:A,onClose:K},{default:u(()=>[W((v(),X(S,{class:"ls-form",ref_key:"formRef",ref:_,rules:b,model:s,"label-width":"60px"},{default:u(()=>[o(V,{class:"h-[400px] sm:h-[600px]"},{default:u(()=>[o(T,{label:"\u6743\u9650",prop:"menu_id"},{default:u(()=>[k("div",null,[o(a,{label:"\u5C55\u5F00/\u6298\u53E0",onChange:w}),o(a,{label:"\u5168\u9009/\u4E0D\u5168\u9009",onChange:F}),o(a,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=N=>d.value=N),label:"\u7236\u5B50\u8054\u52A8"},null,8,["modelValue"]),k("div",null,[o(n,{ref_key:"treeRef",ref:t,data:m.value,props:{label:"name",children:"children"},"check-strictly":!d.value,"node-key":"id","default-expand-all":x.value,"show-checkbox":""},null,8,["data","check-strictly","default-expand-all"])])])]),_:1})]),_:1})]),_:1},8,["model"])),[[L,i.value]])]),_:1},512)])}}});export{ne as _};
|
|
@ -0,0 +1 @@
|
|||
import{K as U,B as K,C as P,Q as N,R as I,w as R,D as S,I as $,L as z,M,N as O}from"./element-plus.f958bb38.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{_ as q}from"./index.5b73f28d.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.2a805e45.js";import{d as w,$ as G,o as r,c as b,U as e,L as o,a9 as H,u,V as J,a7 as W,M as X,K as h,a as m,S as p,T as B,P as Y,k as Z}from"./@vue.e8706010.js";import{g as ee,a as te}from"./finance.74b2f4f7.js";import{u as oe}from"./useDictOptions.07a56b90.js";import{u as ae}from"./usePaging.160b82b8.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const ne=p("\u67E5\u8BE2"),le=p("\u91CD\u7F6E"),ue={class:"flex items-center"},ie={class:"flex justify-end mt-4"},se=w({name:"articleLists"}),We=w({...se,setup(re){const a=G({user_info:"",change_type:"",start_time:"",end_time:""}),{pager:i,getLists:_,resetPage:c,resetParams:E}=ae({fetchFun:te,params:a}),{optionsData:C}=oe({change_type:{api:ee}});return _(),(me,n)=>{const D=U,v=K,s=P,d=N,y=I,V=Q,f=R,x=S,g=$,l=z,T=q,A=M,k=j,L=O;return r(),b("div",null,[e(g,{class:"!border-none",shadow:"never"},{default:o(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e(x,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:a,inline:!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:a.user_info,"onUpdate:modelValue":n[0]||(n[0]=t=>a.user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:H(u(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(s,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:a.change_type,"onUpdate:modelValue":n[1]||(n[1]=t=>a.change_type=t)},{default:o(()=>[e(d,{label:"\u5168\u90E8",value:""}),(r(!0),b(J,null,W(u(C).change_type,(t,F)=>(r(),h(d,{key:F,label:t,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:o(()=>[e(V,{startTime:a.start_time,"onUpdate:startTime":n[2]||(n[2]=t=>a.start_time=t),endTime:a.end_time,"onUpdate:endTime":n[3]||(n[3]=t=>a.end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(s,null,{default:o(()=>[e(f,{type:"primary",onClick:u(c)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(f,{onClick:u(E)},{default:o(()=>[le]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(g,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[X((r(),h(A,{size:"large",data:u(i).lists},{default:o(()=>[e(l,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"100"}),e(l,{label:"\u7528\u6237\u6635\u79F0","min-width":"160"},{default:o(({row:t})=>[m("div",ue,[e(T,{class:"flex-none mr-2",src:t.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),p(" "+B(t.nickname),1)])]),_:1}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:o(({row:t})=>[m("span",{class:Y({"text-error":t.action==2})},B(t.change_amount),3)]),_:1}),e(l,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"}),e(l,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(l,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"120"})]),_:1},8,["data"])),[[L,u(i).loading]]),m("div",ie,[e(k,{modelValue:u(i),"onUpdate:modelValue":n[4]||(n[4]=t=>Z(i)?i.value=t:null),onChange:u(_)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{We as default};
|
|
@ -1 +0,0 @@
|
|||
import{P as L,B as P,C as K,R as S,S as I,w as N,D as R,H as $,I as z,J as O,K as j}from"./element-plus.c4a2af8a.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{_ as H}from"./index.a7ae38ad.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.d8a052c5.js";import{d as w,$ as M,o as r,c as b,U as e,L as o,a9 as G,u,V as Q,a7 as W,M as X,K as h,a as m,S as p,T as B,P as Y,k as Z}from"./@vue.e8706010.js";import{g as ee,a as te}from"./finance.80990c45.js";import{a as oe}from"./useDictOptions.f965e37e.js";import{u as ae}from"./usePaging.160b82b8.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const ne=p("\u67E5\u8BE2"),le=p("\u91CD\u7F6E"),ue={class:"flex items-center"},ie={class:"flex justify-end mt-4"},se=w({name:"articleLists"}),We=w({...se,setup(re){const a=M({user_info:"",change_type:"",start_time:"",end_time:""}),{pager:i,getLists:_,resetPage:c,resetParams:E}=ae({fetchFun:te,params:a}),{optionsData:C}=oe({change_type:{api:ee}});return _(),(me,n)=>{const D=L,v=P,s=K,d=S,y=I,V=J,f=N,x=R,g=$,l=z,T=H,A=O,k=q,U=j;return r(),b("div",null,[e(g,{class:"!border-none",shadow:"never"},{default:o(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7528\u6237\u8D26\u6237\u53D8\u52A8\u8BB0\u5F55",closable:!1,"show-icon":""}),e(x,{ref:"formRef",class:"mb-[-16px] mt-[16px]",model:a,inline:!0},{default:o(()=>[e(s,{label:"\u7528\u6237\u4FE1\u606F"},{default:o(()=>[e(v,{class:"w-[280px]",modelValue:a.user_info,"onUpdate:modelValue":n[0]||(n[0]=t=>a.user_info=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7/\u6635\u79F0/\u624B\u673A\u53F7",clearable:"",onKeyup:G(u(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(s,{label:"\u53D8\u52A8\u7C7B\u578B"},{default:o(()=>[e(y,{class:"w-[280px]",modelValue:a.change_type,"onUpdate:modelValue":n[1]||(n[1]=t=>a.change_type=t)},{default:o(()=>[e(d,{label:"\u5168\u90E8",value:""}),(r(!0),b(Q,null,W(u(C).change_type,(t,F)=>(r(),h(d,{key:F,label:t,value:F},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(s,{label:"\u8BB0\u5F55\u65F6\u95F4"},{default:o(()=>[e(V,{startTime:a.start_time,"onUpdate:startTime":n[2]||(n[2]=t=>a.start_time=t),endTime:a.end_time,"onUpdate:endTime":n[3]||(n[3]=t=>a.end_time=t)},null,8,["startTime","endTime"])]),_:1}),e(s,null,{default:o(()=>[e(f,{type:"primary",onClick:u(c)},{default:o(()=>[ne]),_:1},8,["onClick"]),e(f,{onClick:u(E)},{default:o(()=>[le]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),e(g,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[X((r(),h(A,{size:"large",data:u(i).lists},{default:o(()=>[e(l,{label:"\u7528\u6237\u7F16\u53F7",prop:"sn","min-width":"100"}),e(l,{label:"\u7528\u6237\u6635\u79F0","min-width":"160"},{default:o(({row:t})=>[m("div",ue,[e(T,{class:"flex-none mr-2",src:t.avatar,width:40,height:40,"preview-teleported":"",fit:"contain"},null,8,["src"]),p(" "+B(t.nickname),1)])]),_:1}),e(l,{label:"\u624B\u673A\u53F7\u7801",prop:"mobile","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u91D1\u989D",prop:"change_amount","min-width":"100"},{default:o(({row:t})=>[m("span",{class:Y({"text-error":t.action==2})},B(t.change_amount),3)]),_:1}),e(l,{label:"\u5269\u4F59\u91D1\u989D",prop:"left_amount","min-width":"100"}),e(l,{label:"\u53D8\u52A8\u7C7B\u578B",prop:"change_type_desc","min-width":"120"}),e(l,{label:"\u6765\u6E90\u5355\u53F7",prop:"source_sn","min-width":"100"}),e(l,{label:"\u8BB0\u5F55\u65F6\u95F4",prop:"create_time","min-width":"120"})]),_:1},8,["data"])),[[U,u(i).loading]]),m("div",ie,[e(k,{modelValue:u(i),"onUpdate:modelValue":n[4]||(n[4]=t=>Z(i)?i.value=t:null),onChange:u(_)},null,8,["modelValue","onChange"])])]),_:1})])}}});export{We as default};
|
|
@ -1 +1 @@
|
|||
import{P as s,H as c,I as l,w as _,J as d}from"./element-plus.c4a2af8a.js";import{s as F}from"./system.e20c54a9.js";import{f as B}from"./index.a7ae38ad.js";import{d as r,r as E,o as C,c as f,U as t,L as o,S as h}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const b={class:"cache"},D=h("\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58"),w=r({name:"cache"}),nt=r({...w,setup(A){const a=E([{content:"\u7CFB\u7EDF\u7F13\u5B58",desc:"\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u5404\u7C7B\u7F13\u5B58\u6570\u636E"}]),i=async()=>{await B.confirm("\u786E\u8BA4\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58\uFF1F"),await F()};return(k,x)=>{const m=s,u=c,e=l,n=_,p=d;return C(),f("div",b,[t(u,{class:"!border-none",shadow:"never"},{default:o(()=>[t(m,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7BA1\u7406\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u7F13\u5B58",closable:!1,"show-icon":""})]),_:1}),t(u,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[t(p,{data:a.value,size:"large"},{default:o(()=>[t(e,{label:"\u7BA1\u7406\u5185\u5BB9",prop:"content","min-width":"130"}),t(e,{label:"\u5185\u5BB9\u8BF4\u660E",prop:"desc","min-width":"180"}),t(e,{label:"\u64CD\u4F5C",width:"130",fixed:"right"},{default:o(()=>[t(n,{type:"primary",link:"",onClick:i},{default:o(()=>[D]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})])}}});export{nt as default};
|
||||
import{K as s,I as c,L as l,w as _,M as d}from"./element-plus.f958bb38.js";import{s as F}from"./system.72b022a7.js";import{f as B}from"./index.5b73f28d.js";import{d as r,r as E,o as C,c as f,U as t,L as o,S as h}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const b={class:"cache"},D=h("\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58"),w=r({name:"cache"}),nt=r({...w,setup(A){const a=E([{content:"\u7CFB\u7EDF\u7F13\u5B58",desc:"\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u5404\u7C7B\u7F13\u5B58\u6570\u636E"}]),i=async()=>{await B.confirm("\u786E\u8BA4\u6E05\u9664\u7CFB\u7EDF\u7F13\u5B58\uFF1F"),await F()};return(k,x)=>{const m=s,u=c,e=l,n=_,p=d;return C(),f("div",b,[t(u,{class:"!border-none",shadow:"never"},{default:o(()=>[t(m,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A\u7BA1\u7406\u7CFB\u7EDF\u8FD0\u884C\u8FC7\u7A0B\u4E2D\u4EA7\u751F\u7684\u7F13\u5B58",closable:!1,"show-icon":""})]),_:1}),t(u,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[t(p,{data:a.value,size:"large"},{default:o(()=>[t(e,{label:"\u7BA1\u7406\u5185\u5BB9",prop:"content","min-width":"130"}),t(e,{label:"\u5185\u5BB9\u8BF4\u660E",prop:"desc","min-width":"180"}),t(e,{label:"\u64CD\u4F5C",width:"130",fixed:"right"},{default:o(()=>[t(n,{type:"primary",link:"",onClick:i},{default:o(()=>[D]),_:1})]),_:1})]),_:1},8,["data"])]),_:1})])}}});export{nt as default};
|
|
@ -1 +1 @@
|
|||
import"./code-preview.vue_vue_type_script_setup_true_lang.661ebd46.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.661ebd46.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{L as default};
|
||||
import"./code-preview.vue_vue_type_script_setup_true_lang.abeeb0cb.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.abeeb0cb.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{L as default};
|
|
@ -1 +1 @@
|
|||
import{E as k,y as x,G as w,w as B,x as D}from"./element-plus.c4a2af8a.js";import{f as r,b as T}from"./index.a7ae38ad.js";import{u as N}from"./vue-clipboard3.be0dfeee.js";import{d as S,r as U,e as $,a4 as j,o as s,c as m,U as o,L as t,V as F,a7 as L,u as G,k as K,K as P,a as i,S as R}from"./@vue.e8706010.js";const q={class:"code-preview"},z={class:"flex",style:{height:"50vh"}},A=R(" \u590D\u5236 "),Q=S({__name:"code-preview",props:{modelValue:{type:Boolean},code:null},emits:["update:modelValue"],setup(c,{emit:p}){const _=c,{toClipboard:f}=N(),u=U("index0"),b=async l=>{try{await f(l),r.msgSuccess("\u590D\u5236\u6210\u529F")}catch{r.msgError("\u590D\u5236\u5931\u8D25")}},n=$({get(){return _.modelValue},set(l){p("update:modelValue",l)}});return(l,a)=>{const h=j("highlightjs"),V=k,v=T,g=B,y=D,C=x,E=w;return s(),m("div",q,[o(E,{modelValue:G(n),"onUpdate:modelValue":a[1]||(a[1]=e=>K(n)?n.value=e:null),width:"900px",title:"\u4EE3\u7801\u9884\u89C8"},{default:t(()=>[o(C,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=e=>u.value=e)},{default:t(()=>[(s(!0),m(F,null,L(c.code,(e,d)=>(s(),P(y,{label:e.name,name:`index${d}`,key:d},{default:t(()=>[i("div",z,[o(V,{class:"flex-1"},{default:t(()=>[o(h,{autodetect:"",code:e.content},null,8,["code"])]),_:2},1024),i("div",null,[o(g,{onClick:H=>b(e.content),type:"primary",link:""},{icon:t(()=>[o(v,{name:"el-icon-CopyDocument"})]),default:t(()=>[A]),_:2},1032,["onClick"])])])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{Q as _};
|
||||
import{E as k,y as x,J as w,w as B,x as D}from"./element-plus.f958bb38.js";import{f as r,b as T}from"./index.5b73f28d.js";import{u as N}from"./vue-clipboard3.be0dfeee.js";import{d as S,r as U,e as $,a4 as j,o as s,c as m,U as o,L as t,V as F,a7 as L,u as J,k as K,K as P,a as i,S as R}from"./@vue.e8706010.js";const q={class:"code-preview"},z={class:"flex",style:{height:"50vh"}},A=R(" \u590D\u5236 "),Q=S({__name:"code-preview",props:{modelValue:{type:Boolean},code:null},emits:["update:modelValue"],setup(c,{emit:p}){const _=c,{toClipboard:f}=N(),u=U("index0"),b=async l=>{try{await f(l),r.msgSuccess("\u590D\u5236\u6210\u529F")}catch{r.msgError("\u590D\u5236\u5931\u8D25")}},n=$({get(){return _.modelValue},set(l){p("update:modelValue",l)}});return(l,a)=>{const h=j("highlightjs"),V=k,v=T,g=B,y=D,C=x,E=w;return s(),m("div",q,[o(E,{modelValue:J(n),"onUpdate:modelValue":a[1]||(a[1]=e=>K(n)?n.value=e:null),width:"900px",title:"\u4EE3\u7801\u9884\u89C8"},{default:t(()=>[o(C,{modelValue:u.value,"onUpdate:modelValue":a[0]||(a[0]=e=>u.value=e)},{default:t(()=>[(s(!0),m(F,null,L(c.code,(e,d)=>(s(),P(y,{label:e.name,name:`index${d}`,key:d},{default:t(()=>[i("div",z,[o(V,{class:"flex-1"},{default:t(()=>[o(h,{autodetect:"",code:e.content},null,8,["code"])]),_:2},1024),i("div",null,[o(g,{onClick:G=>b(e.content),type:"primary",link:""},{icon:t(()=>[o(v,{name:"el-icon-CopyDocument"})]),default:t(()=>[A]),_:2},1032,["onClick"])])])]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}});export{Q as _};
|
|
@ -1 +1 @@
|
|||
import{r as t}from"./index.a7ae38ad.js";function o(e){return t.get({url:"/tools.generator/generateTable",params:e})}function n(e){return t.get({url:"/tools.generator/dataTable",params:e})}function a(e){return t.post({url:"/tools.generator/selectTable",params:e})}function l(e){return t.get({url:"/tools.generator/detail",params:e})}function s(e){return t.post({url:"/tools.generator/syncColumn",params:e})}function u(e){return t.post({url:"/tools.generator/delete",params:e})}function g(e){return t.post({url:"/tools.generator/edit",params:e})}function i(e){return t.post({url:"/tools.generator/preview",params:e})}function c(e){return t.post({url:"/tools.generator/generate",params:e})}function f(){return t.get({url:"/tools.generator/getModels"})}export{f as a,o as b,u as c,i as d,c as e,n as f,g,a as h,s,l as t};
|
||||
import{r as t}from"./index.5b73f28d.js";function o(e){return t.get({url:"/tools.generator/generateTable",params:e})}function n(e){return t.get({url:"/tools.generator/dataTable",params:e})}function a(e){return t.post({url:"/tools.generator/selectTable",params:e})}function l(e){return t.get({url:"/tools.generator/detail",params:e})}function s(e){return t.post({url:"/tools.generator/syncColumn",params:e})}function u(e){return t.post({url:"/tools.generator/delete",params:e})}function g(e){return t.post({url:"/tools.generator/edit",params:e})}function i(e){return t.post({url:"/tools.generator/preview",params:e})}function c(e){return t.post({url:"/tools.generator/generate",params:e})}function f(){return t.get({url:"/tools.generator/getModels"})}export{f as a,o as b,u as c,i as d,c as e,n as f,g,a as h,s,l as t};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{r}from"./index.a7ae38ad.js";function u(e){return r.get({url:"/user.user/lists",params:e},{ignoreCancelToken:!0})}function s(e){return r.get({url:"/user.user/detail",params:e})}function n(e){return r.post({url:"/user.user/edit",params:e})}function o(e){return r.post({url:"/user.user/adjustMoney",params:e})}export{o as a,u as b,s as g,n as u};
|
||||
import{r}from"./index.5b73f28d.js";function u(e){return r.get({url:"/user.user/lists",params:e},{ignoreCancelToken:!0})}function s(e){return r.get({url:"/user.user/detail",params:e})}function n(e){return r.post({url:"/user.user/edit",params:e})}function o(e){return r.post({url:"/user.user/adjustMoney",params:e})}export{o as a,u as b,s as g,n as u};
|
|
@ -1 +1 @@
|
|||
import{d as r}from"./index.a7ae38ad.js";import{o as i,c as e,b7 as m,b6 as s,a as o}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const c="/admin/assets/default_avatar.fa19527b.png";const _={},p=t=>(m("data-v-4b1b613f"),t=t(),s(),t),a={class:"user-info flex items-center px-[25px]"},n=p(()=>o("img",{src:c,class:"w-[60px] h-[60px]",alt:""},null,-1)),d=p(()=>o("div",{class:"text-white text-[18px] ml-[10px]"},"\u672A\u767B\u5F55",-1)),l=[n,d];function f(t,x){return i(),e("div",a,l)}const X=r(_,[["render",f],["__scopeId","data-v-4b1b613f"]]);export{X as default};
|
||||
import{d as r}from"./index.5b73f28d.js";import{o as i,c as e,b7 as m,b6 as s,a as o}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const c="/admin/assets/default_avatar.fa19527b.png";const _={},p=t=>(m("data-v-4b1b613f"),t=t(),s(),t),a={class:"user-info flex items-center px-[25px]"},n=p(()=>o("img",{src:c,class:"w-[60px] h-[60px]",alt:""},null,-1)),d=p(()=>o("div",{class:"text-white text-[18px] ml-[10px]"},"\u672A\u767B\u5F55",-1)),l=[n,d];function f(t,x){return i(),e("div",a,l)}const X=r(_,[["render",f],["__scopeId","data-v-4b1b613f"]]);export{X as default};
|
|
@ -1 +1 @@
|
|||
import"./content.vue_vue_type_script_setup_true_lang.4967495d.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.4967495d.js";import"./decoration-img.8b733ad5.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
||||
import"./content.vue_vue_type_script_setup_true_lang.b42db601.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.b42db601.js";import"./decoration-img.964a25c6.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
|
@ -1 +1 @@
|
|||
import{b as x,d as _}from"./index.a7ae38ad.js";import c from"./decoration-img.8b733ad5.js";import{d as u,o as t,c as e,a as r,T as s,R as p,V as a,a7 as l,U as m}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const f={class:"my-service"},h={key:0,class:"title px-[15px] py-[10px]"},y={key:1,class:"flex flex-wrap pt-[20px] pb-[10px]"},v={class:"mt-[7px]"},b={key:2},g={class:"ml-[10px] flex-1"},k=u({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(w,V)=>{const d=x;return t(),e("div",f,[o.content.title?(t(),e("div",h,[r("div",null,s(o.content.title),1)])):p("",!0),o.content.style==1?(t(),e("div",y,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex flex-col items-center w-1/4 mb-[15px]"},[m(c,{width:"26px",height:"26px",src:i.image,alt:""},null,8,["src"]),r("div",v,s(i.name),1)]))),128))])):p("",!0),o.content.style==2?(t(),e("div",b,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex items-center border-b border-[#e5e5e5] h-[50px] px-[12px]"},[m(c,{width:"24px",height:"24px",src:i.image,alt:""},null,8,["src"]),r("div",g,s(i.name),1),r("div",null,[m(d,{name:"el-icon-ArrowRight"})])]))),128))])):p("",!0)])}}});const st=_(k,[["__scopeId","data-v-26886ebe"]]);export{st as default};
|
||||
import{b as x,d as _}from"./index.5b73f28d.js";import c from"./decoration-img.964a25c6.js";import{d as u,o as t,c as e,a as r,T as s,R as p,V as a,a7 as l,U as m}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const f={class:"my-service"},h={key:0,class:"title px-[15px] py-[10px]"},y={key:1,class:"flex flex-wrap pt-[20px] pb-[10px]"},v={class:"mt-[7px]"},b={key:2},g={class:"ml-[10px] flex-1"},k=u({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){return(w,V)=>{const d=x;return t(),e("div",f,[o.content.title?(t(),e("div",h,[r("div",null,s(o.content.title),1)])):p("",!0),o.content.style==1?(t(),e("div",y,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex flex-col items-center w-1/4 mb-[15px]"},[m(c,{width:"26px",height:"26px",src:i.image,alt:""},null,8,["src"]),r("div",v,s(i.name),1)]))),128))])):p("",!0),o.content.style==2?(t(),e("div",b,[(t(!0),e(a,null,l(o.content.data,(i,n)=>(t(),e("div",{key:n,class:"flex items-center border-b border-[#e5e5e5] h-[50px] px-[12px]"},[m(c,{width:"24px",height:"24px",src:i.image,alt:""},null,8,["src"]),r("div",g,s(i.name),1),r("div",null,[m(d,{name:"el-icon-ArrowRight"})])]))),128))])):p("",!0)])}}});const st=_(k,[["__scopeId","data-v-26886ebe"]]);export{st as default};
|
|
@ -1 +1 @@
|
|||
import"./content.vue_vue_type_script_setup_true_lang.4bd98663.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.4bd98663.js";import"./decoration-img.8b733ad5.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
||||
import"./content.vue_vue_type_script_setup_true_lang.60459d3b.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.60459d3b.js";import"./decoration-img.964a25c6.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
|
@ -1 +1 @@
|
|||
import{b as n,d as m}from"./index.a7ae38ad.js";import{g as d}from"./decoration.227a5f16.js";import{d as l,r as _,o as s,c as i,V as x,a7 as f,a as t,R as u,T as c,U as v,b7 as b,b6 as h}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const y=o=>(b("data-v-18ea8db2"),o=o(),h(),o),w={class:"news"},g=y(()=>t("div",{class:"flex items-center news-title mx-[10px] my-[15px] text-[17px] font-medium"}," \u6700\u65B0\u8D44\u8BAF ",-1)),j={key:0,class:"mr-[10px]"},k=["src"],B={class:"flex flex-col justify-between flex-1"},D={class:"text-[15px] font-medium line-clamp-2"},V={class:"line-clamp-1 text-sm mt-[8px]"},I={class:"text-[#999] text-xs w-full flex justify-between mt-[8px]"},S={class:"flex items-center"},N={class:"ml-[5px]"},A=l({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){const p=_([]);return(async()=>{const r=await d({limit:10});p.value=r})(),(r,F)=>{const a=n;return s(),i("div",w,[g,(s(!0),i(x,null,f(p.value,e=>(s(),i("div",{key:e.id,class:"news-card flex bg-white px-[10px] py-[16px] text-[#333] border-[#f2f2f2] border-b"},[e.image?(s(),i("div",j,[t("img",{src:e.image,class:"w-[120px] h-[90px] object-contain"},null,8,k)])):u("",!0),t("div",B,[t("div",D,c(e.title),1),t("div",V,c(e.desc),1),t("div",I,[t("div",null,c(e.create_time),1),t("div",S,[v(a,{name:"el-icon-View"}),t("div",N,c(e.click),1)])])])]))),128))])}}});const ft=m(A,[["__scopeId","data-v-18ea8db2"]]);export{ft as default};
|
||||
import{b as n,d as m}from"./index.5b73f28d.js";import{g as d}from"./decoration.084dceba.js";import{d as l,r as _,o as s,c as i,V as x,a7 as f,a as t,R as u,T as c,U as v,b7 as b,b6 as h}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const y=o=>(b("data-v-18ea8db2"),o=o(),h(),o),w={class:"news"},g=y(()=>t("div",{class:"flex items-center news-title mx-[10px] my-[15px] text-[17px] font-medium"}," \u6700\u65B0\u8D44\u8BAF ",-1)),j={key:0,class:"mr-[10px]"},k=["src"],B={class:"flex flex-col justify-between flex-1"},D={class:"text-[15px] font-medium line-clamp-2"},V={class:"line-clamp-1 text-sm mt-[8px]"},I={class:"text-[#999] text-xs w-full flex justify-between mt-[8px]"},S={class:"flex items-center"},N={class:"ml-[5px]"},A=l({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(o){const p=_([]);return(async()=>{const r=await d({limit:10});p.value=r})(),(r,F)=>{const a=n;return s(),i("div",w,[g,(s(!0),i(x,null,f(p.value,e=>(s(),i("div",{key:e.id,class:"news-card flex bg-white px-[10px] py-[16px] text-[#333] border-[#f2f2f2] border-b"},[e.image?(s(),i("div",j,[t("img",{src:e.image,class:"w-[120px] h-[90px] object-contain"},null,8,k)])):u("",!0),t("div",B,[t("div",D,c(e.title),1),t("div",V,c(e.desc),1),t("div",I,[t("div",null,c(e.create_time),1),t("div",S,[v(a,{name:"el-icon-View"}),t("div",N,c(e.click),1)])])])]))),128))])}}});const ft=m(A,[["__scopeId","data-v-18ea8db2"]]);export{ft as default};
|
|
@ -1 +1 @@
|
|||
import{d as r,b as i}from"./index.a7ae38ad.js";import{o as e,c as m,a as t,U as c,b7 as s,b6 as a}from"./@vue.e8706010.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const _={},n=o=>(s("data-v-3514bdd8"),o=o(),a(),o),d={class:"search"},l={class:"search-con flex items-center px-[15px]"},f=n(()=>t("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1));function h(o,x){const p=i;return e(),m("div",d,[t("div",l,[c(p,{name:"el-icon-Search",size:17}),f])])}const X=r(_,[["render",h],["__scopeId","data-v-3514bdd8"]]);export{X as default};
|
||||
import{d as r,b as i}from"./index.5b73f28d.js";import{o as e,c as m,a as t,U as c,b7 as s,b6 as a}from"./@vue.e8706010.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const _={},n=o=>(s("data-v-3514bdd8"),o=o(),a(),o),d={class:"search"},l={class:"search-con flex items-center px-[15px]"},f=n(()=>t("span",{class:"ml-[5px]"},"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",-1));function h(o,x){const p=i;return e(),m("div",d,[t("div",l,[c(p,{name:"el-icon-Search",size:17}),f])])}const X=r(_,[["render",h],["__scopeId","data-v-3514bdd8"]]);export{X as default};
|
|
@ -1 +1 @@
|
|||
import i from"./decoration-img.8b733ad5.js";import{d as p,o as r,c as m,U as c,a as o,T as e,b7 as s,b6 as n}from"./@vue.e8706010.js";import{d as a}from"./index.a7ae38ad.js";import"./element-plus.c4a2af8a.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const d=t=>(s("data-v-2cdedb7a"),t=t(),n(),t),u={class:"customer-service"},_={class:"text-[15px] mt-[7px] font-medium"},l={class:"text-[#666] mt-[20px]"},x={class:"text-[#666] mt-[7px]"},f=d(()=>o("div",{class:"text-white text-[16px] rounded-[42px] bg-[#4173FF] w-full h-[42px] flex justify-center items-center mt-[50px]"}," \u4FDD\u5B58\u4E8C\u7EF4\u7801\u56FE\u7247 ",-1)),h=p({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(F,v)=>(r(),m("div",u,[c(i,{width:"140px",height:"140px",src:t.content.qrcode,alt:""},null,8,["src"]),o("div",_,e(t.content.title),1),o("div",l,"\u670D\u52A1\u65F6\u95F4\uFF1A"+e(t.content.time),1),o("div",x,"\u5BA2\u670D\u7535\u8BDD\uFF1A"+e(t.content.mobile),1),f]))}});const ot=a(h,[["__scopeId","data-v-2cdedb7a"]]);export{ot as default};
|
||||
import i from"./decoration-img.964a25c6.js";import{d as p,o as r,c as m,U as c,a as o,T as e,b7 as s,b6 as n}from"./@vue.e8706010.js";import{d as a}from"./index.5b73f28d.js";import"./element-plus.f958bb38.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const d=t=>(s("data-v-2cdedb7a"),t=t(),n(),t),u={class:"customer-service"},_={class:"text-[15px] mt-[7px] font-medium"},l={class:"text-[#666] mt-[20px]"},x={class:"text-[#666] mt-[7px]"},f=d(()=>o("div",{class:"text-white text-[16px] rounded-[42px] bg-[#4173FF] w-full h-[42px] flex justify-center items-center mt-[50px]"}," \u4FDD\u5B58\u4E8C\u7EF4\u7801\u56FE\u7247 ",-1)),h=p({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){return(F,v)=>(r(),m("div",u,[c(i,{width:"140px",height:"140px",src:t.content.qrcode,alt:""},null,8,["src"]),o("div",_,e(t.content.title),1),o("div",l,"\u670D\u52A1\u65F6\u95F4\uFF1A"+e(t.content.time),1),o("div",x,"\u5BA2\u670D\u7535\u8BDD\uFF1A"+e(t.content.mobile),1),f]))}});const ot=a(h,[["__scopeId","data-v-2cdedb7a"]]);export{ot as default};
|
|
@ -1 +1 @@
|
|||
import"./content.vue_vue_type_script_setup_true_lang.c9f17ce2.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.c9f17ce2.js";import"./decoration-img.8b733ad5.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
||||
import"./content.vue_vue_type_script_setup_true_lang.865fd81a.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.865fd81a.js";import"./decoration-img.964a25c6.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
|
@ -1 +1 @@
|
|||
import o from"./decoration-img.8b733ad5.js";import{d as r,o as e,c as t,a,V as l,a7 as p,U as i,T as d}from"./@vue.e8706010.js";const m={class:"nav bg-white pt-[15px] pb-[8px]"},_={class:"flex flex-wrap"},x={class:"mt-[7px]"},b=r({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(n){return(f,u)=>(e(),t("div",m,[a("div",_,[(e(!0),t(l,null,p(n.content.data,(s,c)=>(e(),t("div",{key:c,class:"flex flex-col items-center w-1/5 mb-[15px]"},[i(o,{width:"41px",height:"41px",src:s.image,alt:""},null,8,["src"]),a("div",x,d(s.name),1)]))),128))])]))}});export{b as _};
|
||||
import o from"./decoration-img.964a25c6.js";import{d as r,o as e,c as t,a,V as l,a7 as p,U as i,T as d}from"./@vue.e8706010.js";const m={class:"nav bg-white pt-[15px] pb-[8px]"},_={class:"flex flex-wrap"},x={class:"mt-[7px]"},b=r({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(n){return(f,u)=>(e(),t("div",m,[a("div",_,[(e(!0),t(l,null,p(n.content.data,(s,c)=>(e(),t("div",{key:c,class:"flex flex-col items-center w-1/5 mb-[15px]"},[i(o,{width:"41px",height:"41px",src:s.image,alt:""},null,8,["src"]),a("div",x,d(s.name),1)]))),128))])]))}});export{b as _};
|
|
@ -1 +1 @@
|
|||
import s from"./decoration-img.8b733ad5.js";import{d as c,e as r,o,c as i,a as l,U as h,u as m,_ as u}from"./@vue.e8706010.js";const d={class:"banner-image w-full h-full"},p=c({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},height:{type:String,default:"170px"}},setup(e){const a=e,n=r(()=>{const{data:t}=a.content;return Array.isArray(t)&&t[0]?t[0].image:""});return(t,f)=>(o(),i("div",{class:"banner",style:u(e.styles)},[l("div",d,[h(s,{width:"100%",height:e.styles.height||e.height,src:m(n),fit:"contain"},null,8,["height","src"])])],4))}});export{p as _};
|
||||
import s from"./decoration-img.964a25c6.js";import{d as c,e as r,o,c as i,a as l,U as h,u as m,_ as u}from"./@vue.e8706010.js";const d={class:"banner-image w-full h-full"},p=c({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},height:{type:String,default:"170px"}},setup(e){const a=e,n=r(()=>{const{data:t}=a.content;return Array.isArray(t)&&t[0]?t[0].image:""});return(t,f)=>(o(),i("div",{class:"banner",style:u(e.styles)},[l("div",d,[h(s,{width:"100%",height:e.styles.height||e.height,src:m(n),fit:"contain"},null,8,["height","src"])])],4))}});export{p as _};
|
|
@ -1 +1 @@
|
|||
import o from"./decoration-img.8b733ad5.js";import{d as s,e as c,o as r,c as i,a as p,U as m,u as d}from"./@vue.e8706010.js";const u={class:"banner mx-[10px] mt-[10px]"},_={class:"banner-image"},h=s({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const n=t,a=c(()=>{const{data:e}=n.content;return Array.isArray(e)&&e[0]?e[0].image:""});return(e,l)=>(r(),i("div",u,[p("div",_,[m(o,{width:"100%",height:"100px",src:d(a),fit:"contain"},null,8,["src"])])]))}});export{h as _};
|
||||
import o from"./decoration-img.964a25c6.js";import{d as s,e as c,o as r,c as i,a as p,U as m,u as d}from"./@vue.e8706010.js";const u={class:"banner mx-[10px] mt-[10px]"},_={class:"banner-image"},h=s({__name:"content",props:{content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})}},setup(t){const n=t,a=c(()=>{const{data:e}=n.content;return Array.isArray(e)&&e[0]?e[0].image:""});return(e,l)=>(r(),i("div",u,[p("div",_,[m(o,{width:"100%",height:"100px",src:d(a),fit:"contain"},null,8,["src"])])]))}});export{h as _};
|
|
@ -1 +1 @@
|
|||
import"./data-table.vue_vue_type_script_setup_true_lang.d31cd98a.js";import{_ as P}from"./data-table.vue_vue_type_script_setup_true_lang.d31cd98a.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./usePaging.160b82b8.js";import"./code.032ce9ab.js";export{P as default};
|
||||
import"./data-table.vue_vue_type_script_setup_true_lang.92b3f32e.js";import{_ as P}from"./data-table.vue_vue_type_script_setup_true_lang.92b3f32e.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.e641c07a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./usePaging.160b82b8.js";import"./code.87ec54a4.js";export{P as default};
|
|
@ -1 +1 @@
|
|||
import{B,C as x,w as D,D as K,I as P,J as T,K as R}from"./element-plus.c4a2af8a.js";import{d as S,s as U,$ as I,r as L,w as N,o as h,c as b,U as e,L as t,H as $,a9 as g,u as l,M as z,a as M,k as j,S as C}from"./@vue.e8706010.js";import{P as A}from"./index.a5d54722.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{u as J}from"./usePaging.160b82b8.js";import{f as q,h as G}from"./code.032ce9ab.js";import{f as O}from"./index.a7ae38ad.js";const Q={class:"data-table"},W=C("\u67E5\u8BE2"),X=C("\u91CD\u7F6E"),Y={class:"m-4"},Z={class:"flex justify-end mt-4"},me=S({__name:"data-table",emits:["success"],setup(ee,{emit:F}){const r=U(),s=I({name:"",comment:""}),{pager:n,getLists:_,resetParams:w,resetPage:c}=J({fetchFun:q,params:s,size:10}),d=L([]),E=a=>{d.value=a.map(({name:o,comment:m})=>({name:o,comment:m}))},v=async()=>{var a;if(!d.value.length)return O.msgError("\u8BF7\u9009\u62E9\u6570\u636E\u8868");await G({table:d.value}),(a=r.value)==null||a.close(),F("success")};return N(()=>{var a;return(a=r.value)==null?void 0:a.visible},a=>{a&&_()}),(a,o)=>{const m=B,p=x,f=D,y=K,i=P,V=T,k=R;return h(),b("div",Q,[e(A,{ref_key:"popupRef",ref:r,clickModalClose:!1,title:"\u9009\u62E9\u8868",width:"900px",async:!0,onConfirm:v},{trigger:t(()=>[$(a.$slots,"default")]),default:t(()=>[e(y,{class:"ls-form",model:s,inline:""},{default:t(()=>[e(p,{label:"\u8868\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:s.name,"onUpdate:modelValue":o[0]||(o[0]=u=>s.name=u),clearable:"",onKeyup:g(l(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(p,{label:"\u8868\u63CF\u8FF0"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:s.comment,"onUpdate:modelValue":o[1]||(o[1]=u=>s.comment=u),clearable:"",onKeyup:g(l(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(p,null,{default:t(()=>[e(f,{type:"primary",onClick:l(c)},{default:t(()=>[W]),_:1},8,["onClick"]),e(f,{onClick:l(w)},{default:t(()=>[X]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),z((h(),b("div",Y,[e(V,{height:"400",size:"large",data:l(n).lists,onSelectionChange:E},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u8868\u540D\u79F0",prop:"name","min-width":"150"}),e(i,{label:"\u8868\u63CF\u8FF0",prop:"comment","min-width":"160"}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"})]),_:1},8,["data"])])),[[k,l(n).loading]]),M("div",Z,[e(H,{modelValue:l(n),"onUpdate:modelValue":o[2]||(o[2]=u=>j(n)?n.value=u:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:3},512)])}}});export{me as _};
|
||||
import{B,C as x,w as D,D as K,L as P,M as T,N as L}from"./element-plus.f958bb38.js";import{d as N,s as R,$ as S,r as U,w as M,o as h,c as b,U as e,L as t,H as $,a9 as g,u as l,M as z,a as I,k as j,S as C}from"./@vue.e8706010.js";import{P as A}from"./index.e641c07a.js";import{_ as H}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{u as q}from"./usePaging.160b82b8.js";import{f as G,h as J}from"./code.87ec54a4.js";import{f as O}from"./index.5b73f28d.js";const Q={class:"data-table"},W=C("\u67E5\u8BE2"),X=C("\u91CD\u7F6E"),Y={class:"m-4"},Z={class:"flex justify-end mt-4"},me=N({__name:"data-table",emits:["success"],setup(ee,{emit:F}){const r=R(),s=S({name:"",comment:""}),{pager:n,getLists:_,resetParams:w,resetPage:c}=q({fetchFun:G,params:s,size:10}),d=U([]),E=a=>{d.value=a.map(({name:o,comment:m})=>({name:o,comment:m}))},v=async()=>{var a;if(!d.value.length)return O.msgError("\u8BF7\u9009\u62E9\u6570\u636E\u8868");await J({table:d.value}),(a=r.value)==null||a.close(),F("success")};return M(()=>{var a;return(a=r.value)==null?void 0:a.visible},a=>{a&&_()}),(a,o)=>{const m=B,p=x,f=D,y=K,i=P,V=T,k=L;return h(),b("div",Q,[e(A,{ref_key:"popupRef",ref:r,clickModalClose:!1,title:"\u9009\u62E9\u8868",width:"900px",async:!0,onConfirm:v},{trigger:t(()=>[$(a.$slots,"default")]),default:t(()=>[e(y,{class:"ls-form",model:s,inline:""},{default:t(()=>[e(p,{label:"\u8868\u540D\u79F0"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:s.name,"onUpdate:modelValue":o[0]||(o[0]=u=>s.name=u),clearable:"",onKeyup:g(l(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(p,{label:"\u8868\u63CF\u8FF0"},{default:t(()=>[e(m,{class:"w-[280px]",modelValue:s.comment,"onUpdate:modelValue":o[1]||(o[1]=u=>s.comment=u),clearable:"",onKeyup:g(l(c),["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(p,null,{default:t(()=>[e(f,{type:"primary",onClick:l(c)},{default:t(()=>[W]),_:1},8,["onClick"]),e(f,{onClick:l(w)},{default:t(()=>[X]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"]),z((h(),b("div",Y,[e(V,{height:"400",size:"large",data:l(n).lists,onSelectionChange:E},{default:t(()=>[e(i,{type:"selection",width:"55"}),e(i,{label:"\u8868\u540D\u79F0",prop:"name","min-width":"150"}),e(i,{label:"\u8868\u63CF\u8FF0",prop:"comment","min-width":"160"}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"180"})]),_:1},8,["data"])])),[[k,l(n).loading]]),I("div",Z,[e(H,{modelValue:l(n),"onUpdate:modelValue":o[2]||(o[2]=u=>j(n)?n.value=u:null),onChange:l(_)},null,8,["modelValue","onChange"])])]),_:3},512)])}}});export{me as _};
|
|
@ -1 +1 @@
|
|||
import{i as n,b as _}from"./element-plus.c4a2af8a.js";import{u,h as e,b as l,d as g}from"./index.a7ae38ad.js";import{d as h,e as f,o as b,K as I,L as r,I as y,u as i,a as p,U as S,b7 as v,b6 as w}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const N=t=>(v("data-v-8b12a43d"),t=t(),w(),t),x=N(()=>p("div",{class:"image-slot"},null,-1)),B={class:"image-slot"},P=h({__name:"decoration-img",props:{width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},radius:{type:[String,Number],default:0},...n},setup(t){const o=t,{getImageUrl:s}=u(),a=f(()=>({width:e(o.width),height:e(o.height),borderRadius:e(o.radius)}));return(m,U)=>{const c=l,d=_;return b(),I(d,y({style:i(a)},o,{src:i(s)(m.src)}),{placeholder:r(()=>[x]),error:r(()=>[p("div",B,[S(c,{name:"el-icon-Picture",size:30})])]),_:1},16,["style","src"])}}});const ct=g(P,[["__scopeId","data-v-8b12a43d"]]);export{ct as default};
|
||||
import{i as n,b as _}from"./element-plus.f958bb38.js";import{u,g as e,b as l,d as g}from"./index.5b73f28d.js";import{d as h,e as f,o as b,K as I,L as r,I as y,u as i,a as p,U as S,b7 as v,b6 as w}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const N=t=>(v("data-v-8b12a43d"),t=t(),w(),t),x=N(()=>p("div",{class:"image-slot"},null,-1)),B={class:"image-slot"},P=h({__name:"decoration-img",props:{width:{type:[String,Number],default:"auto"},height:{type:[String,Number],default:"auto"},radius:{type:[String,Number],default:0},...n},setup(t){const o=t,{getImageUrl:s}=u(),a=f(()=>({width:e(o.width),height:e(o.height),borderRadius:e(o.radius)}));return(m,U)=>{const c=l,d=_;return b(),I(d,y({style:i(a)},o,{src:i(s)(m.src)}),{placeholder:r(()=>[x]),error:r(()=>[p("div",B,[S(c,{name:"el-icon-Picture",size:30})])]),_:1},16,["style","src"])}}});const ct=g(P,[["__scopeId","data-v-8b12a43d"]]);export{ct as default};
|
|
@ -1 +1 @@
|
|||
import{r as t}from"./index.a7ae38ad.js";function a(e){return t.get({url:"/decorate.page/detail",params:e},{ignoreCancelToken:!0})}function o(e){return t.post({url:"/decorate.page/save",params:e})}function c(e){return t.get({url:"/decorate.data/article",params:e})}function n(e){return t.get({url:"/decorate.tabbar/detail",params:e})}function u(e){return t.post({url:"/decorate.tabbar/save",params:e})}export{a,n as b,u as c,c as g,o as s};
|
||||
import{r as t}from"./index.5b73f28d.js";function a(e){return t.get({url:"/decorate.page/detail",params:e},{ignoreCancelToken:!0})}function o(e){return t.post({url:"/decorate.page/save",params:e})}function c(e){return t.get({url:"/decorate.data/article",params:e})}function n(e){return t.get({url:"/decorate.tabbar/detail",params:e})}function u(e){return t.post({url:"/decorate.tabbar/save",params:e})}export{a,n as b,u as c,c as g,o as s};
|
|
@ -1 +1 @@
|
|||
import{P as S,H as $,w as x,I as T,t as L,J as N,K as U}from"./element-plus.c4a2af8a.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import{f as h,b as K}from"./index.a7ae38ad.js";import{d as O,o as j,e as z}from"./wx_oa.3d87a148.js";import{u as H}from"./usePaging.160b82b8.js";import{_ as I}from"./edit.vue_vue_type_script_setup_true_lang.e1afb0a2.js";import{d as J,s as M,r as q,e as G,o as f,c as Q,U as e,L as u,a as E,M as W,u as i,K as v,S as d,T as X,k as Y,R as Z,n as D}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.a5d54722.js";const ee=d(" \u65B0\u589E "),te=d(" \u7F16\u8F91 "),oe=d(" \u5220\u9664 "),ae={class:"flex justify-end mt-4"},Ie=J({__name:"default_reply",setup(ue){const r=M(),m=q(!1),F=G(()=>o=>{switch(o){case 1:return"\u6587\u672C"}}),{pager:s,getLists:n}=H({fetchFun:O,params:{reply_type:3}}),g=async()=>{var o;m.value=!0,await D(),(o=r.value)==null||o.open("add",1)},y=async o=>{var a,p;m.value=!0,await D(),(a=r.value)==null||a.open("edit",1),(p=r.value)==null||p.getDetail(o)},w=async o=>{await h.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await j({id:o}),h.msgSuccess("\u5220\u9664\u6210\u529F"),n()},B=async o=>{try{await z({id:o}),n()}catch{n()}};return n(),(o,a)=>{const p=S,C=$,b=K,_=x,l=T,k=L,V=N,A=P,R=U;return f(),Q("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:u(()=>[e(p,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A1.\u7C89\u4E1D\u5728\u516C\u4F17\u53F7\u53D1\u9001\u5185\u5BB9\u65F6\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u5339\u914D\u60C5\u51B5\u4E0B\u53D1\u9001\u542F\u7528\u7684\u9ED8\u8BA4\u6587\u672C\u56DE\u590D\uFF1B2.\u540C\u65F6\u53EA\u80FD\u542F\u7528\u4E00\u4E2A\u9ED8\u8BA4\u56DE\u590D\u3002",closable:!1,"show-icon":""})]),_:1}),e(C,{class:"!border-none mt-4",shadow:"never"},{default:u(()=>[E("div",null,[e(_,{class:"mb-4",type:"primary",onClick:a[0]||(a[0]=t=>g())},{icon:u(()=>[e(b,{name:"el-icon-Plus"})]),default:u(()=>[ee]),_:1})]),W((f(),v(V,{size:"large",data:i(s).lists},{default:u(()=>[e(l,{label:"\u89C4\u5219\u540D\u79F0",prop:"name","min-width":"120"}),e(l,{label:"\u56DE\u590D\u7C7B\u578B","min-width":"120"},{default:u(({row:t})=>[d(X(i(F)(t.content_type)),1)]),_:1}),e(l,{label:"\u56DE\u590D\u5185\u5BB9",prop:"content","min-width":"120"}),e(l,{label:"\u72B6\u6001","min-width":"120"},{default:u(({row:t})=>[e(k,{modelValue:t.status,"onUpdate:modelValue":c=>t.status=c,"active-value":1,"inactive-value":0,onChange:c=>B(t.id)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(l,{label:"\u6392\u5E8F",prop:"sort","min-width":"120"}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:t})=>[e(_,{type:"primary",link:"",onClick:c=>y(t)},{default:u(()=>[te]),_:2},1032,["onClick"]),e(_,{type:"danger",link:"",onClick:c=>w(t.id)},{default:u(()=>[oe]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[R,i(s).loading]]),E("div",ae,[e(A,{modelValue:i(s),"onUpdate:modelValue":a[1]||(a[1]=t=>Y(s)?s.value=t:null),onChange:i(n)},null,8,["modelValue","onChange"])])]),_:1}),m.value?(f(),v(I,{key:0,ref_key:"editRef",ref:r,onSuccess:i(n),onClose:a[2]||(a[2]=t=>m.value=!1)},null,8,["onSuccess"])):Z("",!0)])}}});export{Ie as default};
|
||||
import{K as S,I as $,w as x,L as T,t as L,M as N,N as U}from"./element-plus.f958bb38.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import{f as h,b as M}from"./index.5b73f28d.js";import{d as O,o as P,e as j}from"./wx_oa.afcf66c6.js";import{u as z}from"./usePaging.160b82b8.js";import{_ as I}from"./edit.vue_vue_type_script_setup_true_lang.9ab84151.js";import{d as q,s as G,r as H,e as J,o as f,c as Q,U as e,L as u,a as E,M as W,u as i,K as v,S as d,T as X,k as Y,R as Z,n as D}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e641c07a.js";const ee=d(" \u65B0\u589E "),te=d(" \u7F16\u8F91 "),oe=d(" \u5220\u9664 "),ae={class:"flex justify-end mt-4"},Ie=q({__name:"default_reply",setup(ue){const r=G(),m=H(!1),F=J(()=>o=>{switch(o){case 1:return"\u6587\u672C"}}),{pager:s,getLists:n}=z({fetchFun:O,params:{reply_type:3}}),g=async()=>{var o;m.value=!0,await D(),(o=r.value)==null||o.open("add",1)},y=async o=>{var a,p;m.value=!0,await D(),(a=r.value)==null||a.open("edit",1),(p=r.value)==null||p.getDetail(o)},w=async o=>{await h.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await P({id:o}),h.msgSuccess("\u5220\u9664\u6210\u529F"),n()},B=async o=>{try{await j({id:o}),n()}catch{n()}};return n(),(o,a)=>{const p=S,C=$,b=M,_=x,l=T,k=L,V=N,A=K,R=U;return f(),Q("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:u(()=>[e(p,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A1.\u7C89\u4E1D\u5728\u516C\u4F17\u53F7\u53D1\u9001\u5185\u5BB9\u65F6\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u5339\u914D\u60C5\u51B5\u4E0B\u53D1\u9001\u542F\u7528\u7684\u9ED8\u8BA4\u6587\u672C\u56DE\u590D\uFF1B2.\u540C\u65F6\u53EA\u80FD\u542F\u7528\u4E00\u4E2A\u9ED8\u8BA4\u56DE\u590D\u3002",closable:!1,"show-icon":""})]),_:1}),e(C,{class:"!border-none mt-4",shadow:"never"},{default:u(()=>[E("div",null,[e(_,{class:"mb-4",type:"primary",onClick:a[0]||(a[0]=t=>g())},{icon:u(()=>[e(b,{name:"el-icon-Plus"})]),default:u(()=>[ee]),_:1})]),W((f(),v(V,{size:"large",data:i(s).lists},{default:u(()=>[e(l,{label:"\u89C4\u5219\u540D\u79F0",prop:"name","min-width":"120"}),e(l,{label:"\u56DE\u590D\u7C7B\u578B","min-width":"120"},{default:u(({row:t})=>[d(X(i(F)(t.content_type)),1)]),_:1}),e(l,{label:"\u56DE\u590D\u5185\u5BB9",prop:"content","min-width":"120"}),e(l,{label:"\u72B6\u6001","min-width":"120"},{default:u(({row:t})=>[e(k,{modelValue:t.status,"onUpdate:modelValue":c=>t.status=c,"active-value":1,"inactive-value":0,onChange:c=>B(t.id)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(l,{label:"\u6392\u5E8F",prop:"sort","min-width":"120"}),e(l,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:u(({row:t})=>[e(_,{type:"primary",link:"",onClick:c=>y(t)},{default:u(()=>[te]),_:2},1032,["onClick"]),e(_,{type:"danger",link:"",onClick:c=>w(t.id)},{default:u(()=>[oe]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[R,i(s).loading]]),E("div",ae,[e(A,{modelValue:i(s),"onUpdate:modelValue":a[1]||(a[1]=t=>Y(s)?s.value=t:null),onChange:i(n)},null,8,["modelValue","onChange"])])]),_:1}),m.value?(f(),v(I,{key:0,ref_key:"editRef",ref:r,onSuccess:i(n),onClose:a[2]||(a[2]=t=>m.value=!1)},null,8,["onSuccess"])):Z("",!0)])}}});export{Ie as default};
|
|
@ -1 +1 @@
|
|||
import{r as e}from"./index.a7ae38ad.js";function p(t){return e.get({url:"/dept.dept/lists",params:t})}function r(t){return e.post({url:"/dept.dept/add",params:t})}function u(t){return e.post({url:"/dept.dept/edit",params:t})}function n(t){return e.post({url:"/dept.dept/delete",params:t})}function l(t){return e.get({url:"/dept.dept/detail",params:t})}function s(){return e.get({url:"/dept.dept/all"})}export{u as a,r as b,l as c,s as d,p as e,n as f};
|
||||
import{r as e}from"./index.5b73f28d.js";function p(t){return e.get({url:"/dept.dept/lists",params:t})}function r(t){return e.post({url:"/dept.dept/add",params:t})}function u(t){return e.post({url:"/dept.dept/edit",params:t})}function n(t){return e.post({url:"/dept.dept/delete",params:t})}function l(t){return e.get({url:"/dept.dept/detail",params:t})}function s(){return e.get({url:"/dept.dept/all"})}export{u as a,r as b,l as c,s as d,p as e,n as f};
|
|
@ -1 +1 @@
|
|||
import{Q as k,H as $,o as j,C as P,w as R,D as q}from"./element-plus.c4a2af8a.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import{m as S,b as U}from"./index.a7ae38ad.js";import{u as V}from"./vue-router.12d45bc3.js";import{g as H,a as M,u as T}from"./consumer.ba88a4d0.js";import{_ as z}from"./account-adjust.vue_vue_type_script_setup_true_lang.94236488.js";import{d as x,$ as y,s as I,af as K,o as m,c as L,U as e,L as a,a as w,S as r,T as u,M as v,K as E}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.a5d54722.js";const O={class:"bg-page flex py-5 mb-10 items-center"},Q={class:"basis-40 flex flex-col justify-center items-center"},G=w("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),J=x({name:"consumerDetail"}),Ne=x({...J,setup(W){const p=V(),o=y({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",is_disable:0,user_money:""}),n=y({show:!1,value:""}),D=I(),_=async()=>{const s=await H({id:p.query.id});Object.keys(o).forEach(t=>{t=="is_disable"&&(s[t]==0&&(s[t]="\u5426"),s[t]==1&&(s[t]="\u662F")),o[t]=s[t]})},d=async(s,t)=>{S(s)||(await T({id:p.query.id,field:t,value:s}),_())},h=async s=>{await M({user_id:p.query.id,...s}),n.show=!1,_()};return _(),(s,t)=>{const A=k,C=$,B=j,l=P,c=U,f=R,F=N,g=q,b=K("perms");return m(),L("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:a(()=>[e(A,{content:"\u7528\u6237\u8BE6\u60C5",onBack:t[0]||(t[0]=i=>s.$router.back())})]),_:1}),e(C,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:a(()=>[e(g,{ref_key:"formRef",ref:D,class:"ls-form",model:o,"label-width":"120px"},{default:a(()=>[w("div",O,[w("div",Q,[G,e(B,{src:o.avatar,size:58},null,8,["src"])])]),e(l,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:a(()=>[r(u(o.sn),1)]),_:1}),e(l,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:a(()=>[r(u(o.nickname),1)]),_:1}),e(l,{label:"\u8D26\u53F7\uFF1A"},{default:a(()=>[r(u(o.account),1)]),_:1}),e(l,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:a(()=>[r(u(o.real_name||"-")+" ",1),v((m(),E(F,{class:"ml-[10px]",onConfirm:t[1]||(t[1]=i=>d(i,"real_name")),limit:32},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u6027\u522B\uFF1A"},{default:a(()=>[r(u(o.sex)+" ",1),v((m(),E(F,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:t[2]||(t[2]=i=>d(i,"sex"))},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u662F\u5426\u7981\u7528\uFF1A"},{default:a(()=>[r(u(o.is_disable)+" ",1),v((m(),E(F,{class:"ml-[10px]",type:"select",options:[{label:"\u5426",value:0},{label:"\u662F",value:1}],onConfirm:t[3]||(t[3]=i=>d(i,"is_disable"))},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:a(()=>[r(u(o.mobile||"-"),1)]),_:1}),e(l,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:a(()=>[r(u(o.channel),1)]),_:1}),e(l,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:a(()=>[r(u(o.create_time),1)]),_:1}),e(l,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:a(()=>[r(u(o.login_time),1)]),_:1})]),_:1},8,["model"])]),_:1}),e(z,{show:n.show,"onUpdate:show":t[4]||(t[4]=i=>n.show=i),value:n.value,onConfirm:h},null,8,["show","value"])])}}});export{Ne as default};
|
||||
import{P as k,I as $,o as j,C as P,w as R,D as q}from"./element-plus.f958bb38.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import{m as S,b as U}from"./index.5b73f28d.js";import{u as V}from"./vue-router.12d45bc3.js";import{g as I,a as M,u as T}from"./consumer.d6a7d482.js";import{_ as z}from"./account-adjust.vue_vue_type_script_setup_true_lang.1e2ab54d.js";import{d as x,$ as y,s as H,af as K,o as m,c as L,U as e,L as a,a as w,S as r,T as u,M as v,K as E}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.ec5da75f.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e641c07a.js";const O={class:"bg-page flex py-5 mb-10 items-center"},G={class:"basis-40 flex flex-col justify-center items-center"},J=w("div",{class:"mb-2 text-tx-regular"},"\u7528\u6237\u5934\u50CF",-1),Q=x({name:"consumerDetail"}),Ne=x({...Q,setup(W){const p=V(),o=y({avatar:"",channel:"",create_time:"",login_time:"",mobile:"",nickname:"",real_name:0,sex:0,sn:"",account:"",is_disable:0,user_money:""}),n=y({show:!1,value:""}),D=H(),_=async()=>{const s=await I({id:p.query.id});Object.keys(o).forEach(t=>{t=="is_disable"&&(s[t]==0&&(s[t]="\u5426"),s[t]==1&&(s[t]="\u662F")),o[t]=s[t]})},d=async(s,t)=>{S(s)||(await T({id:p.query.id,field:t,value:s}),_())},h=async s=>{await M({user_id:p.query.id,...s}),n.show=!1,_()};return _(),(s,t)=>{const A=k,C=$,B=j,l=P,c=U,f=R,F=N,g=q,b=K("perms");return m(),L("div",null,[e(C,{class:"!border-none",shadow:"never"},{default:a(()=>[e(A,{content:"\u7528\u6237\u8BE6\u60C5",onBack:t[0]||(t[0]=i=>s.$router.back())})]),_:1}),e(C,{class:"mt-4 !border-none",header:"\u57FA\u672C\u8D44\u6599",shadow:"never"},{default:a(()=>[e(g,{ref_key:"formRef",ref:D,class:"ls-form",model:o,"label-width":"120px"},{default:a(()=>[w("div",O,[w("div",G,[J,e(B,{src:o.avatar,size:58},null,8,["src"])])]),e(l,{label:"\u7528\u6237\u7F16\u53F7\uFF1A"},{default:a(()=>[r(u(o.sn),1)]),_:1}),e(l,{label:"\u7528\u6237\u6635\u79F0\uFF1A"},{default:a(()=>[r(u(o.nickname),1)]),_:1}),e(l,{label:"\u8D26\u53F7\uFF1A"},{default:a(()=>[r(u(o.account),1)]),_:1}),e(l,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A"},{default:a(()=>[r(u(o.real_name||"-")+" ",1),v((m(),E(F,{class:"ml-[10px]",onConfirm:t[1]||(t[1]=i=>d(i,"real_name")),limit:32},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u6027\u522B\uFF1A"},{default:a(()=>[r(u(o.sex)+" ",1),v((m(),E(F,{class:"ml-[10px]",type:"select",options:[{label:"\u672A\u77E5",value:0},{label:"\u7537",value:1},{label:"\u5973",value:2}],onConfirm:t[2]||(t[2]=i=>d(i,"sex"))},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u662F\u5426\u7981\u7528\uFF1A"},{default:a(()=>[r(u(o.is_disable)+" ",1),v((m(),E(F,{class:"ml-[10px]",type:"select",options:[{label:"\u5426",value:0},{label:"\u662F",value:1}],onConfirm:t[3]||(t[3]=i=>d(i,"is_disable"))},{default:a(()=>[e(f,{type:"primary",link:""},{default:a(()=>[e(c,{name:"el-icon-EditPen"})]),_:1})]),_:1})),[[b,["user.user/edit"]]])]),_:1}),e(l,{label:"\u8054\u7CFB\u7535\u8BDD\uFF1A"},{default:a(()=>[r(u(o.mobile||"-"),1)]),_:1}),e(l,{label:"\u6CE8\u518C\u6765\u6E90\uFF1A"},{default:a(()=>[r(u(o.channel),1)]),_:1}),e(l,{label:"\u6CE8\u518C\u65F6\u95F4\uFF1A"},{default:a(()=>[r(u(o.create_time),1)]),_:1}),e(l,{label:"\u6700\u8FD1\u767B\u5F55\u65F6\u95F4\uFF1A"},{default:a(()=>[r(u(o.login_time),1)]),_:1})]),_:1},8,["model"])]),_:1}),e(z,{show:n.show,"onUpdate:show":t[4]||(t[4]=i=>n.show=i),value:n.value,onConfirm:h},null,8,["show","value"])])}}});export{Ne as default};
|
|
@ -1 +1 @@
|
|||
import{r as i}from"./index.a7ae38ad.js";function d(t){return i.get({url:"/setting.dict.dict_type/lists",params:t})}function n(t){return i.get({url:"/setting.dict.dict_type/all",params:t})}function c(t){return i.post({url:"/setting.dict.dict_type/add",params:t})}function r(t){return i.post({url:"/setting.dict.dict_type/edit",params:t})}function s(t){return i.post({url:"/setting.dict.dict_type/delete",params:t})}function a(t){return i.get({url:"/setting.dict.dict_data/lists",params:t},{ignoreCancelToken:!0})}function u(t){return i.post({url:"/setting.dict.dict_data/add",params:t})}function l(t){return i.post({url:"/setting.dict.dict_data/edit",params:t})}function o(t){return i.post({url:"/setting.dict.dict_data/delete",params:t})}export{l as a,u as b,d as c,n as d,a as e,o as f,r as g,c as h,s as i};
|
||||
import{r as i}from"./index.5b73f28d.js";function d(t){return i.get({url:"/setting.dict.dict_type/lists",params:t})}function n(t){return i.get({url:"/setting.dict.dict_type/all",params:t})}function c(t){return i.post({url:"/setting.dict.dict_type/add",params:t})}function r(t){return i.post({url:"/setting.dict.dict_type/edit",params:t})}function s(t){return i.post({url:"/setting.dict.dict_type/delete",params:t})}function a(t){return i.get({url:"/setting.dict.dict_data/lists",params:t},{ignoreCancelToken:!0})}function u(t){return i.post({url:"/setting.dict.dict_data/add",params:t})}function l(t){return i.post({url:"/setting.dict.dict_data/edit",params:t})}function o(t){return i.post({url:"/setting.dict.dict_data/delete",params:t})}export{l as a,u as b,d as c,n as d,a as e,o as f,r as g,c as h,s as i};
|
|
@ -1 +1 @@
|
|||
import"./edit.vue_vue_type_script_setup_true_lang.9c914969.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_lang.9c914969.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./department.5741878e.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.a5d54722.js";import"./useDictOptions.f965e37e.js";export{O as default};
|
||||
import"./edit.vue_vue_type_script_setup_true_lang.bf546965.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_lang.bf546965.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./department.6f1ef4eb.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e641c07a.js";import"./useDictOptions.07a56b90.js";export{O as default};
|
|
@ -1 +1 @@
|
|||
import"./edit.vue_vue_type_script_setup_true_lang.e84e3bba.js";import{_ as Y}from"./edit.vue_vue_type_script_setup_true_lang.e84e3bba.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.9d3b0e12.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.6ef674b7.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6819103f.js";import"./index.ed0c39de.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./pay.58e93d62.js";export{Y as default};
|
||||
import"./edit.vue_vue_type_script_setup_true_lang.ca91aab4.js";import{_ as Y}from"./edit.vue_vue_type_script_setup_true_lang.ca91aab4.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.898b0bc4.js";import"./index.e641c07a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./index.e249f0ca.js";import"./index.vue_vue_type_script_setup_true_lang.437cabf2.js";import"./index.ab63c955.js";import"./index.837da3cc.js";import"./index.vue_vue_type_script_setup_true_lang.97e8a9ad.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./pay.44020797.js";export{Y as default};
|
|
@ -1 +1 @@
|
|||
import"./edit.vue_vue_type_script_setup_true_lang.4cd354ac.js";import{_ as N}from"./edit.vue_vue_type_script_setup_true_lang.4cd354ac.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./dict.c4eb476c.js";export{N as default};
|
||||
import"./edit.vue_vue_type_script_setup_true_lang.c5749e82.js";import{_ as N}from"./edit.vue_vue_type_script_setup_true_lang.c5749e82.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.e641c07a.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./dict.9fbccfc7.js";export{N as default};
|
|
@ -1 +0,0 @@
|
|||
import"./edit.vue_vue_type_script_setup_true_name_monitorThresholdEdit_lang.49e6b4c9.js";import{_ as M}from"./edit.vue_vue_type_script_setup_true_name_monitorThresholdEdit_lang.49e6b4c9.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.a5d54722.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";export{M as default};
|
|
@ -1 +1 @@
|
|||
import"./edit.vue_vue_type_script_setup_true_lang.e8671af3.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_lang.e8671af3.js";import"./element-plus.c4a2af8a.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.vue_vue_type_script_setup_true_lang.d6ef622a.js";import"./index.a7ae38ad.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./menu.cd013879.js";import"./index.a5d54722.js";export{O as default};
|
||||
import"./edit.vue_vue_type_script_setup_true_lang.4fc58668.js";import{_ as O}from"./edit.vue_vue_type_script_setup_true_lang.4fc58668.js";import"./element-plus.f958bb38.js";import"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./picker.vue_vue_type_script_setup_true_lang.082696ad.js";import"./index.5b73f28d.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";import"./menu.07b08b1d.js";import"./index.e641c07a.js";export{O as default};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue