morphone1995 4 năm trước cách đây
mục cha
commit
a1e7f7e9fb

+ 3 - 0
src/api/cdss.js

@@ -338,4 +338,7 @@ export default {
   changeStatusCDSS(param) {
     return axios.post(urls.changeStatusCDSS, param);
   },
+  getListDicCDSS(param) {
+    return axios.post(urls.getListDicCDSS, param);
+  },
 };

+ 2 - 0
src/api/config.js

@@ -459,6 +459,8 @@ export default {
     'startDisclaimerInformationsCDSS': '/api/cdssman/disclaimerInfo/startDisclaimerInformations',   //启用免责申明详情
     'updateDisclaimerInformationsCDSS': '/api/cdssman/disclaimerInfo/updateDisclaimerInformations',   //修改免责申明详情
 
+    'getListDicCDSS': '/api/cdssman/sys/dictionaryInfo/getList',   //返回字典信息(界面返回)
+
     'getKlmEnumsDataCDSS': '/api/cdssman/getKlmEnumsData',   //枚举数据获取
 
 

+ 12 - 3
src/components/cdssManage/MedicinePrompt.vue

@@ -7,8 +7,8 @@
             <el-option
               v-for="item in typeList"
               :label="item.name"
-              :value="item.key"
-              :key="item.key"
+              :value="item.orderNo"
+              :key="item.orderNo"
             ></el-option>
           </el-select>
         </el-form-item>
@@ -125,8 +125,9 @@ export default {
     //返回时避免参数未赋值就获取列表
     setTimeout(function() {
       that.getDataList();
+      that.getListDicCDSS()
     });
-    this.typeList = config.emData;
+    // this.typeList = config.emData;
     // 非首页 编辑页返回 设置 this.currentPage
     if (Object.keys(this.$route.params).length !== 0) {
       this.currentPage = this.$route.params.currentPage;
@@ -148,6 +149,14 @@ export default {
     });
   },
   methods: {
+     getListDicCDSS() {
+      api.getListDicCDSS().then(res => {
+        if (res.data.code === '0') {
+          this.typeList = res.data.data && res.data.data['10'];
+        }
+      });
+    },
+
     handleSizeChange(val) {
       this.pageSize = val;
       this.currentPage = utils.getCurrentPage(

+ 14 - 2
src/components/cdssManage/drug/AddDrug.vue

@@ -73,8 +73,8 @@
                   style="width:100%;minWidth: 240px"
                 >
                   <el-option
-                    v-for="item in drugForm"
-                    :key="item.value"
+                    v-for="item in drugList"
+                    :key="item.val"
                     :label="item.name"
                     :value="item.name"
                   ></el-option>
@@ -120,6 +120,7 @@ export default {
       saveDisable: false, //保存按钮禁止点击
       showDrop: false, //下拉框显示文字
       drugForm: config.drugForm,
+      drugList: [],
       hospitalId: ''
     };
   },
@@ -135,8 +136,19 @@ export default {
       this.form.searchText = data.uniqueName;
       this.form.form = data.form;
     }
+
+    this.getListDicCDSS()
   },
   methods: {
+    getListDicCDSS() {
+      api.getListDicCDSS().then(res => {
+        if (res.data.code === '0') {
+          this.drugList = res.data.data && res.data.data['9'];
+        }
+      });
+    },
+
+
     // 搜索列表
     searchTerms(query) {
       if (!query) {

+ 7 - 5
src/components/common/Crumbs.vue

@@ -24,11 +24,13 @@ export default {
     };
   },
   mounted() {
-    let titleText = this.$refs.title.innerHTML;
-    // console.log(titleText.length,'titleText');
-    if (titleText.length > 19) {
-      this.isShowEllipsis = true;
-    }
+    setTimeout(() => {
+      let titleText = this.$refs.title.innerText;
+      if (titleText.length > 19) {
+        this.isShowEllipsis = true;
+      }
+    }, 200);
+    // console.log(this.isShowEllipsis,'isShowEllipsis');
   },
   methods: {
     goBack() {