Browse Source

Merge remote-tracking branch 'origin/knowledgePlat' into test

zhouna 4 years ago
parent
commit
e301579be6

+ 1 - 1
src/api/cdss.js

@@ -3,7 +3,7 @@ import config from '@api/config.js';
 const urls = config.urls;
 function request(config) {
   const instance = axios.create({
-    baseURL: "http://192.168.2.241:7010",
+    baseURL: "http://192.168.2.121:7010",
     timeout: 500000,
     headers: {
       'Content-Type': "application/json;charset=utf-8"

+ 41 - 4
src/api/config.js

@@ -1,10 +1,10 @@
 // const testUrl = 'http://223.93.170.82:23650'
-const testUrl = ''
+const testUrl = 'http://192.168.2.236:5050'
 
 export default {
-  host: 'http://192.168.2.241:5050',
+  host: 'http://192.168.2.121:5050',
   // imgHost: 'http://192.168.2.121:82',      //富文本编辑器图片回传地址
-  imgHost:'http://192.168.2.241:82',      //富文本编辑器图片回传地址
+  imgHost:'http://192.168.2.121:82',      //富文本编辑器图片回传地址
   delayTime: 500,
   urls: {
     /* 登录注册相关接口 */
@@ -481,6 +481,7 @@ export default {
     'updateDisclaimerInformationsCDSS': '/api/cdssman/disclaimerInfo/updateDisclaimerInformations',   //修改免责申明详情
 
     'getListDicCDSS': '/api/cdssman/sys/dictionaryInfo/getList',   //返回字典信息(界面返回)
+    'getListBack': '/api/cdssman/sys/dictionaryInfo/getListBack',   //返回字典信息(后台返回)
 
     'getKlmEnumsDataCDSS': '/api/cdssman/getKlmEnumsData',   //枚举数据获取
 
@@ -518,7 +519,43 @@ export default {
     'getRunningStatus': '/api/cdssman/test/running/getStatus',   //查看测试用例运行状态
     'getRunningStatusByHospitalId': '/api/cdssman/test/running/getStatusByHospitalId',   //查拉面所有测试用例运行状态
     'updateRunningStatus': '/api/cdssman/test/running/updateStatus',   //更新测试用例运行状态
-
+      //知识库规则维护
+      'zskRuleList':'/api/cdssman/klRule/getKlRuleInfoPage',//规则列表
+      'zskAddRule':'/api/cdssman//klRule/saveRuleInfo',//添加规则
+      'zskActiveRule':'/api/cdssman/klRule/startRuleInfo',//启用规则
+      'zskDisableRule':'/api/cdssman/klRule/disableRuleInfo',//禁用规则
+      'zskDelRule':'/api/cdssman/klRule/clearRuleInfo',//删除规则
+      'zskRuleDetail':'/api/cdssman/klRule/getByIdRuleInfo',//规则详情
+      'zskTypeList':'/api/cdssman/klRulePlan/getMenu',//类型列表
+      'zskSearchConcept':'/api/cdssman/klDisease/searchConcept',//知识库搜索术语
+      'zskUpdateAll':'/api/cdssman/cache/clearRuleAll',//更新数据
+      'zskgetDict':'/api/cdssman/kl/dictionary/getDictionarys',//
+    //知识库树形图
+    'getTree':'/api/cdssman/multContact/getTree',//获取当前type数据
+    'searchTreeItem':'/api/cdssman/multContact/getAllForRelation',//检索树元素
+    'addTreeRelation':'/api/cdssman/multContact/addRelation',//保存树元素
+    //知识库基础维护
+    'getBaseConceptInfoPage':'/api/cdssman/graph/klConcept/getConceptInfoPage',
+    'startConcept':'/api/cdssman/graph/klConcept/startConcept',
+    'disableConcept':'/api/cdssman/graph/klConcept/disableConcept',
+    'baseTypeGetPage':'/api/cdssman/kl/lexicon/getPage',
+    'baseRelationTypeGetPage':'/api/cdssman/kl/lexiconRelationship/getPage',
+    'clearStandRuleDrug':'/api/cdssman/cache/clearStandRuleDrug',
+    'saveBaseConceptInfo':'/api/cdssman/graph/klConcept/saveConceptInfo',
+    'getBaseConceptAll':'/api/cdssman/graph/klConcept/getConceptAll',
+    'clearConceptInfo':'/api/cdssman/graph/klConcept/clearConceptInfo',
+    //疾病相关维护
+    'getDiseasePage':'/api/cdssman/klDisease/getDiseasePage',
+    'diseaseDelete':'/api/cdssman/klDisease/delete',
+    'getBaseDetail':'/api/cdssman/klDisease/getDetail',
+    'searchConcept':'/api/cdssman/klDisease/searchConcept',
+    'diseaseBaseSave':'/api/cdssman/klDisease/save',
+    //静态知识术语
+    'staticBaseKnowledge':'/api/cdssman/kl/conceptInfo/getPage',
+    'changeBaseStatus':'/api/cdssman/kl/conceptInfo/changeStatus',
+    'getBaseRecordById':'/api/cdssman/kl/conceptInfo/getRecordById',
+    'saveBaseOrUpdateRecord':'/api/cdssman/kl/conceptInfo/saveOrUpdateRecord',
+    'staticKnowledgeBaseInfo':'/api/cdssman/kl/conceptInfo/staticKnowledgeIndexWithoutInfo',
   },
   menuIconList: { //菜单对应图标
     'YH-KZT': 'el-icon-menu',

+ 36 - 0
src/api/knowledgeLib.js

@@ -0,0 +1,36 @@
+import axios from 'axios';
+import config from '@api/config.js';
+
+const urls = config.urls;
+export default {
+    getRulesList(param){
+        return axios.post(urls.zskRuleList,param);
+    },
+    getTypesList(param){
+        return axios.post(urls.zskTypeList,param);
+    },
+    deleteRule(param){
+        return axios.post(urls.zskDelRule,param);
+    },
+    deleteRuleApply(param){
+        return axios.post(urls.zskDisableRule,param);
+    },
+    ruleDetail(param){
+        return axios.post(urls.zskRuleDetail,param);
+    },
+    searchConcept(param){
+        return axios.post(urls.zskSearchConcept,param);
+    },
+    saveRule(param){
+        return axios.post(urls.zskAddRule,param);
+    },
+    saveRuleApply(param){
+        return axios.post(urls.zskActiveRule,param);
+    },
+    zskUpdateAll() {    //更新数据
+        return axios.post(urls.zskUpdateAll)
+    },
+    zskgetDict(){
+        return axios.post(urls.zskgetDict)
+    }
+}

+ 85 - 0
src/api/knowledgeTree.js

@@ -0,0 +1,85 @@
+import axios from 'axios';
+import config from '@api/config.js';
+const urls = config.urls;
+function request(config) {
+  const instance = axios.create({
+    baseURL: "http://192.168.2.121:7010",
+    timeout: 500000,
+    headers: {
+      'Content-Type': "application/json;charset=utf-8"
+    }
+  })
+  return instance(config)
+}
+
+export default {
+  addTreeRelation(param) {
+    return axios.post(urls.addTreeRelation, param);
+  },
+  getTreeSearchList(param) {
+    return axios.post(urls.searchTreeItem, param);
+  },
+  getlistTree(param) {
+    return axios.post(urls.getTree, param);
+  },
+  getBaseConceptInfoPage(param) {
+    return axios.post(urls.getBaseConceptInfoPage, param);
+  },
+  disableConcept(param) {
+    return axios.post(urls.disableConcept, param);
+  },
+  startConcept(param) {
+    return axios.post(urls.startConcept, param);
+  },
+  baseTypeGetPage(param) {
+    return axios.post(urls.baseTypeGetPage, param);
+  },
+  clearStandRuleDrug(param) {
+    return axios.post(urls.clearStandRuleDrug, param);
+  },
+  saveBaseConceptInfo(param) {
+    return axios.post(urls.saveBaseConceptInfo, param);
+  },
+  getBaseConceptAll(param) {
+    return axios.post(urls.getBaseConceptAll, param);
+  },
+  baseRelationTypeGetPage(param) {
+    return axios.post(urls.baseRelationTypeGetPage, param);
+  },
+  getDiseasePage(param) {
+    return axios.post(urls.getDiseasePage, param);
+  },
+  staticBaseKnowledge(param) {
+    return axios.post(urls.staticBaseKnowledge, param);
+  },
+  getListBack(param) {//字典信息
+    return axios.post(urls.getListBack, param);
+  },
+  changeBaseStatus(param) {//字典信息
+    return axios.post(urls.changeBaseStatus, param);
+  },
+  getBaseRecordById(param) {//获取静态知识详情
+    return axios.post(urls.getBaseRecordById, param);
+  },
+  saveBaseOrUpdateRecord(param) {//保存静态知识
+    return axios.post(urls.saveBaseOrUpdateRecord, param);
+  },
+  staticKnowledgeBaseInfo(param) {//搜索静态知识
+    return axios.post(urls.staticKnowledgeBaseInfo, param);
+  },
+  diseaseDelete(param) {//删除诊断依据
+    return axios.post(urls.diseaseDelete, param);
+  },
+  getBaseDetail(param) {//获取疾病详情
+    return axios.post(urls.getBaseDetail, param);
+  },
+  searchConcept(param) {//查询疾病
+    return axios.post(urls.searchConcept, param);
+  },
+  diseaseBaseSave(param) {//保存疾病
+    return axios.post(urls.diseaseBaseSave, param);
+  },
+  clearConceptInfo(param) {//删除同义词
+    return axios.post(urls.clearConceptInfo, param);
+  },
+};

File diff suppressed because it is too large
+ 1063 - 0
src/components/basicKnow/AddTerm.vue


+ 264 - 0
src/components/basicKnow/BasicPartOfSpeech.vue

@@ -0,0 +1,264 @@
+<template>
+  <div>
+    <crumbs title="基础词性类型维护" style="min-width: 980px">
+      <el-form :inline="true" class="demo-form-inline">
+        <el-form-item label="关系名称:">
+          <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
+        </el-form-item>
+        <el-form-item label="数字编码:">
+          <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
+        </el-form-item>
+        <el-form-item label="状态:" class="selectMedicine">
+          <el-select size="mini" v-model="filter.status" placeholder="请选择" clearable>
+            <el-option v-for="item in stateList" :label="item.name" :value="item.id" :key="item.id"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item class="dododo">
+          <el-button size="mini" @click="filterDatas">搜索</el-button>
+        </el-form-item>
+      </el-form>
+    </crumbs>
+    <div class="contents">
+      <el-table :data="list" border style="width: 100%">
+  <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
+        <el-table-column :resizable="false" prop="gmtModified" label="词性名称" width="180"></el-table-column>
+        <el-table-column :resizable="false" prop="hisName" label="数字编码" show-overflow-tooltip></el-table-column>
+        <el-table-column
+          :resizable="false"
+          prop="uniqueName"
+          label="是否支持通用扩展"
+          show-overflow-tooltip
+        ></el-table-column>
+        <el-table-column :resizable="false" prop="uniqueName" label="是否允许修改" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="uniqueName" label="是否只有单个词" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="uniqueName" label="状态" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="uniqueName" label="操作人" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="uniqueName" label="操作时间" show-overflow-tooltip></el-table-column>
+        <el-table-column :resizable="false" prop="operate" label="操作">
+          <template slot-scope="scope">
+            <el-button @click="modifyRelation(scope.row)" type="text" size="small">修改</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <div class="pagination pagepage">
+        <el-pagination
+          :current-page.sync="currentPage"
+          @current-change="currentChange"
+          background
+          :page-size="pageSize"
+          :page-sizes="pageSizeArr"
+          @size-change="handleSizeChange"
+          :layout="pageLayout"
+          :total="total"
+        ></el-pagination>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import api from '@api/icss.js';
+import config from '@api/config.js';
+import utils from '@api/utils.js';
+
+export default {
+  name: 'Fusion', //化验大小项和公表维护
+  data: function() {
+    return {
+      list: [],
+      searched: false,
+      filter: {
+        hisName: '', // 医院诊断名称
+        uniqueName: '', //标准诊断名称
+        status: ''
+      },
+      stateList: [
+        { id: 1, name: '启用' },
+        { id: 0, name: '禁用' }
+      ],
+      currentPage: 1,
+      pageSize: config.pageSize,
+      pageSizeArr: config.pageSizeArr,
+      pageLayout: config.pageLayout,
+      total: 0,
+      uploadInfo: '导入'
+    };
+  },
+  created() {
+    const that = this;
+    //返回时避免参数未赋值就获取列表
+    setTimeout(function() {
+      that.clearFilter();
+      // that.getDataList();
+    });
+    // 非首页 编辑页返回 设置 this.currentPage
+    if (Object.keys(this.$route.params).length !== 0) {
+      this.currentPage = this.$route.params.currentPage;
+    }
+  },
+  watch: {
+    filter: {
+      handler: function() {
+        this.searched = false;
+      },
+      deep: true
+    }
+  },
+  beforeRouteEnter(to, from, next) {
+    next(vm => {
+      //const pm = to.param;
+      Object.assign(vm, to.params);
+      vm.inCurrentPage = to.params.currentPage;
+    });
+  },
+  methods: {
+    handleSizeChange(val) {
+      this.pageSize = val;
+      this.currentPage = utils.getCurrentPage(
+        this.currentPage,
+        this.total,
+        this.pageSize
+      );
+      this.getDataList();
+    },
+
+    // 获取列表数据
+    getDataList(isTurnPage) {
+      const params = this.getFilterItems(isTurnPage);
+      this.searched = true;
+      const loading = this.$loading({
+        lock: true,
+        text: 'Loading',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
+      api.getFusionPage(params).then(res => {
+        loading.close();
+        if (res.data.code === '0') {
+          this.list = res.data.data && res.data.data.records;
+        }
+        this.total = res.data.data && res.data.data.total;
+        if (this.inCurrentPage !== undefined) {
+          this.currentPage = this.inCurrentPage;
+          this.inCurrentPage = undefined;
+        }
+      });
+    },
+
+    // 处理列表请求数据参数
+    getFilterItems(isTurnPage) {
+      //翻页时筛选条件没点确定则清空
+      if (isTurnPage && !this.searched) {
+        this.clearFilter();
+      }
+      const param = {
+        current: this.inCurrentPage || this.currentPage,
+        size: this.pageSize,
+        hisName: this.filter.hisName.trim(),
+        uniqueName: this.filter.uniqueName.trim(),
+        uniqueCode: ''
+      };
+      return param;
+    },
+
+    filterDatas() {
+      this.currentPage = 1;
+      this.getDataList();
+    },
+
+    // 跳转至编辑页面
+    modifyRelation(row) {
+      // const item = Object.assign({}, row);
+      // const pam = this.searched
+      //   ? {
+      //       currentPage: this.currentPage,
+      //       pageSize: this.pageSize,
+      //       filter: this.filter
+      //     }
+      //   : { currentPage: this.currentPage, pageSize: this.pageSize };
+      // this.$router.push({
+      //   name: 'AddFusion',
+      //   params: Object.assign(pam, { isEdit: true, data: item })
+      // });
+    },
+    currentChange(next) {
+      this.currentPage = next;
+      this.getDataList(true);
+      // if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+      //     this.list = this.cacheData[next];
+      // } else {
+      //     this.getDataList();
+      // }
+    },
+    // 清空搜索参数
+    clearFilter() {
+      this.filter = {
+        hisName: '',
+        uniqueName: ''
+      };
+    },
+
+    indexMethod(index) {
+      return (this.currentPage - 1) * this.pageSize + index + 1;
+    },
+    getTagType(val) {
+      return val;
+    },
+    warning(msg, type) {
+      this.$message({
+        showClose: true,
+        message: msg,
+        type: type || 'warning'
+      });
+    }
+  }
+};
+</script>
+
+
+<style lang="less">
+@import '../../less/admin.less';
+.delete {
+  color: red;
+}
+.delete:hover {
+  color: red;
+}
+.pagination {
+  min-width: 1010px;
+}
+.downTemplate {
+  margin-right: 8px;
+  span {
+    color: #02a7f0;
+  }
+}
+#upFile {
+  display: none !important;
+}
+.el-message-box {
+  /deep/.cancelBtn {
+    background-color: #d7d7d7;
+    border-color: transparent;
+  }
+  /deep/.confirmC {
+    background-color: #ff545b !important;
+    border-color: transparent !important;
+  }
+}
+.exportBox6 {
+  /deep/ .el-message-box__btns {
+    margin-top: 20px;
+  }
+  /deep/ .el-message-box__message {
+    // text-align: center;
+  }
+  /deep/.leftbtn {
+    background-color: #d7d7d7;
+    border-color: transparent !important;
+  }
+  /deep/ .el-message-box__header {
+    border-bottom: 1px solid #dcdfe6;
+  }
+}
+</style>

+ 326 - 0
src/components/basicKnow/BasicRelationship.vue

@@ -0,0 +1,326 @@
+<template>
+  <div>
+    <crumbs title="基础关系类型维护" minWidth="995px" class="knowledgeTitle">
+      <el-form :inline="true" class="demo-form-inline">
+        <el-form-item label="关系类型名称:">
+          <el-select v-model="filter.type" clearable filterable placeholder="请选择" size="mini">
+            <el-option
+              v-for="item in typeList"
+              :key="item.id"
+              :label="item.name"
+              :value="item.name"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="数字编码:">
+          <el-input size="mini" type="number" v-model="filter.term" placeholder="请输入编码"></el-input>
+        </el-form-item>
+        <el-form-item>
+          <el-button size="mini" @click="filterDatas">搜索</el-button>
+        </el-form-item>
+      </el-form>
+    </crumbs>
+    <div class="contents knowledgeContents">
+      <el-table :data="list" border style="width: 100%">
+        <el-table-column type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
+        <el-table-column prop="name" label="关系类型名称" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="code" label="数字编码" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="modifier" label="操作人" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="gmtModified" label="操作时间" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="160">
+          <template slot-scope="scope">
+            <el-button
+              type="text"
+              size="small"
+              :disabled="true"
+            >修改</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        :current-page.sync="currentPage"
+        @current-change="currentChange"
+        background
+        :page-size="pageSize"
+        :page-sizes="pageSizeArr"
+        @size-change="handleSizeChange"
+        :layout="pageLayout"
+        :total="total"
+      ></el-pagination>
+    </div>
+  </div>
+</template>
+
+<script>
+import api from '@api/knowledgeTree.js';
+import config from '@api/config.js';
+import utils from '@api/utils.js';
+
+export default {
+  name: 'BasicTermsMaintenance',
+  data: function() {
+    return {
+      list: [],
+      stateSelect:[
+          {id:'N',name:'启用'},
+          {id:'Y',name:'禁用'},
+      ],
+      // isState:'',
+      cacheData: {}, //因为删除和恢复要及时更新,所以不做缓存
+      currentPage: 1,
+      pageSize: config.pageSize,
+      pageSizeArr: config.pageSizeArr,
+      pageLayout: config.pageLayout,
+      total: 0,
+      searched: false,
+      filter: {
+        term: '',
+        type: '',
+        libName: '',
+      },
+      typeList: [],
+      reloadFlag: true
+    };
+  },
+  created() {
+    // this.getDataList();
+    this.getTypeList();
+    const that = this;
+    //返回时避免参数未赋值就获取列表
+    setTimeout(function() {
+    });
+    this.$nextTick(()=>{
+      that.getDataList();
+    })
+  },
+  watch: {
+    filter: {
+      handler: function() {
+        this.searched = false;
+      },
+      deep: true
+    }
+  },
+  beforeRouteEnter(to, from, next) {
+    next(vm => {
+      //const pm = to.param;
+      Object.assign(vm, to.params);
+      vm.inCurrentPage = to.params.currentPage;
+    });
+  },
+  methods: {
+    handleSizeChange(val) {
+      this.pageSize = val;
+      this.currentPage = utils.getCurrentPage(
+        this.currentPage,
+        this.total,
+        this.pageSize
+      );
+      this.getDataList();
+    },
+    reloadLib() {
+      if (this.reloadFlag) {
+        this.reloadFlag = false;
+        api.clearStandRuleDrug().then(res => {
+          if (res.data.code == 0) {
+            this.reloadFlag = true;
+          }
+        });
+      }
+    },
+    addMedicalName() {
+      const pam = this.searched
+        ? {
+            currentPage: this.currentPage,
+            pageSize: this.pageSize,
+            filter: this.filter
+          }
+        : { currentPage: this.currentPage, pageSize: this.pageSize };
+      this.$router.push({ name: 'AddTerm', params: pam });
+    },
+    filterDatas() {
+      this.currentPage = 1;
+      this.getDataList();
+    },
+    getDataList(isTurnPage) {
+      const param = this.getFilterItems(isTurnPage);
+      this.searched = true;
+      // const loading = this.$loading({
+      //   lock: true,
+      //   text: 'Loading',
+      //   spinner: 'el-icon-loading',
+      //   background: 'rgba(0, 0, 0, 0.7)'
+      // });
+      api.baseRelationTypeGetPage(param)
+        .then(res => {
+          // loading.close();
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            const templis = data.records;
+            for(let i = 0;i < templis.length;i++){
+              templis[i].isDeleted = templis[i].status=='1'?'N':'Y'
+            }
+            this.list = templis;
+            // this.cacheData[param.current] = data.records;
+            this.total = data.total;
+            if (this.inCurrentPage !== undefined) {
+              this.currentPage = this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    getTypeList() {
+      api
+        .baseRelationTypeGetPage({ name: '',size: 1000 })
+        .then(res => {
+          const data = res.data;
+          if (data.code == 0) {
+            this.typeList = data.data.records||[];
+          } else {
+            console.log(res.msg);
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    /*getDetailList(id) {
+        this.$router.push({name:'DeptInfoDetail', params:{id: id}})
+      },*/
+    getFilterItems(isTurnPage) {
+      //翻页时筛选条件没点确定则清空
+      if (isTurnPage && !this.searched) {
+        this.clearFilter();
+      }
+      const param = {
+        "code": this.filter.term.trim(),
+        "name": this.filter.type,
+        current: this.inCurrentPage || this.currentPage,
+        size: this.pageSize,
+      };
+      return param;
+    },
+    indexMethod(index) {
+      return (this.currentPage - 1) * this.pageSize + index + 1;
+    },
+    currentChange(next) {
+      this.currentPage = next;
+      // if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+      //   this.list = this.cacheData[next];
+      // } else {
+      this.getDataList(true);
+      // }
+    },
+    warning(msg, type) {
+      this.$message({
+        showClose: true,
+        message: msg,
+        type: type || 'warning'
+      });
+    },
+    showConfirmDialog(msg, resolve) {
+      this.$alert(msg, '提示', {
+        confirmButtonText: '确定',
+        type: 'warning'
+      })
+        .then(() => {
+          resolve();
+        })
+        .catch(() => {});
+    },
+    showDelDialog(item) {
+      /*const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }*/
+      const param = {
+        conceptId: item.conceptId
+      };
+      let url = item.isDeleted === 'N'?'disableConcept':'startConcept'
+      let waringTxt =
+        item.isDeleted === 'N'
+          ? '是否禁用该标准术语?'
+          : '是否重新启用该条数据?';
+      this.showConfirmDialog(waringTxt, () => {
+        api[url](param)
+          .then(res => {
+            if (res.data.code == '0') {
+              if (!this.searched) {
+                //未点确认时清空搜索条件
+                this.clearFilter();
+              }
+              if (item.isDeleted !== 'N') {
+                //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              } else {
+                if (this.filter.isState !== '' && this.list.length === 1) {
+                  //有启用状态筛选条件且当前页只有最后一条数据删除时,删除成功后跳转到前一页
+                  this.currentPage =
+                    this.currentPage === 1 ? 1 : this.currentPage - 1;
+                }
+              }
+              this.warning(res.data.msg || '操作成功', 'success');
+              this.getDataList();
+            } else {
+              this.warning(res.data.msg);
+            }
+          })
+          .catch(error => {
+            this.warning(error);
+          });
+      });
+    },
+    clearFilter() {
+      this.filter = {
+        term: '',
+        type: '',
+        libName: '',
+        isState: ''
+      };
+    }
+  }
+};
+</script>
+
+<style lang="less" scoped>
+@import '../../less/admin.less';
+
+/deep/ .container.knowledgeTitle {
+  height: 40px;
+}
+/deep/ .contents.knowledgeContents {
+  padding: 64px 20px 0;
+}
+/deep/ .secLine.el-form {
+  float: right;
+  display: block;
+  position: relative;
+  top: -5px;
+}
+.delete {
+  color: red;
+}
+.review {
+  color: #22ccc8;
+}
+.deletes {
+  cursor: default;
+  color: red;
+}
+.reviews {
+  color: #606266;
+  cursor: default;
+}
+.el-table .cell {
+  overflow: hidden;
+  white-space: nowrap;
+}
+#upFile {
+  display: none !important;
+}
+</style>

+ 387 - 0
src/components/basicKnow/BasicTermsMaintenance.vue

@@ -0,0 +1,387 @@
+<template>
+  <div>
+    <crumbs title="基础术语维护" minWidth="995px" class="knowledgeTitle">
+      <el-form :inline="true" class="demo-form-inline">
+        <el-form-item label="标准术语:">
+          <el-input size="mini" v-model="filter.term" placeholder="请输入术语"></el-input>
+        </el-form-item>
+        <el-form-item label="术语类型:">
+          <el-select v-model="filter.type" clearable filterable placeholder="请选择" size="mini">
+            <el-option
+              v-for="item in typeList"
+              :key="item.id"
+              :label="item.name"
+              :value="item.code"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="同义词:">
+          <el-input size="mini" v-model="filter.libName" placeholder="输入同义词"></el-input>
+        </el-form-item>
+                <el-form-item label="状态:">
+                    <el-select v-model="filter.isState" clearable placeholder="请选择" size="mini">
+                        <el-option
+                                v-for="item in stateSelect"
+                                :key="item.id"
+                                :label="item.name"
+                                :value="item.id">
+                        </el-option>
+                    </el-select>
+                </el-form-item>
+        <el-form-item>
+          <el-button size="mini" @click="filterDatas">搜索</el-button>
+        </el-form-item>
+      </el-form>
+      <el-form class="secLine">
+        <el-form-item>
+          <el-button
+            size="mini"
+            :type="reloadFlag?'danger':'info'"
+            @click="reloadLib"
+            style="margin:0 10px"
+          >加载词库</el-button>
+          <el-button size="mini" type="warning" @click="addMedicalName" style="margin:0 10px">新增术语</el-button>
+        </el-form-item>
+      </el-form>
+    </crumbs>
+    <div class="contents knowledgeContents">
+      <el-table :data="list" border style="width: 100%">
+        <el-table-column type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
+        <el-table-column prop="libName" label="医学标准术语" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="typeName" label="术语类型"></el-table-column>
+        <el-table-column prop="synonymName" label="同义词" show-overflow-tooltip></el-table-column>
+        <el-table-column label="状态" width="100">
+          <template slot-scope="scope">
+            <span :class="scope.row.isDeleted == 'Y'?'deletes':'reviews'">{{scope.row.isDeleted == 'N'?'启用中':'禁用中'}}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="modifierName" label="操作人"></el-table-column>
+        <el-table-column prop="gmtModified" label="操作时间" :show-overflow-tooltip="true"></el-table-column>
+        <el-table-column label="操作" width="160">
+          <template slot-scope="scope">
+            <el-button
+              type="text"
+              size="small"
+              :disabled="scope.row.isDeleted != 'N'"
+              @click="toEditProduct(scope.row)"
+            >修改</el-button>
+            <span style="margin:0 3px;">|</span>
+            <el-button
+              type="text"
+              size="small"
+              :disabled="scope.row.isDeleted != 'N'"
+              @click="toEditProduct(scope.row,true)"
+            >复制</el-button>
+            <span style="margin:0 3px;">|</span>
+            <el-button
+              type="text"
+              size="small"
+              :class="scope.row.isDeleted == 'N'?'delete':'review'"
+              @click="showDelDialog(scope.row)"
+            >{{scope.row.isDeleted == 'Y'?'启用':'禁用'}}</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        :current-page.sync="currentPage"
+        @current-change="currentChange"
+        background
+        :page-size="pageSize"
+        :page-sizes="pageSizeArr"
+        @size-change="handleSizeChange"
+        :layout="pageLayout"
+        :total="total"
+      ></el-pagination>
+    </div>
+  </div>
+</template>
+
+<script>
+import api from '@api/knowledgeTree.js';
+import config from '@api/config.js';
+import utils from '@api/utils.js';
+
+export default {
+  name: 'BasicTermsMaintenance',
+  data: function() {
+    return {
+      list: [],
+      stateSelect:[
+          {id:'N',name:'启用'},
+          {id:'Y',name:'禁用'},
+      ],
+      // isState:'',
+      cacheData: {}, //因为删除和恢复要及时更新,所以不做缓存
+      currentPage: 1,
+      pageSize: config.pageSize,
+      pageSizeArr: config.pageSizeArr,
+      pageLayout: config.pageLayout,
+      total: 0,
+      searched: false,
+      filter: {
+        term: '',
+        type: '',
+        libName: '',
+      },
+      typeList: [],
+      reloadFlag: true
+    };
+  },
+  created() {
+    // this.getDataList();
+    this.getTypeList();
+    const that = this;
+    //返回时避免参数未赋值就获取列表
+    setTimeout(function() {
+    });
+    this.$nextTick(()=>{
+      that.getDataList();
+    })
+  },
+  watch: {
+    filter: {
+      handler: function() {
+        this.searched = false;
+      },
+      deep: true
+    }
+  },
+  beforeRouteEnter(to, from, next) {
+    next(vm => {
+      //const pm = to.param;
+      Object.assign(vm, to.params);
+      vm.inCurrentPage = to.params.currentPage;
+    });
+  },
+  methods: {
+    handleSizeChange(val) {
+      this.pageSize = val;
+      this.currentPage = utils.getCurrentPage(
+        this.currentPage,
+        this.total,
+        this.pageSize
+      );
+      this.getDataList();
+    },
+    reloadLib() {
+      if (this.reloadFlag) {
+        this.reloadFlag = false;
+        api.clearStandRuleDrug().then(res => {
+          if (res.data.code == 0) {
+            this.reloadFlag = true;
+          }
+        });
+      }
+    },
+    addMedicalName() {
+      const pam = this.searched
+        ? {
+            currentPage: this.currentPage,
+            pageSize: this.pageSize,
+            filter: this.filter
+          }
+        : { currentPage: this.currentPage, pageSize: this.pageSize };
+      this.$router.push({ name: 'AddTerm', params: pam });
+    },
+    toEditProduct(row, copy) {
+      const pam = this.searched
+        ? {
+            currentPage: this.currentPage,
+            pageSize: this.pageSize,
+            filter: this.filter
+          }
+        : { currentPage: this.currentPage, pageSize: this.pageSize };
+      this.$router.push({
+        name: 'AddTerm',
+        // params: {info:row}
+        params: Object.assign(pam, { id: row.conceptId, copy: copy })
+      });
+    },
+    filterDatas() {
+      this.currentPage = 1;
+      this.getDataList();
+    },
+    getDataList(isTurnPage) {
+      const param = this.getFilterItems(isTurnPage);
+      this.searched = true;
+      const loading = this.$loading({
+        lock: true,
+        text: 'Loading',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
+      api.getBaseConceptInfoPage(param)
+        .then(res => {
+          loading.close();
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            const templis = data.records;
+            for(let i = 0;i < templis.length;i++){
+              templis[i].isDeleted = templis[i].status=='1'?'N':'Y'
+            }
+            this.list = templis;
+            // this.cacheData[param.current] = data.records;
+            this.total = data.total;
+            if (this.inCurrentPage !== undefined) {
+              this.currentPage = this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    getTypeList() {
+      api
+        .baseTypeGetPage({ name: '',size: 1000 })
+        .then(res => {
+          const data = res.data;
+          if (data.code == 0) {
+            this.typeList = data.data.records||[];
+          } else {
+            console.log(res.msg);
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    /*getDetailList(id) {
+        this.$router.push({name:'DeptInfoDetail', params:{id: id}})
+      },*/
+    getFilterItems(isTurnPage) {
+      //翻页时筛选条件没点确定则清空
+      if (isTurnPage && !this.searched) {
+        this.clearFilter();
+      }
+      const param = {
+        "libName": this.filter.term.trim(),
+        "libType": this.filter.type,
+        "status": this.filter.isState=='N'?'1':this.filter.isState=='Y'?'0':'',
+        "synonymName": this.filter.libName.trim(),
+        current: this.inCurrentPage || this.currentPage,
+        size: this.pageSize,
+        isDeleted: this.filter.isState
+      };
+      return param;
+    },
+    indexMethod(index) {
+      return (this.currentPage - 1) * this.pageSize + index + 1;
+    },
+    currentChange(next) {
+      this.currentPage = next;
+      // if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+      //   this.list = this.cacheData[next];
+      // } else {
+      this.getDataList(true);
+      // }
+    },
+    warning(msg, type) {
+      this.$message({
+        showClose: true,
+        message: msg,
+        type: type || 'warning'
+      });
+    },
+    showConfirmDialog(msg, resolve) {
+      this.$alert(msg, '提示', {
+        confirmButtonText: '确定',
+        type: 'warning'
+      })
+        .then(() => {
+          resolve();
+        })
+        .catch(() => {});
+    },
+    showDelDialog(item) {
+      /*const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }*/
+      const param = {
+        conceptId: item.conceptId
+      };
+      let url = item.isDeleted === 'N'?'disableConcept':'startConcept'
+      let waringTxt =
+        item.isDeleted === 'N'
+          ? '是否禁用该标准术语?'
+          : '是否重新启用该条数据?';
+      this.showConfirmDialog(waringTxt, () => {
+        api[url](param)
+          .then(res => {
+            if (res.data.code == '0') {
+              if (!this.searched) {
+                //未点确认时清空搜索条件
+                this.clearFilter();
+              }
+              if (item.isDeleted !== 'N') {
+                //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              } else {
+                if (this.filter.isState !== '' && this.list.length === 1) {
+                  //有启用状态筛选条件且当前页只有最后一条数据删除时,删除成功后跳转到前一页
+                  this.currentPage =
+                    this.currentPage === 1 ? 1 : this.currentPage - 1;
+                }
+              }
+              this.warning(res.data.msg || '操作成功', 'success');
+              this.getDataList();
+            } else {
+              this.warning(res.data.msg);
+            }
+          })
+          .catch(error => {
+            this.warning(error);
+          });
+      });
+    },
+    clearFilter() {
+      this.filter = {
+        term: '',
+        type: '',
+        libName: '',
+        isState: ''
+      };
+    }
+  }
+};
+</script>
+
+<style lang="less" scoped>
+@import '../../less/admin.less';
+/deep/ .container.knowledgeTitle {
+  height: 80px;
+}
+/deep/ .contents.knowledgeContents {
+  padding: 104px 20px 0;
+}
+/deep/ .secLine.el-form {
+  float: right;
+  display: block;
+  position: relative;
+  top: -5px;
+}
+.delete {
+  color: red;
+}
+.review {
+  color: #22ccc8;
+}
+.deletes {
+  cursor: default;
+  color: red;
+}
+.reviews {
+  color: #606266;
+  cursor: default;
+}
+.el-table .cell {
+  overflow: hidden;
+  white-space: nowrap;
+}
+#upFile {
+  display: none !important;
+}
+</style>

+ 113 - 0
src/components/basicKnow/SearchList.vue

@@ -0,0 +1,113 @@
+<template>
+  <div class="conceptSearch" ref="conceptSearch">
+    <h4  class="conceptTitle">术语(概念ID)搜索</h4>
+    <img class="closeSearch" src="../../images/close-icon.png" @click="closeSearch" alt="">
+    <p class="searchWrap">
+      <img class="search" src="../../images/search.png" alt="搜索">
+      <input v-model.trim="conceptText" @input="searchConcept" type="text" ref="conceptInput" class="searchText" placeholder="请输入关键词搜索">
+    </p>
+    <ul class="conceptList" ref="conceptList">
+      <li 
+        v-for="item in conceptList" 
+        class="conceptItem ellipsis"
+        :title="item.conceptName"
+        @click="selectConcept(item)"
+        :key="item.conceptId">
+        {{item.conceptName}}
+      </li>
+    </ul>
+  </div>
+</template>
+<script>
+import api from '@api/knowledgeTree.js';
+
+export default {
+  props:['conceptList','addLevel'],
+  data(){
+    return {
+      conceptText: '',
+      list: [], //概念列表
+    }
+  },
+  watch:{
+    addLevel:{
+      handler(newName, oldName) {
+        this.conceptText = ''
+        this.list = []
+      },
+      deep: true
+    }
+  },
+  methods:{
+    closeSearch() {
+      this.$emit('closeSearch')
+    },
+    selectConcept(item) {
+      this.$emit('selectConcept',item)
+      this.$emit('closeSearch')
+    },
+    searchConcept() {
+      this.$emit('searchConcept',this.conceptText)
+    },
+  }
+}
+</script>
+<style lang="less" scoped>
+.conceptSearch {
+  position: fixed;
+  right: 20px;
+  top: 200px;
+  bottom: 10px;
+  width: 300px;
+  background: #fff;
+  border: 1px solid #C9C9C9;
+  text-align: center;
+  z-index: 2;
+  padding: 30px;
+  box-sizing: border-box;
+  .conceptTitle {
+    width: 100%;
+    text-align: center;
+    padding: 20px 0;
+  }
+  .searchText {
+    padding: 0 35px 0 15px;
+    width: 100%;
+    height: 34px;
+    border: 1px solid #C9C9C9;
+    box-sizing: border-box;
+  }
+  .conceptList {
+    min-height: 200px;
+    max-height:300px;
+    margin: -2px auto 0;
+    border: 1px solid #E1DFDF;
+    overflow: hidden;
+    overflow-y: auto;
+  }
+  .conceptItem {
+    height: 34px;
+    line-height: 34px;
+    text-align: left;
+    padding: 0 15px;
+    cursor: pointer;
+  }
+  .conceptItem:hover {
+    background: #f5f7fa;
+  }
+  .closeSearch {
+    position: absolute;
+    width: 30px;
+    right: 0;
+    top: 0;
+  }
+  .searchWrap {
+    position: relative;
+    .search {
+      position: absolute;
+      right: 7px;
+      top:8px;
+    }
+  }
+}
+</style>

+ 116 - 0
src/components/basicKnow/SimilarListDrag.vue

@@ -0,0 +1,116 @@
+<template>
+    <div  
+    v-if="searchType ==='standard'&& similarList.length > 0&&isShow" 
+    class="similarBox clearfix"
+        id="dragModalWrap"
+    > 
+        <div class="tabTitle"  id="dragModalTitle" @mousedown="dragAdd($event)" @mouseup="dragDel">
+            相似词数据
+        </div>
+    
+        <div class="tableBox">
+            
+            <table class="similarTable">
+            <tr>
+                <td>序号</td>
+                <td>术语</td>
+                <td>归属</td>
+            </tr>
+            <tr v-for="(item,index) in similarList" :key="item.conceptId">
+                <td>{{index+1}}</td>
+                <td>{{item.name}}</td>
+                <td>({{item.libType}}){{item.isConceptRemark}}</td>
+            </tr>
+            </table>
+        </div>
+        <div class="closeTableBox"
+        >
+            <span class="closeTable"  @click="closeTable">关闭</span>
+        </div>
+    </div>
+</template>
+<script>
+import utils from '@api/utils.js';
+export default {
+    name: "SimilarListDrag",
+    props: ["searchType","similarList","isShow"],
+    data() {
+        return{
+
+        }
+    },
+    methods: {
+        dragAdd(ev){
+            utils.dragBox('dragModalWrap','dragModalTitle','add')
+        },
+        dragDel(){
+            utils.dragBox('dragModalWrap','dragModalTitle','del')
+        },
+        closeTable(){
+            this.$emit("closeTable")
+        },
+    }
+}
+</script>
+<style lang="less" scoped>
+.similarBox {
+    position: fixed;
+    background: #fff;
+    width: 400px;
+    max-height: 280px;
+    top: 350px;
+    // border: 1px solid #000;
+   
+     z-index: 10;
+     left: 660px;
+    //  top: 0;
+     box-shadow:0 0 12px #ccc;
+  }
+  .tabTitle {
+    width: 100%;
+    height: 40px;
+    line-height: 40px;
+    font-size: 16px;
+    font-weight: bold;
+    cursor: move;
+  }
+  .closeTableBox{
+    position: relative;
+    height: 35px;
+  }
+  .closeTable {
+    position: absolute;
+    display: inline-block;
+    width: 40px;
+    height: 24px;
+    line-height: 24px;
+    border-radius: 5px;
+    cursor: pointer;
+    border: 1px solid #000;
+    box-sizing: border-box;
+    right: 30px;
+    top: 5px;
+  }
+  .tableBox {
+    max-height: 200px;
+    overflow: auto;
+    padding: 0 30px;
+  }
+  .similarTable{
+          
+    width: 100%;
+    border-collapse: collapse;
+   
+    >tr{
+        height: 30px;
+    text-align: center;
+       border: 1px solid #000;
+      td{
+        border: 1px solid #000;
+        width: 135px;
+        position: relative;
+      }
+    }
+    
+  }
+</style>

+ 77 - 0
src/components/basicKnow/TreeTab.vue

@@ -0,0 +1,77 @@
+<template>
+  <div class="tabList">
+    <ul class="clearfix">
+      <li :class="{'curTab':curId==item.id}" 
+        @click="()=>handleTabClick(item.id)" 
+        v-for="item in tab" :key="item.id"
+      >{{item.name}}<span v-if="curId==item.id"></span></li>
+    </ul>
+  </div>
+</template>
+
+<script>
+export default {
+  data(){
+    return {
+      curId:'1',
+        tab:[
+          {name:'化学物质类别',id:'1'},
+          {name:'治疗学类别',id:'2'},
+          {name:'药理学类别',id:'3'},
+          {name:'解剖学类别',id:'4'},
+          {name:'实验室检查类别',id:'7'},
+          {name:'辅助检查类别',id:'8'},
+        ],
+    }
+  },
+  mounted(){
+    let elSide = document.querySelector('.el-aside'),tabWidth = document.querySelector('.tabList');
+    // window.onresize = function(){
+    //   tabWidth = document.querySelector('.tabList')
+    //   tabWidth.style.left = elSide.offsetWidth+20+'px'
+    // }
+    tabWidth.style.left = elSide.offsetWidth+20+'px'
+  },
+  methods:{
+      handleTabClick(id){
+        this.curId = id
+        this.$emit('getTreeList',id)
+      },
+  }
+}
+</script>
+<style lang="less" scoped>
+.tabList {
+  position: fixed;
+  top: 100px;
+  right: 20px;
+  left: 270px;
+  z-index: 10;
+  border-top: 30px solid #dee2ea;
+  border-bottom: 10px solid #dee2ea;
+  box-sizing: border-box;
+  ul {
+      background-color: #fff;
+    li {
+      float: left;
+      height: 60px;
+      line-height: 60px;
+      margin: 0 15px;
+      box-sizing: border-box;
+      cursor: pointer;
+      position: relative;
+      span {
+        position: absolute;
+        bottom: 10px;
+        left: 0;
+        width: 100%;
+        height: 2px;
+        background-color: #21CBC7;
+      }
+    }
+    .curTab {
+        color: #48C5D7;
+    }
+  }
+}
+</style>

+ 3 - 3
src/components/common/Crumbs.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="container clearfix" :style="{'minWidth':minWidth?minWidth:'980px'}">
+  <div class="container clearfix" :style="{'minWidth':minWidth?minWidth:'980px',position:fix?fix:'absolute'}">
     <img
       v-if="linkTo"
       class="return-btn fl"
@@ -17,7 +17,7 @@
 <script>
 export default {
   name: 'crumbs',
-  props: ['title', 'linkTo', 'minWidth', 'param'], //minWidth-有些头部选项比较多,最小宽度需要调整
+  props: ['title', 'linkTo', 'minWidth', 'param','fix'], //minWidth-有些头部选项比较多,最小宽度需要调整
   data: function() {
     return {
       isShowEllipsis: false // 是否显示文字省略号
@@ -65,7 +65,7 @@ div.container {
 
 h4 {
   font-size: 15px;
-  width: 280px;
+  width: auto;
   overflow: hidden; /*超出部分隐藏*/
   white-space: nowrap; /*不换行*/
   text-overflow: ellipsis; /*超出部分文字以...显示*/

+ 1 - 0
src/components/icss/AddMedicinePrompt.vue

@@ -35,6 +35,7 @@
                
                 <InfoParagraph v-for="(f,i) in form.prags"
                                 v-if="!upload"
+                               :key="i"
                                :data="f"
                                :index="i"
                                :total="form.prags.length"

+ 325 - 0
src/components/knowledgeExtra/AboutDisease.vue

@@ -0,0 +1,325 @@
+<template>
+    <div>
+        <crumbs title="疾病相关维护" minWidth="995px">
+            <el-form :inline="true" class="demo-form-inline">
+                <el-form-item label="疾病名称:">
+                    <el-input size="mini" v-model="filter.term" placeholder="请输入名称"></el-input>
+                </el-form-item>
+                <el-form-item>
+                    <el-button size="mini" @click="filterDatas">确认</el-button>
+                    <el-button size="mini" type="warning" style="margin:0 10px"  @click="addMedicalMultR">新增疾病</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="60">
+                </el-table-column>
+                <el-table-column
+                        prop="disName"
+                        label="疾病名称"
+                        show-overflow-tooltip>
+                </el-table-column>
+                <el-table-column
+                        prop="modifier"
+                        label="操作人">
+                </el-table-column>
+                <el-table-column
+                        prop="gmtModified"
+                        label="操作时间"
+                        :show-overflow-tooltip="true">
+                </el-table-column>
+                
+                <el-table-column
+                        label="操作" width="160">
+                    <template slot-scope="scope">
+                        <el-button type="text" size="small" @click="toEditProduct(scope.row)">修改</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row)">删除</el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+            <el-pagination :current-page.sync="currentPage"
+                           @current-change="currentChange"
+                           background
+                           :page-size="pageSize"
+                           :page-sizes="pageSizeArr"
+                           @size-change="handleSizeChange"
+                           :layout="pageLayout"
+                           :total="total">
+            </el-pagination>
+        </div>
+
+    </div>
+</template>
+
+<script>
+  import api from '@api/knowledgeTree.js';
+  import config from '@api/config.js';
+  import utils from '@api/utils.js';
+  
+  export default {
+    name: 'AboutDisease',
+    data: function () {
+      return {
+        list: [],
+        stateSelect:[
+          {id:'N',name:'启用中'},
+          {id:'Y',name:'已删除'},
+        ],
+        isState:'',
+        cacheData: {},
+        currentPage: 1,
+        pageSize: config.pageSize,
+        pageSizeArr:config.pageSizeArr,
+        pageLayout:config.pageLayout,
+        total: 0,
+        searched: false,
+        filter: {
+          term:'',
+          type:''
+        },
+        typeList:[]
+      }
+    },
+    created() {
+      const that = this;
+      //返回时避免参数未赋值就获取列表
+      setTimeout(function(){
+        that.getDataList();
+      });
+      // this.getTypeList();
+    },
+    watch: {
+      'filter': {
+        handler: function () {
+          this.searched = false;
+        },
+        deep: true
+      }
+    },
+    beforeRouteEnter(to, from, next){
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm,to.params);
+        vm.inCurrentPage=to.params.currentPage;
+      })
+    },
+    methods: {
+      handleSizeChange(val){
+        this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentPage, this.total, this.pageSize);
+        this.getDataList();
+      },
+      addMedicalMultR(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          pageSize:this.pageSize,
+          filter: this.filter
+        } : {currentPage: this.currentPage,
+          pageSize:this.pageSize};
+        this.$router.push({name:'DiseaseTree',
+          params:pam});
+      },
+      toEditProduct(row){
+        const param = {
+          disName: row.disName,
+        };
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          pageSize:this.pageSize,
+          filter: this.filter
+        } : {currentPage: this.currentPage,
+          pageSize:this.pageSize};
+        api.getBaseDetail(param).then((res) => {
+          const {code,data,msg} = res.data;
+          if(code=='0'){
+              const item = Object.assign({},row,data);
+              this.$router.push({name:'DiseaseTree',params:Object.assign(pam, {isEdit: true, data: item})});
+          }else{
+              this.$message({
+              message: msg,
+              type: 'warning'
+              });
+          }
+        })
+      },
+      filterDatas(){
+        this.currentPage = 1;
+        this.getDataList();
+      },
+      getDataList(isTurnPage) {
+        const param = this.getFilterItems(isTurnPage);
+        this.searched = true;
+        const loading = this.$loading({
+            lock: true,
+            text: 'Loading',
+            spinner: 'el-icon-loading',
+            background: 'rgba(0, 0, 0, 0.7)'
+        }); 
+        api.getDiseasePage(param).then((res) => {
+          loading.close()
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            this.list = data.records;
+            this.cacheData[param.current] = data.records;
+            this.total = data.total;
+            if(this.inCurrentPage!==undefined){
+              this.currentPage=this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
+          }
+        }).catch((error) => {
+          console.log(error);
+        });
+      },
+      getTypeList(){
+        api.allKnowledgeType({'name':''}).then((res)=>{
+          const data = res.data;
+          if(data.code==0){
+            this.typeList = data.data;
+          }else{
+            console.log(res.msg);
+          }
+        }).catch((error) => {
+          console.log(error);
+        });
+      },
+      /*getDetailList(id) {
+        this.$router.push({name:'DeptInfoDetail', params:{id: id}})
+      },*/
+      getFilterItems(isTurnPage) {
+        //翻页时筛选条件没点确定则清空
+        if(isTurnPage&&!this.searched){
+          this.clearFilter();
+        };
+        const param = {
+          disName: this.filter.term.trim(),
+          current: this.inCurrentPage||this.currentPage,
+          size: this.pageSize
+        };
+        return param;
+      },
+      indexMethod(index) {
+        return ((this.currentPage - 1) * this.pageSize) + index + 1;
+      },
+      currentChange(next) {
+        this.currentPage = next;
+        if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+          this.list = this.cacheData[next];
+        } else {
+          this.getDataList(true);
+        }
+      },
+      warning(msg,type){
+        this.$message({
+          showClose: true,
+          message:msg,
+          type:type||'warning'
+        })
+      },
+      showConfirmDialog(msg,resolve){
+        this.$alert(msg, '提示', {
+          confirmButtonText: '确定',
+          type: 'warning'
+        }).then(() => {
+          resolve();
+        }).catch(() => {});
+      },
+      showDelDialog(item){
+        /*const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }*/
+        const param = {
+          disName:item.disName
+        }
+        let waringTxt = '是否删除该关系,可能对现有系统造成影响'
+        this.showConfirmDialog(waringTxt,()=>{
+          api.diseaseDelete(param).then((res)=>{
+            if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.clearFilter();
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
+              this.warning(res.data.msg||'操作成功','success');
+              this.getDataList();
+            }else{
+              this.warning(res.data.msg);
+            }
+          }).catch((error)=>{
+            this.warning(error);
+          })
+        });
+      },
+      clearFilter(){
+        this.filter={
+          term:'',
+          type:''
+        };
+      },
+      uploadClick(){
+        let inp = document.getElementById("upFile");
+        inp.click();
+      },
+      uploadFile(e){
+        let fileInfo = e.target.files[0];
+        e.preventDefault();
+        let formData = new FormData();
+        formData.append('uploadfile', fileInfo);
+        const header = {
+          headers:{
+            'Content-Type': 'multipart/form-data'
+          }
+        }
+        api.knowledgeUpload(formData,header).then((res)=>{
+          if(res.data.code==0){
+            this.$message({
+              message: '上传成功',
+              type: 'success',
+            });
+            this.getDataList();
+          }else{
+            this.$message({
+              dangerouslyUseHTMLString: true,
+              message:res.data.msg,
+              type:'warning'
+            });
+          }
+        })
+        
+        //解决上传相同文件不触发change
+        let inp = document.getElementById("upFile");
+        inp.value = "";   
+      },
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+    @import "../../less/admin.less";
+    .delete{
+        color: red;
+    }
+    .review{
+      color: #22ccc8;
+    }
+    .el-table .cell{
+      overflow: hidden;
+      white-space: nowrap;
+    }
+    #upFile{
+      display: none !important;
+    }
+</style>

+ 887 - 0
src/components/knowledgeExtra/AddDevKnow.vue

@@ -0,0 +1,887 @@
+<template>
+  <el-scrollbar style="height: 100%" ref="elscrollbar" id="message-container">
+    <div class="NoiseTemplateWrapper TemplateWrapper knowledgeWrapper">
+      <crumbs
+        :title="'医学术语静态知识维护-'+title"
+        class="topBack"
+        :param="$route.params"
+        linkTo="StaticInfo"
+      ></crumbs>
+      <div class="info-container">
+        <el-form :rules="rules" :model="form" label-width="160px" ref="groups">
+          <el-form-item v-if="!isEdit" label="选择标准术语:" prop="selectedTerm">
+            <el-select
+              v-model="form.selectedTerm"
+              filterable
+              remote
+              clearable
+              :loading="showDrop"
+              loading-text="加载中..."
+              @change="changeWord"
+              @visible-change="handleVisible"
+              value-key="conceptId"
+              @clear="handleClear"
+              ref="termName"
+              placeholder="搜索"
+              :remote-method="searchTerms"
+            >
+              <el-option
+                v-for="(term,idx) in terms"
+                :key="idx"
+                :label="term.name+(term.typeName?'('+term.typeName+')':'')"
+                :value="term"
+                :title="term.name+(term.typeName?'('+term.typeName+')':'')"
+              ></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="已选择标准术语:" label-width="160px">{{form.selectedTermName}}</el-form-item>
+          <el-form-item
+            v-if="form.selectedTerm&&(form.typeId==1||form.typeId==3||form.typeId==4||form.typeId==5||form.typeId==6)"
+            :label="titleChange"
+            prop="titleChange"
+            label-width="160px"
+          >
+            <el-input v-model="form.titleChange"></el-input>
+          </el-form-item>
+          <p class="line"></p>
+          <DevInfo
+            v-for="(f,i) in form.prags"
+            v-if="!upload"
+            :key="(i+1)*10000 + showType"
+            :data="f"
+            :index="i"
+            :total="form.prags.length"
+            :isEdit="isEdit"
+            :isCopy="isCopy"
+            ref="subForm"
+            @add="addParagraph(i)"
+            @del="delParagraph"
+            @reOrder="reOrder"
+            :showType="showType"
+          ></DevInfo>
+          <el-form-item v-if="upload" label="标题名称搜索:" prop="fileTitle" label-width="160px">
+            <el-input v-model="form.fileTitle"></el-input>
+          </el-form-item>
+          <el-form-item
+            v-if="upload"
+            label="上传文件:"
+            ref="upload"
+            prop="fileList"
+            label-width="160px"
+          >
+            <el-upload
+              @mouseenter.native="handleMouseenter"
+              @mouseleave.native="handleMouseleave"
+              class="upload-demo"
+              :action="config.urls.promptServer"
+              name="upfile"
+              :multiple="false"
+              :limit="1"
+              :on-preview="handlePreview"
+              :on-remove="handleRemove"
+              :before-upload="handleBeforeUpLoad"
+              :before-remove="beforeRemove"
+              :on-change="handleChange"
+              :on-success="handleSuccess"
+              :show-file-list="showFileList"
+              :file-list="form.fileList"
+            >
+              <el-button size="small" type="primary" v-if="showUpLoad">点击上传</el-button>
+              <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
+            </el-upload>
+            <span class="tipInfo" v-show="isShowTip">{{form.fileList[0]&&form.fileList[0].name}}</span>
+            <!-- <el-button size="small" type="primary" >点击上传</el-button> -->
+          </el-form-item>
+          <el-form-item label-width="160px">
+            <div class="uploadInfo" v-if="isSuccessUpload===1">文件上传中,请稍等...</div>
+          </el-form-item>
+        </el-form>
+        <div class="btn">
+          <el-button type="primary" :disabled="saveDisable" @click="submitForm">确 定</el-button>
+        </div>
+      </div>
+    </div>
+  </el-scrollbar>
+</template>
+<script>
+/**
+ *
+ */
+import api from '@api/knowledgeTree.js';
+import DevInfo from './DevInfo';
+import config from '@api/config';
+import $ from 'jquery';
+
+export default {
+  name: 'AddDevKnow',
+  components: {
+    DevInfo
+  },
+  data() {
+    return {
+      isFixedTop: true,
+      isEdit: false,
+      isCopy: false,
+      title: '添加',
+      termTypes: [],
+      terms: [], //术语列表
+      form: {
+        conceptId: '', //术语id
+        isTip: 0, //是否要覆盖,0不覆盖,1覆盖
+        selectedTerm: '', //术语标签
+        termType: '',
+        typeId: '',
+        selectedTermName: '',
+        selectedTermType: '',
+        // titleChange: '',
+        fileList: [],
+        name: '',
+        prags: [
+          {
+            //单个段落相关
+            title: '',
+            content: '',
+            isReason: 0,
+            orderNo: 0,
+            position: [],
+            text: ''
+          }
+        ],
+        fileTitle: '',
+        titleChange: ''
+      },
+      rules: {
+        selectedTerm: [
+          { required: true, message: '请选择标准术语', trigger: 'change' }
+        ],
+        fileTitle: [
+          { required: true, message: '请输入标题名称', trigger: 'change' },
+          {
+            validator: (rule, value, callback) => {
+              if (value.trim().length > 30) {
+                callback(new Error('标题名称不能超过30字'));
+              } else {
+                callback();
+              }
+            },
+            trigger: 'change'
+          }
+        ],
+        fileList: [
+          { required: true, message: '请上传文件', trigger: 'change' }
+        ],
+        titleChange: [
+          // {
+          //   validator: (rule, value, callback) => {
+          //     if (!value.trim()) {
+          //       callback(
+          //         new Error('请输入' + this.titleChange.replace(':', ''))
+          //       );
+          //     } else {
+          //       callback();
+          //     }
+          //   },
+          //   trigger: 'change'
+          // },
+          { max: 30, message: '标题最多30字', trigger: 'change' }
+        ]
+      },
+      saveDisable: false, //保存按钮禁止点击
+      showDrop: false, //下拉框显示文字bug1774
+      config: config,
+      showUpLoad: true,
+      showFileList: false,
+      upload: false,
+      showConfirm: true,
+      isSuccessUpload: 0, //是否上传成功  0: 不在上传  1: 上传过程中  2: 上传成功
+      isShowTip: false,
+      showType: -1, // 1 诊断  2  药品   3检验套餐 4检验细项  5检查 6检查子   7手术和操作
+      editCount: -1, // 页面会否被编辑 >0被编辑   =0 未编辑
+      startCount: -1,
+      isSaveSuccess: false // 是否保存成功
+    };
+  },
+  watch: {
+    showType: {
+      handler(newVal, oldVal) {
+        if (newVal !== oldVal) {
+          this.form.prags = this.form.prags.map(item => {
+            return { ...item, position: [] };
+          });
+        }
+      }
+    },
+    form: {
+      handler(newName, oldName) {
+        this.editCount++;
+      },
+      deep: true,
+      immediate: true
+    }
+  },
+  created: function() {
+    const { isEdit, data, isCopy } = this.$route.params;
+    if (isEdit || isCopy) {
+      this.showType = data.type; // 编辑页确认显示类型
+      this.isEdit = isEdit;
+      this.isCopy = isCopy;
+      this.title = isEdit ? '修改' : isCopy ? '复制' : '添加';
+      (isEdit || isCopy) && this.changeWord(data);
+      if (isCopy) {
+        const _this = this;
+        setTimeout(() => {
+          _this.handleClear();
+        }, 300);
+      }
+      api.getBaseRecordById({ id: data.id })
+        .then(res => {
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            if (this.form.typeId === 82 || this.form.typeId === 83) {
+              // console.log('data',data)
+              this.form.fileList =
+                data &&
+                data.map(it => {
+                  return JSON.parse(it.content);
+                });
+              this.showFileList = true;
+              this.showUpLoad = false;
+            } else {
+              this.conceptId = data.id;
+              this.form.typeId = data.type;
+              this.form.name = data.name;
+              this.form.titleChange =
+                data.type == 1
+                  ? data.clinicalPathwayName
+                  : data.type == 3 ||
+                    data.type == 4 ||
+                    data.type == 5 ||
+                    data.type == 6
+                  ? data.noticeName
+                  : '';
+              this.form.selectedTermName =
+                data.name + (data.typeName ? '(' + data.typeName + ')' : '');
+              this.form.selectedTerm =
+                data.name + (data.typeName ? '(' + data.typeName + ')' : '');
+              this.form.prags =
+                data &&
+                data.details.map(it => {
+                  return {
+                    title: it.title,
+                    position: this.mapStringToNum(it.contentType),
+                    content: it.content.replace(
+                      /{imageUrlPrefix}/g,
+                      config.imgHost
+                    ),
+                    // isReason:it.isReason,
+                    text: it.text,
+                    disabled: true
+                  };
+                });
+            }
+          }
+        })
+        .catch(error => {
+          if (error.code === '900010001') {
+            return false;
+          }
+          console.log(error);
+        });
+    }
+    setTimeout(() => {
+      this.startCount = this.editCount;
+    }, 500);
+  },
+  mounted() {},
+  beforeRouteLeave(to, from, next) {
+    // if (this.isSuccessUpload === 1) {
+    //   this.$confirm('文件正在上传,是否确定返回?', '提示', {
+    //     confirmButtonText: '确定',
+    //     cancelButtonText: '取消',
+    //     cancelButtonClass: 'cancel',
+    //     type: 'warning'
+    //   })
+    //     .then(() => {
+    //       next();
+    //     })
+    //     .catch(() => {});
+    //   //  this.warning('还有未保存的文件,是否确定返回?');
+    // } else if (this.isSuccessUpload === 2) {
+    //   this.$confirm('还有未保存的文件,是否确定返回?', '提示', {
+    //     confirmButtonText: '确定',
+    //     cancelButtonText: '取消',
+    //     cancelButtonClass: 'cancel',
+    //     type: 'warning'
+    //   })
+    //     .then(() => {
+    //       next();
+    //     })
+    //     .catch(() => {});
+    // } else {
+    //   next();
+    // }
+
+    if (this.startCount !== this.editCount && !this.isSaveSuccess) {
+      this.$alert('还有未保存的内容,确定要退出当前页面吗?', '提示', {
+        confirmButtonText: '确定',
+        // cancelButtonText: '取消',
+        // cancelButtonClass: 'leaveBtn',
+        // customClass: 'leaveBox',
+        type: 'warning'
+      })
+        .then(() => {
+          next();
+        })
+        .catch(() => {});
+    } else {
+      next();
+    }
+  },
+  methods: {
+    handleClear() {
+      this.form.selectedTermName = '';
+      this.form.selectedTerm = '';
+      this.form.titleChange = '';
+      // console.log('处理清空的操作');
+    },
+
+    handleMouseenter() {
+      if (this.form.fileList.length !== 0) {
+        this.isShowTip = true;
+      }
+    },
+    handleMouseleave() {
+      this.isShowTip = false;
+    },
+    changeWord(newVal) {
+      // console.log(newVal, '选中');
+      this.showType = newVal.type || -1;
+      const name = newVal.name;
+      const typeName = newVal.typeName;
+      const type = newVal.type;
+      this.form.selectedTermName =
+        name + (typeName ? '(' + typeName + ')' : '');
+      this.form.selectedTerm = name + (typeName ? '(' + typeName + ')' : '');
+      this.form.name = name;
+      this.form.fileList = [];
+      this.showFileList = false;
+      this.form.typeId = type || '';
+      this.showUpLoad = true;
+      this.titleChange =
+        type == 1
+          ? '临床路径标题:'
+          : type == 3 || type == 4 || type == 5 || type == 6
+          ? '注意事项标题:'
+          : '';
+      this.form.fileTitle = '';
+      if (newVal.typeId === 82 || newVal.typeId === 83) {
+        this.upload = true;
+        this.form.fileTitle = newVal.title;
+      } else {
+        this.upload = false;
+      }
+    },
+    handleVisible(flag) {
+      if (!flag) {
+        this.terms = [];
+      }
+    },
+    reOrder(isUp, i) {
+      // isUp: 1 上升    0 下降
+      let div = this.$refs['elscrollbar'].$refs['wrap'];
+      let temp = {},
+        it = {};
+      if (isUp === 1) {
+        if (i === 0) {
+          this.warning('已经是第一个,不能再升啦!');
+          return;
+        }
+        temp = Object.assign(this.form.prags[i - 1]);
+        it = Object.assign(this.form.prags[i]);
+        this.form.prags.splice(i - 1, 2, it, temp);
+        this.$nextTick(() => {
+          div.scrollTop = this.$refs.subForm[i - 1].$el.offsetTop - 48;
+        });
+      } else {
+        if (i === this.form.prags.length - 1) {
+          this.warning('已经是最后一个,不能再降啦!');
+          return;
+        }
+        temp = Object.assign(this.form.prags[i + 1]);
+        it = Object.assign(this.form.prags[i]);
+        this.form.prags.splice(i, 2, temp, it);
+      }
+    },
+    addParagraph(i) {
+      this.form.prags.splice(i + 1, 0, {
+        title: '',
+        content: '',
+        isReason: 0,
+        position: [],
+        text: ''
+      });
+      //添加段落光标自动落到新增的段落中
+      setTimeout(() => {
+        this.$refs.subForm[i + 1].$el
+          .getElementsByClassName('el-input__inner')[0]
+          .focus();
+      });
+    },
+    delParagraph(i) {
+      if (this.form.prags.length == 1) {
+        this.warning('只剩一个段落,不能再删啦!');
+        return;
+      }
+      this.showConfirmDialog('确定要删除该段落?', () => {
+        this.form.prags.splice(i, 1);
+      });
+    },
+    back() {
+      this.$router.go(-1);
+    },
+    searchTerms(query) {
+      if (!query.trim()) {
+        this.form.terms = [];
+        return;
+      }
+      //搜索术语列表
+      this.showDrop = true;
+      api.staticKnowledgeBaseInfo({ inputStr: query.trim(), types: [0] }).then(res => {
+        this.showDrop = false;
+        if (res.data.code === '0') {
+          this.terms = res.data.data;
+        } else {
+          this.warning('数据获取失败');
+        }
+      });
+    },
+    mapStringToNum(str) {
+      return str.split(',').map(it => {
+        return +it;
+      });
+    },
+
+    // 额外的表单检验
+    formVal() {
+      let positiontemp = this.form.prags.map(item => {
+        return [...item.position];
+      });
+      let positionArr = positiontemp.reduce(function(a, b) {
+        return a.concat(b);
+      }); // 所有被选中的值集合
+      console.log(positionArr, 'positionArr');
+      console.log(this.showType, '当前页的显示类型');
+      let isVisFlag = positionArr.some(item => item === 2);
+      let isDiagFlag = positionArr.some(item => item === 3);
+      console.log(isVisFlag, 'isVisFlag是否显示');
+      if (
+        (this.showType == 3 ||
+          this.showType == 4 ||
+          this.showType == 5 ||
+          this.showType == 6) &&
+        isVisFlag
+      ) {
+        console.log('进入校验');
+        //若医学术语为检验/检查,且内容类型选择了注意事项,此时“注意事项标题”是必填项
+        this.$refs.groups.clearValidate();
+        this.rules.titleChange.push({
+          required: true,
+          message: '请输入注意事项标题',
+          trigger: 'change'
+        });
+        this.$refs.groups.validateField('titleChange');
+        this.$refs.groups.validateField('selectedTerm');
+        this.rules.titleChange = this.rules.titleChange.slice(0, 1);
+
+        if (this.form.titleChange.trim() !== '') {
+          // console.log('内容不为空');
+          return true;
+        } else {
+          var div = this.$refs['elscrollbar'].$refs['wrap'];
+          this.$nextTick(() => {
+            div.scrollTop = 0;
+          });
+          return false;
+        }
+        // return;
+      } else if (isDiagFlag && this.showType == 1) {
+        // 若医学术语为诊断,且内容类型选择了临床路径,此时“临床路径标题”是必填项
+        this.$refs.groups.clearValidate();
+        this.rules.titleChange.push({
+          required: true,
+          message: '请输入临床路径标题',
+          trigger: 'change'
+        });
+        this.$refs.groups.validateField('titleChange');
+        this.$refs.groups.validateField('selectedTerm');
+        this.rules.titleChange = this.rules.titleChange.slice(0, 1);
+
+        if (this.form.titleChange.trim() !== '') {
+          // console.log('内容不为空');
+          return true;
+        } else {
+          var div = this.$refs['elscrollbar'].$refs['wrap'];
+          this.$nextTick(() => {
+            div.scrollTop = 0;
+          });
+          return false;
+        }
+      }
+    },
+
+    submitForm() {
+      if (this.isSuccessUpload === 1) {
+        this.warning('文件上传中,请稍等');
+        return;
+      }
+      let flagVal = this.formVal(); // 额外的表单校验
+      if (flagVal === false) return;
+      //验证外层表单
+      let goOn = true,
+        it = null;
+      let outIsVia = true; // 外层验证是否通过
+      this.$refs.groups.validate(valid => {
+        if (!valid) {
+          goOn = false;
+          outIsVia = false;
+          return false;
+        }
+      });
+      //验证段落表单
+      let viewHeight = 0; // 定位到表单校验的高度
+      let viewHeightArr = []; // 表单校验出错高度的所有数组
+      if (this.form.typeId !== 82 && this.form.typeId !== 83) {
+        for (let i = 0; i < this.$refs.subForm.length; i++) {
+          it = this.$refs.subForm[i];
+          viewHeight += it.$el.offsetHeight;
+          it.$refs.form.validate(valid => {
+            if (!valid) {
+              goOn = false;
+              viewHeightArr.push(viewHeight);
+            }
+          });
+        }
+      }
+      // console.log(viewHeightArr,'viewHeightArr');
+      if (!goOn) {
+        var div = this.$refs['elscrollbar'].$refs['wrap'];
+        if (outIsVia) {
+          // 外层校验通过,跳转至下层校验具体位置
+          this.$nextTick(() => {
+            div.scrollTop = +viewHeightArr[0] - 150;
+          });
+        } else {
+          // 外层校验没通过,页面滚动到顶部
+          this.$nextTick(() => {
+            div.scrollTop = 0;
+          });
+        }
+        return;
+      }
+      //通过必填验证,提交保存
+      const item = this.form.prags;
+      let param = [];
+      if (this.form.typeId === 82 || this.form.typeId === 83) {
+        if (this.form.fileList.length === 0) {
+          this.warning('文件未上传,不存储数据');
+          return;
+        }
+        param.push(
+          Object.assign(
+            {},
+            {
+              position: this.form.typeId === 82 ? '8' : '9',
+              conceptId: this.form.conceptId,
+              title: this.form.fileTitle,
+              orderNo: 0,
+              content: JSON.stringify(this.form.fileList[0])
+            }
+          )
+        );
+      } else {
+        let data = this.form.prags,
+          tempArr = [],
+          paramsAll = {},
+          types = this.form.typeId;
+        for (let i = 0; i < data.length; i++) {
+          let obj = {};
+          obj.content = data[i].content;
+          obj.text = data[i].text;
+          obj.conceptId = data[i].conceptId;
+          obj.orderNo = i;
+          obj.title = data[i].title;
+          obj.contentType = data[i].position.join(',');
+          tempArr.push(obj);
+        }
+        paramsAll.clinicalPathwayName = types == 1 ? this.form.titleChange : '';
+        paramsAll.id = this.conceptId;
+        paramsAll.name = this.form.name;
+        paramsAll.noticeName =
+          types == 3 || types == 4 || types == 5 || types == 6
+            ? this.form.titleChange
+            : '';
+        paramsAll.type = this.form.typeId;
+        paramsAll.details = tempArr;
+        param = paramsAll;
+      }
+      // this.showSaveDialog(param,'是否'+(this.isEdit?'修改':'保存')+'该静态知识?');
+
+      if (!this.isEdit) {
+        // 新增页面
+        this.saveDisable = true;
+        this.sendSaveOrEdit(param);
+        return;
+      }
+      this.showSaveDialog(
+        param,
+        '<div><p style="color: #333333">确定保存修改内容?</p><p style="color: #D70A25">保存后将覆盖原有数据,且原有数据无法恢复。</p></div>'
+      );
+    },
+    showSaveDialog(param, msg) {
+      this.showConfirmDialog(msg, () => {
+        this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
+        this.sendSaveOrEdit(param);
+      });
+    },
+
+    //保存编辑 接口
+    sendSaveOrEdit(param) {
+      this.isCopy && (param.id = undefined);
+      api.saveBaseOrUpdateRecord(param)
+        .then(res => {
+          if (res.data.code === '0') {
+            this.isSuccessUpload = 0; // 修改文件上传状态为0
+            this.warning(res.data.msg || '保存成功', 'success');
+            this.isSaveSuccess = true; // 保存成功,可正常退出
+            //返回带搜索条件的首页
+            this.$router.push({
+              name: 'StaticInfo',
+              params: Object.assign({}, this.$route.params, {
+                currentPage: 1
+              })
+            });
+          } else {
+            this.warning(res.data.msg);
+          }
+          this.saveDisable = false;
+        })
+        .catch(err => {
+          if (err.code === '900010001') {
+            return false;
+          }
+          this.saveDisable = false;
+          this.warning(err);
+        });
+    },
+
+    // 弹出窗
+    showConfirmDialog(msg, resolve) {
+      this.$alert(msg, '提示', {
+        confirmButtonText: '确定',
+        // cancelButtonText: '取消',
+        // cancelButtonClass: 'cancel',
+        // confirmButtonClass: 'confirmBtn',
+        dangerouslyUseHTMLString: true,
+        type: 'warning'
+      })
+        .then(() => {
+          resolve();
+        })
+        .catch(() => {});
+    },
+    warning(msg, type) {
+      this.$message({
+        showClose: true,
+        message: msg,
+        type: type || 'warning'
+      });
+    },
+    handleChange(file, fileList) {
+      // if(fileList&&fileList[0]&&fileList[0].response&&fileList[0].response.code==='0'){
+      //   this.showUpLoad = false
+      //   this.showFileList = true
+      // }else{
+      //    this.showUpLoad = true
+      //    this.showFileList = false
+      // }
+      // console.log(fileList,this.form.fileList,'aa')
+    },
+    handleSuccess(response, file, fileList) {
+      if (response.code == '0') {
+        this.showFileList = true;
+        this.form.fileList = [];
+        this.form.fileList.push({
+          name: response.data.title,
+          url: response.data.url,
+          size: response.data.size
+        });
+        this.showUpLoad = false;
+        if (!this.form.fileTitle) {
+          this.form.fileTitle = response.data.title;
+        }
+        this.isSuccessUpload = 2; // 上传成功状态
+        this.$refs.upload && this.$refs.upload.clearValidate(); // 清除校验
+      } else {
+        this.warning(response.msg || '上传失败');
+        // this.form.fileList = []
+        this.showUpLoad = true;
+        this.showFileList = false;
+        this.form.fileList = [];
+      }
+    },
+    handleRemove(file, fileList) {
+      this.showUpLoad = true;
+      this.form.fileList = [];
+      this.isSuccessUpload = 0;
+    },
+    handleBeforeUpLoad(file) {
+      // 上传过程中   上传按钮 隐藏
+      this.isSuccessUpload = 1; // 上传过程中
+      this.showFileList = true; // 新增 进度条  显示
+      this.$refs.upload && this.$refs.upload.clearValidate(); // 清除校验
+
+      this.showUpLoad = false;
+      if (file.size / 1024 / 1024 >= 500) {
+        this.warning('文件上传失败,超出大小限制500MB');
+        this.form.fileList = [];
+        this.showConfirm = false;
+        return false;
+      } else {
+        this.showConfirm = true;
+      }
+    },
+    handlePreview(file) {},
+    beforeRemove(file, fileList) {
+      if (this.showConfirm) {
+        return this.$alert(`确定移除 ${file.name}?`, '', {
+          cancelButtonClass: 'cacelBtn'
+        });
+      }
+    }
+  }
+};
+</script>
+<style lang="less" scoped>
+@import '../../less/common.less';
+.cell .el-button.delete:focus {
+  color: red !important;
+}
+
+.topBack {
+  top: 0;
+}
+.info-container {
+  background: #fff;
+  padding: 20px;
+  margin: 70px 20px -20px 20px;
+  .el-input__inner {
+    width: 200px;
+  }
+  .el-form-item__label {
+    text-align: left;
+  }
+  .add-prg .el-form-item {
+    margin-bottom: 20px;
+  }
+  .el-form-item {
+    margin-bottom: 8px !important;
+  }
+}
+// .cancel span {
+//   color: #22ccc8;
+// }
+.line {
+  border-top: 1px #dcdfe6 solid;
+  margin-bottom: 25px;
+  margin-top: 25px;
+}
+.NoiseTemplateWrapper .info-container .el-input__inner {
+  width: 250px;
+}
+// .NoiseTemplateWrapper .el-select .el-input .el-icon-circle-close{
+//     display: inherit!important;
+// }
+.cacelBtn {
+  color: #22ccc8 !important;
+}
+.upload-demo {
+  width: 300px;
+  /deep/.el-upload-list__item .el-icon-close-tip {
+    display: none !important;
+  }
+
+  /deep/.el-upload-list__item .el-upload-list__item-name {
+    max-width: 250px;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+  }
+  /deep/ .focusing {
+    // border: 1px solid transparent !important;
+    outline: transparent !important;
+  }
+}
+.uploadInfo {
+  margin-top: -20px;
+  color: #606266;
+}
+.tipInfo {
+  position: absolute;
+  // position: relative;
+  line-height: 24px;
+  top: -56px;
+  left: 20px;
+  // background-color: transparent;
+  // color: #606266;
+  padding: 3px 10px;
+  border-radius: 4px;
+  margin: 100px auto;
+  background-color: #4d4d4d;
+  text-align: center;
+  color: #fff;
+  font-size: 14px;
+}
+.tipInfo:before {
+  content: '';
+  display: block;
+  position: absolute;
+  // bottom: 9px;
+  top: -10px;
+  left: 18px;
+  border-bottom: 6px solid #4d4d4d;
+  border-top: 6px solid transparent;
+  border-left: 6px solid transparent;
+  border-right: 6px solid transparent;
+  // border-right: 6px solid #4D4D4D;
+}
+.btn {
+  text-align: right;
+  padding-right: 20px;
+}
+.el-message-box {
+  /deep/ .el-icon-warning {
+    background-color: transparent !important;
+    // display: none;
+  }
+  /deep/ .el-message-box__message {
+    margin: 24px 0px;
+  }
+  // /deep/ .confirmBtn {
+  //   // position: relative;
+  //   // right: 240px !important;
+  //   // top: 0px;
+  //   background-color: #fff !important;
+  //   span {
+  //     color: #48c5d7 !important;
+  //   }
+  // }
+  /deep/ .cancel {
+    background-color: #d7d7d7;
+    border-color: transparent !important;
+    span {
+      color: #fff;
+    }
+  }
+}
+</style>
+

+ 435 - 0
src/components/knowledgeExtra/AddNewRule.vue

@@ -0,0 +1,435 @@
+<template>
+    <div>
+        <crumbs :title="title" :param="$route.params" linkTo="ZskRuleManager"></crumbs>
+        <div class="contents">
+            <div class="content">
+                <el-form ref="form" :label-position="labelPosition" class="add-new-form" label-width="130px" :model="form" :rules="rules">
+                    <el-form-item label="规则名称:" prop="parDescription">
+                        <el-input v-model.trim = "form.parDescription"></el-input>
+                    </el-form-item>
+                    <el-form-item label="规则类型:" prop="parRuleType">
+                        <el-select v-model="form.parRuleType"
+                                   placeholder="请选择"
+                                   size="small"
+                                   @change="ruleTypeChange"
+                                   >
+                            <el-option
+                                    v-for="item in ruleTypeList"
+                                    :key="item.id"
+                                    :label="item.name"
+                                    :value="item.id">
+                            </el-option>
+                        </el-select>
+                        <span class="tip-text">注:更改术语类型,将会清空已填写的规则内容~</span>
+                    </el-form-item>
+                    <el-form-item label="规则术语类型:" prop="parLenCode">
+                        <el-select v-model="form.parLenCode"
+                                   placeholder="请选择"
+                                   size="small" @change="ruleTermChange">
+                            <el-option
+                                    v-for="item in ruleTermTypeList"
+                                    :key="item.id"
+                                    :label="item.name"
+                                    :value="item.code">
+                            </el-option>
+                        </el-select>
+                        <span class="tip-text">注:更改规则术语类型,将会清空已填写的规则内容~</span>
+                    </el-form-item>
+                    <el-form-item  class="addDepartFormItem" label="医学标准术语:" prop="parConceptId">
+                        <el-select clearable filterable remote :remote-method="searchConcept" v-model="form.parConceptId">
+                            <el-option
+                                    v-for="item in conceptList"
+                                    :key="item.conceptId"
+                                    :label="item.conceptName"
+                                    :value="item.conceptId">
+                            </el-option>
+                        </el-select>
+                    </el-form-item>
+                    <!--<el-form-item label="有无子条件:" prop="parHasSub">
+                        <el-select v-model="form.parHasSub"
+                                   placeholder="请选择"
+                                   size="small">
+                            <el-option
+                                    v-for="item in hasSub"
+                                    :key="item.id"
+                                    :label="item.name"
+                                    :value="item.id">
+                            </el-option>
+                        </el-select>
+                    </el-form-item>-->
+                    <el-form-item label="附加信息:" prop="remind" class="parMsg">
+                        <el-input type="textarea" :rows="3" placeholder="请输入附加信息" v-model="form.parMsg" maxlength="301"></el-input>
+                    </el-form-item>
+                    <el-form-item v-if="form.parHasSub===1" label="规则内容:" prop="remind" class="discDesc">
+                        <SubRulesGroup v-for="(group,i) in subGroups"
+                                       ref="groups"
+                                       :data="group"
+                                       :baseTypes="baseTypeList"
+                                       :inx="i"
+                                       :firstPlace="firstPlace"
+                                       :isLast="subGroups.length===1"
+                                       @addGroup="addGroup"
+                                       @delGroup="delGroup"></SubRulesGroup>
+                    </el-form-item>
+                    <el-button class="disclButn" size="small" type="primary" @click="confirm">保存</el-button>
+                </el-form>
+            </div>
+        </div>
+    </div>
+</template>
+<script type="text/javascript">
+    import api from '@api/knowledgeLib.js';
+    import SubRulesGroup from './SubRulesGroup'
+    export default {
+        name:'AddRule',
+        data(){
+            return{
+                labelPosition:'left',
+                isFirst:true,
+                isCopy:false,
+                dict:'',
+                title:'规则维护-添加规则',
+                ruleTermTypeList:[],
+                ruleTypeList:[],
+                conceptList:[],
+                baseTypeList:[],
+                conceptName:'',
+                firstPlace:null,
+                subGroups:[[{
+                    subDescription:'',
+                    parRuleType:'',
+                    subConceptId:'',
+                    subType:'',
+                    subMaxOperator:'',
+                    subMaxUnit:'',
+                    subMaxValue:'',
+                    subMinOperator:'',
+                    subMinUnit:'',
+                    subMinValue:'',
+                    subEqValue:'',
+                    subLenCode:'',
+                    dataType:'',
+                }]],
+                form:{
+                    parDescription:'',
+                    parRuleType:'',
+                    parConceptId:'',
+                    parlibName:'',
+                    parHasSub:undefined,
+                    parLenCode:'',
+                    parMsg:'',
+                    klRuleInfoSaveSub:[],
+                },
+                parId:null,
+                rules:{
+                    parDescription:[{ required: true, message: '请输入规则名称',trigger: ['blur'] },{
+                        validator: (rule,value,callback)=>{
+                            if(value.length>100){
+                                callback(new Error('规则名称不能超过100字'));
+                            }else{
+                                callback();
+                            }}, trigger: 'change'
+                    }],
+                    parRuleType:[{ required: true, message: '请选择规则类型',trigger: ['change'] }],
+                    parLenCode:[{ required: true, message: '请选择规则术语类型',trigger: ['change'] }],
+                    parConceptId:[{ required: true, message: '请输入医学标准术语',trigger: ['blur'] }],
+                    parHasSub:[{ required: true, message: '请选择有无子条件',trigger: ['change'] }],
+                    parMsg:[{
+                        validator: (rule,value,callback)=>{
+                            if(value.length>300){
+                                callback(new Error('附加信息不能超过300字'));
+                            }else{
+                                callback();
+                            }}, trigger: 'change'
+                    }]
+                },
+                hasSub:[{name:'有',id:1},{name:'无',id:0},
+                ]
+            }
+        },
+        created(){
+            this.getTypeList();
+            this.getDict();
+            const param = this.$route.params;
+            let info = param.data;
+            if(info){
+                this.parId = info.parId;
+                this.isCopy=param.copy;
+                this.title = "规则维护-"+(this.isCopy?'复制':'修改')+"规则";
+                this.form=Object.assign({},this.form,info);
+                this.conceptList=[{conceptName:this.form.parlibName,conceptId:this.form.parConceptId}];
+                this.subGroups=this.formatGroupDatas(info.klRuleByIdSub);
+
+            }
+        },
+        watch:{
+            'form.parRuleType':function(val){
+                const obj = this.ruleTypeList.find((it)=>it.id===val);
+                this.ruleTermTypeList = obj.subMenuList;
+            },
+            'form.parLenCode':function(val){
+                if(!val){
+                    this.baseTypeList = [];
+                    return ;
+                }
+                const obj = this.ruleTermTypeList.find((it)=>it.code===val);
+                this.baseTypeList = obj.subMenuList;
+            },
+            'form.parConceptId':function(val){
+                if(this.checkFirstPlace) {
+                    this.firstPlace = this.conceptList.find((it) => it.conceptId === val);
+                }else{
+                    this.firstPlace =null;
+                }
+            }
+        },
+        components:{
+            SubRulesGroup
+        },
+        computed:{
+            checkFirstPlace:function(){
+                const str=this.form.parRuleType+this.form.parLenCode;
+                return this.dict.indexOf(str);
+            }
+        },
+        methods:{
+            getDict(){
+                api.zskgetDict().then((res) => {
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        const arr =data['20'].map((it)=>it.val);
+                        this.dict = arr.join(",");
+                        localStorage.setItem("zskDicts",arr.join(","));
+                    }
+                }).catch((error) => {
+                    console.log(error);
+                });
+            },
+            showConfirmDialog(msg,resolve){
+                this.$alert(msg, '提示', {
+                    confirmButtonText: '确定',
+                    type: 'warning'
+                }).then(() => {
+                    resolve();
+                }).catch(() => {});
+            },
+            formatGroupDatas(data){
+                let arr=[];
+                data.map((it)=>{
+                    if(!arr[it.groupType]){arr[it.groupType]=[];}
+                    if(it.subMaxOperator){
+                        it.dataType='1';
+                    }else if(it.subEqValue){
+                        it.dataType='2';
+                    }
+                    arr[it.groupType].push(it);
+                })
+                return arr;
+            },
+            searchConcept(val){
+                const param = {
+                    excludedConceptIds:[this.form.parRuleType],
+                    libType:this.form.parLenCode,
+                    name:val,
+                };
+                api.searchConcept(param).then((res) => {
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        this.conceptList = data;
+                    }
+                }).catch((error) => {
+                    console.log(error);
+                });
+            },
+            ruleTypeChange(val){       //规则类型选中
+                this.form.parRuleType=val;
+                this.form.parLenCode='';
+                const obj = this.ruleTypeList.find((it)=>it.id===val);//console.log(val)
+                this.ruleTermTypeList = obj.subMenuList;
+                this.setInitGroupData();
+            },
+            ruleTermChange(val){        //规则术语类型选中
+                this.form.parLenCode=val;
+                const obj = this.ruleTermTypeList.find((it)=>it.code===val);
+                this.baseTypeList = obj.subMenuList;
+                this.setInitGroupData();
+                this.form.parHasSub=obj.subMenuList.length?1:0;
+            },
+            getTypeList(){
+              const typeListData = JSON.parse(localStorage.getItem("zskTypesList"));
+              this.ruleTypeList = typeListData;
+            },
+            setInitGroupData(){
+              this.subGroups = [[{
+                  subDescription:'',
+                  parRuleType:'',
+                  subConceptId:'',
+                  subType:'',
+                  subMaxOperator:'',
+                  subMaxUnit:'',
+                  subMaxValue:'',
+                  subMinOperator:'',
+                  subMinUnit:'',
+                  subMinValue:'',
+                  subEqValue:'',
+                  subLenCode:'',
+                  dataType:'',
+              }]];
+              this.form.parConceptId='';//医学标准术语清空
+              this.conceptList=[];  //下拉列表清空
+            },
+            addGroup(){
+                this.subGroups.push([{
+                    subDescription:'',
+                    parRuleType:'',
+                    subConceptId:'',
+                    subType:'',
+                    subMaxOperator:'',
+                    subMaxUnit:'',
+                    subMaxValue:'',
+                    subMinOperator:'',
+                    subMinUnit:'',
+                    subMinValue:'',
+                    subEqValue:'',
+                    subLenCode:'',
+                    dataType:'',
+                }]);
+            },
+            delGroup(i){
+                this.subGroups.splice(i,1);
+            },
+            saveRule(params){
+                api.saveRule(params).then((res)=>{
+                    if(res.data.code==0){
+                        this.$message({
+                            message:"操作成功",
+                            type:'success'
+                        });
+                        this.$router.push({name: 'ZskRuleManager'});
+                    }else{
+                        this.$message({
+                            message:res.data.msg,
+                            type:'warning'
+                        });
+                    }
+                })
+            },
+            formatGroups(){
+                let obj = [];
+                this.subGroups.map((item,i)=>{
+                   item.map((it)=>{
+                       obj.push({groupType:i,...it});
+                   })
+                });
+                return obj
+            },
+            validateForms(callBack){
+                this.$refs['form'].validate((valid) => {
+                    if (valid) {
+                        const groupsRef = this.$refs['groups'];
+                        let groupRef=null,goOn=true;
+                        for(let i=0;i<groupsRef.length;i++){
+                            groupRef=groupsRef[i].$refs['group'];
+                            for(let j=0;j<groupRef.length;j++){
+                                groupRef[j].$refs['groupData'].validate((valid)=>{
+                                    if(!valid){
+                                        goOn=false;
+                                    }
+                                })
+                            }
+                        }
+                        if(goOn){
+                            callBack();
+                        }
+                    } else {
+                        return false;
+                    }
+                });
+            },
+            confirm(){
+                const _this=this;
+                this.validateForms(function(){
+                    _this.form.klRuleByIdSub=undefined;
+                    _this.form.klRuleInfoSaveSub = _this.form.parHasSub?_this.formatGroups():undefined;
+                    let params = _this.form;
+                    if(_this.parId){//修改/复制
+                        params = Object.assign({},_this.form,{parId:_this.isCopy?undefined:_this.parId})
+                    }
+                    _this.saveRule(params);
+                });
+            },
+        }
+    }
+</script>
+<style lang="less">
+    @import "../../less/admin.less";
+    .content{
+        background: #fff;
+        // padding: 20px 20px 30px;
+        padding: 20px 20px 50px;
+        color: #545455;
+        min-width: 980px;
+        position: relative;
+        .tip-text{
+            color:#F56C6C;
+            margin-left: 10px;
+        }
+        .conceptItem{
+            padding: 0 10px;
+            cursor: pointer;
+            height: 32px;
+            line-height: 32px;
+            &:hover{
+                background: #ebedf1;
+            }
+        }
+        .discDesc{
+            margin-bottom: 20px;
+        }
+        .disclButn{
+            position: absolute;
+            right: 80px;
+            bottom: 10px;
+        }
+    }
+    .add-new-form{
+        .el-form-item__label{
+            text-align: right;
+        }
+        .addDepartFormItem {
+            position: relative;
+        }
+        .itemList {
+            position: absolute;
+            // display: none;
+            background: #fff;
+            width: 188px;
+            max-height: 160px;
+            border: 1px solid #DCDFE6;
+            left: 0;
+            top: 37px;
+            z-index: 2;
+            overflow-y: auto;
+        }
+        .indexList {
+            left: 42px;
+            top: 78px;
+        }
+        .el-input__prefix, .el-input__suffix{
+            /*top:-2px;*/
+            right: 3px;
+        }
+        .el-input--suffix .el-input__inner{
+            padding-right: 22px;
+        }
+        .el-input,.el-input__inner{
+            width: 190px;
+            line-height: 32px;
+            height: 32px;
+        }
+        .el-input__icon{
+            line-height: 32px;
+        }
+    }
+
+</style>

+ 284 - 0
src/components/knowledgeExtra/DevInfo.vue

@@ -0,0 +1,284 @@
+<template>
+  <el-form
+    :rules="rules"
+    :model="data"
+    ref="form"
+    class="sub-form"
+    :validate-on-rule-change="false"
+  >
+    <!--<el-input v-model="form.orderNo" :value="index" type="hidden"></el-input>-->
+    <!-- <el-form-item label="是否属于诊断依据:" prop="isReason" label-width="160px">
+            <el-select v-model="data.isReason" placeholder="请选择">
+                <el-option label="否" :value="0"></el-option>
+                <el-option label="是" :value="1"></el-option>
+            </el-select>
+    </el-form-item>-->
+    <el-form-item label="段落标题:" prop="title" label-width="160px" class="is-required">
+      <el-input v-model="data.title"></el-input>
+    </el-form-item>
+    <el-form-item label="内容类型:" prop="position" label-width="160px">
+      <el-checkbox-group v-model="data.position">
+        <el-checkbox v-for="it in positions" :key="it.key" :label="it.key">{{it.name}}</el-checkbox>
+      </el-checkbox-group>
+    </el-form-item>
+    <el-form-item label="内容" prop="content" label-width="160px" ref="editor">
+      <quillEditor
+        v-model="data.content"
+        :options="editorOption"
+        class="ql-editor"
+        ref="quillEditor"
+      ></quillEditor>
+    </el-form-item>
+    <div class="order-btn">
+      <a v-if="index!==0" :class="index===total-1?'order-spc':'order-up'" @click="reOrder(1)">上升</a>
+      <a v-if="index!==total-1" :class="index===0?'order-spc':'order-down'" @click="reOrder(0)">下降</a>
+    </div>
+    <el-form-item label-width="160px" class="btns">
+      <el-button @click="addEmit">添加段落</el-button>
+      <el-button @click="delEmit" type="info">删除本段落</el-button>
+    </el-form-item>
+  </el-form>
+</template>
+
+<script>
+import 'quill/dist/quill.core.css';
+import 'quill/dist/quill.snow.css';
+import 'quill/dist/quill.bubble.css';
+import { quillEditor, Quill } from 'vue-quill-editor';
+import config from '@api/config';
+import { container, ImageExtend, QuillWatch } from 'quill-image-extend-module';
+Quill.register('modules/ImageExtend', ImageExtend);
+export default {
+  props: ['data', 'index', 'isEdit', 'isCopy', 'total', 'showType'],
+  name: 'DevInfo',
+  components: {
+    quillEditor
+  },
+  data() {
+    return {
+      toolbars: [
+        [
+          ['bold', 'underline', 'strike'],
+          [{ list: 'ordered' }, { list: 'bullet' }],
+          [{ script: 'sub' }, { script: 'super' }],
+          [{ color: [] }, { background: [] }],
+          [{ align: [] }],
+          ['image']
+        ]
+      ],
+      toolbarMode: 0,
+      editorOption: {
+        modules: {
+          ImageExtend: {
+            loading: true,
+            name: 'upfile',
+            size: 1,
+            sizeError: () => {
+              this.$message({
+                showClose: true,
+                message: '请上传 1M 以内的图片!',
+                type: 'warning'
+              });
+            },
+            action: config.urls.promptServer,
+            response: res => {
+              if (res.code == '0') {
+                return config.imgHost + res.data.url;
+              } else {
+                this.$message({
+                  showClose: true,
+                  message: res.msg,
+                  type: 'warning'
+                });
+              }
+            }
+          },
+          toolbar: {
+            container: container,
+            handlers: {
+              image: function() {
+                QuillWatch.emit(this.quill.id);
+              }
+            }
+          }
+        }
+      },
+      form: {
+        position: [],
+        orderNo: 0
+      },
+      positions: [], //位置列表
+      rules: {}
+    };
+  },
+  watch: {
+    'data.content': function() {
+      if (this.data.content !== '') {
+        this.$refs.editor && this.$refs.editor.clearValidate(); // 清除校验
+      }
+      if (this.data.content === '') {
+        // console.log('内容为空');
+        this.$refs['form'].validateField('content'); // 手动校验
+      }
+      this.data.text = this.$refs.quillEditor.quill.root.innerText;
+    }
+  },
+  created() {
+    // console.log(this.showType, 'showType','需要显示的类型');
+    this.editorOption.modules.toolbar.container = this.toolbars[
+      this.toolbarMode
+    ];
+    this.renderPositions();
+    if (this.isEdit||this.isCopy) {
+      setTimeout(() => {
+        this.rules = {
+          position: [
+            { required: true, message: '请选择内容类型', trigger: 'change' }
+          ],
+          title: [
+            {
+              validator: (rule, value, callback) => {
+                if (!value.trim()) {
+                  callback(new Error('请输入段落标题'));
+                } else {
+                  callback();
+                }
+              },
+              trigger: 'change'
+            },
+            { max: 30, message: '标题名称不能超过30字', trigger: 'change' }
+          ],
+          content: [
+            { required: true, message: '请输入段落内容', trigger: 'change' }
+          ]
+        };
+      }, 100);
+    } else {
+      this.rules = {
+        position: [
+          { required: true, message: '请选择内容类型', trigger: 'change' }
+        ],
+        title: [
+          {
+            validator: (rule, value, callback) => {
+              if (!value.trim()) {
+                callback(new Error('请输入段落内容'));
+              } else {
+                callback();
+              }
+            },
+            trigger: 'change'
+          },
+          { max: 30, message: '标题名称不能超过30字', trigger: 'change' }
+        ],
+        content: [
+          { required: true, message: '请输入段落内容', trigger: 'change' }
+        ]
+      };
+    }
+  },
+  mounted() {},
+  methods: {
+    reOrder(i) {
+      this.$emit('reOrder', i, this.index);
+    },
+    addEmit() {
+      this.$emit('add');
+    },
+    delEmit() {
+      this.$emit('del', this.index);
+    },
+    // 渲染内容类型
+    renderPositions() {
+      //显示位置枚举列表
+      const pos = localStorage.getItem('knowledgeEnumsData');
+      let positions = config.contentTypes;
+      if (this.showType == 1) {
+        // 诊断
+        this.positions = positions.filter(item => item.key !== 2);
+      } else if (
+        this.showType == 3 ||
+        this.showType == 4 ||
+        this.showType == 5 ||
+        this.showType == 6
+      ) {
+        // 检验/检查
+        this.positions = positions.filter(item => {
+          return item.key <= 2;
+        });
+      } else if (this.showType == 2 || this.showType == 7) {
+        // 药品/手术
+        this.positions = positions.filter(item => item.key === 1);
+      } else {
+        this.positions = positions;
+      }
+    }
+
+    /*emitVal(){
+        let data = this.form;
+        let pst=this.form.position;
+        const content =  this.form.content.replace(config.imgHost,'{imageUrlPrefix}');
+        const text = this.$refs.quillEditor;console.log(text)
+        pst = typeof pst=='string'?pst:pst.join(',');
+        data =   Object.assign({},data,{
+                                        position:this.form.position?pst:'',
+                                        orderNo:this.index,
+                                        text:'',
+                                        content:content});
+        this.$emit("change",this.index,data);
+      }*/
+  }
+};
+</script>
+
+<style lang="less" scoped>
+.quill-editor.ql-editor {
+  padding-left: 0 !important;
+}
+.is-error .el-form-item__error {
+  top: auto;
+}
+.sub-form {
+  position: relative;
+}
+.order-btn {
+  // position: absolute;
+  top: 12px;
+  right: 0;
+  display: flex;
+  a {
+    margin-bottom: 20px;
+    border: 1px solid #22ccc8;
+    color: #22ccc8;
+    padding: 5px 10px;
+    border-radius: 4px;
+    cursor: pointer;
+    font-size: 12px;
+  }
+  .order-spc {
+    margin-top: 28px;
+  }
+  .order-down {
+    margin-left: 20px;
+  }
+}
+/**富文本编辑器样式修改***/
+.ql-snow .ql-picker.ql-size .ql-picker-label::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item::before,
+.ql-snow .ql-picker.ql-header .ql-picker-label::before,
+it .ql-editor,
+.quill-editor {
+  padding-top: 0px !important;
+  margin-top: -8px;
+  min-height: 48px;
+  p {
+    padding-top: 8px;
+  }
+}
+.ql-editor.ql-blank::before {
+  padding-top: 0px;
+}
+.btns {
+  margin-top: 20px;
+}
+</style>

+ 484 - 0
src/components/knowledgeExtra/DiseaseTree.vue

@@ -0,0 +1,484 @@
+<template>
+  <div class="addMedicalMultRelationWrapper">
+    <crumbs :title="minTitle" fix="fixed" linkTo="AboutDisease"></crumbs>
+    <div class="contents">
+      <div class="content">
+        <div class="addBtn" v-if="list.length == 0">
+          <el-button
+            @click="addConcept"
+          >+ 新 增</el-button>
+        </div>
+
+        <div class="tree">
+          <el-tree
+            :data="list"
+            :props="defaultProps"
+            node-key="conceptId"
+            draggable
+            :allow-drag="allowDrag"
+            :allow-drop="allowDrop"
+            :expand-on-click-node="true"
+            :render-after-expand="true"
+            :highlight-current="true"
+            :default-expanded-keys="defaultExpandedArr"
+            @node-click = "handleNodeClick"
+          >
+            <span class="custom-tree-node" slot-scope="{ node, data }" >
+                <span class="custom-tree-node-name ellipsis" :class="{colorGray: data.isDeletedConcept == 'Y'}" :title="node.label">{{ node.label }}</span>
+                <span class="btn-box">
+                  <el-button
+                      class="btn-add fl"
+                      v-if="data.level < 2 &&data.level>0"
+                      type="text"
+                      size="mini"
+                      @click="(e) => append(data, e)">
+                      + 增加
+                  </el-button>
+                  <el-button
+                      class="btn-del fr"
+                      v-if="data.level != 0"
+                      type="text"
+                      size="mini"
+                      @click="() => remove(node, data)">
+                      删除
+                  </el-button>
+                </span>
+            </span>
+          </el-tree>
+        </div>
+        <div class="btn">
+          <el-button
+            type="primary"
+            :disabled = 'saveDisable'
+            @click="confirm"
+          >确 定</el-button>
+        </div>
+      </div>
+    </div>
+    <SearchList 
+      v-if="showSearch" 
+      :conceptList="conceptList||[]" 
+      :addLevel="addLevel"
+      @closeSearch="closeSearch" 
+      @selectConcept="selectConcept" 
+      @searchConcept="searchConcept" />
+  </div>
+</template>
+<script type="text/javascript">
+import api from '@api/knowledgeTree.js';
+import SearchList from '../basicKnow/SearchList.vue';
+
+export default {
+    name:'DiseaseTree',
+    components:{
+      SearchList
+    },
+    data(){
+      return{
+        minTitle:'疾病相关维护-添加',
+        tab:[
+          {name:'ICD10疾病类别',id:'1'},
+          {name:'科室疾病类别',id:'2'},
+          {name:'药物类别',id:'3'},
+          {name:'症状类别',id:'4'},
+          {name:'手术和操作类别',id:'5'},
+          {name:'实验室检查类别',id:'6'},
+          {name:'辅助检查类别',id:'7'},
+        ],
+        template:{
+          "conceptId": null,
+          "conceptName": "",
+          "nodeList": [{
+            "conceptId": 501,
+            "conceptName": "疾病相关主症状",
+            "nodeList": [],
+            "libType": [103],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 502,
+            "conceptName": "疾病相关次症状",
+            "nodeList": [],
+            "libType": [103],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 503,
+            "conceptName": "疾病相关体格检查结果",
+            "nodeList": [],
+            "libType": [104],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 504,
+            "conceptName": "疾病相关实验室检查套餐",
+            "nodeList": [],
+            "libType": [107],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 505,
+            "conceptName": "疾病相关辅助检查项目",
+            "nodeList": [],
+            "libType": [109, 110],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 506,
+            "conceptName": "疾病相关药物治疗",
+            "nodeList": [],
+            "libType": [101],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 507,
+            "conceptName": "疾病相关手术治疗",
+            "nodeList": [],
+            "libType": [106],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }, {
+            "conceptId": 508,
+            "conceptName": "疾病相关鉴别诊断",
+            "nodeList": [],
+            "libType": [100],
+            "level": 1,
+            "sonRelationId": 17,
+            "isExpanded": false
+          }],
+          "level": 0,
+          "isExpanded": false
+        },
+        curId:'1',
+        list: [],
+        defaultProps: {
+          children: 'nodeList',
+          label: 'conceptName'
+        },
+        conceptList: [], //概念列表
+        showSearch: false,
+        addLevel: 0,  //添加级别
+        excludedConceptIds:[],
+        operaList: [],
+        relationConceptId: '', //关联父类ID
+        level: 0, //层级(修改时只能显示三级)
+        saveDisable: false,  //保存按钮禁止点击
+        defaultExpandedArr: [],
+        relationTypes:[]
+      }
+    },
+    created(){
+      this.getTreeList(1)
+    },
+    methods:{
+      addConcept(e) {
+        this.addLevel = 0;
+        this.openSearch(e);
+      },
+      getTreeList(id){
+      const { isEdit, data } = this.$route.params
+      if(isEdit) {
+          this.isEdit = isEdit
+          this.minTitle = '疾病相关维护-修改'
+          const paramData = JSON.parse(JSON.stringify(data))
+          let result = paramData.diseaseDetailDTO||{}
+          // this.relationTypes = paramData.types[0]||[]
+          const itemStr = JSON.stringify(result)
+          let tmp = itemStr.replace(/disName/g,'conceptName').replace(/rname/g,'conceptName').replace(/datas/g,'nodeList').replace(/details/g,'nodeList').replace(/id/g,'conceptId').replace(/sconceptId/g,'conceptId').replace(/rconceptId/g,'conceptId').replace(/libName/g,'conceptName')
+          let item = JSON.parse(tmp)
+          item.level = 0
+          item.isExpanded = false
+          item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
+          let arr = []
+          arr[0] = item
+          this.list = [...arr]
+      }
+      },
+      allowDrop(draggingNode, dropNode, type) {
+        if(draggingNode.parent.data.conceptName !== dropNode.parent.data.conceptName){
+          return false
+        }else{
+          return type !== 'inner'
+        }
+      },
+      allowDrag(draggingNode) {
+        return draggingNode.data.level != 0;//一级不可拖动
+      },
+      handleNodeClick(data) {
+          if(data.nodeList.length > 0) {
+            if(!data.isExpanded) {
+              this.defaultExpandedArr.push(data.conceptId)
+            } else {
+              this.defaultExpandedArr = this.defaultExpandedArr.filter(item => item !== data.conceptId)
+            }
+            this.$set(data, 'isExpanded', !data.isExpanded);
+          }
+      
+      },
+      confirm() { 
+        if(!this.list[0] || this.list[0].nodeList.length == 0) {
+          this.message('请输入数据信息');
+          return
+        }
+        const param = {
+          conceptId: this.list[0].conceptId,
+          sonRelationId: 17,
+          isOrderBy: 1
+        }
+        const nodeListResult = []
+        this.IteraNodeList(this.list[0].nodeList, nodeListResult, 0)
+        param.nodeList = nodeListResult
+        this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
+        api.diseaseBaseSave(this.reparams(param)).then((res) => {
+          const { data } = res
+          if(data.code == '0') {
+            this.message(res.data.msg||'术语关系建立成功','success');
+            this.$router.push({
+              name: 'AboutDisease',
+              params: Object.assign({}, this.$route.params, { currentPage: 1 })
+            });
+          } else {
+            this.message(data.msg);
+          }
+          this.saveDisable = false;
+        })
+      },
+      IteraNodeList(nodeList,  nodeListResult, type, level = 1) {
+        this.level= level + 1
+        for(let i = 0; i <nodeList.length; i++) {
+          let newChild;
+          if(type == '0') { //添加的时候保存所有的id列表
+            newChild = {conceptId: nodeList[i].conceptId,libType:nodeList[i].libType, relationId: 17,nodeList:[],sonRelationId: 17, isExpanded:false}
+          } else if(type == '1') {  //修改的时候添加层级
+            const item = JSON.parse(JSON.stringify(nodeList[i]))
+            newChild = Object.assign(item, {level:  level, nodeList: [],sonRelationId: 17, isExpanded:false})
+          } else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
+            newChild = nodeList[i].conceptId
+          }
+          if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0&&level < 3) {
+            if(type == '0' || type =='1') {
+              this.IteraNodeList(nodeList[i].nodeList,  newChild.nodeList, type, level+1)
+            } else if(type == '2') {
+              this.IteraNodeList(nodeList[i].nodeList,  nodeListResult, type, level+1)
+            }
+          }
+          newChild&&nodeListResult.push(newChild)
+        }
+        return nodeListResult
+      },
+      searchConcept(txt) {
+        let  excludedConceptIds = [];
+        if(this.list.length>0) {
+          this.excludedConceptIds = this.IteraNodeList(this.list[0].nodeList,excludedConceptIds, 2)
+        }
+        const {libType} = this.operaList
+
+        const params = {
+          "name": txt,
+          "excludedConceptIds": this.excludedConceptIds||[],
+          "libType": this.addLevel == 0?100:libType&&libType[0]||''
+        }
+        api.searchConcept(params).then((res) => {
+          const { data } = res
+          if(data.code == '0') {
+            this.conceptList = data.data
+          }
+        })
+      },
+      selectConcept(item) {
+        if(this.addLevel == 0) {
+          let temp = JSON.parse(JSON.stringify(this.template))
+          temp.conceptId = item.conceptId
+          temp.conceptName = item.conceptName
+          this.list = [temp]
+        }else {
+          const data = this.operaList
+          const newChild = Object.assign({}, item,  {nodeList: [],libType:data.libType, level: data.level+1, conceptId: item.conceptId, relationId: 17,sonRelationId: 17});
+          // const newChild = { id: id++, label: 'nodeList', level: data.level+1, children: [] };
+          if (!data.nodeList) {
+            this.$set(data, 'nodeList', []);
+          }
+          data.nodeList.push(newChild);
+        }
+        this.conceptList = [];
+        this.closeSearch();
+      },
+      openSearch(e) {
+        this.showSearch = true
+      },
+      closeSearch() {
+        this.conceptText = ''
+        this.conceptList = []
+        this.showSearch = false
+      },
+      append(data, e) {
+          this.addLevel = data.level+1;
+          this.relationConceptId = data.conceptId
+          this.operaList = data;
+          this.openSearch(data);
+
+          // const newChild = { id: id++, label: 'testtest', level: data.level+1, nodeList: [] };
+          // if (!data.nodeList) {
+          // this.$set(data, 'nodeList', []);
+          // }
+          // data.nodeList.push(newChild);
+      },
+
+      remove(node, data) {
+          const parent = node.parent;
+          const nodeList = parent.data.nodeList || parent.data;
+          const index = nodeList.findIndex(d => d.conceptId === data.conceptId);
+          nodeList.splice(index, 1);
+      },
+      reparams(param){
+        let params = []
+        const tmplis = param.nodeList||[];
+        for(let i = 0;i < tmplis.length;i++){
+          let item = tmplis[i],sonIds=[]
+          if(item.nodeList&&item.nodeList.length>0){
+            for(let j = 0;j < item.nodeList.length;j++){
+              sonIds.push(item.nodeList[j].conceptId)
+            }
+          }
+          let obj = {
+            "sid": param.conceptId,
+            "rid": item.conceptId,
+            "eids": sonIds,
+            // "eid": item.libType[0],
+            // "srid": 0
+          }
+          params.push(obj)
+        }
+        return params
+      },
+      message(msg,type){
+        this.$message({
+          showClose: true,
+          message:msg,
+          type:type||'warning'
+        })
+      },
+      
+    }
+}
+</script>
+<style lang="less" scoped>
+@import "../../less/admin.less";
+.content {
+  min-width: auto;
+  box-sizing: border-box;
+}
+.contents {
+  box-sizing: border-box;
+  box-sizing: border-box;
+}
+
+.addMedicalMultRelationWrapper {
+  height: calc(100% - 70px);
+}
+.tree {
+  margin-bottom: 230px;
+}
+.contents {
+  height: 100%;
+  padding-top: 60px;
+}
+.btn-box {
+  position: absolute;
+  left: 350px;
+}
+.btn-del {
+  color: #8F8F8F;
+  padding-left: 28px;
+}
+.addBtn {
+  width: 66px;
+  order: 1px solid #21CBC7;
+  border-radius: 2px;
+}
+.conceptSearch {
+  position: fixed;
+  right: 20px;
+  top: 180px;
+  bottom: 10px;
+  width: 300px;
+  background: #fff;
+  border: 1px solid #C9C9C9;
+  text-align: center;
+  z-index: 2;
+  padding: 30px;
+  box-sizing: border-box;
+  .conceptTitle {
+    width: 100%;
+    text-align: center;
+    padding: 20px 0;
+  }
+  .searchText {
+    padding: 0 35px 0 15px;
+    width: 100%;
+    height: 34px;
+    border: 1px solid #C9C9C9;
+    box-sizing: border-box;
+  }
+  .conceptList {
+    min-height: 200px;
+    max-height:300px;
+    margin: -2px auto 0;
+    border: 1px solid #E1DFDF;
+    overflow: hidden;
+    overflow-y: auto;
+  }
+  .conceptItem {
+    height: 34px;
+    line-height: 34px;
+    text-align: left;
+    padding: 0 15px;
+    cursor: pointer;
+  }
+  .conceptItem:hover {
+    background: #f5f7fa;
+  }
+  .closeSearch {
+    position: absolute;
+    width: 30px;
+    right: 0;
+    top: 0;
+  }
+  .searchWrap {
+    position: relative;
+    .search {
+      position: absolute;
+      right: 7px;
+      top:8px;
+    }
+  }
+}
+.delete {
+  cursor: pointer;
+}
+.content{
+  background: #fff;
+  padding: 20px 20px 30px;
+  color: #545455;
+ 
+}
+
+.btn {
+  text-align: right;
+  margin-top: 20px;
+}
+.custom-tree-node-name {
+  display: inline-block;
+  width: 270px;
+}
+.colorGray {
+  color: #c1c1c1;
+} 
+</style>

+ 421 - 0
src/components/knowledgeExtra/KnowledgeAll.vue

@@ -0,0 +1,421 @@
+<template>
+  <div class="addMedicalMultRelationWrapper">
+    <crumbs :title="minTitle" fix="fixed" linkTo="MedicalMultRelation"></crumbs>
+    <TreeTab @getTreeList="getTreeList" />
+    <div class="contents">
+      <div class="content">
+        <div class="addBtn" v-if="list.length == 0">
+          <!-- <el-button
+            @click="addConcept"
+          >+ 新 增</el-button> -->
+        </div>
+
+        <div class="tree">
+          <el-tree
+            :data="list"
+            :props="defaultProps"
+            node-key="conceptId"
+            draggable
+            :allow-drag="allowDrag"
+            :allow-drop="allowDrop"
+            :expand-on-click-node="true"
+            :render-after-expand="true"
+            :highlight-current="true"
+            :default-expanded-keys="defaultExpandedArr"
+            @node-click = "handleNodeClick"
+          >
+            <span class="custom-tree-node" slot-scope="{ node, data }" >
+                <span class="custom-tree-node-name ellipsis" :class="{colorGray: data.isDeletedConcept == 'Y'}" :title="node.label">{{ node.label }}</span>
+                <span class="btn-box">
+                  <el-button
+                      class="btn-add fl"
+                      v-show="data.level < 2"
+                      type="text"
+                      size="mini"
+                      @click="(e) => append(data, e)">
+                      + 增加
+                  </el-button>
+                  <el-button
+                      class="btn-del fr"
+                      v-show="data.level != 0"
+                      type="text"
+                      size="mini"
+                      @click="() => remove(node, data)">
+                      删除
+                  </el-button>
+                </span>
+            </span>
+          </el-tree>
+        </div>
+        <div class="btn">
+          <el-button
+            type="primary"
+            :disabled = 'saveDisable'
+            @click="confirm"
+          >确 定</el-button>
+        </div>
+      </div>
+    </div>
+    <SearchList 
+      v-if="showSearch" 
+      :conceptList="conceptList" 
+      :addLevel="addLevel"
+      @closeSearch="closeSearch" 
+      @selectConcept="selectConcept" 
+      @searchConcept="searchConcept" />
+  </div>
+</template>
+<script type="text/javascript">
+import api from '@api/knowledgeTree.js';
+import SearchList from '../basicKnow/SearchList.vue';
+import TreeTab from '../basicKnow/TreeTab.vue';
+
+export default {
+    name:'KnowledgeAll',
+    components:{
+      SearchList,TreeTab
+    },
+    data(){
+      return{
+        minTitle:'树形结构维护',
+        tab:[
+          {name:'ICD10疾病类别',id:'1'},
+          {name:'科室疾病类别',id:'2'},
+          {name:'药物类别',id:'3'},
+          {name:'症状类别',id:'4'},
+          {name:'手术和操作类别',id:'5'},
+          {name:'实验室检查类别',id:'6'},
+          {name:'辅助检查类别',id:'7'},
+        ],
+        curId:'1',
+        list: [],
+        defaultProps: {
+          children: 'nodeList',
+          label: 'conceptName'
+        },
+        conceptList: [], //概念列表
+        showSearch: false,
+        addLevel: 0,  //添加级别
+        excludedConceptIds:[],
+        operaList: [],
+        relationConceptId: '', //关联父类ID
+        level: 0, //层级(修改时只能显示三级)
+        saveDisable: false,  //保存按钮禁止点击
+        defaultExpandedArr: [],
+        relationTypes:[]
+      }
+    },
+    created(){
+      this.getTreeList(1)
+    },
+    methods:{
+      getTreeList(id){
+        const params = {
+          "type": id,
+        }
+        api.getlistTree(params).then((res) => {
+          const { data } = res
+          if(data.code == '0') {
+            let result = data.data.treeDTO||{}
+            this.relationTypes = data.data.types||[]
+            const itemStr = JSON.stringify(result)
+            let tmp = itemStr.replace(/nextTree/g,'nodeList').replace(/id/g,'conceptId').replace(/name/g,'conceptName')
+            let item = JSON.parse(tmp)
+            item.level = 0
+            item.isExpanded = false
+            item.nodeList = this.IteraNodeList(item.nodeList, [], 1)
+            let arr = []
+            arr[0] = item
+            this.list = [...arr]
+          } else {
+            this.message(data.msg);
+          }
+          this.saveDisable = false;
+        })
+      },
+      allowDrop(draggingNode, dropNode, type) {
+        if(draggingNode.parent.data.conceptName !== dropNode.parent.data.conceptName){
+          return false
+        }else{
+          return type !== 'inner'
+        }
+      },
+      allowDrag(draggingNode) {
+        return draggingNode.data.level != 0;//一级不可拖动
+      },
+      handleNodeClick(data) {
+          if(data.nodeList.length > 0) {
+            if(!data.isExpanded) {
+              this.defaultExpandedArr.push(data.conceptId)
+            } else {
+              this.defaultExpandedArr = this.defaultExpandedArr.filter(item => item !== data.conceptId)
+            }
+            this.$set(data, 'isExpanded', !data.isExpanded);
+          }
+      
+      },
+      // addConcept(e) {
+      //   console.log(e)
+      //   this.addLevel = 0;
+      //   this.openSearch(e);
+      // },
+      confirm() { 
+        if(!this.list[0] || this.list[0].nodeList.length == 0) {
+          this.message('请输入数据信息');
+          return
+        }
+        const param = {
+          conceptId: this.list[0].conceptId,
+          sonRelationId: 17,
+          isOrderBy: 1
+        }
+        const nodeListResult = []
+        this.IteraNodeList(this.list[0].nodeList, nodeListResult, 0)
+        param.nodeList = nodeListResult
+        this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
+        api.addTreeRelation(this.reparams(param)).then((res) => {
+          const { data } = res
+          if(data.code == '0') {
+            this.message(res.data.msg||'术语关系建立成功','success');
+          } else {
+            this.message(data.msg);
+          }
+          this.saveDisable = false;
+        })
+      },
+      IteraNodeList(nodeList,  nodeListResult, type, level = 1) {
+        this.level= level + 1
+        for(let i = 0; i <nodeList.length; i++) {
+          let newChild;
+          if(type == '0') { //添加的时候保存所有的id列表
+            newChild = {conceptId: nodeList[i].conceptId, relationId: 17,nodeList:[],sonRelationId: 17, isExpanded:false}
+          } else if(type == '1') {  //修改的时候添加层级
+            const item = JSON.parse(JSON.stringify(nodeList[i]))
+            newChild = Object.assign(item, {level:  level, nodeList: [],sonRelationId: 17, isExpanded:false})
+          } else if(type == '2') { //移除节点的时候同时移除节点(搜索时排除的id列表)
+            newChild = nodeList[i].conceptId
+          }
+          
+          if(nodeList[i].nodeList &&nodeList[i].nodeList.length > 0&&level < 3) {
+            if(type == '0' || type =='1') {
+              this.IteraNodeList(nodeList[i].nodeList,  newChild.nodeList, type, level+1)
+            } else if(type == '2') {
+              this.IteraNodeList(nodeList[i].nodeList,  nodeListResult, type, level+1)
+            }
+            
+          }
+          nodeListResult.push(newChild)
+        }
+        return nodeListResult
+      },
+      searchConcept(txt) {
+        let  excludedConceptIds = [];
+        if(this.list[0]) {
+          excludedConceptIds.push(this.list[0].conceptId)
+          this.excludedConceptIds = this.IteraNodeList(this.list[0].nodeList,excludedConceptIds, 2)
+        }
+        const params = {
+          "typeId": this.addLevel === 1 ? this.relationTypes[2] : this.addLevel === 2 ? this.relationTypes[4] : 1,
+          "name": txt,
+          "excludedConceptIds": this.excludedConceptIds,
+          "relationId": this.addLevel === 1 ? this.relationTypes[1] : this.addLevel === 2 ? this.relationTypes[3] : 1,
+          "relationConceptId": this.relationConceptId,
+        }
+        api.getTreeSearchList(params).then((res) => {
+          const { data } = res
+          if(data.code == '0') {
+            this.conceptList = data.data
+          }
+        })
+      },
+      selectConcept(item) {
+        if(this.addLevel == 0) {
+          this.list.push(Object.assign({}, item,  {nodeList: [], level: 0, conceptId: item.conceptId, sonRelationId: 17}))
+          this.list = JSON.parse(JSON.stringify(this.list))
+        }else {
+          const data = this.operaList
+          const newChild = Object.assign({}, item,  {nodeList: [], level: data.level+1, conceptId: item.conceptId, relationId: 17,sonRelationId: 17});
+          // const newChild = { id: id++, label: 'nodeList', level: data.level+1, children: [] };
+          if (!data.nodeList) {
+          this.$set(data, 'nodeList', []);
+          }
+          data.nodeList.push(newChild);
+        }
+        this.conceptList = [];
+        this.closeSearch();
+      },
+      openSearch(e) {
+        this.showSearch = true
+      },
+      closeSearch() {
+        this.conceptText = ''
+        this.conceptList = []
+        this.showSearch = false
+      },
+      append(data, e) {
+          this.addLevel = data.level+1;
+          this.relationConceptId = data.conceptId
+          this.operaList = data;
+          this.openSearch(data);
+
+          // const newChild = { id: id++, label: 'testtest', level: data.level+1, nodeList: [] };
+          // if (!data.nodeList) {
+          // this.$set(data, 'nodeList', []);
+          // }
+          // data.nodeList.push(newChild);
+      },
+
+      remove(node, data) {
+          const parent = node.parent;
+          const nodeList = parent.data.nodeList || parent.data;
+          const index = nodeList.findIndex(d => d.conceptId === data.conceptId);
+          nodeList.splice(index, 1);
+      },
+      reparams(param){
+        let params = []
+        const tmplis = param.nodeList||[];
+        for(let i = 0;i < tmplis.length;i++){
+          let item = tmplis[i],sonIds=[]
+          if(item.nodeList&&item.nodeList.length>0){
+            for(let j = 0;j < item.nodeList.length;j++){
+              sonIds.push(item.nodeList[j].conceptId)
+            }
+          }
+          let obj = {
+            "eid": item.conceptId,
+            "eids": sonIds,
+            "rid": this.relationTypes[1],
+            "sid": param.conceptId,
+            "srid": this.relationTypes[3]
+          }
+          params.push(obj)
+        }
+        return params
+      },
+      message(msg,type){
+        this.$message({
+          showClose: true,
+          message:msg,
+          type:type||'warning'
+        })
+      },
+      
+    }
+}
+</script>
+<style lang="less" scoped>
+@import "../../less/admin.less";
+.el-button+.el-button {
+  margin-left: 0;
+}
+.content {
+  min-width: auto;
+  box-sizing: border-box;
+}
+.contents {
+  box-sizing: border-box;
+  box-sizing: border-box;
+}
+
+.addMedicalMultRelationWrapper {
+  height: calc(100% - 70px);
+}
+.tree {
+  margin-bottom: 230px;
+}
+.contents {
+  height: 100%;
+  padding-top: 120px;
+}
+.btn-box {
+  position: absolute;
+  left: 350px;
+}
+.btn-del {
+  color: #8F8F8F;
+  padding-left: 28px;
+}
+.addBtn {
+  width: 66px;
+  order: 1px solid #21CBC7;
+  border-radius: 2px;
+}
+.conceptSearch {
+  position: fixed;
+  right: 20px;
+  top: 180px;
+  bottom: 10px;
+  width: 300px;
+  background: #fff;
+  border: 1px solid #C9C9C9;
+  text-align: center;
+  z-index: 2;
+  padding: 30px;
+  box-sizing: border-box;
+  .conceptTitle {
+    width: 100%;
+    text-align: center;
+    padding: 20px 0;
+  }
+  .searchText {
+    padding: 0 35px 0 15px;
+    width: 100%;
+    height: 34px;
+    border: 1px solid #C9C9C9;
+    box-sizing: border-box;
+  }
+  .conceptList {
+    min-height: 200px;
+    max-height:300px;
+    margin: -2px auto 0;
+    border: 1px solid #E1DFDF;
+    overflow: hidden;
+    overflow-y: auto;
+  }
+  .conceptItem {
+    height: 34px;
+    line-height: 34px;
+    text-align: left;
+    padding: 0 15px;
+    cursor: pointer;
+  }
+  .conceptItem:hover {
+    background: #f5f7fa;
+  }
+  .closeSearch {
+    position: absolute;
+    width: 30px;
+    right: 0;
+    top: 0;
+  }
+  .searchWrap {
+    position: relative;
+    .search {
+      position: absolute;
+      right: 7px;
+      top:8px;
+    }
+  }
+}
+.delete {
+  cursor: pointer;
+}
+.content{
+  background: #fff;
+  padding: 40px 20px 30px;
+  color: #545455;
+ 
+}
+
+.btn {
+  text-align: right;
+  margin-top: 20px;
+}
+.custom-tree-node-name {
+  display: inline-block;
+  width: 270px;
+}
+.colorGray {
+  color: #c1c1c1;
+} 
+</style>

+ 329 - 0
src/components/knowledgeExtra/KnowledgeBaseType.vue

@@ -0,0 +1,329 @@
+<template>
+  <div>
+    <crumbs title="基础术语类型维护" minWidth="995px" class="knowledgeTitle">
+      <el-form :inline="true" class="demo-form-inline">
+        <el-form-item label="术语类型:">
+          <el-select v-model="filter.type" clearable filterable placeholder="请选择" size="mini">
+            <el-option
+              v-for="item in typeList"
+              :key="item.id"
+              :label="item.name"
+              :value="item.name"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="数字编码:">
+          <el-input size="mini" type="number" v-model="filter.term" placeholder="请输入编码"></el-input>
+        </el-form-item>
+        <el-form-item>
+          <el-button size="mini" @click="filterDatas">搜索</el-button>
+        </el-form-item>
+      </el-form>
+    </crumbs>
+    <div class="contents knowledgeContents">
+      <el-table :data="list" border style="width: 100%">
+        <el-table-column type="index" :index="indexMethod" label="编号" width="60"></el-table-column>
+        <el-table-column prop="name" label="术语类型" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="code" label="数字编码" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="isHasCommonCn" label="是否支持通用扩展" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="canChangeCn" label="是否允许修改" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="onlyOneCn" label="是否只有单个词" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="modifier" label="操作人" show-overflow-tooltip></el-table-column>
+        <el-table-column prop="gmtModified" label="操作时间" show-overflow-tooltip></el-table-column>
+        <el-table-column label="操作" width="160">
+          <template slot-scope="scope">
+            <el-button
+              type="text"
+              size="small"
+              :disabled="true"
+            >修改</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        :current-page.sync="currentPage"
+        @current-change="currentChange"
+        background
+        :page-size="pageSize"
+        :page-sizes="pageSizeArr"
+        @size-change="handleSizeChange"
+        :layout="pageLayout"
+        :total="total"
+      ></el-pagination>
+    </div>
+  </div>
+</template>
+
+<script>
+import api from '@api/knowledgeTree.js';
+import config from '@api/config.js';
+import utils from '@api/utils.js';
+
+export default {
+  name: 'KnowledgeBaseType',
+  data: function() {
+    return {
+      list: [],
+      stateSelect:[
+          {id:'N',name:'启用'},
+          {id:'Y',name:'禁用'},
+      ],
+      // isState:'',
+      cacheData: {}, //因为删除和恢复要及时更新,所以不做缓存
+      currentPage: 1,
+      pageSize: config.pageSize,
+      pageSizeArr: config.pageSizeArr,
+      pageLayout: config.pageLayout,
+      total: 0,
+      searched: false,
+      filter: {
+        term: '',
+        type: '',
+        libName: '',
+      },
+      typeList: [],
+      reloadFlag: true
+    };
+  },
+  created() {
+    // this.getDataList();
+    this.getTypeList();
+    const that = this;
+    //返回时避免参数未赋值就获取列表
+    setTimeout(function() {
+    });
+    this.$nextTick(()=>{
+      that.getDataList();
+    })
+  },
+  watch: {
+    filter: {
+      handler: function() {
+        this.searched = false;
+      },
+      deep: true
+    }
+  },
+  beforeRouteEnter(to, from, next) {
+    next(vm => {
+      //const pm = to.param;
+      Object.assign(vm, to.params);
+      vm.inCurrentPage = to.params.currentPage;
+    });
+  },
+  methods: {
+    handleSizeChange(val) {
+      this.pageSize = val;
+      this.currentPage = utils.getCurrentPage(
+        this.currentPage,
+        this.total,
+        this.pageSize
+      );
+      this.getDataList();
+    },
+    reloadLib() {
+      if (this.reloadFlag) {
+        this.reloadFlag = false;
+        api.clearStandRuleDrug().then(res => {
+          if (res.data.code == 0) {
+            this.reloadFlag = true;
+          }
+        });
+      }
+    },
+    addMedicalName() {
+      const pam = this.searched
+        ? {
+            currentPage: this.currentPage,
+            pageSize: this.pageSize,
+            filter: this.filter
+          }
+        : { currentPage: this.currentPage, pageSize: this.pageSize };
+      this.$router.push({ name: 'AddTerm', params: pam });
+    },
+    filterDatas() {
+      this.currentPage = 1;
+      this.getDataList();
+    },
+    getDataList(isTurnPage) {
+      const param = this.getFilterItems(isTurnPage);
+      this.searched = true;
+      // const loading = this.$loading({
+      //   lock: true,
+      //   text: 'Loading',
+      //   spinner: 'el-icon-loading',
+      //   background: 'rgba(0, 0, 0, 0.7)'
+      // });
+      api.baseTypeGetPage(param)
+        .then(res => {
+          // loading.close();
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            const templis = data.records;
+            for(let i = 0;i < templis.length;i++){
+              templis[i].isDeleted = templis[i].status=='1'?'N':'Y'
+            }
+            this.list = templis;
+            // this.cacheData[param.current] = data.records;
+            this.total = data.total;
+            if (this.inCurrentPage !== undefined) {
+              this.currentPage = this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    getTypeList() {
+      api
+        .baseTypeGetPage({ name: '',size: 1000 })
+        .then(res => {
+          const data = res.data;
+          if (data.code == 0) {
+            this.typeList = data.data.records||[];
+          } else {
+            console.log(res.msg);
+          }
+        })
+        .catch(error => {
+          console.log(error);
+        });
+    },
+    /*getDetailList(id) {
+        this.$router.push({name:'DeptInfoDetail', params:{id: id}})
+      },*/
+    getFilterItems(isTurnPage) {
+      //翻页时筛选条件没点确定则清空
+      if (isTurnPage && !this.searched) {
+        this.clearFilter();
+      }
+      const param = {
+        "code": this.filter.term.trim(),
+        "name": this.filter.type,
+        current: this.inCurrentPage || this.currentPage,
+        size: this.pageSize,
+      };
+      return param;
+    },
+    indexMethod(index) {
+      return (this.currentPage - 1) * this.pageSize + index + 1;
+    },
+    currentChange(next) {
+      this.currentPage = next;
+      // if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+      //   this.list = this.cacheData[next];
+      // } else {
+      this.getDataList(true);
+      // }
+    },
+    warning(msg, type) {
+      this.$message({
+        showClose: true,
+        message: msg,
+        type: type || 'warning'
+      });
+    },
+    showConfirmDialog(msg, resolve) {
+      this.$alert(msg, '提示', {
+        confirmButtonText: '确定',
+        type: 'warning'
+      })
+        .then(() => {
+          resolve();
+        })
+        .catch(() => {});
+    },
+    showDelDialog(item) {
+      /*const param = {
+          term:item.term,
+          type:item.type,
+          id:item.id
+        }*/
+      const param = {
+        conceptId: item.conceptId
+      };
+      let url = item.isDeleted === 'N'?'disableConcept':'startConcept'
+      let waringTxt =
+        item.isDeleted === 'N'
+          ? '是否禁用该标准术语?'
+          : '是否重新启用该条数据?';
+      this.showConfirmDialog(waringTxt, () => {
+        api[url](param)
+          .then(res => {
+            if (res.data.code == '0') {
+              if (!this.searched) {
+                //未点确认时清空搜索条件
+                this.clearFilter();
+              }
+              if (item.isDeleted !== 'N') {
+                //恢复成功后跳转到筛选条件的首页
+                this.currentPage = 1;
+              } else {
+                if (this.filter.isState !== '' && this.list.length === 1) {
+                  //有启用状态筛选条件且当前页只有最后一条数据删除时,删除成功后跳转到前一页
+                  this.currentPage =
+                    this.currentPage === 1 ? 1 : this.currentPage - 1;
+                }
+              }
+              this.warning(res.data.msg || '操作成功', 'success');
+              this.getDataList();
+            } else {
+              this.warning(res.data.msg);
+            }
+          })
+          .catch(error => {
+            this.warning(error);
+          });
+      });
+    },
+    clearFilter() {
+      this.filter = {
+        term: '',
+        type: '',
+        libName: '',
+        isState: ''
+      };
+    }
+  }
+};
+</script>
+
+<style lang="less" scoped>
+@import '../../less/admin.less';
+
+/deep/ .container.knowledgeTitle {
+  height: 40px;
+}
+/deep/ .contents.knowledgeContents {
+  padding: 64px 20px 0;
+}
+/deep/ .secLine.el-form {
+  float: right;
+  display: block;
+  position: relative;
+  top: -5px;
+}
+.delete {
+  color: red;
+}
+.review {
+  color: #22ccc8;
+}
+.deletes {
+  cursor: default;
+  color: red;
+}
+.reviews {
+  color: #606266;
+  cursor: default;
+}
+.el-table .cell {
+  overflow: hidden;
+  white-space: nowrap;
+}
+#upFile {
+  display: none !important;
+}
+</style>

+ 407 - 0
src/components/knowledgeExtra/RuleManager.vue

@@ -0,0 +1,407 @@
+<template>
+    <div>
+        <crumbs title="规则维护" :minWidth="titleWidth" class="knowledgeTitle">
+            <el-form :inline="true" class="demo-form-inline">
+                <el-form-item label="规则名称:">
+                    <el-input size="mini" v-model="filter.parDescription" placeholder="输入规则名称"></el-input>
+                </el-form-item>
+                <el-form-item label="规则类型:">
+                    <el-select v-model="filter.parRuleType" clearable placeholder="请选择" size="mini">
+                        <el-option
+                                v-for="item in ruleTypeList"
+                                :key="item.id"
+                                :label="item.name"
+                                :value="item.id">
+                        </el-option>
+                    </el-select>
+                </el-form-item>
+                <el-form-item label="术语名称:">
+                    <el-input size="mini" v-model="filter.parConceptName" placeholder="输入术语名称"></el-input>
+                </el-form-item>
+                <el-form-item label="状态:">
+                    <el-select v-model="filter.parStatus" clearable placeholder="请选择" size="mini">
+                        <el-option
+                                v-for="item in stateSelect"
+                                :key="item.id"
+                                :label="item.name"
+                                :value="item.id">
+                        </el-option>
+                    </el-select>
+                </el-form-item>
+                <el-form-item>
+                    <el-button size="mini" @click="filterDatas">确认</el-button>
+                </el-form-item>
+            </el-form>
+            <el-form class="secLine">
+                <el-form-item>
+                    <el-button size="mini" @click="addRule" type="warning" style="margin:0 10px">+ 新增规则</el-button>
+                    <el-button size="mini" @click="update">更新数据</el-button>
+                </el-form-item>
+            </el-form>
+        </crumbs>
+        <div class="contents knowledgeContents">
+            <el-table :data="list"
+                      border
+                      style="width: 100%">
+                <el-table-column
+                        type="index"
+                        :index="indexMethod"
+                        label="编号"
+                        width="60">
+                </el-table-column>
+                <el-table-column
+                        prop="parDescription"
+                        label="规则名称"
+                        width="160">
+                </el-table-column>
+                <el-table-column
+                        prop="parRuleType"
+                        label="规则类型"
+                        width="100">
+                    <template slot-scope="scope">
+                        {{statusTrans(scope.row.parRuleType)}}
+                    </template>
+                </el-table-column>
+                <el-table-column
+                        prop="parConceptName"
+                        label="医学标准术语"
+                        width="160">
+                </el-table-column>
+                <el-table-column
+                        prop="parLibTypeName"
+                        label="术语类型"
+                        width="130">
+                </el-table-column>
+                <el-table-column
+                        prop="parHasSub"
+                        label="有无子条件"
+                        width="100">
+                    <template slot-scope="scope">
+                        {{scope.row.parHasSub === '0'?'无':'有'}}
+                    </template>
+                </el-table-column>
+                <el-table-column
+                        prop="parMsg"
+                        label="附加信息"
+                        width="160">
+                </el-table-column>
+                <el-table-column
+                        label="状态">
+                    <template slot-scope="scope">
+                          <span>
+                            {{scope.row.parStatus === 0?'禁用':'启用'}}
+                          </span>
+                    </template>
+                </el-table-column>
+                <el-table-column
+                        prop="modifier"
+                        label="操作人">
+                </el-table-column>
+                <el-table-column
+                        prop="gmtModified"
+                        label="操作时间"
+                        width="180">
+                </el-table-column>
+                <el-table-column
+                        label="操作"
+                        width="180">
+                    <template slot-scope="scope">
+                        <el-button type="text" size="small" @click="editData(scope.row.parId)">修改</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button type="text" size="small" @click="editData(scope.row.parId,true)">复制</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button type="text" size="small" :class="scope.row.parStatus === 0?'':'delete'" @click="showDelDialog(scope.row)">{{scope.row.parStatus === 0?'启用':'禁用'}}</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button type="text" size="small" class="delete" @click="showDelDialog(scope.row,1)">删除</el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+            <el-pagination :current-page.sync="currentPage"
+                           @current-change="currentChange"
+                           background
+                           :page-size="pageSize"
+                           :page-sizes="pageSizeArr"
+                           @size-change="handleSizeChange"
+                           :layout="pageLayout"
+                           :total="total">
+            </el-pagination>
+        </div>
+
+    </div>
+</template>
+
+<script>
+    import api from '@api/knowledgeLib.js';
+    import config from '@api/config.js';
+    import utils from '@api/utils.js';
+
+    export default {
+        name: 'ZskRuleManager',
+        data: function () {
+            return {
+                list: [],
+                stateSelect:[
+                    {id:1,name:'启用'},
+                    {id:0,name:'禁用'},
+                ],
+                ruleTypeList:[],
+                searched: false,
+                filter:{
+                    parStatus:'',
+                    parDescription:'',
+                    parConceptName:'',
+                    parRuleType:'',
+                },
+                cacheData: {},
+                currentPage: 1,
+                pageSize: config.pageSize,
+                pageSizeArr:config.pageSizeArr,
+                pageLayout:config.pageLayout,
+                total: 0,
+                titleWidth:'1070px' //头部最小宽度
+            }
+        },
+        created() {
+            this.getTypeList();
+            const that = this;
+            //返回时避免参数未赋值就获取列表
+            setTimeout(function(){
+                that.getDataList();
+            });
+        },
+        watch: {
+            'filter': {
+                handler: function () {
+                    this.searched = false;
+                },
+                deep: true
+            }
+        },
+        beforeRouteEnter(to, from, next) {
+            next(vm => {
+                //const pm = to.param;
+                Object.assign(vm, to.params);
+                vm.inCurrentPage=to.params.currentPage;
+            })
+        },
+        methods: {
+            statusTrans(type){
+                const obj = this.ruleTypeList.find((it)=>it.type===type);
+                return obj&&obj.name;
+            },
+            getTypeList(){
+                const typeListData = JSON.parse(localStorage.getItem("zskTypesList"));
+                if(typeListData){
+                    this.ruleTypeList = typeListData;
+                    return;
+                }
+                api.getTypesList({}).then((res) => {
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        this.ruleTypeList = data;
+                        localStorage.setItem("zskTypesList",JSON.stringify(data));
+                    }
+                }).catch((error) => {
+                    console.log(error);
+                });
+            },
+            handleSizeChange(val){
+                this.pageSize = val;
+                this.currentPage = utils.getCurrentPage(this.currentPage, this.total, this.pageSize);
+                this.getDataList();
+            },
+            addRule(){
+                const pam = this.searched ? {
+                    currentPage: this.currentPage,
+                    pageSize:this.pageSize,
+                    filter: this.filter
+                } : {currentPage: this.currentPage,
+                    pageSize:this.pageSize};
+                this.$router.push({name: 'AddZskRule', params: pam});
+            },
+            filterDatas(){
+                this.currentPage = 1;
+                this.getDataList(1);
+            },
+            getDataList(flag,isTurnPage) {
+                const params = this.getFilterItems(isTurnPage);
+                this.searched = true;
+                const loading = this.$loading({
+                    lock: true,
+                    text: 'Loading',
+                    spinner: 'el-icon-loading',
+                    background: 'rgba(0, 0, 0, 0.7)'
+                });
+                api.getRulesList(params).then((res) => {
+                    loading.close();
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        for(let j = 0;j < data.records.length;j++){
+                            data.records[j].condition = (data.records[j].parStatus == '1'?'启用':'禁用')
+                        }
+                        this.list = data.records;
+                        if(!flag){//搜索时不缓存
+                            this.cacheData[params.current] = data.records;
+                        }else{
+                            this.cacheData = {}
+                        }
+                        this.total = data.total;
+                        if(this.inCurrentPage!==undefined){
+                            this.currentPage=this.inCurrentPage;
+                            this.inCurrentPage = undefined;
+                        }
+                    }else{
+                        this.warning(res.data.msg||'获取列表数据失败');
+                    }
+                }).catch((error) => {
+                    loading.close();
+                    console.log(error);
+                });
+            },
+            getFilterItems(isTurnPage) {
+                //翻页时筛选条件没点确定则清空
+                if(isTurnPage&&!this.searched){
+                    this.clearFilter();
+                };
+                const param = {
+                    current: this.inCurrentPage||this.currentPage,
+                    size: this.pageSize,
+                    parRuleType: this.filter.parRuleType,
+                    parDescription: this.filter.parDescription.trim(),
+                    parConceptName: this.filter.parConceptName.trim(),
+                    parStatus:this.filter.parStatus
+                };
+                return param;
+            },
+            indexMethod(index) {
+                return ((this.currentPage - 1) * this.pageSize) + index + 1;
+            },
+            currentChange(next) {
+                this.currentPage = next;
+                /*if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+                  this.list = this.cacheData[next];
+                } else {*/
+                this.getDataList(1,true);
+                //}
+            },
+            warning(msg,type){
+                this.$message({
+                    showClose: true,
+                    message:msg,
+                    type:type||'warning'
+                })
+            },
+            showConfirmDialog(msg,resolve){
+                this.$alert(msg, '提示', {
+                    confirmButtonText: '确定',
+                    type: 'warning'
+                }).then(() => {
+                    resolve();
+                }).catch(() => {});
+            },
+            editData(id,isCopy){
+                const pam = this.searched ? {
+                    currentPage: this.currentPage,
+                    pageSize:this.pageSize,
+                    filter: this.filter
+                } : {currentPage: this.currentPage,
+                    pageSize:this.pageSize};
+                api.ruleDetail({id}).then((res) => {
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        this.$router.push({name:'AddZskRule',params:{...pam,data,copy:isCopy}});
+                    }
+                }).catch((error) => {
+                    this.warning('获取详情失败,请重试')
+                });
+            },
+            showDelDialog(row,isDelete){
+                const params = {
+                    id:row.parId
+                };
+                const txt=row.parStatus===0?'重新启用':'禁用';
+                const warningTxt = isDelete?'是否删除该规则?可能对现有系统造成影响':'是否'+txt+'该条数据?';
+                const handleFn = isDelete?api.deleteRule:(row.parStatus===0?api.saveRuleApply:api.deleteRuleApply);
+                this.showConfirmDialog(warningTxt,()=>{
+                    handleFn(params).then((res)=>{
+                        if(res.data.code=='0'){
+                            if(!this.searched){
+                                //未点确认时清空搜索条件
+                                this.clearFilter();
+                            }
+                            if(isDelete){       //恢复成功后跳转到筛选条件的首页
+                                this.currentPage = 1;
+                            } else {
+                                if (this.filter.parStatus!==''&&this.list.length === 1){
+                                    //有启用状态筛选条件且当前页只有最后一条数据删除时,删除成功后跳转到前一页
+                                    this.currentPage = this.currentPage===1?1:this.currentPage-1;
+                                }
+                            }
+                            this.warning(res.data.msg||'操作成功','success');
+                            this.getDataList();
+                        }else{
+                            this.warning(res.data.msg);
+                        }
+                    }).catch((error)=>{
+                        this.warning(error);
+                    })
+                });
+            },
+            clearFilter(){
+                this.filter={
+                    parStatus:'',
+                    parConceptName:'',
+                    parDescription:'',
+                    parRuleType:'',
+                };
+            },
+            update(){
+                const loading = this.$loading({
+                    lock: true,
+                    text: 'Loading',
+                    spinner: 'el-icon-loading',
+                    background: 'rgba(0, 0, 0, 0.7)'
+                });
+                api.zskUpdateAll().then((res) => {
+                    loading.close();
+                    if (res.data.code == '0') {
+                        this.warning('更新成功','success');
+                        this.getDataList();
+                    }
+                }).catch((error) => {
+                    loading.close();
+                    this.warning('更新失败,请重试')
+                });
+            },
+        }
+    }
+</script>
+
+<style lang="less" scoped>
+    @import "../../less/admin.less";
+    /deep/ .container.knowledgeTitle {
+        height: 80px;
+    }
+    /deep/ .contents.knowledgeContents {
+        padding: 104px 20px 0;
+    }
+    /deep/ .secLine.el-form {
+        float: right;
+        display: block;
+        position: relative;
+        top: -5px;
+    }
+    .delete{
+        color: red;
+    }
+    .review{
+        color: #22ccc8;
+    }
+    .el-table .cell{
+        overflow: hidden;
+        white-space: nowrap;
+    }
+    #upFile{
+        display: none !important;
+    }
+</style>

+ 329 - 0
src/components/knowledgeExtra/StaticInfo.vue

@@ -0,0 +1,329 @@
+<template>
+    <div>
+        <crumbs title="医学术语静态知识维护">
+            <el-form :inline="true" class="demo-form-inline">
+                <el-form-item label="标准术语归类:">
+                    <el-select size="mini" v-model="filter.libType" placeholder="标准术语归类" clearable>
+                        <el-option v-for="item in typeList" :label="item.name" :value="item.val" :key="item.val"></el-option>
+                    </el-select>
+                </el-form-item>
+                <el-form-item label="医学标准术语:">
+                    <el-input size="mini" v-model="filter.term" placeholder="请输入术语" clearable></el-input>
+                </el-form-item>
+                <el-form-item label="状态:">
+                    <el-select size="mini" v-model="filter.status" placeholder="请选择" clearable>
+                        <el-option v-for="item in stateList" :label="item.name" :value="item.id" :key="item.id"></el-option>
+                    </el-select>
+                </el-form-item>
+                <el-form-item>
+                    <el-button size="mini" @click="filterDatas">确认</el-button>
+                    <el-button size="mini" type="warning" style="margin:0 10px" @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="60">
+                </el-table-column>
+                <el-table-column
+                        prop="name"
+                        width="150"
+                        label="医学标准术语">
+                </el-table-column>
+                <el-table-column
+                        prop="typeName"
+                        label="标准术语归属"
+                        width="120">
+                </el-table-column>
+                <el-table-column
+                        prop="title"
+                        label="关联标题"
+                        width="240">
+                </el-table-column>
+                <el-table-column
+                        label="状态">
+                    <template slot-scope="scope">
+                        <span v-if="scope.row.isDeleted=='N'">启用</span>
+                        <span v-if="scope.row.isDeleted=='Y'" class="delete">禁用</span>
+                    </template>
+                </el-table-column>
+                <el-table-column
+                        prop="modifier"
+                        label="操作人"
+                        width="80">
+                </el-table-column>
+                <el-table-column
+                        prop="gmtModified"
+                        label="操作时间"
+                        width="180"
+                        :show-overflow-tooltip="true">
+                </el-table-column>
+                <el-table-column
+                        label="操作" width="140">
+                    <template slot-scope="scope">
+                        <el-button v-if="scope.row.isDeleted=='Y'" type="text" size="small" class="is-disabled">修改</el-button>
+                        <el-button v-if="scope.row.isDeleted=='N'" type="text" size="small" @click="toEditProduct(scope.row)">修改</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button v-if="scope.row.isDeleted=='Y' || scope.row.typeId === 82 || scope.row.typeId === 83" type="text" size="small" class="is-disabled">复制</el-button>
+                        <el-button v-if="scope.row.isDeleted=='N'&&scope.row.typeId !== 82 && scope.row.typeId !== 83" type="text" size="small" @click="toCopyProduct(scope.row)">复制</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button v-if="scope.row.isDeleted=='Y'" type="text" size="small" @click="showReuseDialog(scope.row)">启用</el-button>
+                        <el-button v-if="scope.row.isDeleted=='N'" type="text" size="small" class="delete" @click="showDelDialog(scope.row)">禁用</el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+            <el-pagination :current-page.sync="currentPage"
+                           @current-change="currentChange"
+                           background
+                           :page-size="pageSize"
+                           :page-sizes="pageSizeArr"
+                           @size-change="handleSizeChange"
+                           :layout="pageLayout"
+                           :total="total">
+            </el-pagination>
+        </div>
+
+    </div>
+</template>
+
+<script>
+  import api from '@api/knowledgeTree.js';
+  import config from '@api/config.js';
+  import utils from '@api/utils.js';
+
+  export default {
+    name: 'StaticInfo',
+    data: function () {
+      return {
+        list: [],
+        cacheData: {},
+        currentPage: 1,
+        pageSize: config.pageSize,
+        pageSizeArr:config.pageSizeArr,
+        pageLayout:config.pageLayout,
+        total: 0,
+        linkIn:[],
+        pays:[],
+        typeList:[],
+        stateList:[
+          {id:'N',name:'启用'},
+          {id:'Y',name:'禁用'},
+        ],
+        searched: false,
+        filter: {
+          term: '',
+          title:'',
+          status:'',
+          libType:'',
+        }
+      }
+    },
+    created() {
+      //返回时避免参数未赋值就获取列表
+      setTimeout(()=>{
+        this.getDataList();
+        this.getListBack();
+      });
+      // const enums = JSON.parse(localStorage.getItem('knowledgeEnumsData'));
+      // this.typeList = enums.conceptDetailLexiconTypeEnum;
+    },
+    watch: {
+      'filter': {
+        handler: function () {
+          this.searched = false;
+        },
+        deep: true
+      }
+    },
+    beforeRouteEnter(to, from, next){
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm,to.params);
+        vm.inCurrentPage=to.params.currentPage;
+      })
+    },
+    methods: {
+      handleSizeChange(val){
+        this.pageSize = val;
+        this.currentPage = utils.getCurrentPage(this.currentPage, this.total, this.pageSize);
+        this.getDataList();
+      },
+      addMedicalPrompt(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          pageSize:this.pageSize,
+          filter: this.filter
+        } : {currentPage: this.currentPage,
+          pageSize:this.pageSize};
+        this.$router.push({name:'AddDevKnow',
+          params:pam});
+      },
+      toEditProduct(row){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          pageSize:this.pageSize,
+          filter: this.filter
+        } : {currentPage: this.currentPage,
+          pageSize:this.pageSize};
+        this.$router.push({
+          name:'AddDevKnow',
+          params: Object.assign(pam, {data:row,isEdit:true})
+        })
+      },
+      toCopyProduct(row){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          pageSize:this.pageSize,
+          filter: this.filter
+        } : {currentPage: this.currentPage,
+          pageSize:this.pageSize};
+        this.$router.push({
+          name:'AddDevKnow',
+          params: Object.assign(pam, {data:row,isCopy:true})
+        })
+      },
+      filterDatas(){
+        this.currentPage = 1;
+        this.getDataList();
+      },
+      getListBack(){
+        api.getListBack({}).then((res) => {
+          const result = res.data
+          if (result.code == '0') {
+            this.typeList = result.data&&result.data[10]||[]
+          }
+        })
+      },
+      getDataList(isTurnPage) {
+        const param = this.getFilterItems(isTurnPage);
+        this.searched = true;
+        const loading = this.$loading({
+            lock: true,
+            text: 'Loading',
+            spinner: 'el-icon-loading',
+            background: 'rgba(0, 0, 0, 0.7)'
+        });
+        api.staticBaseKnowledge(param).then((res) => {
+          loading.close()
+          if (res.data.code == '0') {
+            const data = res.data.data;
+            let templis = data.records;
+            this.list = templis;
+            this.cacheData[param.current] = data.records;
+            this.total = data.total;
+            for(let i = 0;i < templis.length;i++){
+              templis[i].isDeleted = templis[i].status=='1'?'N':'Y'
+            }
+            if(this.inCurrentPage!==undefined){
+              this.currentPage=this.inCurrentPage;
+              this.inCurrentPage = undefined;
+            }
+          }
+        }).catch((error) => {
+          console.log(error);
+        });
+      },
+      clearFilter(){
+        this.filter={
+          term: '',
+          title:'',
+          status:'',
+          libType:'',
+        };
+      },
+      getFilterItems(isTurnPage) {
+        //翻页时筛选条件没点确定则清空
+        if(isTurnPage&&!this.searched){
+          this.clearFilter();
+        };
+        const param = {
+          name:this.filter.term.trim(),
+          current: this.inCurrentPage||this.currentPage,
+          size: this.pageSize,
+          status:this.filter.status == 'Y'?0:this.filter.status == 'N'?1:'',
+          type:this.filter.libType||'',
+        };
+        return param;
+      },
+      indexMethod(index) {
+        return ((this.currentPage - 1) * this.pageSize) + index + 1;
+      },
+      currentChange(next) {
+        this.currentPage = next;
+        /*if (this.cacheData[next]) {       //如果已请求过该页数据,则使用缓存不重复请求
+          this.list = this.cacheData[next];
+        } else {*/
+          this.getDataList(true);
+        //}
+      },
+      warning(msg,type){
+        this.$message({
+          showClose: true,
+          message:msg,
+          type:type||'warning'
+        })
+      },
+      showConfirmDialog(msg,resolve){
+        this.$confirm(msg, '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          cancelButtonClass:'cancel',
+          type: 'warning'
+        }).then(() => {
+          resolve();
+        }).catch(() => {});
+      },
+      showDelDialog(row){
+        this.showConfirmDialog('是否删除该静态知识?',()=>{
+          api.changeBaseStatus({id:row.id,status:0}).then((res)=>{
+            if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.clearFilter();
+              }
+              this.warning(res.data.msg||'操作成功','success');
+              this.getDataList();
+            }else{
+              this.warning(res.data.msg);
+            }
+          }).catch((error)=>{
+            this.warning(error);
+          })
+        });
+      },
+      showReuseDialog(row){
+        this.showConfirmDialog('是否重新启用该条数据?',()=>{
+          api.changeBaseStatus({id:row.id,status:1}).then((res)=>{
+            if(res.data.code=='0'){
+              this.currentPage = 1;         //恢复数据跳转到筛选条件下首页
+              this.warning(res.data.msg||'操作成功','success');
+              this.getDataList();
+            }else{
+              this.warning(res.data.msg);
+            }
+          }).catch((error)=>{
+            this.warning(error);
+          })
+        });
+      }
+    }
+  }
+</script>
+
+<style lang="less">
+    @import "../../less/admin.less";
+    .status-span{
+        font-size: 12px;
+        margin-right:10px;
+        color: unset;
+    }
+    .delete {
+      color: red;
+    }
+</style>

+ 373 - 0
src/components/knowledgeExtra/SubConditions.vue

@@ -0,0 +1,373 @@
+<template>
+    <div class="groups-cont">
+        <el-form ref="groupData" label-width="150px" class="sub-condition-form" :model="groupData" :rules="rules">
+            <span v-if="!disabled" class="del-btn"  @click="delRule">删除</span><!--:class="isLast?'disable del-btn':'del-btn'"-->
+            <el-form-item label="基础规则名称:" prop="subDescription">
+                <el-input v-model.trim = "groupData.subDescription" :disabled="disabled"></el-input>
+            </el-form-item>
+            <el-form-item label="基础规则类型:" prop="subType">
+                <el-select v-model="groupData.subType"
+                           :disabled="disabled"
+                           placeholder="请选择"
+                           size="small"
+                           @change="subTypeChange">
+                    <el-option
+                            v-for="item in baseTypes"
+                            :key="item.id"
+                            :label="item.name"
+                            :value="item.type">
+                    </el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item label="基础规则术语类型:" prop="subLenCode">
+                <el-select v-model="groupData.subLenCode"
+                           :disabled="disabled"
+                           placeholder="请选择"
+                           size="small" @change="subCodeChange">
+                    <el-option
+                            v-for="item in baseTermTypeList"
+                            :key="item.id"
+                            :label="item.name"
+                            :value="item.code">
+                    </el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item  class="addDepartFormItem" label="医学标准术语:" prop="subConceptId">
+                <el-select clearable remote filterable :disabled="disabled" :remote-method="searchConcept" v-model="groupData.subConceptId">
+                    <el-option
+                            v-for="item in conceptList"
+                            :key="item.conceptId"
+                            :label="item.conceptName"
+                            :value="item.conceptId">
+                    </el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item v-if="groupData.subType===2" label="选择类型:" prop="dataType">
+                <el-select v-model="groupData.dataType"
+                           placeholder="请选择"
+                           size="small" @change="dataTypeChange">
+                    <el-option
+                            v-for="item in dataTypes"
+                            :key="item.id"
+                            :label="item.name"
+                            :value="item.id">
+                    </el-option>
+                </el-select>
+            </el-form-item>
+            <el-form-item class="min-margin" v-if="groupData.dataType==='1'" label="最大值:" required>
+                <div class="select-item clearfix">
+                    <el-col :span="4">
+                        <el-form-item prop="subMaxOperator">
+                            <el-select v-model="groupData.subMaxOperator"
+                                       placeholder="请选择"
+                                       size="small">
+                                <el-option
+                                        v-for="item in operTypeList"
+                                        :key="item.key"
+                                        :label="item.name"
+                                        :value="item.key">
+                                </el-option>
+                            </el-select>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="4">
+                        <el-form-item prop="subMaxValue">
+                            <el-input-number controls-position="right" type="text" v-model="groupData.subMaxValue" placeholder="填写数值"/>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="4">
+                        <el-form-item prop="subMaxUnit">
+                            <el-input  type="text" v-model="groupData.subMaxUnit" placeholder="填写单位"/>
+                        </el-form-item>
+                    </el-col>
+                </div>
+            </el-form-item>
+            <el-form-item class="min-margin" v-if="groupData.dataType==='1'" label="最小值:" required>
+                <div class="select-item clearfix">
+                    <el-col :span="4">
+                        <el-form-item prop="subMinOperator">
+                            <el-select v-model="groupData.subMinOperator"
+                                       placeholder="请选择"
+                                       size="small">
+                                <el-option
+                                        v-for="item in operTypeList"
+                                        :key="item.name"
+                                        :label="item.name"
+                                        :value="item.name">
+                                </el-option>
+                            </el-select>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="4">
+                        <el-form-item prop="subMaxValue">
+                            <el-input-number controls-position="right" type="text" v-model="groupData.subMinValue" placeholder="填写数值"/>
+                        </el-form-item>
+                    </el-col>
+                    <el-col :span="4">
+                        <el-form-item prop="subMinUnit">
+                            <el-input  type="text" v-model="groupData.subMinUnit" placeholder="填写单位"/>
+                        </el-form-item>
+                    </el-col>
+                </div>
+            </el-form-item>
+            <el-form-item v-if="groupData.dataType==='2'" label="医学内容:" prop="subEqValue" class="discDesc">
+                <el-input type="textarea" rows="3" placeholder="请输入医学内容" v-model="groupData.subEqValue"></el-input>
+            </el-form-item>
+            <el-form-item v-if="groupData.subType===6" label="正则表达式:" prop="subEqValue" class="discDesc">
+                <el-input type="textarea" rows="3" placeholder="请输入正则表达式" v-model="groupData.subEqValue"></el-input>
+            </el-form-item>
+        </el-form>
+        <div class="inner-oper">
+            <span>新增规则:</span>
+            <span class="add-btn" @click="addRule"><img src="../../images/add.png" alt="新增规则"></span>
+        </div>
+    </div>
+</template>
+<script>
+    import api from '@api/knowledgeLib.js';
+    export default {
+        name:'subCondititons',
+        props:['groupData','ind','isLast','baseTypes','firstPlace','disabled'],
+        data(){
+            return {
+                baseTermTypeList:[],
+                typeList:[],
+                operTypeList:[{name:'>',key:'>'},
+                    {name:'>=',key:'>='},
+                    {name:'<',key:'<'},
+                    {name:'<=',key:'<='},
+                    {name:'=',key:'='},
+                ],
+                dataTypes:[{id:'1',name:'数值类型'},{id:'2',name:'文本类型'}],
+                conceptList:[],
+                rules:{
+                    subDescription:[{ required: true, message: '请选择基础规则名称',trigger: ['blur'] },{
+                        validator: (rule,value,callback)=>{
+                            if(value.length>100){
+                                callback(new Error('规则名称不能超过100字'));
+                            }else{
+                                callback();
+                            }}, trigger: 'change'
+                    }],
+                    subType:[{ required: true, message: '请选择基础规则类型',trigger: ['change'] }],
+                    subLenCode:[{ required: true, message: '请选择基础规则术语类型',trigger: ['change'] }],
+                    subConceptId:[{ required: true, message: '请输入医学标准术语',trigger: ['blur'] }],
+                    dataType:[{ required: true, message: '请选择类型',trigger: ['change'] }],
+                    subMaxOperator:[{ required: true, message: '请选择最大值操作符',trigger: ['change'] }],
+                    subMaxValue:[{ required: true, message: '请输入最大值',trigger: ['blur'] }],
+                    subMaxUnit:[{ required: true, message: '请输入最大值单位',trigger: ['blur'] }],
+                    subMinOperator:[{ required: true, message: '请选择最小值操作符',trigger: ['change'] }],
+                    subMinValue:[{ required: true, message: '请输入最小值',trigger: ['blur'] }],
+                    subMinUnit:[{ required: true, message: '请输入最小值单位',trigger: ['blur'] }],
+                    subEqValue:[{ required: true, message: '请输入医学内容',trigger: ['blur'] }],
+                },
+            }
+        },
+        watch:{
+            'groupData':{
+                handler:function(val){
+                    this.$emit("changeVal",val,this.ind);
+                },
+                deep:true
+            },
+            'baseTypes':{
+                handler:function(){
+                    if(!this.groupData.subType){
+                        this.baseTermTypeList =[];
+                        return;
+                    }
+                    const obj = this.baseTypes.find((it)=>it.type===this.groupData.subType);
+                    this.baseTermTypeList = obj.subMenuList;
+                },
+                deep:true
+            },
+            'firstPlace':function(val){
+                if(!val)return;
+                const sub = this.baseTypes.find((it)=>it.firstPlace===1);
+                this.groupData.subType=sub.type;
+                this.baseTermTypeList =sub.subMenuList;
+                this.groupData.subLenCode=this.baseTermTypeList.find((it)=>it.firstPlace===1).code;
+                this.conceptList=[val];
+                this.groupData.subDescription=val.conceptName;
+                this.groupData.subConceptId = val.conceptId;
+                this.groupData.subConceptName = val.conceptName;
+            }
+        },
+        created(){
+            this.conceptList=[{conceptName:this.groupData.subLibName,conceptId:this.groupData.subConceptId}];
+        },
+        methods:{
+            dataTypeChange(val){
+                this.groupData.dataType=val;
+                this.clearNumText();
+            },
+            subTypeChange(val){         //基础规则类型修改
+                this.groupData.subLenCode='';
+                this.groupData.dataType='';
+                this.clearConcept();
+                this.clearNumText();
+                if(!val){
+                    this.baseTermTypeList =[];
+                    return;
+                }
+                const obj = this.baseTypes.find((it)=>it.type===val);
+                this.baseTermTypeList = obj.subMenuList;
+            },
+            subCodeChange(val){        //基础规则术语类型修改
+                this.groupData.subLenCode=val;
+                this.groupData.dataType='';
+                this.clearConcept();
+                this.clearNumText();
+            },
+            clearConcept(){
+              this.groupData.subConceptId='';
+              this.conceptList=[];
+            },
+            clearNumText(){
+                this.groupData.subMaxOperator='';
+                this.groupData.subMaxValue='';
+                this.groupData.subMaxUnit='';
+                this.groupData.subMinOperator='';
+                this.groupData.subMinValue='';
+                this.groupData.subMinUnit='';
+                this.groupData.subEqValue='';
+            },
+            searchConcept(val){
+                const param = {
+                    excludedConceptIds:[this.groupData.subType],
+                    libType:this.groupData.subLenCode,
+                    name:val,
+                };
+                api.searchConcept(param).then((res) => {
+                    if (res.data.code == '0') {
+                        const data = res.data.data;
+                        this.conceptList = data;
+                    }
+                }).catch((error) => {
+                    console.log(error);
+                });
+            },
+            addRule(){
+                this.$emit("addRule");
+            },
+            delRule(){
+                if(this.isLast){
+                    this.warning("初始状态规则不能删除~");
+                    return;
+                }
+                //this.showConfirmDialog("是否删除该条规则,可能对现有系统会造成影响",()=>{
+                    this.$emit("delRule",this.ind);
+                //});
+
+            },
+            warning(msg,type){
+                this.$message({
+                    showClose: true,
+                    message:msg,
+                    type:type||'warning'
+                })
+            },
+            showConfirmDialog(msg,resolve){
+                this.$alert(msg, '提示', {
+                    confirmButtonText: '确定',
+                    type: 'warning'
+                }).then(() => {
+                    resolve();
+                }).catch(() => {});
+            },
+        }
+    }
+</script>
+<style lang="less">
+    .groups-cont{
+        background: #fff;
+        .conceptItem{
+            padding: 0 10px;
+            cursor: pointer;
+            height: 32px;
+            line-height: 32px;
+            &:hover{
+                background: #ebedf1;
+            }
+        }
+        .inner-oper{
+            border-top:2px solid #F5F5F5;
+            padding: 15px 0 15px 21px;
+            .add-btn {
+                cursor: pointer;
+                img {
+                    vertical-align: middle;
+                }
+            }
+        }
+        .sub-condition-form{
+            padding: 20px;
+            position: relative;
+            .del-btn{
+                color: #FF5B5B;
+                cursor: pointer;
+                position: absolute;
+                right: 20px;
+                top:20px;
+                z-index: 1;
+                &.disable{
+                    color: #B8B8B8;
+                }
+            }
+        }
+        .el-input__icon{
+            line-height: 32px;
+        }
+        .select-item{
+            &>div{
+                float: left;
+                margin-right: 10px;
+            }
+            .el-input{
+                width: auto;
+            }
+            input{
+                width: 95px;
+                line-height: 32px;
+                height: 32px;
+            }
+        }
+        .el-input,.el-input__inner{
+            width: 190px;
+            line-height: 32px;
+            height: 32px;
+        }
+        .el-button--danger.is-plain{
+            background: none;
+        }
+        .itemList {
+            position: absolute;
+            // display: none;
+            background: #fff;
+            width: 188px;
+            max-height: 160px;
+            border: 1px solid #DCDFE6;
+            left: 0;
+            top: 37px;
+            z-index: 2;
+            overflow-y: auto;
+        }
+        .el-form-item{
+            margin-bottom: 22px;
+            &.min-margin{
+                margin-bottom: 0;
+            }
+        }
+        .el-form-item__error{
+            top: auto;
+        }
+        .el-input-number{
+            width: 95px;
+        }
+        .el-input-number.is-controls-right .el-input-number__decrease, .el-input-number.is-controls-right .el-input-number__increase{
+            width: 25px;
+            height: 15px;
+            line-height: 16px;
+        }
+    }
+</style>

+ 104 - 0
src/components/knowledgeExtra/SubRulesGroup.vue

@@ -0,0 +1,104 @@
+<template>
+    <div class="sub-groups">
+        <SubConditions v-for="(rules,i) in data"
+                       ref="group"
+                       :groupData="rules"
+                       :isLast="rules.length===1"
+                       :ind="i"
+                       :baseTypes="baseTypes"
+                       :firstPlace="firstPlace"
+                       :disabled="i===0&&disable"
+                       @changeVal="handleInput"
+                       @addRule="addRule"
+                       @delRule="delRule"></SubConditions>
+        <div class="group-oper">
+            <el-button size="small" @click="addGroup">+新增分组</el-button>
+            <el-button :class="isLast?'disable':''" size="small" type="danger" plain @click="delGroup">-删除分组</el-button>
+        </div>
+    </div>
+</template>
+<script>
+    import SubConditions from './SubConditions.vue';
+    export default {
+        name:'SubRulesGroup',
+        props:['data','inx','isLast','baseTypes','firstPlace'],
+        data(){
+            return {
+            }
+        },
+        computed:{
+          'disable':function(){
+              return Object.keys(this.firstPlace||{}).length>0&&this.inx===0;
+          }
+        },
+        methods:{
+            handleInput(val,i){
+                this.data[i]=val;
+            },
+            addRule(){
+                let temp={
+                    subDescription:'',
+                    subConceptId:'',
+                    subType:'',
+                    subLenName:'',
+                    subLenCode:'',
+                    subLibName:'',
+                    subMaxOperator:'',
+                    subMaxUnit:'',
+                    subMaxValue:'',
+                    subMinOperator:'',
+                    subMinUnit:'',
+                    subMinValue:'',
+                    subEqValue:'',
+                    dataType:'',
+                };
+                this.data.push(temp);
+            },
+            delRule(i){
+                if(i===0&&this.data.length===1){
+                    this.$emit("delGroup",this.inx);
+                    return;
+                }
+                this.data.splice(i,1);
+            },
+            addGroup(){
+                this.$emit("addGroup");
+            },
+            delGroup(){
+               this.$emit("delGroup",this.inx);
+            },
+            warning(msg,type){
+                this.$message({
+                    showClose: true,
+                    message:msg,
+                    type:type||'warning'
+                })
+            },
+            showConfirmDialog(msg,resolve){
+                this.$alert(msg, '提示', {
+                    confirmButtonText: '确定',
+                    type: 'warning'
+                }).then(() => {
+                    resolve();
+                }).catch(() => {
+                    this.warning("删除失败,请重试!")
+                });
+            },
+        },
+        components:{
+            SubConditions
+        }
+    }
+</script>
+<style lang="less" scoped>
+    .sub-groups{
+        background: #F5F5F5;
+        padding: 20px;
+    }
+    .group-oper{
+        text-align: center;
+        padding: 11px 0;
+        border-top: 4px solid #F5F5F5;
+        background: #fff;
+    }
+</style>

BIN
src/images/add.png


BIN
src/images/search.png


+ 1 - 1
src/less/admin.less

@@ -192,7 +192,7 @@ body {
       }
     }
     ul {
-      max-width: 300px;
+      // max-width: 300px;   //影响其他页面控件
     }
 
     /deep/ .el-scrollbar {

+ 495 - 316
src/routes.js

@@ -196,374 +196,553 @@ import OtherAuxRuleTest from '@components/testManager/knowledgeMapRule/OtherAuxR
 import OtherFusionRuleTest from '@components/testManager/knowledgeMapRule/OtherFusionRuleTest.vue';
 import LessStaticOrNoMap from '@components/testManager/staticKnowledgeMap/LessStaticOrNoMap.vue';
 
+import BasicTermsMaintenance from '@components/basicKnow/BasicTermsMaintenance.vue'   //知识库基础维护-基础术语维护
+import BasicRelationship from '@components/basicKnow/BasicRelationship.vue'   //知识库基础维护-基础关系类型维护
+import BasicPartOfSpeech from '@components/basicKnow/BasicPartOfSpeech.vue'   //知识库基础维护-基础词性类型维护
+import AddTerm from '@components/basicKnow/AddTerm.vue'   //知识库基础维护-基础词性类型维护-编辑
+import StaticInfo from '@components/knowledgeExtra/StaticInfo.vue'   //知识库扩展维护-静态信息维护
+import AddDevKnow from '@components/knowledgeExtra/AddDevKnow.vue'   //知识库扩展维护-静态信息维护-编辑
+import ZskRuleManager from '@components/knowledgeExtra/RuleManager.vue';  //知识库规则维护
+import AddZskRule from '@components/knowledgeExtra/AddNewRule.vue';   //知识库添加规则
+import KnowledgeAll from '@components/knowledgeExtra/KnowledgeAll.vue'   //知识库树
+import KnowledgeBaseType from '@components/knowledgeExtra/KnowledgeBaseType.vue'   
+import AboutDisease from '@components/knowledgeExtra/AboutDisease.vue'   
+import DiseaseTree from '@components/knowledgeExtra/DiseaseTree.vue'   
 
 export default [
-  {
-    path: '/',
-    name: 'login',
-    component: Login,
-  },
-  {
-    path: '/register',
-    name: 'Register',
-    component: Register,
-  },
-  {
-    path: '/forgetPassword',
-    name: 'FindPassword',
-    component: ForgetPassword,
-  },
-  {
-    //用户后台
-    path: '/user',
-    component: HomePage,
-    meta: {
-      requireAuth: true,
+    {
+        path: '/',
+        name: 'login',
+        component: Login,
     },
-    children: [
-      // {path: '/', component: Console},
-      { path: 'YH-KZT', component: Console }, //控制台
-      { path: 'YH-GDFW', component: MoreService }, //更多服务
-      { path: 'YH-JGZX', component: Information }, //机构中心
-      { path: 'YH-JGZX-YKTCP', component: OpenedProduct }, //已开通产品
-      { path: 'TJFWD', component: AddServiceProduct }, //添加服务端
-      { path: 'YH-JGZX-GLFFD', component: ManageService }, //管理服务端
-      { path: 'YH-JGZX-YSCLP', component: AlreadyToken }, //已生成令牌
-      { path: 'CKLPXQ', component: CreatedToken }, //查看生成令牌
-      { path: 'YH-JGZX-AQSZ', component: UserSetting }, //安全设置
-      { path: 'YH-JGZX-ZHXX', component: Information }, //账号信息
-    ],
-  },
-
-  {
-    //朗通后台
-    path: '/admin',
-    component: HomePage,
-    meta: {
-      requireAuth: true,
+    {
+        path: '/register',
+        name: 'Register',
+        component: Register,
+    },
+    {
+        path: '/forgetPassword',
+        name: 'FindPassword',
+        component: ForgetPassword,
+    },
+    {
+        //用户后台
+        path: '/user',
+        component: HomePage,
+        meta: {
+            requireAuth: true,
+        },
+        children: [
+            // {path: '/', component: Console},
+            { path: 'YH-KZT', component: Console }, //控制台
+            { path: 'YH-GDFW', component: MoreService }, //更多服务
+            { path: 'YH-JGZX', component: Information }, //机构中心
+            { path: 'YH-JGZX-YKTCP', component: OpenedProduct }, //已开通产品
+            { path: 'TJFWD', component: AddServiceProduct }, //添加服务端
+            { path: 'YH-JGZX-GLFFD', component: ManageService }, //管理服务端
+            { path: 'YH-JGZX-YSCLP', component: AlreadyToken }, //已生成令牌
+            { path: 'CKLPXQ', component: CreatedToken }, //查看生成令牌
+            { path: 'YH-JGZX-AQSZ', component: UserSetting }, //安全设置
+            { path: 'YH-JGZX-ZHXX', component: Information }, //账号信息
+        ],
     },
-    children: [
-      // {path: '/', component: AdminConsole},
-      { path: 'LT-KZT', component: AdminConsole },
-      { path: 'LT-JGZX', component: AdminConsole },
-      {
-        path: 'LT-KHZX-ZCYH',
-        component: RegisterAdmin,
-      },
-      {
-        path: 'LT-YRZCGXX',
-        component: AuthedAdmin,
-      },
-      {
-        name: 'organizationInfo',
-        path: 'LT-KHZX-JGXX', //机构信息
-        component: OrganizationInfo,
+    {
+        //朗通后台
+        path: '/admin',
+        component: HomePage,
         meta: {
-          keepAlive: true,
+            requireAuth: true,
         },
-      },
-      {
-        path: 'LT-KHZX-TJJG', //添加机构
-        component: AddOrganization,
-      },
-      {
-        path: 'LT-KHZX-XGJG', //修改机构
-        component: ModifinedOrga,
-      },
-      {
-        name: 'superAdmin',
-        path: 'LT-KHZX-CGXX',
-        component: SuperAdmin,
-      },
-      {
-        path: 'LT-DDXT-TJCG',
-        component: AddAdmin,
-        name: 'addAdmin',
-      },
-      {
-        path: 'LT-DDXT-CPXSQLB',
-        component: ProductLines,
-      },
-      {
-        path: 'LT-CPXGL-CPXXQ',
-        component: ProductDetail,
-        name: 'productDetail',
-      },
-      {
-        path: 'LT-CPXFLB',
-        component: Renew,
-      },
-      { path: 'LT-GRZX', component: PersonCenter },
-      { path: 'LT-CPXGL', component: ProductLinesManage },
-      { path: 'LT-CPXGL-TJCPX', component: AddProductLine, name: 'editProductLine' },
-      { path: 'LT-GRZX/CHANGE', component: ChangePwd }, //个人中心--修改密码
-      { path: 'LT-YXSJWH-BQZWH', component: LabelGroup, name: 'labelGroup' }, //医学数据维护--标签组维护
-      { path: 'LT-YXSJWH-TJBQZ', component: NoiseTemplate, name: 'AddLabelGroup' }, //医学数据维护--标签组维护--添加标签组
-      { path: 'LT-YXSJWH-KSWH', component: DeptInfo, name: 'deptInfo' }, //医学数据维护--科室维护
-      { path: 'LT-YXSJWH-KSXQ', component: DeptInfoDetail, name: 'DeptInfoDetail' }, //科室维护--详情
-      { path: 'LT-YXSJWH-TJKS', component: AddDeptInfo, name: 'AddDeptInfo' }, //科室维护--添加
-      { path: 'LT-YXSJWH-DLLXBQWH', component: IndeptLabel, name: 'IndeptLabel' }, //独立标签维护--详情
-      { path: 'LT-YXSJWH-TJDLBQ', component: AddIndeptLabel, name: 'AddIndeptLabel' }, //独立标签维护--添加
-      { path: 'LT-YXSJWH-TSXXWH', component: PromptInfo, name: 'PromptInfo' }, //提示信息维护
-      { path: 'LT-YXSJWH-BMWH', component: SimilarName, name: 'SimilarName' }, //别名维护
-      { path: 'LT-YXSJWH-CJXXWH', component: CommonSymptom, name: 'CommonSymptom' }, //常见症状维护
-      { path: 'LT-YXSJWH-TJCJZZ', component: AddCommonSymptom, name: 'AddCommonSymptom' }, //常见症状维护--添加
-      { path: 'LT-YXSJWH-TJBM', component: AddSimilarName, name: 'AddSimilarName' }, //别名维护-添加/修改
-      // {path:'LT-YXSJWH-MZSMWH',component:DisclaimerInformation,name:'DisclaimerInformation'},     //免责声明
-      {
-        path: 'LT-YXSJKWH-MZSMWH',
-        component: DisclaimerInformation,
-        name: 'DisclaimerInformation',
-      }, //免责声明
-      { path: 'LT-YXSJWH-MZSMXQ', component: DiscInfoDetail, name: 'DiscInfoDetail' }, //免责声明-详情
-      { path: 'LT-YXSJWH-TJMZSM', component: AddDisclInfo, name: 'AddDisclInfo' }, //免责声明-添加/修改
-      { path: 'LT-YXSJWH-MBWH', component: TemplateMaintenance, name: 'TemplateMaintenance' }, //模板维护
-      { path: 'LT-YXSJWH-CTMBWH', component: PhysicalExamTemplate, name: 'PhysicalExamTemplate' }, //查体模板维护
-      { path: 'LT-YXSJWH-TJCTMB', component: AddPhysicalExamTemp, name: 'AddPhysicalExamTemp' }, //查体模板维护--添加
-      {
-        path: 'LT-YXSJWH-TJMBWH',
-        component: TemplateMaintenanceWrap,
-        name: 'TemplateMaintenanceWrap',
-      }, //模板维护-添加修改
-      { path: 'LT-YXSJWH-TJTSXX', component: AddPromptInfo, name: 'AddPromptInfo' }, //提示信息维护-添加
-      { path: 'LT-YXSJWH-TSXXXQ', component: PromptDetail, name: 'PromptDetail' }, //提示信息维护详情
-      { path: 'LT-YXSYKWH-YXSYJTZSWH', component: MedicinePrompt, name: 'MedicinePrompt' }, //医学术语提示信息维护
-      { path: 'LT-YXSYKWH-TJYXSYJTZS', component: AddMedicinePrompt, name: 'AddMedicinePrompt' }, //医学术语提示信息维护添加
-      { path: 'LT-GBBXXWH-BBXXWH', component: VersionInfo, name: 'VersionInfo' }, //版本信息
-      { path: 'LT-YXSJWH-BBXXXQ', component: VersionDetail, name: 'VersionDetail' }, //版本信息-详情
-      { path: 'LT-YXSJWH-TJBBXX', component: AddVersion, name: 'AddVersion' }, //版本信息-添加/修改
-      { path: 'LT-YXSYKWH-YXSYMMWH', component: MedicalName, name: 'MedicalName' }, //医学术语--命名维护
-      { path: 'LT-YXSYKWH-TJYXSY', component: AddMedicalName, name: 'AddMedicalName' }, //医学术语--命名维护
-      { path: 'LT-YXSYKWH-YXSYGXWH', component: MedicalRelation, name: 'MedicalRelation' }, //医学术语--关系维护
-      { path: 'LT-YXSYKWH-TJYXSYGX', component: AddMedicalRelation, name: 'AddMedicalRelation' }, //医学术语--关系维护-添加
-      { path: 'LT-YXSYKWH-SYYXSXWH', component: MedicalInfo, name: 'MedicalInfo' }, //医学术语维护-信息维护(属性维护)
-      { path: 'LT-YXSYKWH-TJYXSYXX', component: AddMedicalInfo, name: 'AddMedicalInfo' }, //医学术语维护-信息维护(属性维护) -- 添加
-      { path: 'LT-YXSJWH-ZDBQWH', component: DiagnosisList, name: 'DiagnosisList' }, //诊断标签维护 -- 列表显示
-      { path: 'LT-YXSJWH-ZDBQTJ', component: DiagnosisTemplate, name: 'DiagnosisTemplate' }, //诊断标签维护 -- 添加
-      {
-        path: 'LT-YXSYKWH-LBJGWH',
-        component: ChronicDiseaseStructureList,
-        name: 'ChronicDiseaseStructureList',
-      }, //量表结构维护 -- 列表
-      { path: 'LT-YXSJWH-LBJGTJ', component: ChronicDiseaseAdd, name: 'ChronicDiseaseAdd' }, //量表结构维护 -- 添加
-      { path: 'LT-YXSJWH-MBGLYPG', component: ChronicDiseaseManage, name: 'ChronicDiseaseManage' }, //慢病管理评估维护 -- 列表
-      {
-        path: 'LT-YXSJWH-MBGLYTJ',
-        component: ChronicDiseaseManageAdd,
-        name: 'ChronicDiseaseManageAdd',
-      }, //慢病管理评估维护 -- 添加
-      {
-        path: 'LT-YXSJWH-HYDXXYGBXDY',
-        component: ChemicalAndCommonMapping,
-        name: 'ChemicalAndCommonMapping',
-      }, //化验大小项与公表维护
-      {
-        path: 'LT-YXSJWH-TJHYDXXYGBXDY',
-        component: AddChemicalAndCommonMapping,
-        name: 'AddChemicalAndCommonMapping',
-      }, //化验大小项与公表维护--添加关联
-      { path: 'LT-YXSYKWH-YXSYLXWH', component: MedicalType, name: 'MedicalType' }, //医学术语--类型维护
-      {
-        path: 'LT-YXSYKWH-MBZBZGLWH',
-        component: ChronicAndIndexRelation,
-        name: 'ChronicAndIndexRelation',
-      }, //医学数据--慢病指标值关联维护
-      {
-        path: 'LT-YXSYKWH-TJMBZBZGL',
-        component: AddChronicAndIndexRelation,
-        name: 'AddChronicAndIndexRelation',
-      }, //医学数据--添加慢病指标值关联维护
-      { path: 'LT-YXSJWH-LBGLWH', component: DisAndScaleRelation, name: 'DisAndScaleRelation' }, //医学数据--量表关联维护
-      {
-        path: 'LT-YXSJWH-TJLBGL',
-        component: AddDisAndScaleRelation,
-        name: 'AddDisAndScaleRelation',
-      }, //医学数据--添加量表关联
-      { path: 'LT-YXSYKWH-HYZXWH', component: AssaySon, name: 'AssaySon' }, //医学数据--化验子项维护
-      { path: 'LT-YXSYKWH-TJHYZX', component: AddAssaySon, name: 'AddAssaySon' }, //医学数据--化验子项添加修改
-      { path: 'LT-YXSYKWH-YXSYGLWH', component: ConceptRelation, name: 'ConceptRelation' }, //医学数据--医学术语关联维护
-      // {path:'LT-YXSYKWH-YXSYLXWH',component:ConceptRelation,name:'ConceptRelation'},     //医学数据--医学术语关联维护
-      { path: 'LT-YXSYKWH-TJYXSYGL', component: AddConceptRelation, name: 'AddConceptRelation' }, //医学数据--医学术语关联维护-添加修改
+        children: [
+            // {path: '/', component: AdminConsole},
+            { path: 'LT-KZT', component: AdminConsole },
+            { path: 'LT-JGZX', component: AdminConsole },
+            {
+                path: 'LT-KHZX-ZCYH',
+                component: RegisterAdmin,
+            },
+            {
+                path: 'LT-YRZCGXX',
+                component: AuthedAdmin,
+            },
+            {
+                name: 'organizationInfo',
+                path: 'LT-KHZX-JGXX', //机构信息
+                component: OrganizationInfo,
+                meta: {
+                    keepAlive: true,
+                },
+            },
+            {
+                path: 'LT-KHZX-TJJG', //添加机构
+                component: AddOrganization,
+            },
+            {
+                path: 'LT-KHZX-XGJG', //修改机构
+                component: ModifinedOrga,
+            },
+            {
+                name: 'superAdmin',
+                path: 'LT-KHZX-CGXX',
+                component: SuperAdmin,
+            },
+            {
+                path: 'LT-DDXT-TJCG',
+                component: AddAdmin,
+                name: 'addAdmin',
+            },
+            {
+                path: 'LT-DDXT-CPXSQLB',
+                component: ProductLines,
+            },
+            {
+                path: 'LT-CPXGL-CPXXQ',
+                component: ProductDetail,
+                name: 'productDetail',
+            },
+            {
+                path: 'LT-CPXFLB',
+                component: Renew,
+            },
+            { path: 'LT-GRZX', component: PersonCenter },
+            { path: 'LT-CPXGL', component: ProductLinesManage },
+            { path: 'LT-CPXGL-TJCPX', component: AddProductLine, name: 'editProductLine' },
+            { path: 'LT-GRZX/CHANGE', component: ChangePwd }, //个人中心--修改密码
+            { path: 'LT-YXSJWH-BQZWH', component: LabelGroup, name: 'labelGroup' }, //医学数据维护--标签组维护
+            { path: 'LT-YXSJWH-TJBQZ', component: NoiseTemplate, name: 'AddLabelGroup' }, //医学数据维护--标签组维护--添加标签组
+            { path: 'LT-YXSJWH-KSWH', component: DeptInfo, name: 'deptInfo' }, //医学数据维护--科室维护
+            { path: 'LT-YXSJWH-KSXQ', component: DeptInfoDetail, name: 'DeptInfoDetail' }, //科室维护--详情
+            { path: 'LT-YXSJWH-TJKS', component: AddDeptInfo, name: 'AddDeptInfo' }, //科室维护--添加
+            { path: 'LT-YXSJWH-DLLXBQWH', component: IndeptLabel, name: 'IndeptLabel' }, //独立标签维护--详情
+            { path: 'LT-YXSJWH-TJDLBQ', component: AddIndeptLabel, name: 'AddIndeptLabel' }, //独立标签维护--添加
+            { path: 'LT-YXSJWH-TSXXWH', component: PromptInfo, name: 'PromptInfo' }, //提示信息维护
+            { path: 'LT-YXSJWH-BMWH', component: SimilarName, name: 'SimilarName' }, //别名维护
+            { path: 'LT-YXSJWH-CJXXWH', component: CommonSymptom, name: 'CommonSymptom' }, //常见症状维护
+            { path: 'LT-YXSJWH-TJCJZZ', component: AddCommonSymptom, name: 'AddCommonSymptom' }, //常见症状维护--添加
+            { path: 'LT-YXSJWH-TJBM', component: AddSimilarName, name: 'AddSimilarName' }, //别名维护-添加/修改
+            // {path:'LT-YXSJWH-MZSMWH',component:DisclaimerInformation,name:'DisclaimerInformation'},     //免责声明
+            {
+                path: 'LT-YXSJKWH-MZSMWH',
+                component: DisclaimerInformation,
+                name: 'DisclaimerInformation',
+            }, //免责声明
+            { path: 'LT-YXSJWH-MZSMXQ', component: DiscInfoDetail, name: 'DiscInfoDetail' }, //免责声明-详情
+            { path: 'LT-YXSJWH-TJMZSM', component: AddDisclInfo, name: 'AddDisclInfo' }, //免责声明-添加/修改
+            { path: 'LT-YXSJWH-MBWH', component: TemplateMaintenance, name: 'TemplateMaintenance' }, //模板维护
+            { path: 'LT-YXSJWH-CTMBWH', component: PhysicalExamTemplate, name: 'PhysicalExamTemplate' }, //查体模板维护
+            { path: 'LT-YXSJWH-TJCTMB', component: AddPhysicalExamTemp, name: 'AddPhysicalExamTemp' }, //查体模板维护--添加
+            {
+                path: 'LT-YXSJWH-TJMBWH',
+                component: TemplateMaintenanceWrap,
+                name: 'TemplateMaintenanceWrap',
+            }, //模板维护-添加修改
+            { path: 'LT-YXSJWH-TJTSXX', component: AddPromptInfo, name: 'AddPromptInfo' }, //提示信息维护-添加
+            { path: 'LT-YXSJWH-TSXXXQ', component: PromptDetail, name: 'PromptDetail' }, //提示信息维护详情
+            { path: 'LT-YXSYKWH-YXSYJTZSWH', component: MedicinePrompt, name: 'MedicinePrompt' }, //医学术语提示信息维护
+            { path: 'LT-YXSYKWH-TJYXSYJTZS', component: AddMedicinePrompt, name: 'AddMedicinePrompt' }, //医学术语提示信息维护添加
+            { path: 'LT-GBBXXWH-BBXXWH', component: VersionInfo, name: 'VersionInfo' }, //版本信息
+            { path: 'LT-YXSJWH-BBXXXQ', component: VersionDetail, name: 'VersionDetail' }, //版本信息-详情
+            { path: 'LT-YXSJWH-TJBBXX', component: AddVersion, name: 'AddVersion' }, //版本信息-添加/修改
+            { path: 'LT-YXSYKWH-YXSYMMWH', component: MedicalName, name: 'MedicalName' }, //医学术语--命名维护
+            { path: 'LT-YXSYKWH-TJYXSY', component: AddMedicalName, name: 'AddMedicalName' }, //医学术语--命名维护
+            { path: 'LT-YXSYKWH-YXSYGXWH', component: MedicalRelation, name: 'MedicalRelation' }, //医学术语--关系维护
+            { path: 'LT-YXSYKWH-TJYXSYGX', component: AddMedicalRelation, name: 'AddMedicalRelation' }, //医学术语--关系维护-添加
+            { path: 'LT-YXSYKWH-SYYXSXWH', component: MedicalInfo, name: 'MedicalInfo' }, //医学术语维护-信息维护(属性维护)
+            { path: 'LT-YXSYKWH-TJYXSYXX', component: AddMedicalInfo, name: 'AddMedicalInfo' }, //医学术语维护-信息维护(属性维护) -- 添加
+            { path: 'LT-YXSJWH-ZDBQWH', component: DiagnosisList, name: 'DiagnosisList' }, //诊断标签维护 -- 列表显示
+            { path: 'LT-YXSJWH-ZDBQTJ', component: DiagnosisTemplate, name: 'DiagnosisTemplate' }, //诊断标签维护 -- 添加
+            {
+                path: 'LT-YXSYKWH-LBJGWH',
+                component: ChronicDiseaseStructureList,
+                name: 'ChronicDiseaseStructureList',
+            }, //量表结构维护 -- 列表
+            { path: 'LT-YXSJWH-LBJGTJ', component: ChronicDiseaseAdd, name: 'ChronicDiseaseAdd' }, //量表结构维护 -- 添加
+            { path: 'LT-YXSJWH-MBGLYPG', component: ChronicDiseaseManage, name: 'ChronicDiseaseManage' }, //慢病管理评估维护 -- 列表
+            {
+                path: 'LT-YXSJWH-MBGLYTJ',
+                component: ChronicDiseaseManageAdd,
+                name: 'ChronicDiseaseManageAdd',
+            }, //慢病管理评估维护 -- 添加
+            {
+                path: 'LT-YXSJWH-HYDXXYGBXDY',
+                component: ChemicalAndCommonMapping,
+                name: 'ChemicalAndCommonMapping',
+            }, //化验大小项与公表维护
+            {
+                path: 'LT-YXSJWH-TJHYDXXYGBXDY',
+                component: AddChemicalAndCommonMapping,
+                name: 'AddChemicalAndCommonMapping',
+            }, //化验大小项与公表维护--添加关联
+            { path: 'LT-YXSYKWH-YXSYLXWH', component: MedicalType, name: 'MedicalType' }, //医学术语--类型维护
+            {
+                path: 'LT-YXSYKWH-MBZBZGLWH',
+                component: ChronicAndIndexRelation,
+                name: 'ChronicAndIndexRelation',
+            }, //医学数据--慢病指标值关联维护
+            {
+                path: 'LT-YXSYKWH-TJMBZBZGL',
+                component: AddChronicAndIndexRelation,
+                name: 'AddChronicAndIndexRelation',
+            }, //医学数据--添加慢病指标值关联维护
+            { path: 'LT-YXSJWH-LBGLWH', component: DisAndScaleRelation, name: 'DisAndScaleRelation' }, //医学数据--量表关联维护
+            {
+                path: 'LT-YXSJWH-TJLBGL',
+                component: AddDisAndScaleRelation,
+                name: 'AddDisAndScaleRelation',
+            }, //医学数据--添加量表关联
+            { path: 'LT-YXSYKWH-HYZXWH', component: AssaySon, name: 'AssaySon' }, //医学数据--化验子项维护
+            { path: 'LT-YXSYKWH-TJHYZX', component: AddAssaySon, name: 'AddAssaySon' }, //医学数据--化验子项添加修改
+            { path: 'LT-YXSYKWH-YXSYGLWH', component: ConceptRelation, name: 'ConceptRelation' }, //医学数据--医学术语关联维护
+            // {path:'LT-YXSYKWH-YXSYLXWH',component:ConceptRelation,name:'ConceptRelation'},     //医学数据--医学术语关联维护
+            { path: 'LT-YXSYKWH-TJYXSYGL', component: AddConceptRelation, name: 'AddConceptRelation' }, //医学数据--医学术语关联维护-添加修改
+
+            {
+                path: 'LT-YXSYKWH-YXSYDCGLWH',
+                component: MedicalMultRelation,
+                name: 'MedicalMultRelation',
+            }, //医学术语--医学术语多层关联维护
+            {
+                path: 'LT-YXSYKWH-TJYXSYDCGL',
+                component: AddMedicalMultRelation,
+                name: 'AddMedicalMultRelation',
+            }, //医学术语--添加医学术语多层关联
+            {
+                path: 'LT-YXSYKWH-FJCJGLWH',
+                component: AssistCheckMultRelation,
+                name: 'AssistCheckMultRelation',
+            }, //医学术语--辅检层级关联维护
+            {
+                path: 'LT-YXSYKWH-TJFJCJGL',
+                component: AddAssistCheckMultRelation,
+                name: 'AddAssistCheckMultRelation',
+            }, //医学术语--添加辅检层级关联
+            { path: 'LT-YXSYKWH-FJZXWH', component: AssistCheckSon, name: 'AssistCheckSon' }, //医学术语--辅检子项维护
+            { path: 'LT-YXSYKWH-TJFJZX', component: AddAssistCheckSon, name: 'AddAssistCheckSon' }, //医学术语--辅检子项维护
 
-      {
-        path: 'LT-YXSYKWH-YXSYDCGLWH',
-        component: MedicalMultRelation,
-        name: 'MedicalMultRelation',
-      }, //医学术语--医学术语多层关联维护
-      {
-        path: 'LT-YXSYKWH-TJYXSYDCGL',
-        component: AddMedicalMultRelation,
-        name: 'AddMedicalMultRelation',
-      }, //医学术语--添加医学术语多层关联
-      {
-        path: 'LT-YXSYKWH-FJCJGLWH',
-        component: AssistCheckMultRelation,
-        name: 'AssistCheckMultRelation',
-      }, //医学术语--辅检层级关联维护
-      {
-        path: 'LT-YXSYKWH-TJFJCJGL',
-        component: AddAssistCheckMultRelation,
-        name: 'AddAssistCheckMultRelation',
-      }, //医学术语--添加辅检层级关联
-      { path: 'LT-YXSYKWH-FJZXWH', component: AssistCheckSon, name: 'AssistCheckSon' }, //医学术语--辅检子项维护
-      { path: 'LT-YXSYKWH-TJFJZX', component: AddAssistCheckSon, name: 'AddAssistCheckSon' }, //医学术语--辅检子项维护
+            { path: 'LT-YWZSJWH-DLTXDWH', component: SimpleQuestion, name: 'SimpleQuestion' }, //预问诊-独立填写单
+            { path: 'LT-YWZSJWH-ZHTXDWH', component: CombinQuestion, name: 'CombinQuestion' }, //预问诊-组合填写单
+            { path: 'LT-YWZSJWH-TJDLTXD', component: AddSimpleQuestion, name: 'AddSimpleQuestion' }, //预问诊-添加独立填写单
+            { path: 'LT-YWZSJWH-TJZHTXD', component: AddCombinQuestion, name: 'AddCombinQuestion' }, //预问诊-添加组合填写单
+            { path: 'LT-YWZSJWH-MBWH', component: QuestionModules, name: 'QuestionModules' }, //预问诊-模板维护
+            { path: 'LT-YWZSJWH-TJMBWH', component: AddQuestionModules, name: 'AddQuestionModules' }, //预问诊-添加模板
 
-      { path: 'LT-YWZSJWH-DLTXDWH', component: SimpleQuestion, name: 'SimpleQuestion' }, //预问诊-独立填写单
-      { path: 'LT-YWZSJWH-ZHTXDWH', component: CombinQuestion, name: 'CombinQuestion' }, //预问诊-组合填写单
-      { path: 'LT-YWZSJWH-TJDLTXD', component: AddSimpleQuestion, name: 'AddSimpleQuestion' }, //预问诊-添加独立填写单
-      { path: 'LT-YWZSJWH-TJZHTXD', component: AddCombinQuestion, name: 'AddCombinQuestion' }, //预问诊-添加组合填写单
-      { path: 'LT-YWZSJWH-MBWH', component: QuestionModules, name: 'QuestionModules' }, //预问诊-模板维护
-      { path: 'LT-YWZSJWH-TJMBWH', component: AddQuestionModules, name: 'AddQuestionModules' }, //预问诊-添加模板
+            { path: 'LT-ZDYJWH-ZDYJSJWH', component: DiagBase, name: 'DiagBase' }, //诊断依据-诊断依据维护
+            { path: 'LT-ZDYJWH-TJZDYJSJ', component: AddDiagBase, name: 'AddDiagBase' }, //诊断依据-添加诊断依据
+            { path: 'LT-ZDYJWH-WTCSJWH', component: QuestionWords, name: 'QuestionWords' }, //问题列表
+            { path: 'LT-SJTJ-YXSJTJ', component: MedicalStatistics, name: 'MedicalStatistics' }, //问题列表
+            { path: 'LT-AQGL-LICENSEWH', component: TokenControl, name: 'TokenControl' }, //安全管理--令牌列表
+            { path: 'LT-AQGL-TJLICENSE', component: AddToken, name: 'AddToken' }, //安全管理--发放令牌
+            { path: 'LT-YXSYKWH-GZWH', component: RulesManager, name: 'RulesManager' }, //规则管理
+            { path: 'LT-YXSYKWH-TJGZWH', component: AddRule, name: 'AddRule' }, //规则添加
+            { path: 'LT-YXSYKWH-GZYYWH', component: RuleApply, name: 'RuleApply' }, //规则管理
+            { path: 'LT-YXSYKWH-TJGZYYWH', component: AddRuleApply, name: 'AddRuleApply' }, //规则添加
+            { path: 'LT-BLGL', name: 'RecordManager', component: RecordManager }, //病历管理
+            { path: 'LT-BLGL-TJBLGL', name: 'AddRecord', component: AddRecord }, //添加病历
+            { path: 'LT-BLGL-CKBLGL', name: 'ShowRecord', component: ShowRecord }, //添加病历
+            { path: 'LT-ZKYMSJWH-ZDYSWH', name: 'BaseField', component: BaseField }, //字段映射
+            { path: 'LT-ZKYMSJWH-TJZDYSWH', name: 'FieldMatch', component: FieldMatch }, //添加字段映射
+            { path: 'LT-ZKYMSJWH-ZHDYWH', name: 'CombineFeild', component: CombineFeild }, //组合字段
+            { path: 'LT-ZKYMSJWH-TJZHDYWH', name: 'AddCombineFeild', component: AddCombineFeild }, //添加组合字段
+            { path: 'LT-ZKYMSJWH-MBWH', name: 'QualityControlTemp', component: QualityControlTemp }, //模板维护
+            { path: 'LT-ZKYMSJWH-TMGLZKLX', name: 'ItemDataType', component: ItemDataType }, //条目关联质控类型
+            {
+                path: 'LT-ZKYMSJWH-TMGLZKLXGL',
+                name: 'ItemDataTypeRelation',
+                component: ItemDataTypeRelation,
+            }, //条目关联质控类型--关联
 
-      { path: 'LT-ZDYJWH-ZDYJSJWH', component: DiagBase, name: 'DiagBase' }, //诊断依据-诊断依据维护
-      { path: 'LT-ZDYJWH-TJZDYJSJ', component: AddDiagBase, name: 'AddDiagBase' }, //诊断依据-添加诊断依据
-      { path: 'LT-ZDYJWH-WTCSJWH', component: QuestionWords, name: 'QuestionWords' }, //问题列表
-      { path: 'LT-SJTJ-YXSJTJ', component: MedicalStatistics, name: 'MedicalStatistics' }, //问题列表
-      { path: 'LT-AQGL-LICENSEWH', component: TokenControl, name: 'TokenControl' }, //安全管理--令牌列表
-      { path: 'LT-AQGL-TJLICENSE', component: AddToken, name: 'AddToken' }, //安全管理--发放令牌
-      { path: 'LT-YXSYKWH-GZWH', component: RulesManager, name: 'RulesManager' }, //规则管理
-      { path: 'LT-YXSYKWH-TJGZWH', component: AddRule, name: 'AddRule' }, //规则添加
-      { path: 'LT-YXSYKWH-GZYYWH', component: RuleApply, name: 'RuleApply' }, //规则管理
-      { path: 'LT-YXSYKWH-TJGZYYWH', component: AddRuleApply, name: 'AddRuleApply' }, //规则添加
-      { path: 'LT-BLGL', name: 'RecordManager', component: RecordManager }, //病历管理
-      { path: 'LT-BLGL-TJBLGL', name: 'AddRecord', component: AddRecord }, //添加病历
-      { path: 'LT-BLGL-CKBLGL', name: 'ShowRecord', component: ShowRecord }, //添加病历
-      { path: 'LT-ZKYMSJWH-ZDYSWH', name: 'BaseField', component: BaseField }, //字段映射
-      { path: 'LT-ZKYMSJWH-TJZDYSWH', name: 'FieldMatch', component: FieldMatch }, //添加字段映射
-      { path: 'LT-ZKYMSJWH-ZHDYWH', name: 'CombineFeild', component: CombineFeild }, //组合字段
-      { path: 'LT-ZKYMSJWH-TJZHDYWH', name: 'AddCombineFeild', component: AddCombineFeild }, //添加组合字段
-      { path: 'LT-ZKYMSJWH-MBWH', name: 'QualityControlTemp', component: QualityControlTemp }, //模板维护
-      { path: 'LT-ZKYMSJWH-TMGLZKLX', name: 'ItemDataType', component: ItemDataType }, //条目关联质控类型
-      {
-        path: 'LT-ZKYMSJWH-TMGLZKLXGL',
-        name: 'ItemDataTypeRelation',
-        component: ItemDataTypeRelation,
-      }, //条目关联质控类型--关联
+            {
+                path: 'LT-ZKYMSJWH-TJMBWH',
+                name: 'AddQualityControlTemp',
+                component: AddQualityControlTemp,
+            }, //添加模板维护
+            { path: 'LT-BLZK-BLRl', name: 'RecordInput', component: RecordInput }, //病例录入
+            { path: 'LT-BLZK-TJBLRl', name: 'AddRecordInput', component: AddRecordInput }, //病例录入
+            { path: 'LT-ZKYMSJWH-ZKTM', name: 'RecordItemList', component: RecordItemList }, //病例条目
+            { path: 'LT-BLZK-TJBLTM', name: 'AddRecordItem', component: AddRecordItem }, //病例条目
+            { path: 'LT-BLZK-PLGLBLTM', name: 'ManageItemBatch', component: ManageItemBatch }, //病例条目
+            { path: 'LT-ZKYMSJWH-ZKLXWH', name: 'QCTypeMang', component: QCTypeMang }, //质控类型
+            { path: 'LT-ZKYMSJWH-TJZKLXWH', name: 'AddQcType', component: AddQcType }, //添加质控类型
+            { path: 'LT-ZKYMSJWH-ZDHCSTJ', name: 'AutoTestList', component: AutoTestList }, //自动化测试统计
+            { path: 'LT-ZKYMSJWH-RWLB', name: 'AutoTestTask', component: AutoTestTask }, //自动化测试统计-转为任务
+            { path: 'LT-ZKYMSJWH-ZDHCSXQ', name: 'TaskDetail', component: TaskDetail }, //自动化测试统计-转为任务-详情
+            { path: 'LT-ZKYMSJWH-BZBL', name: 'StandardRecord', component: StandardRecord }, //标准病历
+            { path: 'LT-ZKYMSJWH-TJBZBL', name: 'AddStandardRecord', component: AddStandardRecord }, //添加标准病历
 
-      {
-        path: 'LT-ZKYMSJWH-TJMBWH',
-        name: 'AddQualityControlTemp',
-        component: AddQualityControlTemp,
-      }, //添加模板维护
-      { path: 'LT-BLZK-BLRl', name: 'RecordInput', component: RecordInput }, //病例录入
-      { path: 'LT-BLZK-TJBLRl', name: 'AddRecordInput', component: AddRecordInput }, //病例录入
-      { path: 'LT-ZKYMSJWH-ZKTM', name: 'RecordItemList', component: RecordItemList }, //病例条目
-      { path: 'LT-BLZK-TJBLTM', name: 'AddRecordItem', component: AddRecordItem }, //病例条目
-      { path: 'LT-BLZK-PLGLBLTM', name: 'ManageItemBatch', component: ManageItemBatch }, //病例条目
-      { path: 'LT-ZKYMSJWH-ZKLXWH', name: 'QCTypeMang', component: QCTypeMang }, //质控类型
-      { path: 'LT-ZKYMSJWH-TJZKLXWH', name: 'AddQcType', component: AddQcType }, //添加质控类型
-      { path: 'LT-ZKYMSJWH-ZDHCSTJ', name: 'AutoTestList', component: AutoTestList }, //自动化测试统计
-      { path: 'LT-ZKYMSJWH-RWLB', name: 'AutoTestTask', component: AutoTestTask }, //自动化测试统计-转为任务
-      { path: 'LT-ZKYMSJWH-ZDHCSXQ', name: 'TaskDetail', component: TaskDetail }, //自动化测试统计-转为任务-详情
-      { path: 'LT-ZKYMSJWH-BZBL', name: 'StandardRecord', component: StandardRecord }, //标准病历
-      { path: 'LT-ZKYMSJWH-TJBZBL', name: 'AddStandardRecord', component: AddStandardRecord }, //添加标准病历
+            { path: 'LT-CDSSSJWH-JTSYZSWH', component: MedicinePromptCDSS, name: 'MedicinePromptCDSS' }, //医学术语关联维护
+            {
+                path: 'LT-YXSYKWH-TJYXSYJTZSCDSS',
+                component: AddMedicinePromptCDSS,
+                name: 'AddMedicinePromptCDSS',
+            }, //医学术语提示信息维护添加
+            { path: 'LT-CDSSSJWH-YXSYGLWH', component: MedicalTerm, name: 'MedicalTermCDSS' }, //医学术语关联维护
+            { path: 'YXSYK-ZDGLWH', component: Disease, name: 'Disease' }, //诊断关联维护
+            { path: 'LT-ZDGLWH-TJHYDXXYGBXDY', component: AddDisease, name: 'AddDisease' }, //诊断关联维护--添加关联
+            { path: 'YXSYK-JYGLWH', component: Lis, name: 'Lis' }, //检验关联维护
+            { path: 'LT-JYGLWH-TJHYDXXYGBXDY', component: AddLis, name: 'AddLis' }, //检验关联维护--添加关联
+            { path: 'YXSYK-JCGLWH', component: Pacs, name: 'Pacs' }, //检查关联维护
+            { path: 'LT-JCGLWH-TJHYDXXYGBXDY', component: AddPacs, name: 'AddPacs' }, //检查关联维护--添加关联
+            { path: 'YXSYK-YPGLWH', component: DrugManage, name: 'DrugManage' }, //药品关联维护
+            { path: 'LT-YPGLWH-TJHYDXXYGBXDY', component: AddDrug, name: 'AddDrug' }, //药品关联维护--添加关联
+            { path: 'YXSYK-SSCZGLWH', component: Operation, name: 'Operation' }, //手术/操作关联维护
+            { path: 'LT-SSCZGLWH-TJHYDXXYGBXDY', component: AddOperation, name: 'AddOperation' }, //手术/操作关联维护--添加关联
+            { path: 'YXSYK-SXGLWH', component: Fusion, name: 'Fusion' }, //输血关联维护
+            { path: 'LT-SXGLWH-TJHYDXXYGBXDY', component: AddFusion, name: 'AddFusion' }, //输血关联维护--添加关联
+            { path: 'YXSYK-KSGLWH', component: DeptManage, name: 'DeptManage' }, //科室关联维护
+            { path: 'LT-KSGLWH-TJHYDXXYGBXDY', component: AddDept, name: 'AddDept' }, //科室关联维护--添加关联
+            // { path: 'YXSYK-GLWH', component: Correlation, name: 'Correlation' }, //关联维护设置
+            { path: 'LT-CDSSSJWH-DZBLFAPZ', component: Plan, name: 'Plan' }, //电子病历方案配置
+            { path: 'LT-CDSSSJWH-DZBLFAPZEDIT', component: AddPlan, name: 'AddPlan' }, //电子病历方案配置--新增编辑
+            { path: 'LT-CDSSSJWH-ZSTPBZSYWH', component: KnowledgeManage, name: 'KnowledgeManage' }, //知识图谱标准术语维护
+            { path: 'LT-CDSSSJWH-ZSTPBZSYWHEDIT', component: AddKnowledge, name: 'AddKnowledge' }, //知识图谱标准术语维护--新增编辑
 
-      { path: 'LT-CDSSSJWH-JTSYZSWH', component: MedicinePromptCDSS, name: 'MedicinePromptCDSS' }, //医学术语关联维护
-      {
-        path: 'LT-YXSYKWH-TJYXSYJTZSCDSS',
-        component: AddMedicinePromptCDSS,
-        name: 'AddMedicinePromptCDSS',
-      }, //医学术语提示信息维护添加
-      { path: 'LT-CDSSSJWH-YXSYGLWH', component: MedicalTerm, name: 'MedicalTermCDSS' }, //医学术语关联维护
-      { path: 'YXSYK-ZDGLWH', component: Disease, name: 'Disease' }, //诊断关联维护
-      { path: 'LT-ZDGLWH-TJHYDXXYGBXDY', component: AddDisease, name: 'AddDisease' }, //诊断关联维护--添加关联
-      { path: 'YXSYK-JYGLWH', component: Lis, name: 'Lis' }, //检验关联维护
-      { path: 'LT-JYGLWH-TJHYDXXYGBXDY', component: AddLis, name: 'AddLis' }, //检验关联维护--添加关联
-      { path: 'YXSYK-JCGLWH', component: Pacs, name: 'Pacs' }, //检查关联维护
-      { path: 'LT-JCGLWH-TJHYDXXYGBXDY', component: AddPacs, name: 'AddPacs' }, //检查关联维护--添加关联
-      { path: 'YXSYK-YPGLWH', component: DrugManage, name: 'DrugManage' }, //药品关联维护
-      { path: 'LT-YPGLWH-TJHYDXXYGBXDY', component: AddDrug, name: 'AddDrug' }, //药品关联维护--添加关联
-      { path: 'YXSYK-SSCZGLWH', component: Operation, name: 'Operation' }, //手术/操作关联维护
-      { path: 'LT-SSCZGLWH-TJHYDXXYGBXDY', component: AddOperation, name: 'AddOperation' }, //手术/操作关联维护--添加关联
-      { path: 'YXSYK-SXGLWH', component: Fusion, name: 'Fusion' }, //输血关联维护
-      { path: 'LT-SXGLWH-TJHYDXXYGBXDY', component: AddFusion, name: 'AddFusion' }, //输血关联维护--添加关联
-      { path: 'YXSYK-KSGLWH', component: DeptManage, name: 'DeptManage' }, //科室关联维护
-      { path: 'LT-KSGLWH-TJHYDXXYGBXDY', component: AddDept, name: 'AddDept' }, //科室关联维护--添加关联
-      // { path: 'YXSYK-GLWH', component: Correlation, name: 'Correlation' }, //关联维护设置
-      { path: 'LT-CDSSSJWH-DZBLFAPZ', component: Plan, name: 'Plan' }, //电子病历方案配置
-      { path: 'LT-CDSSSJWH-DZBLFAPZEDIT', component: AddPlan, name: 'AddPlan' }, //电子病历方案配置--新增编辑
-      { path: 'LT-CDSSSJWH-ZSTPBZSYWH', component: KnowledgeManage, name: 'KnowledgeManage' }, //知识图谱标准术语维护
-      { path: 'LT-CDSSSJWH-ZSTPBZSYWHEDIT', component: AddKnowledge, name: 'AddKnowledge' }, //知识图谱标准术语维护--新增编辑
+            { path: 'LT-CDSSSJWH-YYGL', component: HospitalCDSS, name: 'HospitalCDSS' }, //医院管理
+            { path: 'LT-CDSSSJWH-YYGLEDIT', component: AddHospitalCDSS, name: 'AddHospitalCDSS' }, //医院管理--新增编辑
+            { path: 'LT-CDSSSJWH-YYYHGL', component: HospitalUserCDSS, name: 'HospitalUserCDSS' }, //医院用户管理
+            {
+                path: 'LT-CDSSSJWH-YYYHGLEDIT',
+                component: AddHospitalUserCDSS,
+                name: 'AddHospitalUserCDSS',
+            }, //医院用户管理--添加用户
+            { path: 'LT-CDSSSJWH-BBWH', component: VersionCDSS, name: 'VersionCDSS' }, //CDSS版本信息维护
+            { path: 'LT-CDSSSJWH-BBWHEDIT', component: AddVersionCDSS, name: 'AddVersionCDSS' }, //CDSS版本信息维护--新增编辑
+            { path: 'LT-CDSSSJWH-BBWHDETAIL', component: VersionDetailCDSS, name: 'VersionDetailCDSS' }, //CDSS版本信息维护--详情
+            { path: 'LT-CDSSSJWH-MZSMWH', component: DisclaimerCDSS, name: 'DisclaimerCDSS' }, //免责声明维护
+            { path: 'LT-CDSSSJWH-MZSMWHEDIT', component: AddDisclaimerCDSS, name: 'AddDisclaimerCDSS' }, //免责声明维护--新增编辑
+            {
+                path: 'LT-CDSSSJWH-MZSMWHDETAIL',
+                component: DisclaimerDetailCDSS,
+                name: 'DisclaimerDetailCDSS',
+            }, //免责声明维护--新增编辑
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS',
+                component: KnowledgeMapRuleTest,
+                name: 'KnowledgeMapRuleTest',
+            }, //知识图谱规则测试
+            {
+                path: 'LT-YYSYZDHCS-JTZSYSCS',
+                component: StaticKnowledgeMapTest,
+                name: 'StaticKnowledgeMapTest',
+            }, //静态知识映射测试
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-TYGZCS',
+                component: BillCommonTest,
+                name: 'BillCommonTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-SXGZCS',
+                component: BillFusionTest,
+                name: 'BillFusionTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-SYSJCGZCS',
+                component: CriticalLabTest,
+                name: 'CriticalLabTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-FZJCGZCS',
+                component: CriticalAuxTest,
+                name: 'CriticalAuxTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-GWYPGZCS',
+                component: HighRiskDrugTest,
+                name: 'HighRiskDrugTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-GWSSZHGZCS',
+                component: HighRiskOperationTest,
+                name: 'HighRiskOperationTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-QTHYGZCS',
+                component: OtherAssayRuleTest,
+                name: 'OtherAssayRuleTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-QTFJGZCS',
+                component: OtherAuxRuleTest,
+                name: 'OtherAuxRuleTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-ZSTPGZCS-QTFXGZCS',
+                component: OtherFusionRuleTest,
+                name: 'OtherFusionRuleTest',
+            },
+            {
+                path: 'LT-YYSYZDHCS-JTZSYSCS-WYSZD',
+                component: LessStaticOrNoMap,
+                name: 'LessStaticOrNoMap',
+            },
+            {
+                path: 'LT-ZSKJCWH-JCSYWH',
+                component: BasicTermsMaintenance,
+                name: 'BasicTermsMaintenance',
+            },
+            {
+                path: 'LT-ZSKJCWH-JCCXWH',
+                component: BasicPartOfSpeech,
+                name: 'BasicPartOfSpeech',
+            },
+            {
+                path: 'LT-ZSKJCWH-JCGXLXWH',
+                component: BasicRelationship,
+                name: 'BasicRelationship',
+            },
+            {
+                path: 'LT-ZSKJCWH-JCSYWH-EDIT',
+                component: AddTerm,
+                name: 'AddTerm',
+            },
+            {
+                path: 'LT-ZSKKZWH-JTXXWH',
+                component: StaticInfo,
+                name: 'StaticInfo',
+            },
+            {
+                path: 'LT-ZSKKZWH-JTXXWH-EDIT',
+                component: AddDevKnow,
+                name: 'AddDevKnow',
+            },
+            {
+                path: 'LT-ZSKKZWH-GZWH',
+                component: ZskRuleManager,
+                name: 'ZskRuleManager',
+            },
+            {
+                path: 'LT-ZSKKZWH-TJGZ',
+                component: AddZskRule,
+                name: 'AddZskRule',
+            },
 
-      { path: 'LT-CDSSSJWH-YYGL', component: HospitalCDSS, name: 'HospitalCDSS' }, //医院管理
-      { path: 'LT-CDSSSJWH-YYGLEDIT', component: AddHospitalCDSS, name: 'AddHospitalCDSS' }, //医院管理--新增编辑
-      { path: 'LT-CDSSSJWH-YYYHGL', component: HospitalUserCDSS, name: 'HospitalUserCDSS' }, //医院用户管理
-      {
+    { path: 'LT-CDSSSJWH-YYGL', component: HospitalCDSS, name: 'HospitalCDSS' }, //医院管理
+    { path: 'LT-CDSSSJWH-YYGLEDIT', component: AddHospitalCDSS, name: 'AddHospitalCDSS' }, //医院管理--新增编辑
+    { path: 'LT-CDSSSJWH-YYYHGL', component: HospitalUserCDSS, name: 'HospitalUserCDSS' }, //医院用户管理
+    {
         path: 'LT-CDSSSJWH-YYYHGLEDIT',
         component: AddHospitalUserCDSS,
         name: 'AddHospitalUserCDSS',
-      }, //医院用户管理--添加用户
-      { path: 'LT-CDSSSJWH-BBWH', component: VersionCDSS, name: 'VersionCDSS' }, //CDSS版本信息维护
-      { path: 'LT-CDSSSJWH-BBWHEDIT', component: AddVersionCDSS, name: 'AddVersionCDSS' }, //CDSS版本信息维护--新增编辑
-      { path: 'LT-CDSSSJWH-BBWHDETAIL', component: VersionDetailCDSS, name: 'VersionDetailCDSS' }, //CDSS版本信息维护--详情
-      { path: 'LT-CDSSSJWH-MZSMWH', component: DisclaimerCDSS, name: 'DisclaimerCDSS' }, //免责声明维护
-      { path: 'LT-CDSSSJWH-MZSMWHEDIT', component: AddDisclaimerCDSS, name: 'AddDisclaimerCDSS' }, //免责声明维护--新增编辑
-      {
+    }, //医院用户管理--添加用户
+    { path: 'LT-CDSSSJWH-BBWH', component: VersionCDSS, name: 'VersionCDSS' }, //CDSS版本信息维护
+    { path: 'LT-CDSSSJWH-BBWHEDIT', component: AddVersionCDSS, name: 'AddVersionCDSS' }, //CDSS版本信息维护--新增编辑
+    { path: 'LT-CDSSSJWH-BBWHDETAIL', component: VersionDetailCDSS, name: 'VersionDetailCDSS' }, //CDSS版本信息维护--详情
+    { path: 'LT-CDSSSJWH-MZSMWH', component: DisclaimerCDSS, name: 'DisclaimerCDSS' }, //免责声明维护
+    { path: 'LT-CDSSSJWH-MZSMWHEDIT', component: AddDisclaimerCDSS, name: 'AddDisclaimerCDSS' }, //免责声明维护--新增编辑
+    {
         path: 'LT-CDSSSJWH-MZSMWHDETAIL',
         component: DisclaimerDetailCDSS,
         name: 'DisclaimerDetailCDSS',
-      }, //免责声明维护--新增编辑
-      {
+    }, //免责声明维护--新增编辑
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS',
         component: KnowledgeMapRuleTest,
         name: 'KnowledgeMapRuleTest',
-      }, //知识图谱规则测试
-      {
+    }, //知识图谱规则测试
+    {
         path: 'LT-YYSYZDHCS-JTZSYSCS',
         component: StaticKnowledgeMapTest,
         name: 'StaticKnowledgeMapTest',
-      }, //静态知识映射测试
-      {
+    }, //静态知识映射测试
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-TYGZCS',
         component: BillCommonTest,
         name: 'BillCommonTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-SXGZCS',
         component: BillFusionTest,
         name: 'BillFusionTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-SYSJCGZCS',
         component: CriticalLabTest,
         name: 'CriticalLabTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-FZJCGZCS',
         component: CriticalAuxTest,
         name: 'CriticalAuxTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-GWYPGZCS',
         component: HighRiskDrugTest,
         name: 'HighRiskDrugTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-GWSSZHGZCS',
         component: HighRiskOperationTest,
         name: 'HighRiskOperationTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-QTHYGZCS',
         component: OtherAssayRuleTest,
         name: 'OtherAssayRuleTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-QTFJGZCS',
         component: OtherAuxRuleTest,
         name: 'OtherAuxRuleTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-ZSTPGZCS-QTFXGZCS',
         component: OtherFusionRuleTest,
         name: 'OtherFusionRuleTest',
-      },
-      {
+    },
+    {
         path: 'LT-YYSYZDHCS-JTZSYSCS-WYSZD',
         component: LessStaticOrNoMap,
         name: 'LessStaticOrNoMap',
-      },
-      
-    ],
-  },
+    },
+    {
+        path: 'LT-ZSKJCWH-JCSYWH',
+        component: BasicTermsMaintenance,
+        name: 'BasicTermsMaintenance',
+    },
+    {
+        path: 'LT-ZSKJCWH-JCCXWH',
+        component: BasicPartOfSpeech,
+        name: 'BasicPartOfSpeech',
+    },
+    {
+        path: 'LT-ZSKJCWH-JCGXLXWH',
+        component: BasicRelationship,
+        name: 'BasicRelationship',
+    },
+    {
+        path: 'LT-ZSKJCWH-JCSYWH-EDIT',
+        component: AddTerm,
+        name: 'AddTerm',
+    },
+    {
+        path: 'LT-ZSKKZWH-JTXXWH',
+        component: StaticInfo,
+        name: 'StaticInfo',
+    },
+    {
+        path: 'LT-ZSKKZWH-JTXXWH-EDIT',
+        component: AddDevKnow,
+        name: 'AddDevKnow',
+    },
+    {
+        path: 'LT-ZSKKZWH-SXJGWH',
+        component: KnowledgeAll,
+        name: 'KnowledgeAll',
+    }, //树形结构维护
+    {
+        path: 'LT-ZSKJCWH-JCSYLXWH',
+        component: KnowledgeBaseType,
+        name: 'KnowledgeBaseType',
+    }, //基础术语类型维护
+    {
+        path: 'LT-ZSKKZWH-JBXGWH',
+        component: AboutDisease,
+        name: 'AboutDisease',
+    }, //疾病相关维护
+    {
+        path: 'LT-ZSKKZWH-JBXGWH-EDIT',
+        component: DiseaseTree,
+        name: 'DiseaseTree',
+    }, //疾病相关维护
+],
+},
 ];