WXL
2024-01-11 3b774a197bd7087ee42999937ccc1e7e048eb1aa
src/views/repositoryai/general/index.vue
@@ -153,12 +153,7 @@
              @selection-change="handleSelectionChange"
            >
              <el-table-column type="selection" width="50" align="center" />
              <el-table-column
                label="序号"
                align="center"
                key="targetid"
                prop="targetid"
              />
              <el-table-column label="序号" align="center" key="id" prop="id" />
              <el-table-column
                label="通用库名称"
                align="center"
@@ -463,6 +458,8 @@
      addgeneralclassify(this.classifyform).then((res) => {
        this.getDeptTree();
        this.$modal.msgSuccess("新增成功");
        this.classifyform = {};
        this.dialogFormVisible = false;
      });
    },
    remove(a, b) {
@@ -509,7 +506,7 @@
    reset() {
      this.indexform = {
        suitWay: undefined,
        targetid: undefined,
        id: undefined,
        targetdesc: undefined,
        baseTagList: [],
        targetoptionList: [],
@@ -533,7 +530,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.targetid);
      this.ids = selection.map((item) => item.id);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
    },
@@ -585,7 +582,7 @@
          this.targetoptionList
        );
        if (valid) {
          if (this.indexform.targetid != undefined) {
          if (this.indexform.id != undefined) {
            this.indexform.isoperation = 2;
            editgeneral(this.indexform).then((response) => {
              this.$modal.msgSuccess("修改成功");
@@ -606,7 +603,7 @@
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const userIds = row.targetid || this.ids;
      const userIds = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除通用库名称为"' + row.targetname + '"的数据项?')
        .then(function () {