WXL
2024-11-26 007d3884ad259883d7a5db6714876e46525ae717
src/views/repositoryai/verbaltrick/index.vue
@@ -4,7 +4,7 @@
    <div class="sidecolumn">
      <div class="sidecolumn-top">
        <div class="top-wj">问题类型</div>
        <div class="top-tj" @click="dialogFormVisible = true">+添加</div>
        <div class="top-tj" @click="Newcategory">+添加</div>
      </div>
      <div class="center-ss">
        <el-input
@@ -13,7 +13,6 @@
          class="input-with-select"
          size="medium "
        >
        </el-input>
      </div>
      <div class="head-container" style="margin-top: 20px">
@@ -87,7 +86,6 @@
                  @keyup.enter.native="handleQuery"
                />
              </el-form-item>
              <el-form-item label="语言" prop="status">
                <el-select v-model="queryParams.language" placeholder="请选择">
                  <el-option
@@ -188,13 +186,7 @@
                :show-overflow-tooltip="true"
              />
              <el-table-column
                label="问题内容"
                align="center"
                key="scriptContent"
                prop="scriptContent"
                width="200"
              /><el-table-column
             <el-table-column
                label="关联指标"
                align="center"
                key="targetname"
@@ -211,6 +203,17 @@
              >
                <template slot-scope="scope">
                  <dict-tag :options="mode" :value="scope.row.suitway" />
                </template>
              </el-table-column>
              <el-table-column
                label="问题类型"
                align="center"
                key="valueType"
                prop="valueType"
                width="120"
              >
                <template slot-scope="scope">
                  <dict-tag :options="valuetype" :value="scope.row.valueType" />
                </template>
              </el-table-column>
              <el-table-column
@@ -316,11 +319,11 @@
      </div>
    </div>
    <!-- 添加类别弹框 -->
    <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible">
    <el-dialog :title="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>
          <el-radio-button label="子分类"></el-radio-button>
          <el-radio-button label="主分类" v-show="zifon"></el-radio-button>
          <el-radio-button label="子分类" v-show="zufon"></el-radio-button>
        </el-radio-group>
      </div>
      <el-divider></el-divider>
@@ -524,7 +527,7 @@
        },
      ],
      // 弹出层标题
      title: "",
      title: "新增类别",
      // 是否显示弹出层
      open: false,
      // 日期范围
@@ -543,11 +546,13 @@
      indexopen: false, //弹框展示否
      propss: { multiple: true },
      radio: "主分类",
      zufon: true,
      zifon: true,
      usable: [],
      mode: [],
      languagelist: [],
      valuetype:[],
      qyoptions: [],
      // 查询参数
      queryParams: {
@@ -569,6 +574,7 @@
    this.getDeptTree();
    this.mode = store.getters.mode;
    this.languagelist = store.getters.languagelist;
    this.valuetype = store.getters.valuetypelb;
    this.qyoptions = store.getters.usable;
  },
@@ -631,7 +637,7 @@
    handleAdd() {
      this.$router.push({
        path: "/knowledge/verbaltrick/particulars/",
        query: { id: "" },
        query: { id: "", categoryid: this.queryParams.categoryid },
      });
    },
    // 分类树-----------------------------------------
@@ -717,12 +723,23 @@
      this.dialogFormVisible = true;
      if (!b.pid) {
        this.radio = "主分类";
        this.title = "修改主分类";
        this.zufon = false;
      } else {
        this.radio = "子分类";
        this.title = "修改子分类";
        this.zifon = false;
      }
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    Newcategory(){
      this.classifyform= {}, //类别表单
      this.radio = "主分类";
     this.dialogFormVisible = true
     this.zifon = true;
     this.zufon = true;
    },
    // 筛选节点
    filterNode(value, data) {