王震
2023-12-19 2fa578a18ed9055f8cb9863a8a0f02977cfa8350
src/views/basic/param/index.vue
@@ -10,7 +10,10 @@
        :ajaxFun="ajaxFun"
        ref="paramTable"
      >
        <template #toolbar></template>
        <template #toolbar>
          <el-button type="primary" @click="addOrUpdateHandle"
          v-if="permissions.technology_param_add">新增</el-button>
        </template>
      </ttable>
      <!-- 弹窗, 新增 / 修改 -->
      <table-form
@@ -36,7 +39,7 @@
      isShowQuery: false,
      uploadInfo: {
        // 是否展示上传EXCEL以及对应的url
        isShow: true,
        isShow: false,
        url: '/mes/param/upload'
      },
      prelang: 'operation',
@@ -51,6 +54,7 @@
        seqNo: true,
        isShowHide: true, // 是否显示显影按钮
        isSearch: true, // 高级查询按钮
        isRefresh: true, // 是否显示刷新按钮
        defaultOrderBy: { column: 'createTime', direction: 'desc' }
      },
      table: {
@@ -147,13 +151,7 @@
            searchInfoType: 'datetimerange'
          }
        ],
        toolbar: [
          {
            text: '新增',
            type: 'primary',
            fun: this.addOrUpdateHandle
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
@@ -190,6 +188,10 @@
    },
    // 新增 / 修改
    addOrUpdateHandle(row) {
      if(!this.permissions.technology_param_edit && row.id!=null){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -217,6 +219,10 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.technology_param_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除编号为' + row.code, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',