From f360cde8ff0b28ba677a4693cf45f47f206dd746 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 21 五月 2025 17:52:54 +0800 Subject: [PATCH] 1、设备管理中设备属性的字段显隐权限调整到设备状态字段 2、设备日志添加批量导出功能 --- src/views/mdc/base/modules/MdcUnplannedCloseManagement/MdcUnplannedCloseList.vue | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/views/mdc/base/modules/MdcUnplannedCloseManagement/MdcUnplannedCloseList.vue b/src/views/mdc/base/modules/MdcUnplannedCloseManagement/MdcUnplannedCloseList.vue index 54efec4..8c0c42e 100644 --- a/src/views/mdc/base/modules/MdcUnplannedCloseManagement/MdcUnplannedCloseList.vue +++ b/src/views/mdc/base/modules/MdcUnplannedCloseManagement/MdcUnplannedCloseList.vue @@ -6,7 +6,7 @@ <a-row :gutter="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-form-item label="璁惧缂栧彿"> - <a-input placeholder="璇疯緭鍏ヨ澶囩紪鍙�" v-model="queryParam.equipmentId" allowClear/> + <a-input placeholder="璇疯緭鍏ヨ澶囩紪鍙�" v-model="queryParam.equipmentId"/> </a-form-item> </a-col> <a-col :xl="6" :lg="7" :md="8" :sm="24"> @@ -17,15 +17,14 @@ </a-col> <a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-form-item label="鏃ユ湡"> - <a-range-picker v-model="dates" format="YYYY-MM-DD" style="width: 100%" - @change="dateParamChange"></a-range-picker> + <a-range-picker v-model="dates" style="width: 100%" @change="dateParamChange"></a-range-picker> </a-form-item> </a-col> <a-col :xl="6" :lg="7" :md="8" :sm="24"> - <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> + <a-space> <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> - <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button> - </span> + <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button> + </a-space> </a-col> </a-row> </a-form> @@ -35,7 +34,7 @@ <!-- 鎿嶄綔鎸夐挳鍖哄煙 --> <div class="table-operator"> <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button> - <a-button type="primary" icon="download" @click="importTemplate('闈炶鍒掑仠鏈烘ā鏉�')">瀵煎叆妯℃澘</a-button> + <a-button type="primary" icon="download" @click="importTemplate('闈炶鍒掑仠鏈虹鐞�')">瀵煎叆妯℃澘</a-button> <a-button type="primary" icon="download" @click="handleExportXls('闈炶鍒掑仠鏈虹鐞�')">瀵煎嚭</a-button> <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> @@ -59,7 +58,6 @@ <!-- table鍖哄煙-begin --> <div id="DeviceList" style="flex: 1;overflow: hidden"> <a-table - id="planClose" ref="table" size="middle" :scroll="{x:'max-content',y:scrollY}" @@ -189,8 +187,6 @@ exportXlsUrl: '/mdc/mdcPlanClose/exportXls', importExcelUrl: 'mdc/mdcPlanClose/importExcel' }, - dictOptions: {}, - superFieldList: [] } }, watch: { @@ -237,8 +233,8 @@ }, importTemplate(fileName) { var a = document.createElement('a') - a.href = '/static/闈炶鍒掑仠鏈虹鐞�.xls' - a.download = '闈炶鍒掑仠鏈虹鐞�.xls' + a.href = `/static/${fileName}.xls` + a.download = `${fileName}.xls` a.style.display = 'none' document.body.appendChild(a) a.click() -- Gitblit v1.9.3