diff --git a/src/views/equiptManagement/equipmentLedger/index.vue b/src/views/equiptManagement/equipmentLedger/index.vue index d69b8af..bb4a7ce 100644 --- a/src/views/equiptManagement/equipmentLedger/index.vue +++ b/src/views/equiptManagement/equipmentLedger/index.vue @@ -128,6 +128,7 @@ export default { search: true, sortable: true, overHidden: true, + width: 100, rules: [ { required: true, @@ -157,6 +158,7 @@ export default { search: true, addDisplay:false, editDisplay:false, + width: 100, // rules: [ // { // required: true, @@ -200,6 +202,7 @@ export default { value: 3, }, ], + width: 100, rules: [ { required: true, @@ -227,6 +230,35 @@ export default { prop: "macSpec", sortable: true, search: false, + width: 100, + }, + { + label: "作业中心", + prop: "workCenterName", + sortable: true, + search: false, + width: 150, + display:false + // type: "select", + // dicUrl:"/api/blade-desk/BA/WorkCenter/listForSelect", + // props:{ + // label:"wcName", + // value:"id" + // } + }, + { + label: "作业中心", + prop: "workCenterId", + sortable: true, + search: false, + width: 150, + hide: true, + type: "select", + dicUrl:"/api/blade-desk/BA/WorkCenter/listForSelect", + props:{ + label:"wcName", + value:"id" + } }, { label: "设备IP", @@ -235,6 +267,7 @@ export default { search: false, addDisplay:false, editDisplay:false, + width: 150, rules: [ { required: true, @@ -250,6 +283,7 @@ export default { span: 24, search: true, type: "select", + width: 100, dicData: [ { label: "是", @@ -270,6 +304,7 @@ export default { type: "textarea", maxlength: 100, showWordLimit: true, + width: 100, minRows: 3, }, { @@ -351,7 +386,8 @@ export default { typeName: row.typeName, used: row.used, virtualMac: row.virtualMac ? 1 : 0, - attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '' + attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '', + workCenterId:row.workCenterId } addDevice(params).then(res => { if(res.data.code == 200){ @@ -375,7 +411,8 @@ export default { typeName: row.typeName, used: row.used, virtualMac: row.virtualMac ? 1 : 0, - attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '' + attachLink:row.attachLink.length > 0 ? row.attachLink[0] : '', + workCenterId:row.workCenterId } console.log('link----------',row.attachLink && row.attachLink != '' && typeof(row.attachLink) == String ? row.attachLink : row.attachLink.length > 0 ? row.attachLink[0] : '') console.log('row------------',row) @@ -438,9 +475,12 @@ export default { this.form = res.data.data this.form.attachLink = [this.form.attachLink] this.form.virtualMac = this.form.virtualMac == 1 ? true : false + this.form.workCenterId = this.form.workCenterId == '-1' ? '' : this.form.workCenterId + '' + done(); }) + }else{ + done(); } - done(); }, uploadAfter(res, done, loading, column){ console.log('res-----------------',res) diff --git a/src/views/equiptManagement/measurementRecords/index.vue b/src/views/equiptManagement/measurementRecords/index.vue index 0c4d1e5..62d03d2 100644 --- a/src/views/equiptManagement/measurementRecords/index.vue +++ b/src/views/equiptManagement/measurementRecords/index.vue @@ -9,7 +9,7 @@ + + +