From ae5576e899261ab2e1613b835dc0dcba2cc6e688 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期二, 02 一月 2024 16:05:47 +0800 Subject: [PATCH] 提交 --- src/views/eam/MalfunctionRepair.vue | 134 ++++++++++++++++++++++++++++++++++---------- 1 files changed, 103 insertions(+), 31 deletions(-) diff --git a/src/views/eam/MalfunctionRepair.vue b/src/views/eam/MalfunctionRepair.vue index 4358a35..8bab567 100644 --- a/src/views/eam/MalfunctionRepair.vue +++ b/src/views/eam/MalfunctionRepair.vue @@ -8,14 +8,17 @@ <a-form layout="inline" @keyup.enter.native="searchQuery" - > <a-row :gutter="24" style="margin-bottom: 1%;"> + > <a-row + :gutter="24" + style="margin-bottom: 1%;" + > <a-col :md="24" :sm="6" > - <a-form-item label="缁熶竴缂栧彿缇�"> + <a-form-item label="缁熶竴缂栧彿缇�"> <a-textarea - placeholder="璇疯緭鍏ユ墍鏈夌粺涓�缂栫爜,椤荤敤鈥�,鈥濋殧寮�,鍚﹀垯鍙兘鏌ヨ鍑洪敊璇俊鎭�" + placeholder="璇疯緭鍏ユ墍鏈夌粺涓�缂栫爜,椤荤敤鎹㈣闅斿紑,鍚﹀垯鍙兘鏌ヨ鍑洪敊璇俊鎭�" v-model="queryParam.nums" :auto-size="{ minRows: 2, maxRows:2 }" ></a-textarea> @@ -174,26 +177,48 @@ ></a-input> </a-form-item> </a-col> + <a-col + :md="6" + :sm="6" + > + <a-form-item + label="鏄惁鍏抽敭璁惧" + > + <j-dict-select-tag + allow-clear + placeholder="璇烽�夋嫨鏄惁鍏抽敭璁惧" + :triggerChange="true" + dictCode="specific_equipment" + v-model="queryParam.specificEquipment" + /> + </a-form-item> + </a-col> </a-row> </a-form> </div> <div class="table-operator"> - <a-button - type="primary" - @click="searchQuery" - icon="search" - >鏌ヨ</a-button> - <a-button - type="primary" - @click="searchReset" - icon="reload" - style="margin-left: 8px" - >閲嶇疆</a-button> + <a-button + type="primary" + @click="searchQuery" + icon="search" + >鏌ヨ</a-button> + <a-button + type="primary" + @click="searchReset" + icon="reload" + style="margin-left: 8px" + >閲嶇疆</a-button> <a-button @click="handleAdd" type="primary" icon="plus" + v-has="'report:add&edit'" >鏂板</a-button> + <a-button + type="primary" + icon="download" + @click="handleExportXls('鏁呴殰鎶ヤ慨')" + >瀵煎嚭</a-button> </div> <div> @@ -211,6 +236,13 @@ @change="handleTableChange" :customRow="clickThenSelect" > + <span + slot="specificEquipment" + slot-scope="text" + > + <a-icon type="check" style="color: chartreuse;" v-if="text==='0'" /> + <a-icon type="close" v-else style="color:red;"/> + </span> <span slot="action" slot-scope="text, record" @@ -218,6 +250,7 @@ <a :disabled=" record.status !== '4'" @click="handleAccept(record)" + v-has="'report:accept'" >楠屾敹</a> <!-- <a-popconfirm v-if="record.status == '1' || record.status == '4'" @@ -277,8 +310,14 @@ </a-menu> </a-dropdown> --> </span> - <span slot="jell" slot-scope="text"> - <j-ellipsis :value="text" :length="10" /> + <span + slot="jell" + slot-scope="text" + > + <j-ellipsis + :value="text" + :length="10" + /> </span> </a-table> @@ -296,7 +335,10 @@ class="table-operator" style="margin-top: 0px" > - <FaultDescriptionList ref="FaultDescriptionList" @ok="modalFormOk"/> + <FaultDescriptionList + ref="FaultDescriptionList" + @ok="modalFormOk" + /> </div> </a-tab-pane> @@ -312,8 +354,8 @@ @cancel='approvalModalFormOk' ></approvel-modal> <accept-model - ref="acceptModel" - @ok="modalFormOk" + ref="acceptModel" + @ok="modalFormOk" ></accept-model> </a-card> </template> @@ -343,8 +385,8 @@ }, data() { return { - treeData:[], - faultTime:[], + treeData: [], + faultTime: [], description: '鏁呴殰鎶ヤ慨', queryParam: { delflag: 0 }, selectedRowKeys: [], @@ -361,14 +403,44 @@ } }, { + title: '鍗曟嵁鍙�', + align: "center", + dataIndex: 'num' + }, + { title: '鐘舵��', align: "center", dataIndex: 'statusName', }, { - title: '鍗曟嵁鍙�', + title: '绫诲瀷', align: "center", - dataIndex: 'num' + dataIndex: 'type', + customRender: (text) => { + if (text == '1') { + return "琚姩鎶ヤ慨"; + } else if (text == '2') { + return "涓诲姩鎶ヤ慨"; + } + }, + }, + { + title: '鏉ユ簮', + align: "center", + dataIndex: 'source', + customRender: (text) => { + if (text == '1') { + return "鎵嬪姩鍒涘缓"; + } else if (text == '2') { + return "鐐规鎶ヤ慨"; + } + }, + }, + { + title: '鍏抽敭璁惧', + align: "center", + dataIndex: 'specificEquipment', + scopedSlots: { customRender: 'specificEquipment' } }, { title: '缁熶竴缂栧彿', @@ -404,8 +476,8 @@ title: '鏁呴殰鎻忚堪', align: "center", dataIndex: 'faultDescription', - scopedSlots: { - customRender: 'faultDescription' + scopedSlots: { + customRender: 'faultDescription' } }, @@ -444,8 +516,8 @@ title: '楠屾敹鎰忚', align: "center", dataIndex: 'errUda5', - scopedSlots: { - customRender: 'jell' + scopedSlots: { + customRender: 'jell' } }, { @@ -486,7 +558,7 @@ } }, created() { - this.initOptions(); + this.initOptions(); }, computed: { importExcelUrl: function () { @@ -642,12 +714,12 @@ } }) }, - timeChange(){ + timeChange() { this.queryParam.faultStartTime = moment(this.faultTime[0]).format("YYYY-MM-DD HH:mm:ss") this.queryParam.faultEndTime = moment(this.faultTime[1]).format("YYYY-MM-DD HH:mm:ss") }, - handleAccept(record){ - this.$refs.acceptModel.title="楠屾敹" + handleAccept(record) { + this.$refs.acceptModel.title = "楠屾敹" this.$refs.acceptModel.edit(record) } } -- Gitblit v1.9.3