From ecbcc059d43f64877551756de129c653d31d0032 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 07 五月 2026 09:20:20 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionnaire/index.vue | 38 +++++++++++++++++++++++++++++---------
1 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/src/views/knowledge/questionnaire/index.vue b/src/views/knowledge/questionnaire/index.vue
index 45a95e3..6c1622e 100644
--- a/src/views/knowledge/questionnaire/index.vue
+++ b/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 {
--
Gitblit v1.9.3