更新后台管理
This commit is contained in:
commit
84d120bd4e
|
@ -0,0 +1,26 @@
|
|||
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 })
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
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 })
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
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 })
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
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 })
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
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 })
|
||||
}
|
|
@ -0,0 +1,181 @@
|
|||
<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>
|
|
@ -0,0 +1,130 @@
|
|||
<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>
|
||||
|
|
@ -0,0 +1,182 @@
|
|||
<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>
|
|
@ -0,0 +1,186 @@
|
|||
<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,9 +57,6 @@
|
|||
</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
|
||||
|
|
|
@ -0,0 +1,152 @@
|
|||
<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>
|
|
@ -0,0 +1,144 @@
|
|||
<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>
|
||||
|
|
@ -0,0 +1,280 @@
|
|||
<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>
|
|
@ -0,0 +1,98 @@
|
|||
<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>
|
||||
|
|
@ -0,0 +1,173 @@
|
|||
<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>
|
|
@ -0,0 +1,134 @@
|
|||
<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,6 +34,7 @@ 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'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,108 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
<?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);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -16,9 +16,9 @@
|
|||
namespace app\adminapi\controller\land;
|
||||
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\land\LandPlantActionLists;
|
||||
use app\adminapi\logic\land\LandPlantActionLogic;
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use app\adminapi\lists\land\LandPlantActionLists;
|
||||
use app\adminapi\logic\land\LandPlantActionLogic;
|
||||
use app\adminapi\validate\land\LandPlantActionValidate;
|
||||
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,77 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
<?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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,122 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,144 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
<?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']);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,106 @@
|
|||
<?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']);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,104 @@
|
|||
<?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']);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,134 @@
|
|||
<?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']);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
<?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']);
|
||||
}
|
||||
|
||||
}
|
|
@ -89,6 +89,7 @@ class AdminTokenCache extends BaseCache
|
|||
|
||||
$adminInfo = [
|
||||
'admin_id' => $admin->id,
|
||||
'user_id' => $admin->user_id,
|
||||
'root' => $admin->root,
|
||||
'name' => $admin->name,
|
||||
'account' => $admin->account,
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
<?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,10 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace app\common\model\device;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class Device extends BaseModel
|
||||
{
|
||||
protected $name = 'device';
|
||||
}
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 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;
|
||||
|
||||
|
||||
/**
|
||||
* Device模型
|
||||
* Class Device
|
||||
* @package app\common\model\device
|
||||
*/
|
||||
class Device extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'device';
|
||||
|
||||
/**
|
||||
* @notes 关联land
|
||||
* @return \think\model\relation\HasOne
|
||||
* @author likeadmin
|
||||
* @date 2023/11/23 11:32
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
<?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));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
<?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';
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
<?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,10 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace app\common\model\land;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class LandDevice extends BaseModel
|
||||
{
|
||||
protected $name = 'land_device';
|
||||
}
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | 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;
|
||||
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* LandPlant模型
|
||||
* Class LandPlant
|
||||
* @package app\common\model\land
|
||||
*/
|
||||
class LandDevice extends BaseModel
|
||||
{
|
||||
|
||||
protected $name = 'land_device';
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,6 @@ class LandPlant extends BaseModel
|
|||
public function land()
|
||||
{
|
||||
return $this->hasOne(\app\common\model\land\Land::class, 'id', 'land_id');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/403.a5c1c3c1.js
|
||||
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};
|
||||
========
|
||||
import o from"./error.3d96a767.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/403.adb56a13.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/403.a5c1c3c1.js
|
||||
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};
|
||||
========
|
||||
import o from"./error.3d96a767.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/403.adb56a13.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/404.0cb7fac2.js
|
||||
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};
|
||||
========
|
||||
import o from"./error.3d96a767.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/404.88fef6ca.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/404.0cb7fac2.js
|
||||
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};
|
||||
========
|
||||
import o from"./error.3d96a767.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/404.88fef6ca.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/account-adjust.99b30019.js
|
||||
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};
|
||||
========
|
||||
import"./account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.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.41d55f21.js";import"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/account-adjust.dd923f51.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/account-adjust.99b30019.js
|
||||
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};
|
||||
========
|
||||
import"./account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.js";import{_ as M}from"./account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.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.41d55f21.js";import"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/account-adjust.dd923f51.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/account-adjust.vue_vue_type_script_setup_true_lang.1e2ab54d.js
|
||||
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 _};
|
||||
========
|
||||
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.41d55f21.js";import{f as F}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/account-adjust.vue_vue_type_script_setup_true_lang.1e2ab54d.js
|
||||
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 _};
|
||||
========
|
||||
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.41d55f21.js";import{f as F}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/account-adjust.vue_vue_type_script_setup_true_lang.7919de9d.js
|
|
@ -0,0 +1 @@
|
|||
import"./add-nav.vue_vue_type_script_setup_true_lang.ca27a4c6.js";import{_ as Y}from"./add-nav.vue_vue_type_script_setup_true_lang.ca27a4c6.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.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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};
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js
|
||||
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 _};
|
||||
========
|
||||
import{B,w as D}from"./element-plus.c4a2af8a.js";import{_ as F}from"./index.8011f40f.js";import{_ as A}from"./picker.b44292f4.js";import{_ as y}from"./picker.5e0effb3.js";import{f as p,b as E}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/add-nav.vue_vue_type_script_setup_true_lang.ca27a4c6.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/add-nav.vue_vue_type_script_setup_true_lang.2452fd08.js
|
||||
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 _};
|
||||
========
|
||||
import{B,w as D}from"./element-plus.c4a2af8a.js";import{_ as F}from"./index.8011f40f.js";import{_ as A}from"./picker.b44292f4.js";import{_ as y}from"./picker.5e0effb3.js";import{f as p,b as E}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/add-nav.vue_vue_type_script_setup_true_lang.ca27a4c6.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/article.39d0e1ab.js
|
||||
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};
|
||||
========
|
||||
import{r as e}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/article.a67523b8.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/article.39d0e1ab.js
|
||||
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};
|
||||
========
|
||||
import{r as e}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/article.a67523b8.js
|
|
@ -0,0 +1 @@
|
|||
import"./attr-setting.vue_vue_type_script_setup_true_lang.a0d850d0.js";import{_ as bm}from"./attr-setting.vue_vue_type_script_setup_true_lang.a0d850d0.js";import"./index.e6d1a415.js";import"./attr.vue_vue_type_script_setup_true_lang.bb67eabb.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.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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.0adadc43.js";import"./decoration-img.cad175cf.js";import"./attr.vue_vue_type_script_setup_true_lang.918618d3.js";import"./content.f9ed8ae1.js";import"./attr.vue_vue_type_script_setup_true_lang.175cbe60.js";import"./add-nav.vue_vue_type_script_setup_true_lang.ca27a4c6.js";import"./content.c0ed49f1.js";import"./attr.vue_vue_type_script_setup_true_lang.a4579b8f.js";import"./content.vue_vue_type_script_setup_true_lang.76254f64.js";import"./attr.vue_vue_type_script_setup_true_lang.bc88ba14.js";import"./content.1436f884.js";import"./decoration.525acdc0.js";import"./attr.vue_vue_type_script_setup_true_lang.775b5e18.js";import"./content.4163c265.js";import"./attr.vue_vue_type_script_setup_true_lang.5d216f50.js";import"./content.vue_vue_type_script_setup_true_lang.ca208f81.js";import"./attr.vue_vue_type_script_setup_true_lang.d0ae40ff.js";import"./content.52c7b1e8.js";export{bm as default};
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr-setting.vue_vue_type_script_setup_true_lang.fea66051.js
|
||||
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 _};
|
||||
========
|
||||
import{e as c}from"./index.e6d1a415.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr-setting.vue_vue_type_script_setup_true_lang.a0d850d0.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr-setting.vue_vue_type_script_setup_true_lang.fea66051.js
|
||||
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 _};
|
||||
========
|
||||
import{e as c}from"./index.e6d1a415.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr-setting.vue_vue_type_script_setup_true_lang.a0d850d0.js
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.bb67eabb.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.bb67eabb.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.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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};
|
|
@ -0,0 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.5d216f50.js";import{_ as Y}from"./attr.vue_vue_type_script_setup_true_lang.5d216f50.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.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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};
|
|
@ -0,0 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.175cbe60.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.175cbe60.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.ca27a4c6.js";import"./index.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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};
|
|
@ -0,0 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.a4579b8f.js";import{_ as Z}from"./attr.vue_vue_type_script_setup_true_lang.a4579b8f.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.ca27a4c6.js";import"./index.8011f40f.js";import"./index.289a0d17.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.b44292f4.js";import"./index.41d55f21.js";import"./picker.5e0effb3.js";import"./index.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.6590bdce.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};
|
|
@ -0,0 +1 @@
|
|||
import"./attr.vue_vue_type_script_setup_true_lang.918618d3.js";import{_ as X}from"./attr.vue_vue_type_script_setup_true_lang.918618d3.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.5e0effb3.js";import"./index.41d55f21.js";import"./index.289a0d17.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.0f782fa5.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.8011f40f.js";import"./index.6590bdce.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};
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.d54afe36.js
|
||||
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 _};
|
||||
========
|
||||
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.ca27a4c6.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.175cbe60.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.f5ef7815.js
|
||||
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 _};
|
||||
========
|
||||
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.8011f40f.js";import{_ as R}from"./picker.b44292f4.js";import{_ as $}from"./picker.5e0effb3.js";import{f as F}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.5d216f50.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.77e3143d.js
|
||||
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 _};
|
||||
========
|
||||
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.ca27a4c6.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.a4579b8f.js
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.7effa325.js
|
||||
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 _};
|
||||
========
|
||||
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.8011f40f.js";import{_ as $}from"./picker.b44292f4.js";import{_ as j}from"./picker.5e0effb3.js";import{f as b}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.bb67eabb.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.c65a6e91.js
|
||||
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 _};
|
||||
========
|
||||
import{B as c,C as i,D as F}from"./element-plus.c4a2af8a.js";import{_ as p}from"./picker.5e0effb3.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.918618d3.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.77e3143d.js
|
||||
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 _};
|
||||
========
|
||||
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.ca27a4c6.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.a4579b8f.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.7effa325.js
|
||||
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 _};
|
||||
========
|
||||
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.8011f40f.js";import{_ as $}from"./picker.b44292f4.js";import{_ as j}from"./picker.5e0effb3.js";import{f as b}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.bb67eabb.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.c65a6e91.js
|
||||
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 _};
|
||||
========
|
||||
import{B as c,C as i,D as F}from"./element-plus.c4a2af8a.js";import{_ as p}from"./picker.5e0effb3.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.918618d3.js
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.d54afe36.js
|
||||
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 _};
|
||||
========
|
||||
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.ca27a4c6.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.175cbe60.js
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.f5ef7815.js
|
||||
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 _};
|
||||
========
|
||||
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.8011f40f.js";import{_ as R}from"./picker.b44292f4.js";import{_ as $}from"./picker.5e0effb3.js";import{f as F}from"./index.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/attr.vue_vue_type_script_setup_true_lang.5d216f50.js
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import"./auth.vue_vue_type_script_setup_true_lang.904ce953.js";import{_ as O}from"./auth.vue_vue_type_script_setup_true_lang.904ce953.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.5804c3ef.js";import"./index.289a0d17.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.41d55f21.js";import"./menu.399dee7e.js";export{O as default};
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/auth.vue_vue_type_script_setup_true_lang.4ddf59c9.js
|
||||
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 _};
|
||||
========
|
||||
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.5804c3ef.js";import{P as $}from"./index.41d55f21.js";import{q as j}from"./index.289a0d17.js";import{m as z}from"./menu.399dee7e.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/auth.vue_vue_type_script_setup_true_lang.904ce953.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/auth.vue_vue_type_script_setup_true_lang.4ddf59c9.js
|
||||
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 _};
|
||||
========
|
||||
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.5804c3ef.js";import{P as $}from"./index.41d55f21.js";import{q as j}from"./index.289a0d17.js";import{m as z}from"./menu.399dee7e.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/auth.vue_vue_type_script_setup_true_lang.904ce953.js
|
|
@ -0,0 +1 @@
|
|||
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.289a0d17.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.2bbc9e23.js";import{a as oe}from"./useDictOptions.8f9d45ed.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};
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/cache.79dae220.js
|
||||
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};
|
||||
========
|
||||
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.26dc004c.js";import{f as B}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/cache.2ded57c4.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/cache.79dae220.js
|
||||
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};
|
||||
========
|
||||
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.26dc004c.js";import{f as B}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/cache.2ded57c4.js
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code-preview.2d926076.js
|
||||
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};
|
||||
========
|
||||
import"./code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/code-preview.df743be1.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code-preview.2d926076.js
|
||||
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};
|
||||
========
|
||||
import"./code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.js";import{_ as L}from"./code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/code-preview.df743be1.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code-preview.vue_vue_type_script_setup_true_lang.abeeb0cb.js
|
||||
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 _};
|
||||
========
|
||||
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.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code-preview.vue_vue_type_script_setup_true_lang.abeeb0cb.js
|
||||
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 _};
|
||||
========
|
||||
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.289a0d17.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 _};
|
||||
>>>>>>>> yaooo:public/admin/assets/code-preview.vue_vue_type_script_setup_true_lang.c910c0a5.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code.87ec54a4.js
|
||||
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};
|
||||
========
|
||||
import{r as t}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/code.6102bdfc.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/code.87ec54a4.js
|
||||
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};
|
||||
========
|
||||
import{r as t}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/code.6102bdfc.js
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/consumer.d6a7d482.js
|
||||
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};
|
||||
========
|
||||
import{r}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/consumer.b1d5aba2.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/consumer.d6a7d482.js
|
||||
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};
|
||||
========
|
||||
import{r}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/consumer.b1d5aba2.js
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.0460e413.js
|
||||
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};
|
||||
========
|
||||
import{d as r}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.52c7b1e8.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.84e70027.js
|
||||
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};
|
||||
========
|
||||
import{b as n,d as m}from"./index.289a0d17.js";import{g as d}from"./decoration.525acdc0.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.1436f884.js
|
|
@ -1 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.34144231.js
|
||||
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};
|
||||
========
|
||||
import"./content.vue_vue_type_script_setup_true_lang.76254f64.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.76254f64.js";import"./decoration-img.cad175cf.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.76789c4f.js
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.b9821153.js
|
||||
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};
|
||||
========
|
||||
import{d as r,b as i}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.4163c265.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.0460e413.js
|
||||
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};
|
||||
========
|
||||
import{d as r}from"./index.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.52c7b1e8.js
|
|
@ -0,0 +1,5 @@
|
|||
<<<<<<<< HEAD:public/admin/assets/content.34144231.js
|
||||
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};
|
||||
========
|
||||
import"./content.vue_vue_type_script_setup_true_lang.76254f64.js";import{_ as M}from"./content.vue_vue_type_script_setup_true_lang.76254f64.js";import"./decoration-img.cad175cf.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.289a0d17.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};
|
||||
>>>>>>>> yaooo:public/admin/assets/content.76789c4f.js
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue