Merge branch 'dev-sy'

This commit is contained in:
BianLzhaoMin 2025-04-16 18:22:43 +08:00
commit 10c5b1fb39
3 changed files with 19 additions and 2 deletions

View File

@ -19,5 +19,5 @@ export const editConstructionSiteDataAPI = (data) => {
}
// 删除接口
export const deleteConstructionSiteDataAPI = (data) => {
return request.post('/smart-site/constInfo/delData', data)
return request.post('/smart-site/constInfo/deleteData', data)
}

View File

@ -1,6 +1,6 @@
export const formLabel = [
{ f_label: '搜索关键词', f_model: 'keyWord', f_type: 'ipt', isShow: false },
{ f_label: '设备类型', f_model: 'deviceType', f_type: 'sel', isShow: false },
{ f_label: '设备类型', f_model: 'typeId', f_type: 'sel', isShow: false, f_selList: [] },
]
export const columnsList = [
{ t_props: 'name', t_label: '施工信息' },

View File

@ -54,6 +54,7 @@ import {
getConstructionSiteListAPI,
deleteConstructionSiteDataAPI,
} from '@/api/perception-devices/construction-site.js'
import { getDeviceTypeAPI } from '@/api/common.js'
export default {
components: {
TableModel,
@ -135,6 +136,22 @@ export default {
}
this.dialogConfig.outerVisible = false
},
//
async getDeviceTypeData() {
const { data: res } = await getDeviceTypeAPI()
const typeList = res.map((e) => {
return {
label: e.typeName,
value: e.id,
}
})
this.formLabel[1].f_selList = typeList
},
},
created() {
this.getDeviceTypeData()
},
}
</script>