zouyu
2023-12-19 795fa953f456ea886be77f8bb345c50a0fbea590
src/views/basic/workstation/index.vue
@@ -10,7 +10,10 @@
        :ajaxFun="ajaxFun"
        ref="workstationTable"
      >
        <template #toolbar></template>
        <template #toolbar>
          <el-button type="primary" @click="addOrUpdateHandle"
          v-if="permissions.basic_workstation_add">新增</el-button>
        </template>
      </ttable>
      <!-- 弹窗, 新增 / 修改 -->
      <table-form
@@ -37,7 +40,7 @@
      innerVisible: false,
      uploadInfo: {
        // 是否展示上传EXCEL以及对应的url
        isShow: true,
        isShow: false,
        url: '/mes/workstation/upload'
      },
      prelang: 'workstation',
@@ -121,13 +124,7 @@
            searchInfoType: 'text'
          }
        ],
        toolbar: [
          {
            text: '新增',
            type: 'primary',
            fun: this.addOrUpdateHandle
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
@@ -188,6 +185,10 @@
    },
    // 新增 / 修改
    addOrUpdateHandle(row) {
      if(!this.permissions.basic_workstation_edit && row.id!=null){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -195,6 +196,10 @@
    },
    // 删除工作站点
    deleteHandle(row) {
      if(!this.permissions.basic_workstation_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除工作站为' + row.name, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',