|
@@ -562,25 +562,41 @@ export default {
|
|
|
searchTagList() {
|
|
|
let notIds = []
|
|
|
let tmpArr = this.rightTagsList.slice();
|
|
|
+ let tmpTypeSin = this.getTextType(this.type)
|
|
|
for (let i = 0; i < tmpArr.length; i++) {
|
|
|
if(tmpArr[i].type != 'sub' && tmpArr[i].type != 'input'){
|
|
|
notIds.push(tmpArr[i].id)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
let param = {
|
|
|
"tagName": this.searchVal,
|
|
|
- "type": this.getTextType(this.type),
|
|
|
+ "type": tmpTypeSin,
|
|
|
"notIds": notIds,
|
|
|
"notTagType": this.type == 3?[3,8,10]:this.type==4?[4,8,10]:[3,4,8,10]//查体没有症状尾巴有血压,其他史有症状尾巴无血压
|
|
|
}
|
|
|
- api.searchTagList(param).then((res) => {
|
|
|
- if (res.data.code === '0') {
|
|
|
- this.leftTagsList = res.data.data
|
|
|
- this.selectLeftTagsList = []
|
|
|
- this.selectRightTagsList = []
|
|
|
- }
|
|
|
- })
|
|
|
+ let params = {
|
|
|
+ "notIds": notIds,
|
|
|
+ "tagName": this.searchVal,
|
|
|
+ "type": tmpTypeSin
|
|
|
+ }
|
|
|
+
|
|
|
+ if(tmpTypeSin == 6){
|
|
|
+ api.getQuestionInfos(params).then((res) => {
|
|
|
+ if (res.data.code === '0') {
|
|
|
+ this.leftTagsList = res.data.data
|
|
|
+ this.selectLeftTagsList = []
|
|
|
+ this.selectRightTagsList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ api.searchTagList(param).then((res) => {
|
|
|
+ if (res.data.code === '0') {``
|
|
|
+ this.leftTagsList = res.data.data
|
|
|
+ this.selectLeftTagsList = []
|
|
|
+ this.selectRightTagsList = []
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
getSubTemplate() {
|
|
|
let param = {
|