From 99b062eeca471bdcbfcacd88e308fab9972cd6ec Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 19 八月 2025 14:21:33 +0800
Subject: [PATCH] 展示优化
---
src/views/repositoryai/templateku/index.vue | 165 ++++++++++++++++++++++++++++---------------------------
1 files changed, 84 insertions(+), 81 deletions(-)
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index cdd2e22..539cedb 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -3,15 +3,15 @@
<!-- 宸︿晶鏍� -->
<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
placeholder="璇疯緭鍏ュ唴瀹�"
v-model="sidecolumnval"
class="input-with-select"
- size="medium "
+ size="medium"
>
</el-input>
</div>
@@ -68,7 +68,7 @@
v-show="showSearch"
label-width="98px"
>
- <el-form-item label="妯$増鏍囬" prop="templateName">
+ <el-form-item label="妯℃澘鏍囬" prop="templateName">
<el-input
v-model="queryParams.templateName"
placeholder="璇疯緭鍏�"
@@ -105,6 +105,14 @@
>
</el-option>
</el-select>
+ </el-form-item>
+ <el-form-item label="鎮h�呮爣绛�" prop="tagname">
+ <el-input
+ v-model="queryParams.tag"
+ placeholder="杈撳叆杩涜妯$硦鏌ヨ"
+ maxlength="30"
+ @keyup.enter.native="handleQuery"
+ />
</el-form-item>
<el-form-item>
@@ -151,7 +159,7 @@
</el-col>
<!-- <el-col :span="1.5"> </el-col> -->
</el-row>
- <!-- 鏍囧噯妯$増 -->
+ <!-- 鏍囧噯妯℃澘 -->
<el-table
v-loading="loading"
:data="userList"
@@ -167,7 +175,7 @@
prop="id"
/>
<el-table-column
- label="妯$増鍚嶇О"
+ label="妯℃澘鍚嶇О"
fixed
align="center"
key="templateName"
@@ -204,24 +212,13 @@
</el-table-column>
<el-table-column
- label="鏍囩"
- align="center"
- key="labelInfo"
- prop="labelInfo"
- width="160"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="scope">
- <div v-if="scope.row.labelInfo">
- <span v-for="item in JSON.parse(scope.row.labelInfo)">{{
- item.tagname
- }}</span>
- </div>
- <div v-else>
- <span>鏃�</span>
- </div>
- </template>
- </el-table-column>
+ label="鏍囩"
+ align="center"
+ key="tag"
+ prop="tag"
+ show-overflow-tooltip
+ width="180"
+ />
<el-table-column
label="閫傜敤闄㈠尯"
align="center"
@@ -313,7 +310,7 @@
</template>
</el-table-column>
</el-table>
- <!-- 閫氱敤妯$増 -->
+ <!-- 閫氱敤妯℃澘 -->
<!-- 搴曢儴鍒嗛〉 -->
<pagination
@@ -416,62 +413,61 @@
<!-- 闅忚棰樼洰棰勮 -->
<el-dialog title="闅忚棰樼洰棰勮" :visible.sync="topicVisible" width="50%">
<div class="preview-left">
- <!-- 鍗曢�� -->
- <div
- class="scriptTopic-dev"
- v-for="item in topicform.ivrLibaTemplateScriptVOList"
- :key="item.targetid"
- v-if="item.valueType == 1"
- >
- <div class="dev-text">
- {{ item.targetid }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span>
+ <div v-for="item in topicform.ivrLibaTemplateScriptVOList">
+ <!-- 鍗曢�� -->
+ <div
+ class="scriptTopic-dev"
+ :key="item.targetid"
+ v-if="item.valueType == 1"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕鍗曢�塢<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-radio-group v-model="item.remark">
+ <el-radio
+ v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+ :key="index"
+ :label="index"
+ >{{ items.targetvalue }}</el-radio
+ >
+ </el-radio-group>
+ </div>
</div>
- <div class="dev-xx">
- <el-radio-group v-model="item.remark">
- <el-radio
- v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
- :key="index"
- :label="index"
- >{{ items.targetvalue }}</el-radio
- >
- </el-radio-group>
+ <!-- 澶氶�� -->
+ <div
+ class="scriptTopic-dev"
+ :key="item.targetid"
+ v-if="item.valueType == 2"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-checkbox-group v-model="item.remark">
+ <el-checkbox
+ v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+ :key="index"
+ :label="index"
+ >
+ {{ items.targetvalue }}
+ </el-checkbox>
+ </el-checkbox-group>
+ </div>
</div>
- </div>
- <!-- 澶氶�� -->
- <div
- class="scriptTopic-dev"
- v-for="item in topicform.ivrLibaTemplateScriptVOList"
- :key="item.targetid"
- v-if="item.valueType == 2"
- >
- <div class="dev-text">
- {{ item.targetid }}銆乕澶氶�塢<span>{{ item.scriptContent }}</span>
- </div>
- <div class="dev-xx">
- <el-checkbox-group v-model="item.remark">
- <el-checkbox
- v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
- :key="index"
- :label="index"
- >
- {{ items.targetvalue }}
- </el-checkbox>
- </el-checkbox-group>
- </div>
- </div>
- <!-- 濉┖ -->
- <div
- class="scriptTopic-dev"
- v-for="item in topicform.ivrLibaTemplateScriptVOList"
- :key="item.targetid"
- v-if="item.valueType == 3"
- >
- <div class="dev-text">
- {{ item.targetid }}銆乕濉┖]<span>{{ item.scriptContent }}</span>
- </div>
- <div class="dev-xx">
- <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable>
- </el-input>
+ <!-- 濉┖ -->
+ <div
+ class="scriptTopic-dev"
+ :key="item.targetid"
+ v-if="item.valueType == 3"
+ >
+ <div class="dev-text">
+ {{ item.targetid }}銆乕濉┖]<span>{{ item.scriptContent }}</span>
+ </div>
+ <div class="dev-xx">
+ <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable>
+ </el-input>
+ </div>
</div>
</div>
</div>
@@ -618,9 +614,9 @@
});
},
- // 澶嶅埗妯$増
+ // 澶嶅埗妯℃澘
copyfn() {},
- // 涓嬭浇妯$増
+ // 涓嬭浇妯℃澘
downloadfn() {},
// 璺宠浆缂栬緫璇濇湳椤甸潰
compileUpdate(row) {
@@ -794,6 +790,13 @@
this.classifyform = b;
this.dialogFormVisible = true;
},
+ Newcategory() {
+ this.classifyform = {}; //绫诲埆琛ㄥ崟
+ this.radio = "涓诲垎绫�";
+ this.dialogFormVisible = true;
+ this.zifon = true;
+ this.zufon = true;
+ },
// 棰勮
preview(row) {
getvFollowup({ id: row.id }).then((res) => {
--
Gitblit v1.9.3