diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/group.ts b/src/api/eqpt/device/group.ts index d534327..d2c2999 100644 --- a/src/api/eqpt/device/group.ts +++ b/src/api/eqpt/device/group.ts @@ -3,11 +3,11 @@ */ import request from '@/api/index' // 分组列表 -export function getGroupList(params: object) { +export function getGroupList(params: any) { return request({ - url: '/equipment/group/listPage', - method: 'get', - params, + url: `/equipment/group/listPage?limit=${params.limit}&offset=${params.offset}`, + method: 'post', + data: params, }) } // 编辑 diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/group.ts b/src/api/eqpt/device/group.ts index d534327..d2c2999 100644 --- a/src/api/eqpt/device/group.ts +++ b/src/api/eqpt/device/group.ts @@ -3,11 +3,11 @@ */ import request from '@/api/index' // 分组列表 -export function getGroupList(params: object) { +export function getGroupList(params: any) { return request({ - url: '/equipment/group/listPage', - method: 'get', - params, + url: `/equipment/group/listPage?limit=${params.limit}&offset=${params.offset}`, + method: 'post', + data: params, }) } // 编辑 diff --git a/src/api/eqpt/device/info.ts b/src/api/eqpt/device/info.ts index a46fd4c..ca0ce73 100644 --- a/src/api/eqpt/device/info.ts +++ b/src/api/eqpt/device/info.ts @@ -161,3 +161,12 @@ data, }) } +// 获取检定去向 +export function defaultCheckDestination(data: object) { + return request({ + url: '/equipment/model/defaultCheckDestination', + method: 'get', + params: data, + }) +} + diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/group.ts b/src/api/eqpt/device/group.ts index d534327..d2c2999 100644 --- a/src/api/eqpt/device/group.ts +++ b/src/api/eqpt/device/group.ts @@ -3,11 +3,11 @@ */ import request from '@/api/index' // 分组列表 -export function getGroupList(params: object) { +export function getGroupList(params: any) { return request({ - url: '/equipment/group/listPage', - method: 'get', - params, + url: `/equipment/group/listPage?limit=${params.limit}&offset=${params.offset}`, + method: 'post', + data: params, }) } // 编辑 diff --git a/src/api/eqpt/device/info.ts b/src/api/eqpt/device/info.ts index a46fd4c..ca0ce73 100644 --- a/src/api/eqpt/device/info.ts +++ b/src/api/eqpt/device/info.ts @@ -161,3 +161,12 @@ data, }) } +// 获取检定去向 +export function defaultCheckDestination(data: object) { + return request({ + url: '/equipment/model/defaultCheckDestination', + method: 'get', + params: data, + }) +} + diff --git a/src/views/tested/device/info/components/edit.vue b/src/views/tested/device/info/components/edit.vue index d310206..6d4c8d8 100644 --- a/src/views/tested/device/info/components/edit.vue +++ b/src/views/tested/device/info/components/edit.vue @@ -11,8 +11,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' import ApprovalDialog from '@/components/Approval/ApprovalDialog.vue' -import { cancelInfo, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' -// import { getUserList } from '@/api/system/user' +import { cancelInfo, defaultCheckDestination, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' import { getDictByCode } from '@/api/system/dict' import { SCHEDULE } from '@/utils/scheduleDict' import { uploadApi } from '@/api/system/notice' @@ -28,8 +27,6 @@ const userStore = useUserStore() const submitId = ref('未提交') // 提交id-保存接口获取 const ruleFormRef = ref() // from组件 -const ruleFormRef1 = ref() // from组件 -const ruleFormRef2 = ref() // from组件 const statusName = $route.query.statusName as string const title = ref('') const isFrist = ref(true) @@ -58,13 +55,13 @@ createUserId: '', // 创建人id createUserName: '', // 创建人名字 deptId: '', // 使用部门id - directorName: '', // 负责人 + directorId: '', // 负责人 equipmentId: '', // 设备id equipmentName: '', // 设备名称 equipmentNo: '', // 设备编号 equipmentType: $route.query.equipmentType as string, // 设备类型(1受检设备;2特种设备) id: '', // - installLocation: '', // 安装位置(选择) + installLocationId: '', // 安装位置(选择) installLocationExt: '', // 安装位置(自定义编写) instructionsFile: '', // 说明书(minio存储文件名)(多个用,拼接) level: '', // 等级(字典code) @@ -87,17 +84,19 @@ unitPrice: '', // 单价(万元) updateTime: '', // 更新时间 usageStatus: '', // 使用状态(字典code) - usePosition: '', // 使用岗位 + usePositionId: '', // 使用岗位 useSign: '', // 在用信息(字典code) helpInstruction: '', // 辅助字段 companyName: '', certificateList: [], - submission: '0', // 送检状态 + checkDestination: '', // 检定去向 + // submission: '0', // 送检状态 }) // 表单 // 是否展示检定机构等一行信息 +const submission = ref('0') const submissionShow = ref(false) // 送检状态 -watch(() => ruleForm.value.submission, (newVal) => { +watch(() => submission.value, (newVal) => { if (newVal === '0') { submissionShow.value = false } @@ -130,7 +129,7 @@ }) const radio = ref('基本信息') // 表单1验证规则 -const rules1 = ref({ +const rules = ref({ equipmentName: [{ required: true, message: '设备名称必填', trigger: ['blur', 'change'] }], equipmentNo: [{ required: true, message: '设备编号必填', trigger: ['blur', 'change'] }], usageStatus: [{ required: true, message: '使用状态必选', trigger: ['blur', 'change'] }], @@ -142,23 +141,15 @@ // unitPrice: [{ required: true, message: '设备单价必填', trigger: ['blur', 'change'] }], // purchaseDate: [{ required: true, message: '购进日期必选', trigger: ['blur', 'change'] }], model: [{ required: true, message: '规格型号必填', trigger: ['blur', 'change'] }], - helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], + // helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], qualityCondition: [{ required: true, message: '质量状况必填', trigger: ['blur', 'change'] }], deptId: [{ required: true, message: '使用部门必选', trigger: ['blur', 'change'] }], // category: [{ required: true, message: '设备分类必选', trigger: ['blur', 'change'] }], // checkCycle: [{ required: true, message: '检定周期必填', trigger: ['blur', 'change'] }], -}) -const rules2 = ref({ - usePosition: [{ required: true, message: '使用岗位必填', trigger: ['blur', 'change'] }], - directorName: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], + usePositionId: [{ required: true, message: '使用岗位必选', trigger: ['blur', 'change'] }], + directorId: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], useSign: [{ required: true, message: '在用信息必选', trigger: ['blur', 'change'] }], }) -const rules3 = ref({ - // checkOrganization: [{ required: true, message: '检定机构必填', trigger: ['blur', 'change'] }], - // meterIdentify: [{ required: true, message: '计量标识必填', trigger: ['blur', 'change'] }], - // checkDate: [{ required: true, message: '检定(校准)日期必选', trigger: ['blur', 'change'] }], - // certificateValid: [{ required: true, message: '证书有效期必选', trigger: ['blur', 'change'] }], -}) // 获取下拉框数据 const useStatusList = ref<{ id: string; value: string; name: string }[]>() // 使用状态 const levelList = ref<{ id: string; value: string; name: string }[]>() // 设备重要等级 @@ -262,6 +253,7 @@ } }) // 设备相关,填充数据 +const companyId = ref('') watch(() => ruleForm.value, (newVal) => { if ($route.path.includes('detail') || isFrist.value) { return @@ -277,6 +269,12 @@ ruleForm.value.checkCycle = data.checkCycle ruleForm.value.modelId = data.id ruleForm.value.instructionsFile = data.instructionsFile + // 检定去向 + defaultCheckDestination({ modelId: ruleForm.value.modelId, companyId: companyId.value }).then((res) => { + if (res.data) { + ruleForm.value.checkDestination = res.data + } + }) } } // if ((helpList.value.length === 0 || (helpList.value.length === 1)) && ruleForm.value.model && ruleForm.value.equipmentName) { @@ -295,15 +293,6 @@ deep: true, immediate: true, }) -// 加载组织机构树形下拉 -const deptTreeList = ref() -const fetchDeptTree = () => { - getDeptTreeList().then((res) => { - if (res.data) { // 将列表转树结构 - deptTreeList.value = toTreeList(res.data, '0', true) - } - }) -} // 负责人 const userList = ref([]) const getuser = () => { @@ -312,14 +301,10 @@ }) } getuser() -fetchDeptTree() // 弹窗初始化 const initDialog = () => { dialogStatus.value = $route.params.type as string || 'detail' ruleFormRef.value?.resetFields() - ruleFormRef1.value?.resetFields() - ruleFormRef2.value?.resetFields() - console.log(userStore) if ($route.params.type === 'create') { isFrist.value = false ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 @@ -330,28 +315,23 @@ testTask.value = [''] // 获取当前用户所在单位 getUserDept().then((res) => { - console.log(res.data, '用户所在单位') - // fullName ruleForm.value.companyId = res.data.id + companyId.value = res.data.id ruleForm.value.companyName = res.data.fullName }) } else { - // console.log(statusName, 'statusName') + const openSubmission = () => { + if (ruleForm.value.checkOrganization || ruleForm.value.checkDate || ruleForm.value.certificateValid || ruleForm.value.meterIdentify) { + submission.value = '1' + } + setTimeout(() => { + isFrist.value = false + }, 2000) + } if (statusName === '全部') { getInfoDetail({ equipmentId: $route.query.id as string }).then((res) => { ruleForm.value = res.data - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } if ($route.params.type === 'update') { ruleForm.value.approvalType = '2' ruleForm.value.approvalTypeName = '编辑设备' @@ -361,30 +341,14 @@ ruleForm.value.createUserName = userStore.name ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 } - setTimeout(() => { - isFrist.value = false - }, 2000) + openSubmission() }) } else { getApprovalDetail({ id: $route.query.id as string }).then((res) => { ruleForm.value = res.data - setTimeout(() => { - isFrist.value = false - }, 2000) - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } + openSubmission() }) - // ruleForm.value = JSON.parse($route.query.row as string) } } } @@ -407,10 +371,9 @@ const certificateRef = ref() const disabledSave = ref(false) // 保存 -const saveForm = async (formEl: FormInstance | undefined, formEl1: FormInstance | undefined, formEl2: FormInstance | undefined) => { - console.log(formEl, formEl1) - if (!formEl || !formEl1 || !formEl2) { return } - Promise.all([formEl.validate(), formEl1.validate(), formEl2.validate()]).then(() => { +const saveForm = async (formEl: FormInstance | undefined) => { + if (!formEl) { return } + Promise.all([formEl.validate()]).then(() => { // 验证表格 if (tableRef.value.checkCertificateList() && technologyRef.value.checkCertificateList()) { ElMessageBox.confirm( @@ -425,9 +388,6 @@ disabledSave.value = true ruleForm.value.attachments = tableRef.value.list ruleForm.value.technicalTargetList = technologyRef.value.list - // if (!ruleForm.value.groupInfos.length) { - // ruleForm.value.groupInfos = null - // } if ($route.path.includes('speciallist')) { // 特种设备 ruleForm.value.certificateList = certificateRef.value.list @@ -447,6 +407,8 @@ else { ElMessage.success('保存成功') } + }).catch(() => { + disabledSave.value = false }) }) } @@ -484,23 +446,12 @@ } // 编辑 const editForm = () => { - // $route.params.type = dialogStatus.value - // mainPage.reload() - // $router.push({ - // path: `/dinfo/${dialogStatus.value}`, - // query: { - // row: $route.query.row, - // statusName, - // }, - // }) - // document.getElementById('reload-btn')?.click() $router.push({ // params: { ...$route.params, type: 'update' }, path: `/${$route.query.equipmentType === '1' ? 'dinfo' : 'speciallist'}/update`, query: { ...$route.query }, }) initDialog() - // document.getElementById('reload-btn')?.click() } // 删除 const delForm = () => { @@ -641,7 +592,7 @@ 提交 - + 保存 @@ -663,8 +614,11 @@
- - + + @@ -682,13 +636,8 @@ - - - - + + @@ -787,7 +736,7 @@ - + @@ -815,9 +764,18 @@ - + - + + + + + + + + + + @@ -828,7 +786,7 @@ - - - - + + @@ -883,24 +839,22 @@ - - - - + + - + - + - + - - + + {{ item.name }} {{ item.deptName }} @@ -937,9 +891,9 @@ - + - + @@ -990,8 +944,8 @@ - - + + diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/group.ts b/src/api/eqpt/device/group.ts index d534327..d2c2999 100644 --- a/src/api/eqpt/device/group.ts +++ b/src/api/eqpt/device/group.ts @@ -3,11 +3,11 @@ */ import request from '@/api/index' // 分组列表 -export function getGroupList(params: object) { +export function getGroupList(params: any) { return request({ - url: '/equipment/group/listPage', - method: 'get', - params, + url: `/equipment/group/listPage?limit=${params.limit}&offset=${params.offset}`, + method: 'post', + data: params, }) } // 编辑 diff --git a/src/api/eqpt/device/info.ts b/src/api/eqpt/device/info.ts index a46fd4c..ca0ce73 100644 --- a/src/api/eqpt/device/info.ts +++ b/src/api/eqpt/device/info.ts @@ -161,3 +161,12 @@ data, }) } +// 获取检定去向 +export function defaultCheckDestination(data: object) { + return request({ + url: '/equipment/model/defaultCheckDestination', + method: 'get', + params: data, + }) +} + diff --git a/src/views/tested/device/info/components/edit.vue b/src/views/tested/device/info/components/edit.vue index d310206..6d4c8d8 100644 --- a/src/views/tested/device/info/components/edit.vue +++ b/src/views/tested/device/info/components/edit.vue @@ -11,8 +11,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' import ApprovalDialog from '@/components/Approval/ApprovalDialog.vue' -import { cancelInfo, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' -// import { getUserList } from '@/api/system/user' +import { cancelInfo, defaultCheckDestination, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' import { getDictByCode } from '@/api/system/dict' import { SCHEDULE } from '@/utils/scheduleDict' import { uploadApi } from '@/api/system/notice' @@ -28,8 +27,6 @@ const userStore = useUserStore() const submitId = ref('未提交') // 提交id-保存接口获取 const ruleFormRef = ref() // from组件 -const ruleFormRef1 = ref() // from组件 -const ruleFormRef2 = ref() // from组件 const statusName = $route.query.statusName as string const title = ref('') const isFrist = ref(true) @@ -58,13 +55,13 @@ createUserId: '', // 创建人id createUserName: '', // 创建人名字 deptId: '', // 使用部门id - directorName: '', // 负责人 + directorId: '', // 负责人 equipmentId: '', // 设备id equipmentName: '', // 设备名称 equipmentNo: '', // 设备编号 equipmentType: $route.query.equipmentType as string, // 设备类型(1受检设备;2特种设备) id: '', // - installLocation: '', // 安装位置(选择) + installLocationId: '', // 安装位置(选择) installLocationExt: '', // 安装位置(自定义编写) instructionsFile: '', // 说明书(minio存储文件名)(多个用,拼接) level: '', // 等级(字典code) @@ -87,17 +84,19 @@ unitPrice: '', // 单价(万元) updateTime: '', // 更新时间 usageStatus: '', // 使用状态(字典code) - usePosition: '', // 使用岗位 + usePositionId: '', // 使用岗位 useSign: '', // 在用信息(字典code) helpInstruction: '', // 辅助字段 companyName: '', certificateList: [], - submission: '0', // 送检状态 + checkDestination: '', // 检定去向 + // submission: '0', // 送检状态 }) // 表单 // 是否展示检定机构等一行信息 +const submission = ref('0') const submissionShow = ref(false) // 送检状态 -watch(() => ruleForm.value.submission, (newVal) => { +watch(() => submission.value, (newVal) => { if (newVal === '0') { submissionShow.value = false } @@ -130,7 +129,7 @@ }) const radio = ref('基本信息') // 表单1验证规则 -const rules1 = ref({ +const rules = ref({ equipmentName: [{ required: true, message: '设备名称必填', trigger: ['blur', 'change'] }], equipmentNo: [{ required: true, message: '设备编号必填', trigger: ['blur', 'change'] }], usageStatus: [{ required: true, message: '使用状态必选', trigger: ['blur', 'change'] }], @@ -142,23 +141,15 @@ // unitPrice: [{ required: true, message: '设备单价必填', trigger: ['blur', 'change'] }], // purchaseDate: [{ required: true, message: '购进日期必选', trigger: ['blur', 'change'] }], model: [{ required: true, message: '规格型号必填', trigger: ['blur', 'change'] }], - helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], + // helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], qualityCondition: [{ required: true, message: '质量状况必填', trigger: ['blur', 'change'] }], deptId: [{ required: true, message: '使用部门必选', trigger: ['blur', 'change'] }], // category: [{ required: true, message: '设备分类必选', trigger: ['blur', 'change'] }], // checkCycle: [{ required: true, message: '检定周期必填', trigger: ['blur', 'change'] }], -}) -const rules2 = ref({ - usePosition: [{ required: true, message: '使用岗位必填', trigger: ['blur', 'change'] }], - directorName: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], + usePositionId: [{ required: true, message: '使用岗位必选', trigger: ['blur', 'change'] }], + directorId: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], useSign: [{ required: true, message: '在用信息必选', trigger: ['blur', 'change'] }], }) -const rules3 = ref({ - // checkOrganization: [{ required: true, message: '检定机构必填', trigger: ['blur', 'change'] }], - // meterIdentify: [{ required: true, message: '计量标识必填', trigger: ['blur', 'change'] }], - // checkDate: [{ required: true, message: '检定(校准)日期必选', trigger: ['blur', 'change'] }], - // certificateValid: [{ required: true, message: '证书有效期必选', trigger: ['blur', 'change'] }], -}) // 获取下拉框数据 const useStatusList = ref<{ id: string; value: string; name: string }[]>() // 使用状态 const levelList = ref<{ id: string; value: string; name: string }[]>() // 设备重要等级 @@ -262,6 +253,7 @@ } }) // 设备相关,填充数据 +const companyId = ref('') watch(() => ruleForm.value, (newVal) => { if ($route.path.includes('detail') || isFrist.value) { return @@ -277,6 +269,12 @@ ruleForm.value.checkCycle = data.checkCycle ruleForm.value.modelId = data.id ruleForm.value.instructionsFile = data.instructionsFile + // 检定去向 + defaultCheckDestination({ modelId: ruleForm.value.modelId, companyId: companyId.value }).then((res) => { + if (res.data) { + ruleForm.value.checkDestination = res.data + } + }) } } // if ((helpList.value.length === 0 || (helpList.value.length === 1)) && ruleForm.value.model && ruleForm.value.equipmentName) { @@ -295,15 +293,6 @@ deep: true, immediate: true, }) -// 加载组织机构树形下拉 -const deptTreeList = ref() -const fetchDeptTree = () => { - getDeptTreeList().then((res) => { - if (res.data) { // 将列表转树结构 - deptTreeList.value = toTreeList(res.data, '0', true) - } - }) -} // 负责人 const userList = ref([]) const getuser = () => { @@ -312,14 +301,10 @@ }) } getuser() -fetchDeptTree() // 弹窗初始化 const initDialog = () => { dialogStatus.value = $route.params.type as string || 'detail' ruleFormRef.value?.resetFields() - ruleFormRef1.value?.resetFields() - ruleFormRef2.value?.resetFields() - console.log(userStore) if ($route.params.type === 'create') { isFrist.value = false ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 @@ -330,28 +315,23 @@ testTask.value = [''] // 获取当前用户所在单位 getUserDept().then((res) => { - console.log(res.data, '用户所在单位') - // fullName ruleForm.value.companyId = res.data.id + companyId.value = res.data.id ruleForm.value.companyName = res.data.fullName }) } else { - // console.log(statusName, 'statusName') + const openSubmission = () => { + if (ruleForm.value.checkOrganization || ruleForm.value.checkDate || ruleForm.value.certificateValid || ruleForm.value.meterIdentify) { + submission.value = '1' + } + setTimeout(() => { + isFrist.value = false + }, 2000) + } if (statusName === '全部') { getInfoDetail({ equipmentId: $route.query.id as string }).then((res) => { ruleForm.value = res.data - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } if ($route.params.type === 'update') { ruleForm.value.approvalType = '2' ruleForm.value.approvalTypeName = '编辑设备' @@ -361,30 +341,14 @@ ruleForm.value.createUserName = userStore.name ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 } - setTimeout(() => { - isFrist.value = false - }, 2000) + openSubmission() }) } else { getApprovalDetail({ id: $route.query.id as string }).then((res) => { ruleForm.value = res.data - setTimeout(() => { - isFrist.value = false - }, 2000) - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } + openSubmission() }) - // ruleForm.value = JSON.parse($route.query.row as string) } } } @@ -407,10 +371,9 @@ const certificateRef = ref() const disabledSave = ref(false) // 保存 -const saveForm = async (formEl: FormInstance | undefined, formEl1: FormInstance | undefined, formEl2: FormInstance | undefined) => { - console.log(formEl, formEl1) - if (!formEl || !formEl1 || !formEl2) { return } - Promise.all([formEl.validate(), formEl1.validate(), formEl2.validate()]).then(() => { +const saveForm = async (formEl: FormInstance | undefined) => { + if (!formEl) { return } + Promise.all([formEl.validate()]).then(() => { // 验证表格 if (tableRef.value.checkCertificateList() && technologyRef.value.checkCertificateList()) { ElMessageBox.confirm( @@ -425,9 +388,6 @@ disabledSave.value = true ruleForm.value.attachments = tableRef.value.list ruleForm.value.technicalTargetList = technologyRef.value.list - // if (!ruleForm.value.groupInfos.length) { - // ruleForm.value.groupInfos = null - // } if ($route.path.includes('speciallist')) { // 特种设备 ruleForm.value.certificateList = certificateRef.value.list @@ -447,6 +407,8 @@ else { ElMessage.success('保存成功') } + }).catch(() => { + disabledSave.value = false }) }) } @@ -484,23 +446,12 @@ } // 编辑 const editForm = () => { - // $route.params.type = dialogStatus.value - // mainPage.reload() - // $router.push({ - // path: `/dinfo/${dialogStatus.value}`, - // query: { - // row: $route.query.row, - // statusName, - // }, - // }) - // document.getElementById('reload-btn')?.click() $router.push({ // params: { ...$route.params, type: 'update' }, path: `/${$route.query.equipmentType === '1' ? 'dinfo' : 'speciallist'}/update`, query: { ...$route.query }, }) initDialog() - // document.getElementById('reload-btn')?.click() } // 删除 const delForm = () => { @@ -641,7 +592,7 @@ 提交 - + 保存 @@ -663,8 +614,11 @@
- - + + @@ -682,13 +636,8 @@ - - - - + + @@ -787,7 +736,7 @@ - + @@ -815,9 +764,18 @@ - + - + + + + + + + + + + @@ -828,7 +786,7 @@ - - - - + + @@ -883,24 +839,22 @@ - - - - + + - + - + - + - - + + {{ item.name }} {{ item.deptName }} @@ -937,9 +891,9 @@ - + - + @@ -990,8 +944,8 @@ - - + + diff --git a/src/views/tested/device/info/components/interface.ts b/src/views/tested/device/info/components/interface.ts index 0807e07..e024d75 100644 --- a/src/views/tested/device/info/components/interface.ts +++ b/src/views/tested/device/info/components/interface.ts @@ -4,7 +4,7 @@ certificateValidEnd: string deptIds: string usageStatus: string - usePosition: string // 使用岗位 + usePositionId: string // 使用岗位 equipmentNo: string equipmentName: string equipmentType: string @@ -26,7 +26,8 @@ sort: string orderBy: string manufacturer?: string - groupName?: string + groupId?: string + directorId?: string } // 设备信息对象 export interface IlistObjType { diff --git a/.env.development b/.env.development index 95707e0..ad705fc 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://192.168.8.102:5909 +VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://192.168.8.102:5909 +VITE_METER_API_BASEURL = http://111.198.10.15:21606 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index cfca39a..ffd6d38 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.102:5909", - "baseUrlBusiness": "http://192.168.8.102:5909", + "baseUrl": "http://192.168.8.105:5909", + "baseUrlBusiness": "http://111.198.10.15:21606", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/group.ts b/src/api/eqpt/device/group.ts index d534327..d2c2999 100644 --- a/src/api/eqpt/device/group.ts +++ b/src/api/eqpt/device/group.ts @@ -3,11 +3,11 @@ */ import request from '@/api/index' // 分组列表 -export function getGroupList(params: object) { +export function getGroupList(params: any) { return request({ - url: '/equipment/group/listPage', - method: 'get', - params, + url: `/equipment/group/listPage?limit=${params.limit}&offset=${params.offset}`, + method: 'post', + data: params, }) } // 编辑 diff --git a/src/api/eqpt/device/info.ts b/src/api/eqpt/device/info.ts index a46fd4c..ca0ce73 100644 --- a/src/api/eqpt/device/info.ts +++ b/src/api/eqpt/device/info.ts @@ -161,3 +161,12 @@ data, }) } +// 获取检定去向 +export function defaultCheckDestination(data: object) { + return request({ + url: '/equipment/model/defaultCheckDestination', + method: 'get', + params: data, + }) +} + diff --git a/src/views/tested/device/info/components/edit.vue b/src/views/tested/device/info/components/edit.vue index d310206..6d4c8d8 100644 --- a/src/views/tested/device/info/components/edit.vue +++ b/src/views/tested/device/info/components/edit.vue @@ -11,8 +11,7 @@ import { getDeptTreeList } from '@/api/system/dept' import { toTreeList } from '@/utils/structure' import ApprovalDialog from '@/components/Approval/ApprovalDialog.vue' -import { cancelInfo, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' -// import { getUserList } from '@/api/system/user' +import { cancelInfo, defaultCheckDestination, deleteInfo, editInfo, getApprovalDetail, getInfoDetail, submitInfo } from '@/api/eqpt/device/info' import { getDictByCode } from '@/api/system/dict' import { SCHEDULE } from '@/utils/scheduleDict' import { uploadApi } from '@/api/system/notice' @@ -28,8 +27,6 @@ const userStore = useUserStore() const submitId = ref('未提交') // 提交id-保存接口获取 const ruleFormRef = ref() // from组件 -const ruleFormRef1 = ref() // from组件 -const ruleFormRef2 = ref() // from组件 const statusName = $route.query.statusName as string const title = ref('') const isFrist = ref(true) @@ -58,13 +55,13 @@ createUserId: '', // 创建人id createUserName: '', // 创建人名字 deptId: '', // 使用部门id - directorName: '', // 负责人 + directorId: '', // 负责人 equipmentId: '', // 设备id equipmentName: '', // 设备名称 equipmentNo: '', // 设备编号 equipmentType: $route.query.equipmentType as string, // 设备类型(1受检设备;2特种设备) id: '', // - installLocation: '', // 安装位置(选择) + installLocationId: '', // 安装位置(选择) installLocationExt: '', // 安装位置(自定义编写) instructionsFile: '', // 说明书(minio存储文件名)(多个用,拼接) level: '', // 等级(字典code) @@ -87,17 +84,19 @@ unitPrice: '', // 单价(万元) updateTime: '', // 更新时间 usageStatus: '', // 使用状态(字典code) - usePosition: '', // 使用岗位 + usePositionId: '', // 使用岗位 useSign: '', // 在用信息(字典code) helpInstruction: '', // 辅助字段 companyName: '', certificateList: [], - submission: '0', // 送检状态 + checkDestination: '', // 检定去向 + // submission: '0', // 送检状态 }) // 表单 // 是否展示检定机构等一行信息 +const submission = ref('0') const submissionShow = ref(false) // 送检状态 -watch(() => ruleForm.value.submission, (newVal) => { +watch(() => submission.value, (newVal) => { if (newVal === '0') { submissionShow.value = false } @@ -130,7 +129,7 @@ }) const radio = ref('基本信息') // 表单1验证规则 -const rules1 = ref({ +const rules = ref({ equipmentName: [{ required: true, message: '设备名称必填', trigger: ['blur', 'change'] }], equipmentNo: [{ required: true, message: '设备编号必填', trigger: ['blur', 'change'] }], usageStatus: [{ required: true, message: '使用状态必选', trigger: ['blur', 'change'] }], @@ -142,23 +141,15 @@ // unitPrice: [{ required: true, message: '设备单价必填', trigger: ['blur', 'change'] }], // purchaseDate: [{ required: true, message: '购进日期必选', trigger: ['blur', 'change'] }], model: [{ required: true, message: '规格型号必填', trigger: ['blur', 'change'] }], - helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], + // helpInstruction: [{ required: true, message: '辅助字段必选', trigger: ['blur', 'change'] }], qualityCondition: [{ required: true, message: '质量状况必填', trigger: ['blur', 'change'] }], deptId: [{ required: true, message: '使用部门必选', trigger: ['blur', 'change'] }], // category: [{ required: true, message: '设备分类必选', trigger: ['blur', 'change'] }], // checkCycle: [{ required: true, message: '检定周期必填', trigger: ['blur', 'change'] }], -}) -const rules2 = ref({ - usePosition: [{ required: true, message: '使用岗位必填', trigger: ['blur', 'change'] }], - directorName: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], + usePositionId: [{ required: true, message: '使用岗位必选', trigger: ['blur', 'change'] }], + directorId: [{ required: true, message: '负责人必填', trigger: ['blur', 'change'] }], useSign: [{ required: true, message: '在用信息必选', trigger: ['blur', 'change'] }], }) -const rules3 = ref({ - // checkOrganization: [{ required: true, message: '检定机构必填', trigger: ['blur', 'change'] }], - // meterIdentify: [{ required: true, message: '计量标识必填', trigger: ['blur', 'change'] }], - // checkDate: [{ required: true, message: '检定(校准)日期必选', trigger: ['blur', 'change'] }], - // certificateValid: [{ required: true, message: '证书有效期必选', trigger: ['blur', 'change'] }], -}) // 获取下拉框数据 const useStatusList = ref<{ id: string; value: string; name: string }[]>() // 使用状态 const levelList = ref<{ id: string; value: string; name: string }[]>() // 设备重要等级 @@ -262,6 +253,7 @@ } }) // 设备相关,填充数据 +const companyId = ref('') watch(() => ruleForm.value, (newVal) => { if ($route.path.includes('detail') || isFrist.value) { return @@ -277,6 +269,12 @@ ruleForm.value.checkCycle = data.checkCycle ruleForm.value.modelId = data.id ruleForm.value.instructionsFile = data.instructionsFile + // 检定去向 + defaultCheckDestination({ modelId: ruleForm.value.modelId, companyId: companyId.value }).then((res) => { + if (res.data) { + ruleForm.value.checkDestination = res.data + } + }) } } // if ((helpList.value.length === 0 || (helpList.value.length === 1)) && ruleForm.value.model && ruleForm.value.equipmentName) { @@ -295,15 +293,6 @@ deep: true, immediate: true, }) -// 加载组织机构树形下拉 -const deptTreeList = ref() -const fetchDeptTree = () => { - getDeptTreeList().then((res) => { - if (res.data) { // 将列表转树结构 - deptTreeList.value = toTreeList(res.data, '0', true) - } - }) -} // 负责人 const userList = ref([]) const getuser = () => { @@ -312,14 +301,10 @@ }) } getuser() -fetchDeptTree() // 弹窗初始化 const initDialog = () => { dialogStatus.value = $route.params.type as string || 'detail' ruleFormRef.value?.resetFields() - ruleFormRef1.value?.resetFields() - ruleFormRef2.value?.resetFields() - console.log(userStore) if ($route.params.type === 'create') { isFrist.value = false ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 @@ -330,28 +315,23 @@ testTask.value = [''] // 获取当前用户所在单位 getUserDept().then((res) => { - console.log(res.data, '用户所在单位') - // fullName ruleForm.value.companyId = res.data.id + companyId.value = res.data.id ruleForm.value.companyName = res.data.fullName }) } else { - // console.log(statusName, 'statusName') + const openSubmission = () => { + if (ruleForm.value.checkOrganization || ruleForm.value.checkDate || ruleForm.value.certificateValid || ruleForm.value.meterIdentify) { + submission.value = '1' + } + setTimeout(() => { + isFrist.value = false + }, 2000) + } if (statusName === '全部') { getInfoDetail({ equipmentId: $route.query.id as string }).then((res) => { ruleForm.value = res.data - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } if ($route.params.type === 'update') { ruleForm.value.approvalType = '2' ruleForm.value.approvalTypeName = '编辑设备' @@ -361,30 +341,14 @@ ruleForm.value.createUserName = userStore.name ruleForm.value.createTime = dayjs().format('YYYY-MM-DD HH:mm:ss') // 创建时间 } - setTimeout(() => { - isFrist.value = false - }, 2000) + openSubmission() }) } else { getApprovalDetail({ id: $route.query.id as string }).then((res) => { ruleForm.value = res.data - setTimeout(() => { - isFrist.value = false - }, 2000) - // if (ruleForm.value.testTask) { - // if (ruleForm.value.testTask.includes(',')) { - // testTask.value = ruleForm.value.testTask.split(',') - // } - // else { - // testTask.value = [ruleForm.value.testTask] - // } - // } - // else { - // testTask.value = [''] - // } + openSubmission() }) - // ruleForm.value = JSON.parse($route.query.row as string) } } } @@ -407,10 +371,9 @@ const certificateRef = ref() const disabledSave = ref(false) // 保存 -const saveForm = async (formEl: FormInstance | undefined, formEl1: FormInstance | undefined, formEl2: FormInstance | undefined) => { - console.log(formEl, formEl1) - if (!formEl || !formEl1 || !formEl2) { return } - Promise.all([formEl.validate(), formEl1.validate(), formEl2.validate()]).then(() => { +const saveForm = async (formEl: FormInstance | undefined) => { + if (!formEl) { return } + Promise.all([formEl.validate()]).then(() => { // 验证表格 if (tableRef.value.checkCertificateList() && technologyRef.value.checkCertificateList()) { ElMessageBox.confirm( @@ -425,9 +388,6 @@ disabledSave.value = true ruleForm.value.attachments = tableRef.value.list ruleForm.value.technicalTargetList = technologyRef.value.list - // if (!ruleForm.value.groupInfos.length) { - // ruleForm.value.groupInfos = null - // } if ($route.path.includes('speciallist')) { // 特种设备 ruleForm.value.certificateList = certificateRef.value.list @@ -447,6 +407,8 @@ else { ElMessage.success('保存成功') } + }).catch(() => { + disabledSave.value = false }) }) } @@ -484,23 +446,12 @@ } // 编辑 const editForm = () => { - // $route.params.type = dialogStatus.value - // mainPage.reload() - // $router.push({ - // path: `/dinfo/${dialogStatus.value}`, - // query: { - // row: $route.query.row, - // statusName, - // }, - // }) - // document.getElementById('reload-btn')?.click() $router.push({ // params: { ...$route.params, type: 'update' }, path: `/${$route.query.equipmentType === '1' ? 'dinfo' : 'speciallist'}/update`, query: { ...$route.query }, }) initDialog() - // document.getElementById('reload-btn')?.click() } // 删除 const delForm = () => { @@ -641,7 +592,7 @@ 提交 - + 保存 @@ -663,8 +614,11 @@
- - + + @@ -682,13 +636,8 @@ - - - - + + @@ -787,7 +736,7 @@ - + @@ -815,9 +764,18 @@ - + - + + + + + + + + + + @@ -828,7 +786,7 @@ - - - - + + @@ -883,24 +839,22 @@ - - - - + + - + - + - + - - + + {{ item.name }} {{ item.deptName }} @@ -937,9 +891,9 @@ - + - + @@ -990,8 +944,8 @@ - - + + diff --git a/src/views/tested/device/info/components/interface.ts b/src/views/tested/device/info/components/interface.ts index 0807e07..e024d75 100644 --- a/src/views/tested/device/info/components/interface.ts +++ b/src/views/tested/device/info/components/interface.ts @@ -4,7 +4,7 @@ certificateValidEnd: string deptIds: string usageStatus: string - usePosition: string // 使用岗位 + usePositionId: string // 使用岗位 equipmentNo: string equipmentName: string equipmentType: string @@ -26,7 +26,8 @@ sort: string orderBy: string manufacturer?: string - groupName?: string + groupId?: string + directorId?: string } // 设备信息对象 export interface IlistObjType { diff --git a/src/views/tested/device/info/components/list.vue b/src/views/tested/device/info/components/list.vue index e21ec50..091c2f6 100644 --- a/src/views/tested/device/info/components/list.vue +++ b/src/views/tested/device/info/components/list.vue @@ -2,8 +2,8 @@