Przeglądaj źródła

更新图谱标识 功能新增 版本号v5.4

morphone1995 4 lat temu
rodzic
commit
805c6a24c7
3 zmienionych plików z 33 dodań i 11 usunięć
  1. 3 0
      src/api/cdss.js
  2. 3 0
      src/api/config.js
  3. 27 11
      src/components/cdssManage/MedicinePrompt.vue

+ 3 - 0
src/api/cdss.js

@@ -427,4 +427,7 @@ export default {
   dataEntityVerify(param) {
     return request({ method: 'post', url: urls.dataEntityVerify, data: param });
   },
+  BatchUpdateHasInfoStatus(param) {
+    return request({ method: 'post', url: urls.BatchUpdateHasInfoStatus, data: param });
+  },
 };

+ 3 - 0
src/api/config.js

@@ -461,6 +461,9 @@ export default {
     'getEntitymanById': '/entityman/getById',   //查看实体对象
     'dataEntityVerify': '/entityman/dataVerify',   //术语关联校验(静态知识、术语关联、开单合理性规则)
 
+
+    'BatchUpdateHasInfoStatus': '/staticKnowledge/BatchUpdateHasInfoStatus',   //术语关联校验(静态知识、术语关联、开单合理性规则)
+
     'getVersionInfoAllsCDSS': '/api/cdssman/versionInfo/getVersionInfoAlls',   //获取版本信息
     'saveVersionInfoAllsCDSS': '/api/cdssman/versionInfo/saveVersionInfoAlls',   //保存版本信息
     'cancelVersionInfoAllsCDSS': '/api/cdssman/versionInfo/cancelVersionInfoAlls',   //删除版本信息

+ 27 - 11
src/components/cdssManage/MedicinePrompt.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <crumbs title="医学术语静态知识维护">
+    <crumbs title="医学术语静态知识维护" style="min-width: 1180px">
       <el-form :inline="true" class="demo-form-inline">
         <el-form-item label="术语分类:" class="selectMedicine">
           <el-select size="mini" v-model="filter.libType" placeholder="请选择" clearable>
@@ -25,16 +25,16 @@
           <el-button
             size="mini"
             type="warning"
-            style="margin:0 10px"
-            @click="addMedicalPrompt"
-          >添加静态知识</el-button>
+            @click="reIdentification"
+          >{{!reLoading?'更新图谱标识':'正在更新中...'}}</el-button>
+          <el-button size="mini" type="warning" @click="addMedicalPrompt">添加静态知识</el-button>
         </el-form-item>
       </el-form>
     </crumbs>
     <div class="contents">
       <el-table :data="list" border style="width: 100%">
         <el-table-column type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
-        <el-table-column prop="gmtModified" label="操作时间" width="180" ></el-table-column>
+        <el-table-column prop="gmtModified" label="操作时间" width="180"></el-table-column>
         <el-table-column prop="name" label="标准术语" :show-overflow-tooltip="true"></el-table-column>
         <el-table-column prop="typeName" label="术语分类" width="120"></el-table-column>
         <el-table-column prop="title" label="内容概览" width="240" :show-overflow-tooltip="true"></el-table-column>
@@ -117,7 +117,8 @@ export default {
         title: '',
         status: '',
         libType: ''
-      }
+      },
+      reLoading: false //更新图谱标识
     };
   },
   created() {
@@ -125,7 +126,7 @@ export default {
     //返回时避免参数未赋值就获取列表
     setTimeout(function() {
       that.getDataList();
-      that.getListDicCDSS()
+      that.getListDicCDSS();
     });
     // this.typeList = config.emData;
     // 非首页 编辑页返回 设置 this.currentPage
@@ -149,7 +150,22 @@ export default {
     });
   },
   methods: {
-     getListDicCDSS() {
+    //更新图谱标识
+    reIdentification() {
+      this.reLoading = true;
+      api.BatchUpdateHasInfoStatus().then(res => {
+        this.reLoading = false;
+        if (res.data.code === '0' && res.data.data === true) {
+          // 更新成功
+          this.warning('更新成功', 'success');
+        } else {
+          // 更新失败
+          this.warning('更新失败');
+        }
+      });
+    },
+
+    getListDicCDSS() {
       api.getListDicCDSS().then(res => {
         if (res.data.code === '0') {
           this.typeList = res.data.data && res.data.data['10'];
@@ -230,7 +246,7 @@ export default {
               '检验细项',
               '检查',
               '检查子项',
-              '手术和操作',
+              '手术和操作'
             ];
             this.list = data.records = data.records.filter(item => {
               item.typeName = temp[item.type];
@@ -411,12 +427,12 @@ export default {
   /deep/ .el-icon-circle-close {
     position: relative;
     // top: -2px;
-    left:12px;
+    left: 12px;
   }
 }
 
 body {
-  .el-tooltip__popper{
+  .el-tooltip__popper {
     max-width: 400px;
   }
 }