|
@@ -104,7 +104,7 @@ export default {
|
|
symp: [], //症状
|
|
symp: [], //症状
|
|
labelDetail: {}, //明细
|
|
labelDetail: {}, //明细
|
|
questId: null, //id
|
|
questId: null, //id
|
|
- delText: "是否删除该信息?",
|
|
|
|
|
|
+ delText: "是否删除该症状?",
|
|
delIndex: null,
|
|
delIndex: null,
|
|
showToast: false,
|
|
showToast: false,
|
|
tmpItem:{},//检索的症状
|
|
tmpItem:{},//检索的症状
|
|
@@ -126,7 +126,8 @@ export default {
|
|
failMsg: "无法选择症状,已超过最大个数",
|
|
failMsg: "无法选择症状,已超过最大个数",
|
|
modluesLen:null,
|
|
modluesLen:null,
|
|
nameStr:'',
|
|
nameStr:'',
|
|
- degNum:0
|
|
|
|
|
|
+ degNum:0,
|
|
|
|
+ startNum:0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed:{
|
|
computed:{
|
|
@@ -221,14 +222,18 @@ export default {
|
|
if(this.chooseSymp.length == 0){
|
|
if(this.chooseSymp.length == 0){
|
|
item.idx = 1
|
|
item.idx = 1
|
|
}
|
|
}
|
|
- this.common(item,flg);
|
|
|
|
|
|
+ if(this.startNum == 1){
|
|
|
|
+ this.common(item,flg);
|
|
|
|
+ }
|
|
|
|
+ this.startNum = 0
|
|
this.slideTxt = '点击展开'
|
|
this.slideTxt = '点击展开'
|
|
this.degNum = 0
|
|
this.degNum = 0
|
|
}
|
|
}
|
|
this.startTime = "";
|
|
this.startTime = "";
|
|
},
|
|
},
|
|
touchstart(it){
|
|
touchstart(it){
|
|
- this.start = this.$store.state.scroll
|
|
|
|
|
|
+ this.startNum = ++this.startNum;
|
|
|
|
+ this.start = this.$store.state.scroll;
|
|
this.startTime = +new Date();
|
|
this.startTime = +new Date();
|
|
const that = this;
|
|
const that = this;
|
|
this.timer = setTimeout(function(){
|
|
this.timer = setTimeout(function(){
|
|
@@ -322,11 +327,13 @@ export default {
|
|
if(sign){
|
|
if(sign){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ let hasSymptom = this.hasSymptom
|
|
this.$store.commit('setSearchShow', false);
|
|
this.$store.commit('setSearchShow', false);
|
|
- this.chooseSymp.push(item);
|
|
|
|
|
|
+ hasSymptom&&this.chooseSymp.push(item);
|
|
} else {
|
|
} else {
|
|
|
|
+ let hasSymptom = this.hasSymptom
|
|
this.$store.commit('setSearchShow', false);
|
|
this.$store.commit('setSearchShow', false);
|
|
- this.chooseSymp.push(item);
|
|
|
|
|
|
+ hasSymptom&&this.chooseSymp.push(item);
|
|
}
|
|
}
|
|
result.data.questionMapping = mapping
|
|
result.data.questionMapping = mapping
|
|
this.labelDetail = result.data;
|
|
this.labelDetail = result.data;
|
|
@@ -351,6 +358,15 @@ export default {
|
|
// this.checkText = this.$store.state.symptom.text;
|
|
// this.checkText = this.$store.state.symptom.text;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ hasSymptom(item){
|
|
|
|
+ let tmpLis = this.chooseSymp;
|
|
|
|
+ for(let i = 0;i<tmpLis.length;i++){
|
|
|
|
+ if(item.name == tmpLis[i].name){
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+ },
|
|
showDetil(item,flg) {//搜索点开的详情
|
|
showDetil(item,flg) {//搜索点开的详情
|
|
this.tmpItem=item
|
|
this.tmpItem=item
|
|
this.isSearch=flg||false
|
|
this.isSearch=flg||false
|
|
@@ -410,13 +426,13 @@ export default {
|
|
this.questId = item.questionId || item.id || item.conceptId;
|
|
this.questId = item.questionId || item.id || item.conceptId;
|
|
if (this.chooseSymp.length == 1) {
|
|
if (this.chooseSymp.length == 1) {
|
|
if(item.idx != 1){
|
|
if(item.idx != 1){
|
|
- this.delText = "是否删除该信息?"
|
|
|
|
|
|
+ this.delText = "是否删除该症状?"
|
|
}else{
|
|
}else{
|
|
this.delText = "要删除症状,重新填写?"
|
|
this.delText = "要删除症状,重新填写?"
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if(item.idx != 1){
|
|
if(item.idx != 1){
|
|
- this.delText = "是否删除该信息?"
|
|
|
|
|
|
+ this.delText = "是否删除该症状?"
|
|
}else{
|
|
}else{
|
|
this.delText = "要删除症状,重新填写?"
|
|
this.delText = "要删除症状,重新填写?"
|
|
}
|
|
}
|
|
@@ -452,7 +468,7 @@ export default {
|
|
this.showToast = false;
|
|
this.showToast = false;
|
|
this.delIndex = null;
|
|
this.delIndex = null;
|
|
this.questId = null;
|
|
this.questId = null;
|
|
- this.delText = "是否删除该信息?<br/>(已填内容将清除)";
|
|
|
|
|
|
+ this.delText = "是否删除该症状?";
|
|
},
|
|
},
|
|
showChecked(item,i) {
|
|
showChecked(item,i) {
|
|
const origin = this.$store.state.symptom.origin;
|
|
const origin = this.$store.state.symptom.origin;
|