zouyu
2024-01-22 3b02a02e6f615f167b06ca4d62d094cda777d862
src/views/equipment/mould/index.vue
@@ -2,6 +2,7 @@
  <div class="mod-config">
      <basic-container>
        <ttable
        @handleSelectionChange="handleSelectionChange"
        :table="table"
        :ajaxFun="ajaxFun"
        :prelang="prelang"
@@ -40,6 +41,7 @@
export default {
  data(){
      return {
          diaPrintTab: false,
          editRules: {
            code: [{required:true,message:'请输入模具编号',trigger:'blur'}],
            name: [{required:true,message:'请输入模具名称',trigger:'blur'}]
@@ -51,6 +53,7 @@
          dialogVisible: false,
          ajaxFun: fetchList,
          prelang: 'moudle',
          multipleSelection: [],
          dataListLoading: false,
          options: {
              height: 300, // 默认高度-为了表头固定
@@ -132,7 +135,6 @@
  },
  components: {
    ttable,
    TableForm
  },
  watch: {
    dialogVisible(newVal){
@@ -152,13 +154,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: '删除',
@@ -171,6 +166,9 @@
  },
  methods: {
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
    deleteHandle(row){
        this.$confirm('是否确认删除模具名称为' + row.name, '提示', {
          confirmButtonText: '确定',
@@ -184,9 +182,6 @@
            this.$message.success('删除成功')
            this.getData()
          })
    },
    lableprint(){
    },
    confirmSaveOrUpdateMould(){
        this.$refs.editForm.validate(valid=>{