diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/views/main/analyse/index.vue b/src/views/main/analyse/index.vue index 01c50b0..f141f6b 100644 --- a/src/views/main/analyse/index.vue +++ b/src/views/main/analyse/index.vue @@ -154,7 +154,7 @@ type: 'warning', }, ).then((res) => { - batchDeleteAnalyse({ ids: checkoutList.value }).then((res) => { + batchDeleteAnalyse({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { ElMessage.success('操作成功') fetchData(true) // 获取数据 }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/views/main/analyse/index.vue b/src/views/main/analyse/index.vue index 01c50b0..f141f6b 100644 --- a/src/views/main/analyse/index.vue +++ b/src/views/main/analyse/index.vue @@ -154,7 +154,7 @@ type: 'warning', }, ).then((res) => { - batchDeleteAnalyse({ ids: checkoutList.value }).then((res) => { + batchDeleteAnalyse({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { ElMessage.success('操作成功') fetchData(true) // 获取数据 }) diff --git a/src/views/main/database/detail.vue b/src/views/main/database/detail.vue index af3fd60..92af0d3 100644 --- a/src/views/main/database/detail.vue +++ b/src/views/main/database/detail.vue @@ -78,6 +78,7 @@ responsibleManagementEnterprise: [{ required: true, message: '责任管理企业必填', trigger: ['blur', 'change'] }], personInCharge: [{ required: true, message: '责任人必填', trigger: ['blur', 'change'] }], governanceSituation: [{ required: true, message: '治理情况必填', trigger: ['blur', 'change'] }], + serialNumber: [{ required: true, message: '序号必填', trigger: ['blur', 'change'] }], } // 前端校验规则 // 获取字典 const whetherItIsInTheCommunity = ref<{ name: string;value: string;id: string }[]>() // 是否在小区内 @@ -168,7 +169,7 @@ - + @@ -314,7 +315,11 @@ - + + + + + diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/views/main/analyse/index.vue b/src/views/main/analyse/index.vue index 01c50b0..f141f6b 100644 --- a/src/views/main/analyse/index.vue +++ b/src/views/main/analyse/index.vue @@ -154,7 +154,7 @@ type: 'warning', }, ).then((res) => { - batchDeleteAnalyse({ ids: checkoutList.value }).then((res) => { + batchDeleteAnalyse({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { ElMessage.success('操作成功') fetchData(true) // 获取数据 }) diff --git a/src/views/main/database/detail.vue b/src/views/main/database/detail.vue index af3fd60..92af0d3 100644 --- a/src/views/main/database/detail.vue +++ b/src/views/main/database/detail.vue @@ -78,6 +78,7 @@ responsibleManagementEnterprise: [{ required: true, message: '责任管理企业必填', trigger: ['blur', 'change'] }], personInCharge: [{ required: true, message: '责任人必填', trigger: ['blur', 'change'] }], governanceSituation: [{ required: true, message: '治理情况必填', trigger: ['blur', 'change'] }], + serialNumber: [{ required: true, message: '序号必填', trigger: ['blur', 'change'] }], } // 前端校验规则 // 获取字典 const whetherItIsInTheCommunity = ref<{ name: string;value: string;id: string }[]>() // 是否在小区内 @@ -168,7 +169,7 @@ - + @@ -314,7 +315,11 @@ - + + + + + diff --git a/src/views/main/database/index.vue b/src/views/main/database/index.vue index 1558e0a..e362dee 100644 --- a/src/views/main/database/index.vue +++ b/src/views/main/database/index.vue @@ -198,7 +198,7 @@ type: 'warning', }, ).then(() => { - batchDeleteOver({ ids: checkoutList.value }).then((res) => { + batchDeleteOver({ ids: checkoutList.value.map((item: any) => item.serialNumber) }).then((res) => { ElMessage.success('操作成功') fetchData(true) }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/views/main/analyse/index.vue b/src/views/main/analyse/index.vue index 01c50b0..f141f6b 100644 --- a/src/views/main/analyse/index.vue +++ b/src/views/main/analyse/index.vue @@ -154,7 +154,7 @@ type: 'warning', }, ).then((res) => { - batchDeleteAnalyse({ ids: checkoutList.value }).then((res) => { + batchDeleteAnalyse({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { ElMessage.success('操作成功') fetchData(true) // 获取数据 }) diff --git a/src/views/main/database/detail.vue b/src/views/main/database/detail.vue index af3fd60..92af0d3 100644 --- a/src/views/main/database/detail.vue +++ b/src/views/main/database/detail.vue @@ -78,6 +78,7 @@ responsibleManagementEnterprise: [{ required: true, message: '责任管理企业必填', trigger: ['blur', 'change'] }], personInCharge: [{ required: true, message: '责任人必填', trigger: ['blur', 'change'] }], governanceSituation: [{ required: true, message: '治理情况必填', trigger: ['blur', 'change'] }], + serialNumber: [{ required: true, message: '序号必填', trigger: ['blur', 'change'] }], } // 前端校验规则 // 获取字典 const whetherItIsInTheCommunity = ref<{ name: string;value: string;id: string }[]>() // 是否在小区内 @@ -168,7 +169,7 @@ - + @@ -314,7 +315,11 @@ - + + + + + diff --git a/src/views/main/database/index.vue b/src/views/main/database/index.vue index 1558e0a..e362dee 100644 --- a/src/views/main/database/index.vue +++ b/src/views/main/database/index.vue @@ -198,7 +198,7 @@ type: 'warning', }, ).then(() => { - batchDeleteOver({ ids: checkoutList.value }).then((res) => { + batchDeleteOver({ ids: checkoutList.value.map((item: any) => item.serialNumber) }).then((res) => { ElMessage.success('操作成功') fetchData(true) }) diff --git a/src/views/main/recognition/index.vue b/src/views/main/recognition/index.vue index 6b44bb1..bff5706 100644 --- a/src/views/main/recognition/index.vue +++ b/src/views/main/recognition/index.vue @@ -189,8 +189,8 @@ type: 'warning', }, ).then(() => { - batchDeleteIdentify({ ids: checkoutList.value }).then((res) => { - ElMessage.warning('操作成功') + batchDeleteIdentify({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { + ElMessage.success('操作成功') fetchData(true) // 获取数据 }) }) diff --git a/src/api/page/analyse.ts b/src/api/page/analyse.ts index 639fee1..fa70dc7 100644 --- a/src/api/page/analyse.ts +++ b/src/api/page/analyse.ts @@ -13,7 +13,7 @@ // 批量删除 export function batchDeleteAnalyse(params: any) { return request({ - url: '/system/analysisCoupling/delete', + url: '/system/analysisCoupling/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/database.ts b/src/api/page/database.ts index 7715aa5..a851aa3 100644 --- a/src/api/page/database.ts +++ b/src/api/page/database.ts @@ -22,7 +22,7 @@ // 删除 export function batchDeleteOver(params: any) { return request({ - url: '/system/busPipeOverstock/delete', + url: '/system/busPipeOverstock/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/recognition.ts b/src/api/page/recognition.ts index 2a1f1f2..07d3434 100644 --- a/src/api/page/recognition.ts +++ b/src/api/page/recognition.ts @@ -21,7 +21,7 @@ // 删除 export function batchDeleteIdentify(params: any) { return request({ - url: '/system/analysisRecognition/delete', + url: '/system/analysisRecognition/batchDelete', method: 'post', data: params, }) diff --git a/src/api/page/undergroundCavity.TS b/src/api/page/undergroundCavity.TS index afd0c20..2f7685c 100644 --- a/src/api/page/undergroundCavity.TS +++ b/src/api/page/undergroundCavity.TS @@ -46,7 +46,7 @@ // 删除 export function batchDeleteHole(params: any) { return request({ - url: '/system/busHole/delete', + url: '/system/busHole/batchDelete', method: 'post', data: params, }) diff --git a/src/views/main/analyse/index.vue b/src/views/main/analyse/index.vue index 01c50b0..f141f6b 100644 --- a/src/views/main/analyse/index.vue +++ b/src/views/main/analyse/index.vue @@ -154,7 +154,7 @@ type: 'warning', }, ).then((res) => { - batchDeleteAnalyse({ ids: checkoutList.value }).then((res) => { + batchDeleteAnalyse({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { ElMessage.success('操作成功') fetchData(true) // 获取数据 }) diff --git a/src/views/main/database/detail.vue b/src/views/main/database/detail.vue index af3fd60..92af0d3 100644 --- a/src/views/main/database/detail.vue +++ b/src/views/main/database/detail.vue @@ -78,6 +78,7 @@ responsibleManagementEnterprise: [{ required: true, message: '责任管理企业必填', trigger: ['blur', 'change'] }], personInCharge: [{ required: true, message: '责任人必填', trigger: ['blur', 'change'] }], governanceSituation: [{ required: true, message: '治理情况必填', trigger: ['blur', 'change'] }], + serialNumber: [{ required: true, message: '序号必填', trigger: ['blur', 'change'] }], } // 前端校验规则 // 获取字典 const whetherItIsInTheCommunity = ref<{ name: string;value: string;id: string }[]>() // 是否在小区内 @@ -168,7 +169,7 @@ - + @@ -314,7 +315,11 @@ - + + + + + diff --git a/src/views/main/database/index.vue b/src/views/main/database/index.vue index 1558e0a..e362dee 100644 --- a/src/views/main/database/index.vue +++ b/src/views/main/database/index.vue @@ -198,7 +198,7 @@ type: 'warning', }, ).then(() => { - batchDeleteOver({ ids: checkoutList.value }).then((res) => { + batchDeleteOver({ ids: checkoutList.value.map((item: any) => item.serialNumber) }).then((res) => { ElMessage.success('操作成功') fetchData(true) }) diff --git a/src/views/main/recognition/index.vue b/src/views/main/recognition/index.vue index 6b44bb1..bff5706 100644 --- a/src/views/main/recognition/index.vue +++ b/src/views/main/recognition/index.vue @@ -189,8 +189,8 @@ type: 'warning', }, ).then(() => { - batchDeleteIdentify({ ids: checkoutList.value }).then((res) => { - ElMessage.warning('操作成功') + batchDeleteIdentify({ ids: checkoutList.value.map((item: any) => item.id) }).then((res) => { + ElMessage.success('操作成功') fetchData(true) // 获取数据 }) }) diff --git a/vite.config.ts b/vite.config.ts index 9582ff1..01aa649 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,6 +24,7 @@ base: './', // 开发服务器选项 https://cn.vitejs.dev/config/#server-options server: { + host: '0.0.0.0', // 设置ip分享 open: true, port: 6412, proxy: {