From e1fee3c5c1eb50f49d20dad4dc656dfdcb81d4b4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期一, 29 九月 2025 17:18:33 +0800
Subject: [PATCH] 工控网界面优化
---
src/views/dataex/mdmprogramimp.vue | 50 +++++++++++++++++++-------------------------------
1 files changed, 19 insertions(+), 31 deletions(-)
diff --git a/src/views/dataex/mdmprogramimp.vue b/src/views/dataex/mdmprogramimp.vue
index a1c4236..22dc25b 100644
--- a/src/views/dataex/mdmprogramimp.vue
+++ b/src/views/dataex/mdmprogramimp.vue
@@ -10,12 +10,13 @@
>
<template #menu-left>
<div style="display: flex;">
- <el-button type="primary" size="default" icon="el-icon-circle-plus" @click="importData">瀵煎叆</el-button>
- <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" style="margin-left: 12px;">鍏ュ簱</el-button>
+ <el-button type="primary" size="default" icon="el-icon-upload" @click="importData">瀵煎叆</el-button>
+ <el-button type="warning" size="default" icon="el-icon-delete" @click="clearList">娓呯┖</el-button>
+ <el-button type="primary" size="default" icon="el-icon-check" :disabled="selection.length==0" plain @click="handleWarehouse" style="margin-left: 12px;">涓嬩紶</el-button>
</div>
</template>
</avue-crud>
- <el-dialog title="DNC鏂囦欢瀵煎叆" append-to-body v-model="excelBox" width="555px">
+ <el-dialog title="娑夊瘑缃戞枃浠跺鍏�" append-to-body v-model="excelBox" width="555px">
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
<!-- <template #excelTemplate>
<el-button type="primary" @click="handleTemplate">
@@ -54,40 +55,24 @@
// hide: true
// },
{
- label: '浠诲姟缂栧彿',
- prop: 'programNo'
+ label: '闆剁粍浠跺彿',
+ prop: 'drawingNo'
},
- {
+ {
label: '绋嬪簭鍚嶇О',
- prop: 'programName',
+ prop: 'name',
},
{
- label: '鏂囦欢鍒拌揪鏃堕棿',
- prop: 'fileBackTime',
+ label: '鏂囦欢',
+ prop: 'filename',
},
{
- label: '鏂囦欢鏁版嵁搴撶紪鍙�',
- prop: 'id',
+ label: '鏈哄簥缂栧彿',
+ prop: 'machineCode',
},
- // {
- // label: '澶勭悊鐘舵��',
- // prop: '',
- // },
- // {
- // label: '澶勭悊鏂瑰紡',
- // prop: ''
- // },
- // {
- // label: '澶勭悊鏃堕棿',
- // prop: ''
- // },
- // {
- // label: '澶勭悊浜�',
- // prop: ''
- // },
{
- label: 'MD5鍊�',
- prop: 'md5',
+ label: '绋嬪簭鐘舵��',
+ prop: 'programStatus'
}
],
},
@@ -102,13 +87,13 @@
prop: 'excelFile',
type: 'upload',
drag: true,
- loadText: 'DNC鏂囦欢瀵煎叆锛岃绋嶇瓑',
+ loadText: '娑夊瘑缃戞枃浠跺鍏ワ紝璇风◢绛�',
span: 24,
propsHttp: {
res: 'data',
},
tip: '',
- action: '/blade-mdm/program/dncsendback/upload',
+ action: '/blade-mdm/program/mdmimport/upload',
},
],
},
@@ -128,6 +113,9 @@
this.data = res || []
done();
},
+ clearList(){
+ this.data = [];
+ },
handleWarehouse(row,index) {
if(this.selection.length == 0) {
this.$message.error("璇烽�夋嫨鏁版嵁")
--
Gitblit v1.9.3