From 33c62946aa29d74a62c5dcbbc1cb06d16c8c91dc Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 23 五月 2025 14:46:26 +0800 Subject: [PATCH] 测试完成 --- src/views/knowledge/questionbank/index.vue | 52 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue index 84182cd..7d64b9a 100644 --- a/src/views/knowledge/questionbank/index.vue +++ b/src/views/knowledge/questionbank/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 @@ -68,7 +68,7 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="闂鏍囬" prop="userName"> + <el-form-item label="闂涓婚" prop="userName"> <el-input v-model="queryParams.scriptTopic" placeholder="璇疯緭鍏�" @@ -135,7 +135,6 @@ icon="el-icon-plus" size="medium" @click="compileUpdate" - v-hasPermi="['system:user:add']" >鏂板</el-button > </el-col> @@ -148,7 +147,6 @@ size="medium" :disabled="multiple" @click="handleDelete" - v-hasPermi="['system:user:remove']" >鍒犻櫎</el-button > </el-col> @@ -173,11 +171,19 @@ prop="id" /> --> <el-table-column - label="棰樼洰鏍囬" + label="闂涓婚" fixed align="center" key="scriptTopic" prop="scriptTopic" + width="200" + :show-overflow-tooltip="true" + /> + <el-table-column + label="闂鍐呭" + align="center" + key="scriptContent" + prop="scriptContent" width="200" :show-overflow-tooltip="true" /> @@ -197,21 +203,13 @@ </el-table-column> <el-table-column label="鎸囨爣鍚嶇О" - fixed align="center" key="targetname" prop="targetname" width="200" :show-overflow-tooltip="true" /> - <el-table-column - label="棰樼洰鍐呭" - align="center" - key="scriptContent" - prop="scriptContent" - width="200" - :show-overflow-tooltip="true" - /> + /><el-table-column label="閫傜敤鏂瑰紡" @@ -236,7 +234,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 @@ -292,7 +289,7 @@ size="medium" type="text" @click="compileUpdate(scope.row)" - v-hasPermi="['system:user:edit']" + ><span class="button-bji" ><i class="el-icon-edit"></i>缂栬緫</span ></el-button @@ -301,7 +298,7 @@ size="medium" type="text" @click="handleDelete(scope.row)" - v-hasPermi="['system:user:remove']" + ><span class="button-textsc" ><i class="el-icon-delete-solid"></i>鍒犻櫎</span ></el-button @@ -310,7 +307,7 @@ size="medium" type="text" @click="topicpreview(scope.row)" - v-hasPermi="['system:user:remove']" + ><span class="button-text" ><i class="el-icon-view"></i>棰勮</span ></el-button @@ -408,7 +405,7 @@ <el-button type="primary" @click="confirmillness">纭� 瀹�</el-button> </span> </el-dialog> - <el-dialog title="棰樼洰棰勮" :visible.sync="topicVisible" width="50%"> + <el-dialog title="闂棰勮" :visible.sync="topicVisible" width="50%"> <div class="preview-left"> <div class="dev-text"> <span>{{ topicform.scriptContent }}</span> @@ -498,7 +495,7 @@ userList: [], // 寮瑰嚭灞傛爣棰� tag: "", - title: "", + title: "鏂板绫诲埆", // 鏄惁鏄剧ず寮瑰嚭灞� open: false, // 鏃ユ湡鑼冨洿 @@ -519,6 +516,8 @@ indexid: null, inputValue: "", radio: "涓诲垎绫�", + zufon: true, + zifon: true, inputVisible: false, illnessVisible: false, //鎸囨爣鐤剧梾寮规 deptOptions: [], @@ -725,12 +724,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