From f5c20150a01789f3e0e45671c0261a6e25d27544 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 13 三月 2025 17:42:57 +0800 Subject: [PATCH] 测试完成 --- src/views/knowledge/questionnaire/index.vue | 72 ++++++++++++++++++----------------- 1 files changed, 37 insertions(+), 35 deletions(-) diff --git a/src/views/knowledge/questionnaire/index.vue b/src/views/knowledge/questionnaire/index.vue index a77ca7e..317ed99 100644 --- a/src/views/knowledge/questionnaire/index.vue +++ b/src/views/knowledge/questionnaire/index.vue @@ -3,8 +3,8 @@ <!-- 宸︿晶鏍� --> <div class="sidecolumn"> <div class="sidecolumn-top"> - <div class="top-wj">闂嵎绫诲瀷</div> - <div class="top-tj" @click="dialogFormVisible = true">+娣诲姞</div> + <div class="top-wj">闂嵎鍒嗙被</div> + <div class="top-tj" @click="Newcategory">+娣诲姞</div> </div> <div class="center-ss"> <el-input @@ -94,7 +94,7 @@ </el-option> </el-select> </el-form-item> - <el-form-item label="涓昏鍐呭" prop="userName"> + <el-form-item label="闂嵎鎻忚堪" prop="userName"> <el-input v-model="queryParams.description" placeholder="璇疯緭鍏�" @@ -114,6 +114,14 @@ > </el-option> </el-select> + </el-form-item> + <el-form-item label="鎮h�呮爣绛�" prop="tagname"> + <el-input + v-model="queryParams.tagname" + placeholder="杈撳叆杩涜妯$硦鏌ヨ" + maxlength="30" + @keyup.enter.native="handleQuery" + /> </el-form-item> <el-form-item> @@ -141,7 +149,7 @@ icon="el-icon-plus" size="medium" @click="handleAdd" - v-hasPermi="['system:user:add']" + >鏂板</el-button > </el-col> @@ -154,7 +162,6 @@ size="medium" :disabled="multiple" @click="handleDelete" - v-hasPermi="['system:user:remove']" >鍒犻櫎</el-button > </el-col> @@ -182,16 +189,9 @@ width="160" :show-overflow-tooltip="true" /> - <el-table-column - label="鐗堟湰" - align="center" - key="version" - prop="version" - :show-overflow-tooltip="true" - /> <el-table-column - label="涓昏鍐呭" + label="闂嵎鎻忚堪" align="center" key="description" prop="description" @@ -207,7 +207,6 @@ size="medium" type="text" @click="illnessUpdate(scope.row)" - v-hasPermi="['system:user:edit']" ><span class="button-textxg" ><i class="el-icon-date"></i>璇︽儏</span ></el-button @@ -216,19 +215,13 @@ </el-table-column> <el-table-column - label="鏍囩" - align="center" - key="labelInfo" - prop="labelInfo" - width="160" - :show-overflow-tooltip="true" - > - <template slot-scope="scope"> - <span v-for="item in scope.row.svyLibTemplateTagList" - >{{ item.tagname }}銆� - </span> - </template> - </el-table-column> + label="鏍囩" + align="center" + key="tagname" + prop="tagname" + show-overflow-tooltip + width="180" + /> <el-table-column label="鏄惁鍙敤" @@ -261,7 +254,6 @@ size="medium" type="text" @click="goQRCode(scope.row)" - v-hasPermi="['system:user:edit']" > <span class="button-text" ><i class="el-icon-edit"></i>棰勮</span @@ -271,7 +263,6 @@ size="medium" type="text" @click="ViewQuestionnaire(scope.row)" - v-hasPermi="['system:user:edit']" ><span class="button-textck" ><i class="el-icon-edit"></i>鏌ョ湅</span ></el-button @@ -280,7 +271,6 @@ size="medium" type="text" @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" ><span class="button-textxg" ><i class="el-icon-edit"></i>淇敼</span ></el-button @@ -289,7 +279,6 @@ size="medium" type="text" @click="handleDelete(scope.row)" - v-hasPermi="['system:user:remove']" ><span class="button-textsc" ><i class="el-icon-edit"></i>鍒犻櫎</span ></el-button @@ -401,7 +390,7 @@ </div> </div> </el-dialog> --> - <!-- 闂嵎妯$増棰勮 --> + <!-- 闂嵎妯℃澘棰勮 --> <el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%"> <div class="preview-left"> <!-- 鍗曢�� --> @@ -525,7 +514,7 @@ roleOptions: [], // 琛ㄥ崟鍙傛暟 form: {}, - + title: "鏂板绫诲埆", sidecolumnform: {}, //娣诲姞绫诲埆琛ㄥ崟 goQRCodeVisible: false, //浜岀淮鐮佸脊妗� sidecolumnval: "", //绫诲埆鎼滅储 @@ -539,6 +528,8 @@ indexid: null, inputValue: "", radio: "涓诲垎绫�", + zufon: true, + zifon: true, inputVisible: false, illnessVisible: false, //鎸囨爣鐤剧梾寮规 deptOptions: [], @@ -647,14 +638,14 @@ /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { this.$router.push({ - path: "/knowledge/questionnaire/compilequer/", + path: "/knowledge/questionnaireinfo/", query: { categoryid: this.queryParams.categoryid }, }); }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { this.$router.push({ - path: "/knowledge/questionnaire/compilequer/", + path: "/knowledge/questionnaireinfo/", query: { id: row.svyid }, }); }, @@ -817,12 +808,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) { -- Gitblit v1.9.3