From 7e807f771796a68e799826ae4a5598ddb2eec0d8 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 11 三月 2024 15:55:11 +0800 Subject: [PATCH] 质检:附件上传 --- src/views/equipment/mould/index.vue | 26 +++++++++++++++----------- 1 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue index 8439374..ed98b27 100644 --- a/src/views/equipment/mould/index.vue +++ b/src/views/equipment/mould/index.vue @@ -2,7 +2,9 @@ <div class="mod-config"> <basic-container> <ttable + @handleSelectionChange="handleSelectionChange" :table="table" + :uploadInfo="uploadInfo" :ajaxFun="ajaxFun" :prelang="prelang" :options="options" @@ -40,6 +42,7 @@ export default { data(){ return { + diaPrintTab: false, editRules: { code: [{required:true,message:'璇疯緭鍏ユā鍏风紪鍙�',trigger:'blur'}], name: [{required:true,message:'璇疯緭鍏ユā鍏峰悕绉�',trigger:'blur'}] @@ -48,9 +51,17 @@ code: null, name: null, }, + uploadInfo: { + // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl + isShow: true, + url: '/mes/mould/upload', + download: true, + fileName: '妯″叿缁熻琛�' + }, dialogVisible: false, ajaxFun: fetchList, prelang: 'moudle', + multipleSelection: [], dataListLoading: false, options: { height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾 @@ -131,7 +142,7 @@ ...mapGetters(['permissions']) }, components: { - ttable + ttable, }, watch: { dialogVisible(newVal){ @@ -151,13 +162,6 @@ fun: this.addOrUpdateHandle }) } - if(this.permissions.equipment_mould_lableprint){ - this.table.toolbar.push({ - text: '鏍囩鎵撳嵃', - type: 'primary', - fun: this.lableprint - }) - } if(this.permissions.equipment_mould_del){ this.table.operator = [{ text: '鍒犻櫎', @@ -170,6 +174,9 @@ }, methods: { + handleSelectionChange(val) { + this.multipleSelection = val + }, deleteHandle(row){ this.$confirm('鏄惁纭鍒犻櫎妯″叿鍚嶇О涓�' + row.name, '鎻愮ず', { confirmButtonText: '纭畾', @@ -183,9 +190,6 @@ this.$message.success('鍒犻櫎鎴愬姛') this.getData() }) - }, - lableprint(){ - }, confirmSaveOrUpdateMould(){ this.$refs.editForm.validate(valid=>{ -- Gitblit v1.9.3