|
|
@@ -309,7 +309,7 @@
|
|
|
</ibps-crud>
|
|
|
</template>
|
|
|
</ibps-container>
|
|
|
- <DeviceDialog v-if="deviceDialogShow" :params="params" :state-list="stateList" @close="close" />
|
|
|
+ <DeviceDialog v-if="deviceDialogShow" :params="params" :state-list="stateList" :tab-list="tabList" :hide-sys-device-no="hideSysDeviceNo" @close="close" />
|
|
|
<input id="" ref="file1" type="file" name="" accept=".xlsx,.xls" @change="handleUploadChange1">
|
|
|
<input id="" ref="file2" type="file" name="" accept=".xlsx,.xls" @change="handleUploadChange2">
|
|
|
|
|
|
@@ -621,15 +621,30 @@ export default {
|
|
|
'年保养': this.generateRule(12, `每年第`, `个月`),
|
|
|
'按需保养': ['/']
|
|
|
},
|
|
|
- stateList: { '停用': '停用', '报废': '报废', '合格': '合格' }
|
|
|
+ stateList: { '停用': '停用', '报废': '报废', '合格': '合格' },
|
|
|
+ hideSysDeviceNo: false,
|
|
|
+ tabList: {}
|
|
|
}
|
|
|
},
|
|
|
async mounted () {
|
|
|
- const stateList = await getSetting('device', 'stateList')
|
|
|
+ const { stateList, hideSysDeviceNo, tabList } = await getSetting('device')
|
|
|
if (stateList) {
|
|
|
- console.debug(stateList)
|
|
|
+ console.debug('stateList', stateList)
|
|
|
this.stateList = stateList
|
|
|
}
|
|
|
+ if (hideSysDeviceNo) {
|
|
|
+ this.hideSysDeviceNo = hideSysDeviceNo
|
|
|
+ // 列表隐藏设备编号 将原设备编号改为设备编号
|
|
|
+ this.listConfig.columns = this.listConfig.columns.filter(i => i.prop !== 'sheBeiShiBieH')
|
|
|
+ this.listConfig.columns.find(i => i.prop === 'yuanSheBeiBian').label = '设备编号'
|
|
|
+ // 查询条件隐藏设备编号 将原设备编号改为设备编号
|
|
|
+ this.listConfig.searchForm.forms = this.listConfig.searchForm.forms.filter(i => i.slotName !== 'nowNumber')
|
|
|
+ this.listConfig.searchForm.forms.find(i => i.slotName === 'preNumber').label = '设备编号'
|
|
|
+ }
|
|
|
+ if (tabList) {
|
|
|
+ console.debug('tabList', tabList)
|
|
|
+ this.tabList = tabList
|
|
|
+ }
|
|
|
this.getDatas()
|
|
|
},
|
|
|
methods: {
|