Browse Source

预问诊标记合并bug修改

zhouna 5 years ago
parent
commit
2d7d267196
2 changed files with 2 additions and 6 deletions
  1. 1 0
      src/api/utils.js
  2. 1 6
      src/components/preTreat/AddSimpleQuestion.vue

+ 1 - 0
src/api/utils.js

@@ -377,6 +377,7 @@ export default {
       specFlag:'specFlag',
       required: 'required',
       explains:'explains',
+      flag:'flag'
     };
     isDpt?maps.controlType = 'region2':maps.tagType = 'region2';
     let obj = {};

+ 1 - 6
src/components/preTreat/AddSimpleQuestion.vue

@@ -67,12 +67,6 @@
       changeVal(val) {   //子组件数据改变传递到父组件
         this.dataPub = val;
       },
-      changeSex() {       //性别改变,清空填写单明细
-        this.changeType();
-      },
-      changeType() {      //填写单类型改变,标签明细左侧更新,右侧清空
-        this.options = [];
-      },
       pushValues(its){
         this.options = its;
       },
@@ -140,6 +134,7 @@
             "itemType" :this.dataPub.region12,           //是否为主要内容
             "url":this.dataPub.region13,                  //上传图片
             "specFlag": this.dataPub.specFlag,            //是否拼接到主诉
+            "flag": this.dataPub.flag,            //是否拼接到主诉
             "required": this.dataPub.required,             //必填
             "questionDetails": this.options,                //明细项
             //"questionMappings": [],      //映射关系,