From 43988e7dae93378116a8c5f1fc76f5568d8fd4b2 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 17 六月 2024 10:32:07 +0800
Subject: [PATCH] 测试完成
---
src/api/AiCentre/questionnaire.js | 18
src/views/repositoryai/templateku/configurat/index.vue | 4
src/api/AiCentre/Qtemplate.js | 18
src/views/knowledge/questionnaire/compilequer/index.vue | 10
src/api/smartor/svytopicoption.js | 20
src/api/smartor/svytitle.js | 20
src/views/repositoryai/verbaltrick/particulars/index.vue | 133 ++++--
src/api/smartor/svytopic.js | 20
src/components/Regular/index.vue | 4
src/views/knowledge/questionbank/particulars/index.vue | 2
src/views/repositoryai/general/particulars/index.vue | 432 ++++++++++----------
src/store/getters.js | 70 +++
src/components/AskRegular/index.vue | 394 +++++++++++++++++++
src/views/patient/propaganda/particty.vue | 2
14 files changed, 826 insertions(+), 321 deletions(-)
diff --git a/src/api/AiCentre/Qtemplate.js b/src/api/AiCentre/Qtemplate.js
index ce570fe..1e6ea95 100644
--- a/src/api/AiCentre/Qtemplate.js
+++ b/src/api/AiCentre/Qtemplate.js
@@ -3,7 +3,7 @@
// 鏌ヨ闂嵎妯$増鍒楄〃
export function getQtemplatelist(data) {
return request({
- url: "/smartor/svytitle/selectSvyLibTitlelist",
+ url: "/smartor/svyTemplate/selectSvyLibTemplatelist",
method: "post",
data: data,
});
@@ -11,21 +11,21 @@
// 闂嵎妯$増璇︽儏
export function Qtemplateinfo(Id) {
return request({
- url: "/smartor/svytitle/" + Id,
+ url: "/smartor/svyTemplate/" + Id,
method: "get",
});
}
// 鍒犻櫎闂嵎妯$増
export function delQtemplateinfo(Id) {
return request({
- url: "/smartor/svytitle/remove/" + Id,
+ url: "/smartor/svyTemplate/remove/" + Id,
method: "get",
});
}
// 鏂板鎴栦慨鏀归棶鍗锋ā鐗堣鎯�
export function compileQtemplate(data) {
return request({
- url: "/smartor/svytitle/saveOrUpdateTitle",
+ url: "/smartor/svyTemplate/saveOrUpdateTitle",
method: "post",
data: data,
});
@@ -35,7 +35,7 @@
// 鏂板闂嵎妯$増鍒嗙被
export function addQtemplateclassify(data) {
return request({
- url: "/smartor/svyLibTitleCategory/addtree",
+ url: "/smartor/svyLibTemplateCategory/addtree",
method: "post",
data: data,
});
@@ -43,7 +43,7 @@
// 鏂板闂嵎妯$増鍒嗙被
export function editQtemplateclassify(data) {
return request({
- url: "/smartor/svyLibTitleCategory/edit",
+ url: "/smartor/svyLibTemplateCategory/edit",
method: "post",
data: data,
});
@@ -51,15 +51,15 @@
// 鍒犻櫎闂嵎妯$増鍒嗙被
export function delQtemplateclassify(Id) {
return request({
- url: "/smartor/svyLibTitleCategory/remove/" + Id,
+ url: "/smartor/svyLibTemplateCategory/remove/" + Id,
method: "get",
});
}
// 鏌ヨ闂嵎妯$増鍒嗙被鏍�
export function getQtemplateclassify(data) {
return request({
- url: "/smartor/svyLibTitleCategory/list",
+ url: "/smartor/svyLibTemplateCategory/list",
method: "post",
data: data,
});
- }
\ No newline at end of file
+ }
diff --git a/src/api/AiCentre/questionnaire.js b/src/api/AiCentre/questionnaire.js
index 6040f3c..c513ad9 100644
--- a/src/api/AiCentre/questionnaire.js
+++ b/src/api/AiCentre/questionnaire.js
@@ -3,7 +3,7 @@
// 鏌ヨ闂嵎闂鍒楄〃
export function getissuelist(data) {
return request({
- url: "/smartor/svytopic/list",
+ url: "/smartor/svyscript/list",
method: "post",
data: data,
});
@@ -11,21 +11,21 @@
// 闂嵎闂璇︽儏
export function issueinfo(Id) {
return request({
- url: "/smartor/svytopic/getInfo/" + Id,
+ url: "/smartor/svyscript/getInfo/" + Id,
method: "get",
});
}
// 鍒犻櫎闂嵎闂
export function delissueinfo(Id) {
return request({
- url: "/smartor/svytopic/remove/" + Id,
+ url: "/smartor/svyscript/remove/" + Id,
method: "get",
});
}
// 鏂板鎴栦慨鏀归棶鍗烽棶棰樿鎯�
export function compileissue(data) {
return request({
- url: "/smartor/svytopic/saveOrUpdateTopic",
+ url: "/smartor/svyscript/saveOrUpdateTopic",
method: "post",
data: data,
});
@@ -35,7 +35,7 @@
// 鏂板闂嵎闂鍒嗙被
export function addissueclassify(data) {
return request({
- url: "/smartor/svyLibTopicCategory/addtree",
+ url: "/smartor/svyLibScriptCategory/addtree",
method: "post",
data: data,
});
@@ -43,7 +43,7 @@
// 鏂板闂嵎闂鍒嗙被
export function editissueclassify(data) {
return request({
- url: "/smartor/svyLibTopicCategory/edit",
+ url: "/smartor/svyLibScriptCategory/edit",
method: "post",
data: data,
});
@@ -51,15 +51,15 @@
// 鍒犻櫎闂嵎闂鍒嗙被
export function delissueclassify(Id) {
return request({
- url: "/smartor/svyLibTopicCategory/remove/" + Id,
+ url: "/smartor/svyLibScriptCategory/remove/" + Id,
method: "get",
});
}
// 鏌ヨ闂嵎闂鍒嗙被鏍�
export function getissueclassify(data) {
return request({
- url: "/smartor/svyLibTopicCategory/list",
+ url: "/smartor/svyLibScriptCategory/list",
method: "post",
data: data,
});
- }
\ No newline at end of file
+ }
diff --git a/src/api/smartor/svytitle.js b/src/api/smartor/svytitle.js
index 5c8e5ff..a652481 100644
--- a/src/api/smartor/svytitle.js
+++ b/src/api/smartor/svytitle.js
@@ -1,44 +1,44 @@
import request from '@/utils/request'
// 鏌ヨ闂嵎鍒楄〃
-export function listSvytitle(query) {
+export function listsvyTemplate(query) {
return request({
- url: '/smartor/svytitle/list',
+ url: '/smartor/svyTemplate/list',
method: 'get',
params: query
})
}
// 鏌ヨ闂嵎璇︾粏
-export function getSvytitle(svyid) {
+export function getsvyTemplate(svyid) {
return request({
- url: '/smartor/svytitle/' + svyid,
+ url: '/smartor/svyTemplate/' + svyid,
method: 'get'
})
}
// 鏂板闂嵎
-export function addSvytitle(data) {
+export function addsvyTemplate(data) {
return request({
- url: '/smartor/svytitle',
+ url: '/smartor/svyTemplate',
method: 'post',
data: data
})
}
// 淇敼闂嵎
-export function updateSvytitle(data) {
+export function updatesvyTemplate(data) {
return request({
- url: '/smartor/svytitle/edit',
+ url: '/smartor/svyTemplate/edit',
method: 'post',
data: data
})
}
// 鍒犻櫎闂嵎
-export function delSvytitle(svyid) {
+export function delsvyTemplate(svyid) {
return request({
- url: '/smartor/svytitle/remove/' + svyid,
+ url: '/smartor/svyTemplate/remove/' + svyid,
method: 'get'
})
}
diff --git a/src/api/smartor/svytopic.js b/src/api/smartor/svytopic.js
index 6d1bd28..0d37682 100644
--- a/src/api/smartor/svytopic.js
+++ b/src/api/smartor/svytopic.js
@@ -1,44 +1,44 @@
import request from '@/utils/request'
// 鏌ヨ闂嵎棰樼洰鍒楄〃
-export function listSvytopic(query) {
+export function listsvyscript(query) {
return request({
- url: '/smartor/svytopic/list',
+ url: '/smartor/svyscript/list',
method: 'get',
params: query
})
}
// 鏌ヨ闂嵎棰樼洰璇︾粏
-export function getSvytopic(topicid) {
+export function getsvyscript(topicid) {
return request({
- url: '/smartor/svytopic/' + topicid,
+ url: '/smartor/svyscript/' + topicid,
method: 'get'
})
}
// 鏂板闂嵎棰樼洰
-export function addSvytopic(data) {
+export function addsvyscript(data) {
return request({
- url: '/smartor/svytopic',
+ url: '/smartor/svyscript',
method: 'post',
data: data
})
}
// 淇敼闂嵎棰樼洰
-export function updateSvytopic(data) {
+export function updatesvyscript(data) {
return request({
- url: '/smartor/svytopic/edit',
+ url: '/smartor/svyscript/edit',
method: 'post',
data: data
})
}
// 鍒犻櫎闂嵎棰樼洰
-export function delSvytopic(topicid) {
+export function delsvyscript(topicid) {
return request({
- url: '/smartor/svytopic/remove/' + topicid,
+ url: '/smartor/svyscript/remove/' + topicid,
method: 'get'
})
}
diff --git a/src/api/smartor/svytopicoption.js b/src/api/smartor/svytopicoption.js
index 052841c..c5d2a88 100644
--- a/src/api/smartor/svytopicoption.js
+++ b/src/api/smartor/svytopicoption.js
@@ -1,44 +1,44 @@
import request from '@/utils/request'
// 鏌ヨ闂嵎闂閫夐」鍒楄〃
-export function listSvytopicoption(query) {
+export function listsvyscriptoption(query) {
return request({
- url: '/smartor/svytopicoption/list',
+ url: '/smartor/svyscriptoption/list',
method: 'get',
params: query
})
}
// 鏌ヨ闂嵎闂閫夐」璇︾粏
-export function getSvytopicoption(optionid) {
+export function getsvyscriptoption(optionid) {
return request({
- url: '/smartor/svytopicoption/' + optionid,
+ url: '/smartor/svyscriptoption/' + optionid,
method: 'get'
})
}
// 鏂板闂嵎闂閫夐」
-export function addSvytopicoption(data) {
+export function addsvyscriptoption(data) {
return request({
- url: '/smartor/svytopicoption',
+ url: '/smartor/svyscriptoption',
method: 'post',
data: data
})
}
// 淇敼闂嵎闂閫夐」
-export function updateSvytopicoption(data) {
+export function updatesvyscriptoption(data) {
return request({
- url: '/smartor/svytopicoption/edit',
+ url: '/smartor/svyscriptoption/edit',
method: 'post',
data: data
})
}
// 鍒犻櫎闂嵎闂閫夐」
-export function delSvytopicoption(optionid) {
+export function delsvyscriptoption(optionid) {
return request({
- url: '/smartor/svytopicoption/remove/' + optionid,
+ url: '/smartor/svyscriptoption/remove/' + optionid,
method: 'get'
})
}
diff --git a/src/components/AskRegular/index.vue b/src/components/AskRegular/index.vue
new file mode 100644
index 0000000..d389f14
--- /dev/null
+++ b/src/components/AskRegular/index.vue
@@ -0,0 +1,394 @@
+<template>
+ <div>
+ <div class="topicxq" v-for="item in TargetoptionList">
+ <el-row :gutter="10">
+ <el-col :span="12"
+ ><el-form-item label="閫夐」鍚嶇О">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="item.targetvalue"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ <el-col :span="12"
+ ><el-form-item label="棰勮鍊�">
+ <el-radio-group v-model="radio">
+ <el-radio :label="3">鏄�</el-radio>
+ <el-radio :label="6">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item></el-col
+ >
+ <el-col :span="12" v-if="intent"
+ ><el-form-item label="閫夐」鑺傜偣">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏ヨ妭鐐�"
+ v-model="item.targetid"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-row :gutter="10" v-if="!intent">
+ <el-col :span="20"
+ ><el-form-item label="閫夐」璇存槑">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="item.targetvalue2"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-row :gutter="10" v-if="intent">
+ <el-col :span="12"
+ ><el-form-item label="澶勭悊">
+ <el-input
+ type="text"
+ placeholder="(榛樿)鏃犲0"
+ v-model="item.text"
+ maxlength="10"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ <el-col :span="12"
+ ><el-form-item label="閫変腑璺宠浆">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏ラ鐩妭鐐�"
+ v-model="item.nextQuestion"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="success"
+ v-for="crux in item.dynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, item, 1)"
+ >
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="item.inputVisible"
+ @change="handleInputConfirm(item)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
+ >
+ <el-option
+ v-for="items in regular"
+ :key="items.label"
+ :label="items.label"
+ :value="items.label"
+ >
+ </el-option>
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInput(item)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+ <el-form-item label="鍏抽敭瀛�(闈�)" prop="desc">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="warning"
+ v-for="crux in item.nodynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, item, 2)"
+ >
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="item.noinputVisible"
+ @change="handleInputConfirm(item)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
+ >
+ <el-option
+ v-for="items in noregular"
+ :key="items.value"
+ :label="items.label"
+ :value="items.label"
+ >
+ </el-option>
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInputno(item)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+
+ <el-row :gutter="10">
+ <el-col :span="16" v-if="intent">
+ <el-form-item label="璇煶鏂囦欢">
+ <el-upload
+ class="upload-demo"
+ style="display: flex"
+ action="https://jsonplaceholder.typicode.com/posts/"
+ :on-change="handleChange"
+ :file-list="fileList"
+ :limit="1"
+ :on-exceed="handleExceed"
+ >
+ <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
+ </el-upload>
+ </el-form-item></el-col
+ >
+ <el-col :span="intent ? 8 : 22">
+ <div style="text-align: right; padding-right: 10px">
+ <el-button
+ v-if="controlsc"
+ @click="$emit('addoption', item)"
+ type="success"
+ icon="el-icon-circle-plus-outline"
+ circle
+ ></el-button>
+ <el-button
+ type="danger"
+ icon="el-icon-delete"
+ circle
+ @click="$emit('deloption', item)"
+ ></el-button>
+ <el-button
+ v-if="controlsc"
+ @click="$emit('syioption', item)"
+ type="primary"
+ icon="el-icon-top"
+ circle
+ ></el-button>
+ <el-button
+ v-if="controlsc"
+ @click="$emit('xiayioption', item)"
+ type="primary"
+ icon="el-icon-bottom"
+ circle
+ ></el-button>
+ </div>
+ </el-col>
+ </el-row>
+ </div>
+ </div>
+</template>
+
+<script>
+import store from "@/store";
+
+export default {
+ data() {
+ return {
+ zz1: "^(?!.涓�)(.(鎴憒浣爘浠東鍙互|鏄瘄濂絴鐭ラ亾|娌¢敊)+.*)$",
+ zz2: "^(?!.涓�)(?=.?(鎴憒浣爘浠東鍙互|鏄瘄濂絴鐭ラ亾|娌¢敊)).*$",
+ fileList: [
+ {
+ name: "food.jpeg",
+ url: "https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100",
+ },
+ ],
+ whether: 1, //1涓哄叧閿瘝锛�2涓哄惁瀹氬叧閿瘝
+ inputValue: "",
+ inputVisible: false,
+ noinputVisible: false,
+ loading: false,
+ regular: [],
+ noregular: [],
+ nodynamiccruxs: ["鍒�", "涓�"],
+ dynamiccruxs: ["濂�"],
+ };
+ },
+ props: {
+ TargetoptionList: {
+ type: Array,
+ required: true,
+ default: () => [],
+ },
+ controlsc: {
+ type: Boolean,
+ default: true,
+ },
+ intent: {
+ type: Boolean,
+ default: true,
+ },
+ },
+
+ created() {
+ this.regular = store.getters.regular;
+ this.noregular = store.getters.noregular;
+ },
+
+ methods: {
+ // 鐢熸垚姝e垯
+ generateRegex(row) {
+ let index = this.TargetoptionList.indexOf(row);
+ console.log(index);
+ let regex = "";
+ let regexno = "";
+ let hostregex = "";
+ let hostregexno = "";
+
+ for (
+ let i = 0;
+ i < this.TargetoptionList[index].dynamiccruxs.length;
+ i++
+ ) {
+ regex += `${this.TargetoptionList[index].dynamiccruxs[i]}|`;
+ }
+ for (
+ let i = 0;
+ i < this.TargetoptionList[index].nodynamiccruxs.length;
+ i++
+ ) {
+ regexno += `${this.TargetoptionList[index].nodynamiccruxs[i]}|`;
+ }
+ regex = regex.slice(0, -1);
+ regexno = regexno.slice(0, -1);
+ if (regexno) {
+ hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$";
+ } else {
+ hostregexno = "";
+ }
+ hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
+ this.TargetoptionList[index].targetregex = hostregex;
+ this.TargetoptionList[index].targetregex2 = hostregexno;
+ console.log(hostregex, "纭畾瀛楀尮閰�");
+ console.log(hostregexno, "鍚﹀畾瀛楀尮閰�");
+ this.handleSelectionChange();
+ },
+ // 鎺у埗鏂囦欢
+ handleChange(file, fileList) {
+ this.fileList = fileList.slice(-3);
+ },
+ // 鏂囦欢瓒呭嚭涓暟闄愬埗鏃剁殑閽╁瓙
+ handleExceed(files, fileList) {
+ this.$message.warning(
+ `褰撳墠闄愬埗閫夋嫨 1 涓枃浠讹紝鏈閫夋嫨浜� ${files.length} 涓枃浠讹紝鍏遍�夋嫨浜� ${
+ files.length + fileList.length
+ } 涓枃浠禶
+ );
+ },
+
+ handleClosecrux(crux, item, whether) {
+ if (whether == 1) {
+ item.dynamiccruxs.splice(item.dynamiccruxs.indexOf(crux), 1);
+ console.log(1);
+ console.log(item.dynamiccruxs);
+ console.log(item.nodynamiccruxs);
+ } else {
+ console.log(2);
+ item.nodynamiccruxs.splice(item.nodynamiccruxs.indexOf(crux), 1);
+ }
+ this.generateRegex(item);
+ },
+ handleInputConfirm(row) {
+ console.log(this.TargetoptionList, "TargetoptionList");
+ let index = this.TargetoptionList.indexOf(row);
+ console.log(1112);
+ if (this.whether == 1 && this.inputValue) {
+ if (
+ this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) ==
+ -1
+ ) {
+ this.TargetoptionList[index].dynamiccruxs.push(this.inputValue);
+ } else {
+ this.$message.error("鍏抽敭瀛楀凡瀛樺湪");
+ }
+ // this.inputVisible = false;
+ this.TargetoptionList[index].inputVisible = false;
+ } else if (this.whether == 2 && this.inputValue) {
+ console.log(this.inputValue);
+ console.log(
+ this.TargetoptionList[index].nodynamiccruxs.indexOf(this.inputValue)
+ );
+ if (
+ this.TargetoptionList[index].nodynamiccruxs.indexOf(
+ this.inputValue
+ ) == -1
+ ) {
+ this.TargetoptionList[index].nodynamiccruxs.push(this.inputValue);
+ } else {
+ this.$message.error("鍏抽敭瀛楀凡瀛樺湪");
+ }
+ // this.noinputVisible = false;
+ this.TargetoptionList[index].noinputVisible = false;
+ }
+ this.generateRegex(row);
+
+ this.inputValue = "";
+ },
+ showInput(row) {
+ let index = this.TargetoptionList.indexOf(row);
+ // this.TargetoptionList[index].inputVisible = true;
+ this.$set(this.TargetoptionList[index], "inputVisible", true);
+ this.whether = 1;
+ },
+ showInputno(row) {
+ let index = this.TargetoptionList.indexOf(row);
+ // this.TargetoptionList[index].noinputVisible = true;
+ this.$set(this.TargetoptionList[index], "noinputVisible", true);
+ this.whether = 2;
+ },
+ handleSelectionChange(selection) {
+ console.log(this.TargetoptionList);
+ this.$emit("handleSelectionChange", selection);
+ },
+ },
+};
+</script>
+
+<style lang="scss" scoped>
+.topicxq {
+ background-color: #e2f5fc;
+ border-radius: 4px;
+ margin-top: 10px;
+ padding: 10px;
+}
+
+.el-tag + .el-tag {
+ margin-left: 10px;
+}
+.button-new-tag {
+ margin-left: 10px;
+ height: 32px;
+ line-height: 30px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+.input-new-tag {
+ width: 90px;
+ margin-left: 10px;
+ vertical-align: bottom;
+}
+</style>
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 98b5462..d389f14 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -152,7 +152,7 @@
</el-form-item>
<el-row :gutter="10">
- <el-col :span="16">
+ <el-col :span="16" v-if="intent">
<el-form-item label="璇煶鏂囦欢">
<el-upload
class="upload-demo"
@@ -167,7 +167,7 @@
</el-upload>
</el-form-item></el-col
>
- <el-col :span="8">
+ <el-col :span="intent ? 8 : 22">
<div style="text-align: right; padding-right: 10px">
<el-button
v-if="controlsc"
diff --git a/src/store/getters.js b/src/store/getters.js
index 7fc54d3..a27a028 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -53,6 +53,49 @@
},
},
],
+ // 閫傜敤鏂瑰紡
+ Askmode: (state) => [
+ {
+ value: "1",
+ label: "绾歌川",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "2",
+ label: "鐭俊",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "3",
+ label: "寰俊",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "4",
+ label: "閽夐拤",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: "5",
+ label: "浜哄伐鐢佃瘽",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ ],
// 浠诲姟鐘舵��
taskstate: (state) => [
{
@@ -136,6 +179,33 @@
},
},
],
+ // 鍊肩被鍨嬶紙闂嵎锛�
+ askvaluetype: (state) => [
+ {
+ value: 1,
+ label: "鍗曢��",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: 2,
+ label: "澶氶��",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ {
+ value: 3,
+ label: "鏂囨湰鏀堕泦",
+ raw: {
+ cssClass: "",
+ listClass: "",
+ },
+ },
+ ],
// 鍊肩被鍨�(鍒楄〃灞曠ず)
valuetypelb: (state) => [
{
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index 1178684..71d52f4 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -532,7 +532,7 @@
this.mode = store.getters.mode;
this.languagelist = store.getters.languagelist;
this.usable = store.getters.usable;
- this.valuetype = store.getters.valuetype;
+ this.valuetype = store.getters.askvaluetype;
this.required = store.getters.required;
},
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index d49e57d..1ba545b 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -470,7 +470,9 @@
>
<el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
<el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
- <el-button @click="Departmenttreatment('ruleForm')">淇濆瓨棰樼洰鏁版嵁</el-button>
+ <el-button @click="Departmenttreatment('ruleForm')"
+ >淇濆瓨棰樼洰鏁版嵁</el-button
+ >
</div>
<!-- 闂嵎棰勮 -->
<div v-if="Editprogress == 3">
@@ -605,7 +607,7 @@
import { listDept } from "@/api/system/dept";
import store from "@/store";
import {
- getQtemplateclassify,
+ getQtemplateclassify,
delQtemplateclassify,
addQtemplateclassify,
getQtemplatelist,
@@ -709,7 +711,7 @@
created() {
this.gettabList();
this.getissueinfo();
- this.mode = store.getters.mode;
+ this.mode = store.getters.Askmode;
this.languagelist = store.getters.languagelist;
this.usable = store.getters.usable;
this.required = store.getters.required;
@@ -871,7 +873,7 @@
handleDelete(row) {
let index = this.ruleForm.svyLibTopics.indexOf(row);
this.ruleForm.svyLibTopics.splice(index, 1);
- row.isoperation=3;
+ row.isoperation = 3;
this.delScriptVOList.push(row);
this.sortFn();
},
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 5f5352c..8122ab2 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -681,7 +681,7 @@
v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
:key="items.id"
:label="items.id"
- >{{ items.targetvalue }}</el-radio
+ >{{ items.targetvalue }} </el-radio
>
</el-radio-group>
</div>
diff --git a/src/views/repositoryai/general/particulars/index.vue b/src/views/repositoryai/general/particulars/index.vue
index 8a161a6..f36599f 100644
--- a/src/views/repositoryai/general/particulars/index.vue
+++ b/src/views/repositoryai/general/particulars/index.vue
@@ -51,233 +51,237 @@
></el-col>
</el-row>
</el-form>
- <div class="elcardiv">
- <div class="leftvlue-jbxx">璇濇湳鍒楄〃</div>
- <el-divider></el-divider>
+ <div style="display: flex">
+ <div class="elcardiv">
+ <div class="leftvlue-jbxx">璇濇湳鍒楄〃</div>
+ <el-divider></el-divider>
- <el-table :data="targetList" :row-class-name="tableRowClassName">
- <el-table-column label="搴忓彿" align="center" key="id" prop="id" />
+ <el-table :data="targetList" :row-class-name="tableRowClassName">
+ <el-table-column label="搴忓彿" align="center" key="id" prop="id" />
- <el-table-column
- label="闂鏂囨湰"
- align="center"
- key="switchText"
- width="250"
- prop="switchText"
- :show-overflow-tooltip="true"
+ <el-table-column
+ label="闂鏂囨湰"
+ align="center"
+ key="switchText"
+ width="250"
+ prop="switchText"
+ :show-overflow-tooltip="true"
+ >
+ </el-table-column>
+
+ <el-table-column
+ label="鏄惁鍙敤"
+ align="center"
+ key="isEnable"
+ prop="isEnable"
+ >
+ <template slot-scope="scope">
+ <span>{{ scope.row.isEnable == 1 ? "鍋滅敤" : "鍚敤" }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鏈�杩戜慨鏀�"
+ align="center"
+ key="updateTime"
+ width="250"
+ prop="updateTime"
+ :show-overflow-tooltip="true"
+ >
+ </el-table-column>
+
+ <el-table-column
+ label="鎿嶄綔"
+ align="center"
+ width="200"
+ class-name="small-padding fixed-width"
+ >
+ <template slot-scope="scope">
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleUpdate(scope.row, scope.$index)"
+ ><span class="button-textxg"
+ ><i class="el-icon-edit"></i>淇敼</span
+ ></el-button
+ >
+
+ <el-button
+ size="medium"
+ type="text"
+ @click="handleDelete(scope.row)"
+ ><span class="button-textsc"
+ ><i class="el-icon-delete"></i>鍒犻櫎</span
+ ></el-button
+ >
+ </template>
+ </el-table-column>
+ </el-table>
+ </div>
+ <div class="elcardiv">
+ <el-form
+ :model="ruleForm"
+ :rules="rules"
+ ref="ruleForm"
+ label-width="100px"
+ class="demo-ruleForm"
>
- </el-table-column>
+ <div class="leftvlue-jbxx">璇濇湳缂栬緫</div>
+ <el-divider></el-divider>
+ <div style="margin: 15px; margin-top: 50px">
- <el-table-column
- label="鏄惁鍙敤"
- align="center"
- key="isEnable"
- prop="isEnable"
- >
- <template slot-scope="scope">
- <span>{{ scope.row.isEnable == 1 ? "鍋滅敤" : "鍚敤" }}</span>
- </template>
- </el-table-column>
- <el-table-column
- label="鏈�杩戜慨鏀�"
- align="center"
- key="updateTime"
- width="250"
- prop="updateTime"
- :show-overflow-tooltip="true"
- >
- </el-table-column>
+ <el-form-item label="璇濇湳鏂囨湰" prop="name">
+ <el-input
+ v-model="ruleForm.switchText"
+ placeholder="璇疯緭鍏�"
+ ></el-input>
+ </el-form-item>
+ <el-row :gutter="20">
+ <el-col :span="12">
+ <el-form-item label="鏄惁鍚敤" prop="resource">
+ <el-select v-model="ruleForm.isEnable" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in usable"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select> </el-form-item
+ ></el-col>
+ <el-col :span="12">
+ <el-form-item label="鏄惁涓虹粨鏉熻" prop="resource">
+ <el-select v-model="ruleForm.isEnd" placeholder="璇烽�夋嫨">
+ <el-option
+ v-for="item in usablend"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
+ </el-option>
+ </el-select> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-form-item label="闂璇煶" prop="verbaltrickyy">
+ <el-upload
+ class="upload-demo"
+ action="https://jsonplaceholder.typicode.com/posts/"
+ :on-change="handleChange"
+ :file-list="fileList"
+ :limit="1"
+ :on-exceed="handleExceed"
+ >
+ <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
+ </el-upload>
+ <!-- <el-input v-model="indexform.userName" maxlength="30" /> -->
+ </el-form-item>
- <el-table-column
- label="鎿嶄綔"
- align="center"
- width="200"
- class-name="small-padding fixed-width"
- >
- <template slot-scope="scope">
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row, scope.$index)"
- ><span class="button-textxg"
- ><i class="el-icon-edit"></i>淇敼</span
- ></el-button
- >
-
- <el-button
- size="medium"
- type="text"
- @click="handleDelete(scope.row)"
- ><span class="button-textsc"
- ><i class="el-icon-delete"></i>鍒犻櫎</span
- ></el-button
- >
- </template>
- </el-table-column>
- </el-table>
- <el-form
- :model="ruleForm"
- :rules="rules"
- ref="ruleForm"
- label-width="100px"
- class="demo-ruleForm"
- >
- <div style="margin: 15px; margin-top: 50px">
- <div class="leftvlue-jbxx">璇濇湳缂栬緫</div>
- <el-divider></el-divider>
-
- <el-form-item label="璇濇湳鏂囨湰" prop="name">
- <el-input
- v-model="ruleForm.switchText"
- placeholder="璇疯緭鍏�"
- ></el-input>
- </el-form-item>
- <el-row :gutter="20">
- <el-col :span="12">
- <el-form-item label="鏄惁鍚敤" prop="resource">
- <el-select v-model="ruleForm.isEnable" placeholder="璇烽�夋嫨">
+ <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="success"
+ v-for="crux in ruleForm.dynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, ruleForm, 1)"
+ >
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="inputVisible"
+ @change="handleInputConfirm(ruleForm)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
+ >
<el-option
- v-for="item in usable"
- :key="item.value"
- :label="item.label"
- :value="item.value"
+ v-for="ruleForms in regular"
+ :key="ruleForms.label"
+ :label="ruleForms.label"
+ :value="ruleForms.label"
>
</el-option>
- </el-select> </el-form-item
- ></el-col>
- <el-col :span="12">
- <el-form-item label="鏄惁涓虹粨鏉熻" prop="resource">
- <el-select v-model="ruleForm.isEnd" placeholder="璇烽�夋嫨">
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInput(ruleForm)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+ <el-form-item label="鍏抽敭瀛�(闈�)" prop="desc">
+ <div class="xinz-inf">
+ <el-tag
+ :key="crux"
+ type="warning"
+ v-for="crux in ruleForm.nodynamiccruxs"
+ closable
+ effect="dark"
+ :disable-transitions="false"
+ @close="handleClosecrux(crux, ruleForm, 2)"
+ >
+ {{ crux }}
+ </el-tag>
+ <el-select
+ v-model="inputValue"
+ v-if="noinputVisible"
+ @change="handleInputConfirm(ruleForm)"
+ filterable
+ remote
+ allow-create
+ reserve-keyword
+ default-first-option
+ :loading="loading"
+ placeholder="璇烽�夋嫨"
+ >
<el-option
- v-for="item in usablend"
- :key="item.value"
- :label="item.label"
- :value="item.value"
+ v-for="ruleForms in noregular"
+ :key="ruleForms.value"
+ :label="ruleForms.label"
+ :value="ruleForms.label"
>
</el-option>
- </el-select> </el-form-item
- ></el-col>
- </el-row>
- <el-form-item label="闂璇煶" prop="verbaltrickyy">
- <el-upload
- class="upload-demo"
- action="https://jsonplaceholder.typicode.com/posts/"
- :on-change="handleChange"
- :file-list="fileList"
- :limit="1"
- :on-exceed="handleExceed"
- >
- <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
- </el-upload>
- <!-- <el-input v-model="indexform.userName" maxlength="30" /> -->
- </el-form-item>
-
- <el-form-item label="鍏抽敭瀛�(鍚�)" prop="desc">
- <div class="xinz-inf">
- <el-tag
- :key="crux"
+ </el-select>
+ <el-button
+ v-else
+ class="button-new-tag"
+ size="small"
+ @click="showInputno(ruleForm)"
+ >+ 鏂板</el-button
+ >
+ </div>
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" @click="submitForm('ruleForm')"
+ >淇濆瓨妯$増</el-button
+ >
+ <el-button
+ v-if="ruleForm.id"
+ type="primary"
+ plain
+ @click="modification('edit')"
+ >淇濆瓨璇濇湳</el-button
+ >
+ <el-button
+ v-else
type="success"
- v-for="crux in ruleForm.dynamiccruxs"
- closable
- effect="dark"
- :disable-transitions="false"
- @close="handleClosecrux(crux, ruleForm, 1)"
+ plain
+ @click="modification('add')"
+ >鏂板璇濇湳</el-button
>
- {{ crux }}
- </el-tag>
- <el-select
- v-model="inputValue"
- v-if="inputVisible"
- @change="handleInputConfirm(ruleForm)"
- filterable
- remote
- allow-create
- reserve-keyword
- default-first-option
- :loading="loading"
- placeholder="璇烽�夋嫨"
- >
- <el-option
- v-for="ruleForms in regular"
- :key="ruleForms.label"
- :label="ruleForms.label"
- :value="ruleForms.label"
- >
- </el-option>
- </el-select>
- <el-button
- v-else
- class="button-new-tag"
- size="small"
- @click="showInput(ruleForm)"
- >+ 鏂板</el-button
- >
- </div>
- </el-form-item>
- <el-form-item label="鍏抽敭瀛�(闈�)" prop="desc">
- <div class="xinz-inf">
- <el-tag
- :key="crux"
- type="warning"
- v-for="crux in ruleForm.nodynamiccruxs"
- closable
- effect="dark"
- :disable-transitions="false"
- @close="handleClosecrux(crux, ruleForm, 2)"
- >
- {{ crux }}
- </el-tag>
- <el-select
- v-model="inputValue"
- v-if="noinputVisible"
- @change="handleInputConfirm(ruleForm)"
- filterable
- remote
- allow-create
- reserve-keyword
- default-first-option
- :loading="loading"
- placeholder="璇烽�夋嫨"
- >
- <el-option
- v-for="ruleForms in noregular"
- :key="ruleForms.value"
- :label="ruleForms.label"
- :value="ruleForms.label"
- >
- </el-option>
- </el-select>
- <el-button
- v-else
- class="button-new-tag"
- size="small"
- @click="showInputno(ruleForm)"
- >+ 鏂板</el-button
- >
- </div>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="submitForm('ruleForm')"
- >淇濆瓨妯$増</el-button
- >
- <el-button
- v-if="ruleForm.id"
- type="primary"
- plain
- @click="modification('edit')"
- >淇濆瓨璇濇湳</el-button
- >
- <el-button
- v-else
- type="success"
- plain
- @click="modification('add')"
- >鏂板璇濇湳</el-button
- >
- <el-button @click="resetForm('ruleForm')">鍏抽棴</el-button>
- </el-form-item>
- </div>
- </el-form>
+ <el-button @click="resetForm('ruleForm')">鍏抽棴</el-button>
+ </el-form-item>
+ </div>
+ </el-form>
+ </div>
</div>
</el-card>
</div>
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 4d9059c..32e0931 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -715,7 +715,7 @@
</div>
</div>
<!-- 澶氶�� -->
- <div
+ <!-- <div
class="topic-dev"
v-for="(item, index) in valssu"
:key="item.aaa"
@@ -734,7 +734,7 @@
</el-checkbox>
</el-checkbox-group>
</div>
- </div>
+ </div> -->
<!-- 濉┖
<div class="topic-dev" v-for="item in valssu" :key="item.aaa">
<div class="dev-text">
diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue
index f239964..0075aa2 100644
--- a/src/views/repositoryai/verbaltrick/particulars/index.vue
+++ b/src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -154,40 +154,46 @@
>
</div>
</el-form-item>
- <el-form-item label="閫氱煡鍙橀噺" prop="name">
- <div style="margin-bottom: 5px" v-for="item in variablelist">
- <el-row>
- <el-col :span="5">
- <el-input
- v-model="item.variatename"
- placeholder="璇疯緭鍏ュ彉閲忓悕"
- ></el-input>
- </el-col>
- <el-col :span="8" :offset="1">
- <el-input
- v-model="item.variate"
- placeholder="璇疯緭鍏ュ彉閲忓唴瀹�"
- ></el-input>
- </el-col>
- <el-col :span="8" :offset="1">
- <el-button
- type="success"
- icon="el-icon-plus"
- circle
- @click="addvariable(item)"
- ></el-button>
- <el-button
- v-if="!item.default"
- type="danger"
- icon="el-icon-delete"
- circle
- @click="delvariable(item)"
- ></el-button>
- </el-col>
- </el-row>
- </div>
- </el-form-item>
-
+ <el-drawer
+ title="鍙橀噺缂栬緫"
+ :visible.sync="variabledeawer"
+ direction="ttb"
+ size="35%"
+ >
+ <el-form-item label="閫氱煡鍙橀噺" prop="name">
+ <div style="margin-bottom: 5px" v-for="item in variablelist">
+ <el-row>
+ <el-col :span="5">
+ <el-input
+ v-model="item.variatename"
+ placeholder="璇疯緭鍏ュ彉閲忓悕"
+ ></el-input>
+ </el-col>
+ <el-col :span="8" :offset="1">
+ <el-input
+ v-model="item.variate"
+ placeholder="璇疯緭鍏ュ彉閲忓唴瀹�"
+ ></el-input>
+ </el-col>
+ <el-col :span="8" :offset="1">
+ <el-button
+ type="success"
+ icon="el-icon-plus"
+ circle
+ @click="addvariable(item)"
+ ></el-button>
+ <el-button
+ v-if="!item.default"
+ type="danger"
+ icon="el-icon-delete"
+ circle
+ @click="delvariable(item)"
+ ></el-button>
+ </el-col>
+ </el-row>
+ </div>
+ </el-form-item>
+ </el-drawer>
<el-row>
<el-col :span="6">
<el-form-item label="浠呴檺闄㈠尯" prop="region">
@@ -250,24 +256,27 @@
</el-row>
<el-row>
<el-col :span="24">
- <div
- style="display: flex; margin-left: 100px; margin-bottom: 10px"
- >
- <div
- v-for="item in variablelist"
- class="tsgname"
- @click="tsgnameto(item)"
- >
- {{ item.variatename }}
+ <el-form-item label="闂鍙橀噺" prop="questionText">
+ <div style="display: flex; margin-bottom: 10px">
+ <div
+ v-for="item in variablelist"
+ class="tsgname"
+ @click="tsgnameto(item)"
+ >
+ {{ item.variatename }}
+ </div>
+ <div class="tsgnamebj" @click="variabledeawer = true">
+ 鍙橀噺缂栬緫
+ </div>
</div>
- </div>
+ </el-form-item>
</el-col></el-row
>
<el-row>
<el-col :span="24">
<el-form-item label="闂鏂囨湰" prop="questionText">
<el-input
- :rows="2"
+ :rows="2"
type="textarea"
id="questionText"
show-word-limit
@@ -404,12 +413,21 @@
label-width="100px"
>
<el-row>
- <el-col :span="12">
+ <el-col :span="8">
<el-form-item label="鎸囨爣鍚嶇О" prop="deptId">
<el-input
v-model="indexform.targetname"
placeholder="璇疯緭鍏ユ寚鏍囧悕绉�"
- maxlength="40"
+ maxlength="20"
+ />
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鎸囨爣鎻忚堪" prop="deptId">
+ <el-input
+ v-model="indexform.targetname"
+ placeholder="璇疯緭鍏ユ寚鏍囨弿杩�"
+ maxlength="60"
/>
</el-form-item>
</el-col>
@@ -418,7 +436,7 @@
<el-row>
<el-col :span="24">
<el-form-item label="鍊肩被鍨�">
- <el-radio-group v-model="indexform.valueType">
+ <el-radio-group disabled v-model="indexform.valueType">
<el-radio :label="1">閫夐」</el-radio>
<el-radio :label="2">鏂囨湰</el-radio>
<el-radio :label="3">鏁板��</el-radio>
@@ -434,6 +452,7 @@
@deloption="deloption"
@syioption="syioption"
@xiayioption="xiayioption"
+ :intent="false"
/>
</el-card>
<el-row :gutter="20">
@@ -558,6 +577,7 @@
deptId: undefined,
IDnumber: undefined,
},
+ variabledeawer: false,
};
},
@@ -680,7 +700,7 @@
this.indexform.isAvailable = "0";
this.indexform.language = "鏅�氳瘽";
this.indexform.isenable = res.rows[0].isenable;
- this.$forceUpdate()
+ this.$forceUpdate();
res.rows[0].targetoptionList.forEach((item) => {
item.isoperation = 1;
this.indexform.ivrLibaScriptTargetoptionList.push(item);
@@ -1028,6 +1048,21 @@
.tsgname:hover {
background: #3366f5;
}
+.tsgnamebj {
+ width: 90px;
+ margin-left: 15px;
+ text-align: center;
+ cursor: pointer;
+ height: 40px;
+ line-height: 40px;
+ background: #49dbb7;
+ color: #ffff;
+ font-size: 18px;
+ border-radius: 5px;
+}
+.tsgnamebj:hover {
+ background: #27c449;
+}
::v-deep .addtopic-input {
input {
--
Gitblit v1.9.3