From 3a8223b71d18205d40b894fd0b4c0fa1ca773e86 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 13 十一月 2023 10:44:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/mdc-test' into mdc-test --- src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue | 95 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 66 insertions(+), 29 deletions(-) diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue index dc99816..5346318 100644 --- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue +++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairList.vue @@ -1,12 +1,12 @@ <template> - <a-card :bordered="false" class="device_list"> + <div :bordered="false" class="device_list"> <!-- 鏌ヨ鍖哄煙 --> <div style="width: 100%; background-color: #fff" class="table-page-search-wrapper"> <a-form layout="inline" @keyup.enter.native="searchQuery"> <a-row :gutter="24"> <a-col :md="9" :sm="9"> <a-form-item label="鏃堕棿"> - <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD HH:mm:ss" showTime/> + <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD HH:mm:ss"/> </a-form-item> </a-col> <a-col :md="4" :sm="4"> @@ -26,17 +26,18 @@ <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button> </a-col> <a-col :lg="2" :md="3" :sm="3" :xs="3"> - <a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button> + <!--<a-button type="primary" @click="exportExcel" icon="download">瀵煎嚭</a-button>--> + <a-button type="primary" @click="handleExportXls('缁翠慨浼戠彮绠$悊')" icon="download">瀵煎嚭</a-button> </a-col> </a-row> </a-form> </div> <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <div class="table-operator" style="display: inline;"> - <a-button v-has="'user.addrequip'" @click="handleAdd" type="primary" icon="plus">缁翠慨鏂板 + <a-button @click="handleAdd" type="primary" icon="plus">鏂板 </a-button> - <a-button v-has="'user.add'" @click="handleAddXIU" type="primary" icon="plus">浼戠彮鏂板 - </a-button> + <!--<a-button v-has="'user.add'" @click="handleAddXIU" type="primary" icon="plus">浼戠彮鏂板--> + <!--</a-button>--> </div> <!-- table鍖哄煙-begin --> @@ -63,12 +64,11 @@ </a-table> </div> <!-- table鍖哄煙-end --> - <device-repair-model ref="modalForm" @ok="modalFormOk"></device-repair-model> - <device-repair-model-add ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add> + <device-repair-model ref="modalForm" :equipmentId="queryParams.equipmentId" @ok="modalFormOk"></device-repair-model> + <!--<device-repair-model-add ref="modalFormadd" @ok="modalFormOk"></device-repair-model-add>--> <device-repair-model-edit ref="modalFormedit" @ok="modalFormOk"></device-repair-model-edit> - <!--<repair-model ref="repairModelFrom" @ok="modalFormOk"></repair-model>--> - - </a-card> + <!--<repair-model ref="repairModelFrom" @ok="modalFormOk">0</repair-model>--> + </div> </template> <script> @@ -163,6 +163,7 @@ list: '/mdc/mdcEquipmentRepair/pageList', deleteBatch: '/mdc/mdcEquipmentRepair/delete', getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid', + exportXlsUrl:'/mdc/mdcEquipmentRepair/exportXls' } } }, @@ -180,10 +181,13 @@ this.queryParamEquip.equipmentId = val.equipmentId } else { this.queryParamEquip.parentId = val.key - this.queryParams.equipmentId = '' + this.queryParams.equipmentId ='' } - this.searchQuery() + }else{ + this.queryParams.equipmentId='' + this.queryParamEquip.parentId = "" } + this.searchQuery() }, nodePeople(val){ if (JSON.stringify(val) != '{}') { @@ -279,7 +283,11 @@ } //update-end---author:zhangyafei Date:20201118 for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------ }else{ - this.$message.warning(res.message) + // this.$message.warning(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { this.loading = false @@ -324,7 +332,11 @@ this.ipagination.total = 0; } }else{ - this.$message.warning(res.message) + // this.$message.warning(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { this.loading = false @@ -362,7 +374,11 @@ this.ipagination.total = 0; } }else{ - this.$message.warning(res.message) + // this.$message.warning(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { this.loading = false @@ -372,10 +388,8 @@ if(this.queryParams.typeTree == "1"){ this.queryParams.parentId = this.queryParamEquip.parentId // this.queryParams.equipmentId = this.queryParamEquip.equipmentId - }else{ this.queryParams.parentId = this.queryParamPeople.parentId - // this.queryParams.equipmentId = "" } this.dataSource = []; @@ -404,7 +418,11 @@ this.ipagination.total = 0; } }else{ - this.$message.warning(res.message) + // this.$message.warning(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { this.loading = false @@ -438,7 +456,11 @@ } //update-end---author:zhangyafei Date:20201118 for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------ }else{ - this.$message.warning(res.message) + // this.$message.warning(res.message) + this.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { this.loading = false @@ -460,23 +482,34 @@ if (res.success) { //閲嶆柊璁$畻鍒嗛〉闂 that.reCalculatePage(1) - that.$message.success(res.message); + // that.$message.success(res.message); + that.$notification.success({ + message:'娑堟伅', + description:res.message + }); that.searchQuery(); } else { - that.$message.warning(res.message); + // that.$message.warning(res.message); + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }); }, + /** + * 鎵撳紑鏂板缁翠慨鎴栦紤鐝脊绐� + */ handleAdd() { this.$refs.modalForm.add(this.node) this.$refs.modalForm.title = '鏂板' this.$refs.modalForm.disableSubmit = false }, - handleAddXIU() { - this.$refs.modalFormadd.add() - this.$refs.modalFormadd.title = '鏂板' - this.$refs.modalFormadd.disableSubmit = false - }, + // handleAddXIU() { + // this.$refs.modalFormadd.add() + // this.$refs.modalFormadd.title = '鏂板' + // this.$refs.modalFormadd.disableSubmit = false + // }, pQuery(parentId) { this.queryParam.parentId = parentId[0] if(this.selectedRowKeys.length >= 1) { @@ -497,7 +530,11 @@ _this.equipment = res.result _this.searchQuery() } else { - _this.$message.warning('璇烽厤缃澶囷紒') + // _this.$message.warning('璇烽厤缃澶囷紒') + _this.$notification.warning({ + message:'娑堟伅', + description:"璇烽厤缃澶�!" + }); } } }) @@ -506,7 +543,7 @@ $("#DeviceList").table2excel({ exclude: ".noExl", name: "Excel Document Name", - filename: "璁惧缁翠慨璇︽儏", + filename: "缁翠慨浼戠彮绠$悊", exclude_img: true, fileext: ".xls", exclude_links: true, -- Gitblit v1.9.3