|
@@ -47,7 +47,7 @@
|
|
|
<el-table-column label="操作" align="center" width="160" sortable>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="small" type="primary" @click="openEnable(scope.$index)" :disabled="scope.row.isUse == 1">启用</el-button>
|
|
|
- <el-button size="small" @click="showEdit(scope.$index, scope.row)">修改</el-button>
|
|
|
+ <el-button size="small" @click="showEdit(scope.$index, scope.row, scope.row.isUse == 1)">修改</el-button>
|
|
|
<!-- <el-button type="danger" size="small">删除</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -143,6 +143,7 @@
|
|
|
clearable
|
|
|
placeholder="请选择所属公司"
|
|
|
style="width: 202px"
|
|
|
+ :disabled="newAllocation.usage"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in companies"
|
|
@@ -207,7 +208,8 @@
|
|
|
equipmentName: "", //设备名称
|
|
|
id: "", //设备id
|
|
|
belongCompanyId: "", //所属公司ID
|
|
|
- agent: "" //代理商
|
|
|
+ agent: "", //代理商
|
|
|
+ usage: true //是否可以修改公司
|
|
|
},
|
|
|
filters: {
|
|
|
keyName: "",
|
|
@@ -370,14 +372,15 @@
|
|
|
},
|
|
|
|
|
|
//修改界面
|
|
|
- showEdit(index, row) {
|
|
|
+ showEdit(index, row, usageBoolean) {
|
|
|
this.editFormVisible = true;
|
|
|
this.newAllocation = {
|
|
|
id: row.id,
|
|
|
useLife: row.useLife,
|
|
|
equipmentNo: row.equipmentNo,
|
|
|
belongCompanyId: row.belongCompanyId,
|
|
|
- agent: row.agent
|
|
|
+ agent: row.agent,
|
|
|
+ usage: usageBoolean
|
|
|
};
|
|
|
},
|
|
|
|