资产属性修改

This commit is contained in:
bonus 2025-11-14 10:32:14 +08:00
parent 6604df67e4
commit ac94e404f7
1 changed files with 3 additions and 1 deletions

View File

@ -378,7 +378,7 @@
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="资产属性" prop="assetsId"> <el-form-item label="资产属性" prop="assetsId">
<el-select v-model="form.assetsId" placeholder="请选择资产属性" clearable style="width: 100%;" disabled> <el-select v-model="form.assetsId" placeholder="请选择资产属性" clearable style="width: 100%;" >
<el-option <el-option
v-for="dict in ZichanTypeList" v-for="dict in ZichanTypeList"
:key="dict.value" :key="dict.value"
@ -1041,6 +1041,7 @@ export default {
const maId = row.maId const maId = row.maId
getDeviceDetail(maId).then((response) => { getDeviceDetail(maId).then((response) => {
this.form = response.data this.form = response.data
this.form.assetsId = this.form.assetsId ? Number(this.form.assetsId) : ''
if (response.data.keeperId) { if (response.data.keeperId) {
const keeperIds = response.data.keeperId.split(',') const keeperIds = response.data.keeperId.split(',')
// keeperIds KeeperOptions keeper // keeperIds KeeperOptions keeper
@ -1091,6 +1092,7 @@ export default {
const maId = row.maId const maId = row.maId
getDeviceDetail(maId).then((response) => { getDeviceDetail(maId).then((response) => {
this.form = response.data this.form = response.data
this.form.assetsId = this.form.assetsId ? Number(this.form.assetsId) : ''
if (response.data.keeperId) { if (response.data.keeperId) {
const keeperIds = response.data.keeperId.split(',') const keeperIds = response.data.keeperId.split(',')
// keeperIds KeeperOptions keeper // keeperIds KeeperOptions keeper