修复编辑装备顶级分类的bug

This commit is contained in:
wangwenhua 2025-09-16 09:35:11 +08:00
parent ef40b81a50
commit c4251204af

View File

@ -280,6 +280,26 @@ const listGridInfo = {
{ title: '所属国', dataIndex: 'operatorCountry' }, { title: '所属国', dataIndex: 'operatorCountry' },
{ dataIndex: 'action' }, { dataIndex: 'action' },
], ],
hospital: [
{ title: '#DBID', dataIndex: 'id', width: 80 },
{ title: '名称', dataIndex: 'resourceName', width: 200, ellipsis: true },
{ title: '经度', dataIndex: 'lng' },
{ title: '纬度', dataIndex: 'lat' },
{ title: '医生数量', dataIndex: 'doctorNum' },
{ title: '护士数量', dataIndex: 'nurseNum' },
{ title: '病床', dataIndex: 'hospitalBed' },
{ dataIndex: 'action' },
],
warehouse: [
{ title: '#DBID', dataIndex: 'id', width: 80 },
{ title: '名称', dataIndex: 'resourceName', width: 200, ellipsis: true },
{ title: '经度', dataIndex: 'lng' },
{ title: '纬度', dataIndex: 'lat' },
{ title: '药材数量', dataIndex: 'medicalNum' },
{ title: '油料', dataIndex: 'fuelNum' },
{ title: '弹药', dataIndex: 'ammunitionNum' },
{ dataIndex: 'action' },
],
} }
export default { export default {
@ -313,6 +333,10 @@ export default {
valueKey: 'key', valueKey: 'key',
}, },
}, },
{
label: '装备分类编码',
prop: 'entityType',
},
{ {
label: '装备分类名称', label: '装备分类名称',
prop: 'entityName', prop: 'entityName',
@ -446,6 +470,7 @@ export default {
created() { created() {
this.getZzTree() this.getZzTree()
for (const key in this.dicData) { for (const key in this.dicData) {
console.log('=this.dicData=='+key)
this.$http({ this.$http({
url: '/dicdata/' + key + '/getList', url: '/dicdata/' + key + '/getList',
method: 'get', method: 'get',
@ -484,7 +509,7 @@ export default {
handleOpenEditZbflModal(data) { handleOpenEditZbflModal(data) {
this.zbflModal.title = '编辑装备分类' this.zbflModal.title = '编辑装备分类'
this.zbflModal.mode = 'edit' this.zbflModal.mode = 'edit'
this.zbflModal.formData = { id: data.id, parentId: data.parentId, entityName: data.entityName } this.zbflModal.formData = { id: data.id, parentId: data.parentId, entityName: data.entityName,entityType: data.entityType }
this.zbflModal.visible = true this.zbflModal.visible = true
}, },
handleSubmitZbfl(formData) { handleSubmitZbfl(formData) {