From 720f7c4ce56ae4b9fc3884d0ed9393d79130b01c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 16 八月 2024 18:07:46 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionnaire/compilequer/index.vue | 110 +++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 78 insertions(+), 32 deletions(-)
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 3315792..8100549 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -141,36 +141,43 @@
</div>
</el-form-item>
</el-row>
- <el-row>
+ <div class="xinz-infs">
<el-form-item label="閫傜敤鐤剧梾" prop="region">
- <el-button type="warning" @click="$refs.child.handleAddpatient()"
- >娣诲姞鐤剧梾</el-button
+ <el-tag
+ v-for="tag in displayedTags"
+ :key="tag.icdid"
+ type="warning"
+ :disable-transitions="false"
>
+ {{ tag.icdname }}
+ </el-tag>
+ <el-tag v-if="hasMore" type="info">+{{ remaining }} more</el-tag>
</el-form-item>
- </el-row>
+ </div>
+ <div style="margin-left: 120px; margin-bottom: 10px">
+ <el-button type="warning" @click="$refs.child.handleAddpatient()"
+ >鐤剧梾璇︽儏</el-button
+ >
+ </div>
<el-row :gutter="20">
<el-col :span="6">
<el-form-item label="鐗堟湰鍙�" prop="name">
- <el-input v-model="ruleForm.version"></el-input> </el-form-item
+ <el-input
+ v-model="ruleForm.version"
+ placeholder="榛樿1.0"
+ ></el-input> </el-form-item
></el-col>
<el-col :span="9">
<el-form-item label="鍙敤鐘舵��" prop="region">
- <el-select
- v-model="ruleForm.isenable"
- size="medium"
- filterable
- placeholder="璇烽�夋嫨鍒嗙被"
- >
- <el-option
- class="ruleFormaa"
- v-for="item in usable"
- :key="item.value"
- :label="item.label"
- :value="item.value"
+ <el-radio-group v-model="ruleForm.isAvailable">
+ <el-radio
+ v-for="(item, index) in usable"
+ :label="item.value"
+ >{{ item.label }}</el-radio
>
- </el-option>
- </el-select> </el-form-item
- ></el-col>
+ </el-radio-group>
+ </el-form-item></el-col
+ >
</el-row>
<el-form-item label="闂嵎鏂瑰紡" prop="region">
<el-select
@@ -438,6 +445,19 @@
</el-option>
</el-select> </el-form-item
></el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="12">
+ <el-form-item
+ label="棰樼洰鍒嗗��"
+ v-if="topicobj.scoretype == 1"
+ >
+ <el-input
+ v-model="topicobj.score"
+ placeholder="璇疯緭鍏ラ鍙�"
+ ></el-input>
+ </el-form-item>
+ </el-col>
</el-row>
<el-form-item label="鏄惁鐢遍�夐」閰嶇疆璺宠浆">
<el-radio-group v-model="topicobj.branchFlag">
@@ -807,11 +827,7 @@
{ value: "scriptTopic", table: "scriptTopic" },
],
- appraiselist: [
- { label: "鍒嗘暟", value: "1" },
- { label: "ABC绛夌骇", value: "2" },
- { label: "浼樿壇绛夌骇", value: "3" },
- ],
+ appraiselist: [],
fileList: [
{
@@ -907,8 +923,23 @@
this.valuetype = store.getters.valuetype;
this.courtyardlist = store.getters.courtyardlist;
this.askvaluetype = store.getters.askvaluetype;
+ this.appraiselist = store.getters.appraiselist;
// this.test();
+ },
+ computed: {
+ displayedTags() {
+ // 杩斿洖鍓�10涓猼ag
+ return this.illnesslist.slice(0, 10);
+ },
+ hasMore() {
+ // 鍒ゆ柇鏄惁鏈夋洿澶氱殑tag
+ return this.illnesslist.length > 10;
+ },
+ remaining() {
+ // 璁$畻鍓╀綑鐨則ag鏁伴噺
+ return this.illnesslist.length - 10;
+ },
},
methods: {
@@ -952,6 +983,8 @@
item.icdname = item.icd10name;
});
});
+ } else {
+ this.ruleForm.isenable = "1";
}
listDept(this.queryParams).then((response) => {
@@ -964,20 +997,20 @@
},
submitForm(formName) {
this.$modal.loading("姝e湪涓婁紶鏁版嵁锛岃绋嶅��...");
-
this.ruleForm.suitway = this.ruleForm.suitway.join(",");
-
+ if (condition) {
+ }
if (this.id) {
this.ruleForm.isoperation = 2;
compileQtemplate(this.ruleForm).then((res) => {
this.$modal.msgSuccess("淇敼鎴愬姛");
this.confirmillness();
this.$modal.closeLoading();
-
this.$router.go(-1);
});
} else {
this.ruleForm.isoperation = 1;
+ this.ruleForm.version = this.ruleForm.version ? ruleForm : "1.0";
compileQtemplate(this.ruleForm).then((res) => {
this.$modal.msgSuccess("鏂板鎴愬姛");
this.confirmillness(res.data);
@@ -991,10 +1024,8 @@
// 绉戝澶勭悊
Departmenttreatment() {
this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist);
- console.log(this.tempDetpRelevanceslist);
this.ruleForm.svyTemplateLibScripts =
this.ruleForm.svyTemplateLibScripts.concat(this.delScriptVOList);
- console.log(this.tempDetpRelevanceslist, "this.tempDetpRelevanceslist");
const result = this.tempDetpRelevanceslist.map(
(subArr) => subArr[subArr.length - 1]
);
@@ -1110,6 +1141,13 @@
console.log(this.ruleForm.svyTemplateLibScripts, "搴忓墠鍊�");
this.ruleForm.svyTemplateLibScripts.forEach((item, index) => {
item.sort = Number(index) + 1;
+ console.log(this.ruleForm.svyTemplateLibScripts.length, "length");
+
+ if (item.sort == this.ruleForm.svyTemplateLibScripts.length) {
+ item.nextScriptno = "宸叉槸鏈�鍚庝竴棰�";
+ } else {
+ item.nextScriptno = item.sort + 1;
+ }
if (item.svyLibTemplateTargetoptions) {
item.svyLibTemplateTargetoptions.forEach((items) => {
items.nextQuestion = Number(item.sort) + 1;
@@ -1441,6 +1479,14 @@
vertical-align: bottom;
}
}
+.xinz-infs {
+ font-size: 18px;
+ line-height: 48px;
+
+ .el-tag + .el-tag {
+ margin-left: 10px;
+ }
+}
.addtopic {
margin-top: 30px;
}
@@ -1448,7 +1494,7 @@
margin: 20px 0;
display: flex;
.presentation-left {
- width: 50%;
+ width: 45%;
// height: 500px;
.button-textxg {
color: #024df0;
@@ -1468,7 +1514,7 @@
}
}
.presentation-right {
- width: 50%;
+ width: 55%;
max-height: 688px;
padding: 0 20px;
font-size: 18px;
--
Gitblit v1.9.3