From 50ba0927c9644b072928b83d91820719dcb13ec9 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 18 三月 2024 17:03:41 +0800 Subject: [PATCH] tianjai remark --- 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