WXL (wul)
2026-05-08 f9902f7a3b79d22bde9f199263ac36de26816470
src/views/knowledge/questionnaire/index.vue
@@ -28,7 +28,7 @@
          @node-click="handleNodeClick"
        >
          <span class="custom-tree-node" slot-scope="{ node, data }">
            <span>{{ node.label }}</span>
            <span class="tree-node-label">{{ node.label }}</span>
            <span v-if="data.id > 0">
              <el-button
                type="text"
@@ -141,7 +141,6 @@
                  icon="el-icon-plus"
                  size="medium"
                  @click="handleAdd"
                  >新增</el-button
                >
              </el-col>
@@ -422,7 +421,7 @@
              {{ item.sort }}、[多选]<span>{{ item.scriptContent }}</span>
            </div>
            <div class="dev-xx">
              <el-checkbox-group v-model="qremark">
              <el-checkbox-group v-model="item.qremark">
                <el-checkbox
                  v-for="(items, index) in item.svyLibTemplateTargetoptions"
                  :key="index"
@@ -582,6 +581,11 @@
    goQRCode(row) {
      getQtemplateobj({ svyid: row.svyid }).then((res) => {
        this.topicform = res.rows[0];
        if (this.topicform.svyTemplateLibScripts) {
          this.topicform.svyTemplateLibScripts.forEach(item=>{
            item.qremark=[]
          })
        }
        console.log(this.topicform);
        this.topicVisible = true;
      });
@@ -816,11 +820,11 @@
      this.classifyform = b;
      this.dialogFormVisible = true;
    },
    Newcategory(){
      this.classifyform= {}, //类别表单
      this.radio = "主分类";
     this.dialogFormVisible = true
     this.zifon = true;
    Newcategory() {
      (this.classifyform = {}), //类别表单
        (this.radio = "主分类");
      this.dialogFormVisible = true;
      this.zifon = true;
      this.zufon = true;
    },
@@ -896,7 +900,7 @@
  display: flex;
}
.sidecolumn {
  width: 400px;
  width: 380px;
  min-height: 100vh;
  text-align: center;
  //   display: flex;
@@ -920,6 +924,22 @@
      cursor: pointer;
    }
  }
  /* 核心:设置固定宽度,超出部分显示省略号 */
  .tree-node-label {
    display: inline-block; /* 需要设置为行内块级元素才能设置宽度 */
    max-width: 160px; /* 最大宽度 */
    overflow: hidden;
    white-space: nowrap; /* 不换行 */
    text-overflow: ellipsis; /* 显示省略号 */
    vertical-align: bottom; /* 可选的,用于对齐 */
  }
  /* 可选:鼠标悬停时取消限制,显示全文(可能会撑开布局) */
  .custom-tree-node:hover .tree-node-label {
    max-width: none;
    white-space: normal;
    overflow: visible;
  }
  .center-ss {
    margin-top: 30px;
    .input-with-select {