Merge branch 'dev-sy'
This commit is contained in:
commit
10c5b1fb39
|
|
@ -19,5 +19,5 @@ export const editConstructionSiteDataAPI = (data) => {
|
||||||
}
|
}
|
||||||
// 删除接口
|
// 删除接口
|
||||||
export const deleteConstructionSiteDataAPI = (data) => {
|
export const deleteConstructionSiteDataAPI = (data) => {
|
||||||
return request.post('/smart-site/constInfo/delData', data)
|
return request.post('/smart-site/constInfo/deleteData', data)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
export const formLabel = [
|
export const formLabel = [
|
||||||
{ f_label: '搜索关键词', f_model: 'keyWord', f_type: 'ipt', isShow: false },
|
{ 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 = [
|
export const columnsList = [
|
||||||
{ t_props: 'name', t_label: '施工信息' },
|
{ t_props: 'name', t_label: '施工信息' },
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ import {
|
||||||
getConstructionSiteListAPI,
|
getConstructionSiteListAPI,
|
||||||
deleteConstructionSiteDataAPI,
|
deleteConstructionSiteDataAPI,
|
||||||
} from '@/api/perception-devices/construction-site.js'
|
} from '@/api/perception-devices/construction-site.js'
|
||||||
|
import { getDeviceTypeAPI } from '@/api/common.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
TableModel,
|
TableModel,
|
||||||
|
|
@ -135,6 +136,22 @@ export default {
|
||||||
}
|
}
|
||||||
this.dialogConfig.outerVisible = false
|
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>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue