资产属性修改
This commit is contained in:
parent
6604df67e4
commit
ac94e404f7
|
|
@ -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 对象
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue