| | |
| | | <div class="mod-config"> |
| | | <basic-container> |
| | | <ttable |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :table="table" |
| | | :ajaxFun="ajaxFun" |
| | | :prelang="prelang" |
| | |
| | | export default { |
| | | data(){ |
| | | return { |
| | | diaPrintTab: false, |
| | | editRules: { |
| | | code: [{required:true,message:'请输入模具编号',trigger:'blur'}], |
| | | name: [{required:true,message:'请输入模具名称',trigger:'blur'}] |
| | |
| | | dialogVisible: false, |
| | | ajaxFun: fetchList, |
| | | prelang: 'moudle', |
| | | multipleSelection: [], |
| | | dataListLoading: false, |
| | | options: { |
| | | height: 300, // 默认高度-为了表头固定 |
| | |
| | | }, |
| | | components: { |
| | | ttable, |
| | | TableForm |
| | | }, |
| | | watch: { |
| | | dialogVisible(newVal){ |
| | |
| | | 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: '删除', |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | }, |
| | | deleteHandle(row){ |
| | | this.$confirm('是否确认删除模具名称为' + row.name, '提示', { |
| | | confirmButtonText: '确定', |
| | |
| | | this.$message.success('删除成功') |
| | | this.getData() |
| | | }) |
| | | }, |
| | | lableprint(){ |
| | | |
| | | }, |
| | | confirmSaveOrUpdateMould(){ |
| | | this.$refs.editForm.validate(valid=>{ |