|
@@ -35,8 +35,6 @@
|
|
import Search from '../components/Search.vue';
|
|
import Search from '../components/Search.vue';
|
|
// import ConfirmBox from '../common/ConfirmBox'
|
|
// import ConfirmBox from '../common/ConfirmBox'
|
|
import Tiptoast from '../common/Tiptoast.vue';
|
|
import Tiptoast from '../common/Tiptoast.vue';
|
|
- import {mapState} from 'vuex';
|
|
|
|
- import api from '@utils/api.js';
|
|
|
|
export default {
|
|
export default {
|
|
name:'UsualSymptom',
|
|
name:'UsualSymptom',
|
|
props:[],
|
|
props:[],
|
|
@@ -54,11 +52,6 @@
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- computed:{
|
|
|
|
- ...mapState({
|
|
|
|
- pathInfo: state => state.pathInfo,
|
|
|
|
- }),
|
|
|
|
- },
|
|
|
|
methods:{
|
|
methods:{
|
|
back(){
|
|
back(){
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
@@ -93,32 +86,12 @@
|
|
this.$emit('selectUsual',item,idx);
|
|
this.$emit('selectUsual',item,idx);
|
|
this.$store.commit('setSearchShow', false);
|
|
this.$store.commit('setSearchShow', false);
|
|
let obj = {
|
|
let obj = {
|
|
- "labelName": item.tagName,//标签名称
|
|
|
|
|
|
+ "labelName": item.tagName||item.name,//标签名称
|
|
"operationNum": 1,//次数
|
|
"operationNum": 1,//次数
|
|
"operationType": 1,//1常见2搜索
|
|
"operationType": 1,//1常见2搜索
|
|
}
|
|
}
|
|
this.$store.commit('addBuriedSome', obj);
|
|
this.$store.commit('addBuriedSome', obj);
|
|
},
|
|
},
|
|
- saveBuriedSome(){
|
|
|
|
- let params = {
|
|
|
|
- "doctorId": this.pathInfo.doctorId||'',
|
|
|
|
- "hospitalDeptId": this.pathInfo.hospitalDeptId||'',
|
|
|
|
- "hospitalId": this.pathInfo.hospitalDeptId||'',
|
|
|
|
- "inquiryCode": this.pathInfo.hospitalDeptId||'',
|
|
|
|
- "patientId": this.pathInfo.hospitalDeptId||'',
|
|
|
|
- "taggeds": [
|
|
|
|
- {
|
|
|
|
- "labelName": "string",//标签名称
|
|
|
|
- "operationNum": 0,//次数
|
|
|
|
- "operationType": "string",//1常见2搜索
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- api.saveBuriedSome(params).then((res)=>{
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
confirmDialog(){
|
|
confirmDialog(){
|
|
|
|
|
|
},
|
|
},
|