|
@@ -39,7 +39,7 @@
|
|
|
<maintainer-dialog @changeMaintainer="changeMaintainer" ref="maintainer" :dialog="myDialog"></maintainer-dialog>
|
|
|
<insurer-dialog @changeInsurer="changeInsurer" ref="insurer" :dialog="myDialog"></insurer-dialog>
|
|
|
<pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"></pic-dialog>
|
|
|
- <system-type :infos="systemId" :graphyId="graphyId" :dialog="myDialog"></system-type>
|
|
|
+ <system-type :infos="systemId" :graphyId="graphyId" :dialog="myDialog" :type="'edit'" @change="changeSystemType"></system-type>
|
|
|
<details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -146,7 +146,6 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.category = this.$route.query;
|
|
|
- console.log(this.category)
|
|
|
this.getBelongs();
|
|
|
this.getTableHeader();
|
|
|
},
|
|
@@ -217,8 +216,7 @@ export default {
|
|
|
if (i == newData.length - 1) {
|
|
|
this.$router.push({
|
|
|
path: "/ledger/facility",
|
|
|
- query: {
|
|
|
- deviceId: this.category.deviceId }
|
|
|
+ query: { deviceId: this.category.deviceId }
|
|
|
});
|
|
|
session.remove("deviceAddData")
|
|
|
}
|
|
@@ -229,8 +227,7 @@ export default {
|
|
|
if (i == newData.length - 1) {
|
|
|
this.$router.push({
|
|
|
path: "/ledger/partsmanage",
|
|
|
- query: {
|
|
|
- deviceId: this.category.deviceId }
|
|
|
+ query: { deviceId: this.category.deviceId }
|
|
|
});
|
|
|
session.remove("deviceAddData")
|
|
|
}
|
|
@@ -439,6 +436,10 @@ export default {
|
|
|
changePics(keys) {
|
|
|
this.setDataToMain(keys, this.messKey, this.row);
|
|
|
},
|
|
|
+ //关联系统变更
|
|
|
+ changeSystemType(data) {
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "linkSystem", data)
|
|
|
+ },
|
|
|
//表格点击事件
|
|
|
handleTdClick(el, rowArr) {
|
|
|
//点击的是表头
|
|
@@ -493,7 +494,7 @@ export default {
|
|
|
}
|
|
|
//关联系统
|
|
|
if (val == "linkSystem") {
|
|
|
- // this.systemList = this.tableData[row.row].linkSystem || [];
|
|
|
+ this.systemList = this.tableData[row.row].linkSystem || [];
|
|
|
this.myDialog.systemType = true;
|
|
|
}
|
|
|
//品牌型号弹窗
|