From 8611a1ba1696e76cced04ff5d658ba138a05dafd Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期六, 19 八月 2023 14:37:32 +0800 Subject: [PATCH] 设备管理前端代码提交 截止 20230819 13:55 分 --- src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue | 51 ++++++++++++++++++++++++++++++++------------------- 1 files changed, 32 insertions(+), 19 deletions(-) diff --git a/src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue b/src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue index 87bd04a..45604a6 100644 --- a/src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue +++ b/src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue @@ -1,5 +1,8 @@ <template> - <a-card :bordered='false' :class="'cust-erp-sub-tab'"> + <a-card + :bordered='false' + :class="'cust-erp-sub-tab'" + > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> <a-form @@ -13,10 +16,16 @@ <!-- 鏌ヨ鍖哄煙-END --> <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> - <div class='table-operator' v-if='mainId.id'> + <div + class='table-operator' + v-if='mainId.id' + > <a-dropdown v-if='selectedRowKeys.length > 0'> <a-menu slot='overlay'> - <a-menu-item key='1' @click='batchDel'> + <a-menu-item + key='1' + @click='batchDel' + > <a-icon type='delete' /> 鍒犻櫎 </a-menu-item> @@ -45,35 +54,39 @@ :dataSource='dataSource' :pagination='ipagination' :loading='loading' - @change='handleTableChange'> + @change='handleTableChange' + > <!-- :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' --> - - - <span slot='action' slot-scope='text, record'> + <span + slot='action' + slot-scope='text, record' + > <!-- <a @click='handleEdit(record)'>缂栬緫</a> <a-divider type='vertical' /> --> - <a-popconfirm title='纭畾鍒犻櫎鍚�?' @confirm='() => handleDelete(record.id)'> - <a v-if="record.isLock=='no'&&mainId.status=='3'">鍒犻櫎</a> + <a-popconfirm + title='纭畾鍒犻櫎鍚�?' + @confirm='() => handleDelete(record.id)' + > + <a :disabled="mainId.status=='4'">鍒犻櫎</a> </a-popconfirm> </span> </a-table> <a-button - style="width: 100%; margin-top: 16px; margin-bottom: 8px" - type="dashed" - icon="plus" - @click="handleAdd" - :disabled="mainId.status=='4'" - >娣诲姞鏁呴殰鍒嗘瀽 - </a-button> + style="width: 100%; margin-top: 16px; margin-bottom: 8px" + type="dashed" + icon="plus" + @click="handleAdd" + :disabled="mainId.status=='4' ||mainId.status=='2'" + >娣诲姞鏁呴殰鍒嗘瀽 + </a-button> </div> <repair-order-fault-analysis-report-model ref='modalForm' @ok='modalFormOk' ></repair-order-fault-analysis-report-model> </a-card> - </template> @@ -122,7 +135,7 @@ key: 'rowIndex', width: 60, align: 'center', - customRender: function(t, r, index) { + customRender: function (t, r, index) { return parseInt(index) + 1 } }, @@ -192,7 +205,7 @@ this.selectedRowKeys = [] this.ipagination.current = 1 }, - handleAdd: function() { + handleAdd: function () { this.$refs.modalForm.add(this.mainId) this.$refs.modalForm.title = '鏂板' this.$refs.modalForm.disableSubmit = false -- Gitblit v1.9.3