WXL
2025-04-14 6e54a6688661a05de7c418612cea8b38bbc2dee3
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"
@@ -215,6 +210,7 @@
              <el-table-column
                label="操作"
                align="center"
                fixed="right"
                width="200"
                class-name="small-padding fixed-width"
              >
@@ -255,7 +251,7 @@
    </div>
    <!-- 添加类别弹框 -->
    <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible">
    <el-dialog title="类别编辑" width="30%" :visible.sync="dialogFormVisible">
      <!-- <div style="text-align: center; margin-bottom: 20px">
        <el-radio-group v-model="radio">
          <el-radio-button label="主分类"></el-radio-button>
@@ -463,6 +459,8 @@
      addgeneralclassify(this.classifyform).then((res) => {
        this.getDeptTree();
        this.$modal.msgSuccess("新增成功");
        this.classifyform = {};
        this.dialogFormVisible = false;
      });
    },
    remove(a, b) {
@@ -509,7 +507,7 @@
    reset() {
      this.indexform = {
        suitWay: undefined,
        targetid: undefined,
        id: undefined,
        targetdesc: undefined,
        baseTagList: [],
        targetoptionList: [],
@@ -533,29 +531,15 @@
    },
    // 多选框选中数据
    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;
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.title = "新增通用库";
      this.indexform = {
        baseTagList: [],
        targetoptionList: [],
      };
      this.testuserList = [
        {
          guid: 1,
          isoperation: 1,
          targettype: "1",
          targetvalue: "",
          targetregex: "",
        },
      ];
      this.indexopen = true;
      this.measurement = false;
      this.$router.push({
        path: "/knowledge/general/particulars/",
      });
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
@@ -585,7 +569,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 +590,7 @@
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const userIds = row.targetid || this.ids;
      const userIds = row.id || this.ids;
      this.$modal
        .confirm('是否确认删除通用库名称为"' + row.targetname + '"的数据项?')
        .then(function () {
@@ -681,7 +665,7 @@
  margin-top: 20px;
  margin: 20px;
  padding: 30px;
  background: #edf1f7;
  background: #fff;
  border: 1px solid #dcdfe6;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
    0 0 6px 0 rgba(0, 0, 0, 0.04);
@@ -773,6 +757,24 @@
  font-size: 20px;
  cursor: pointer;
}
::v-deep .el-tree {
  position: relative;
  cursor: default;
  border-radius: 5px;
  background: #eff8fe;
  color: #606266;
  border: 1px solid #bbe1fa;
  // border: 1px solid #dcdfe6;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
    0 0 6px 0 rgba(0, 0, 0, 0.04);
}
::v-deep
  .el-tree--highlight-current
  .el-tree-node.is-current
  > .el-tree-node__content {
  background-color: #7799fb;
  color: #fff;
}
::v-deep .el-button--mini.is-circle {
  padding: 7px;
  margin: 0;