snafm0 vor 6 Jahren
Ursprung
Commit
144c32abff
70 geänderte Dateien mit 1522 neuen und 495 gelöschten Zeilen
  1. 13 0
      src/api/config.js
  2. 57 0
      src/api/diagBase.js
  3. 1 1
      src/components/admin/AddAdmin.vue
  4. 1 1
      src/components/admin/AddOrganization.vue
  5. 1 1
      src/components/admin/AddProductLine.vue
  6. 1 1
      src/components/admin/ModifinedOrga.vue
  7. 1 1
      src/components/admin/ProductDetail.vue
  8. 3 3
      src/components/common/Crumbs.vue
  9. 0 0
      src/components/diagBase/DiagBase.vue
  10. 214 0
      src/components/diagBase/QuestionWords.vue
  11. 5 2
      src/components/icss/AddAssaySon.vue
  12. 35 33
      src/components/icss/AddChemicalAndCommonMapping.vue
  13. 5 2
      src/components/icss/AddChronicAndIndexRelation.vue
  14. 1 1
      src/components/icss/AddCommonSymptom.vue
  15. 6 3
      src/components/icss/AddConceptRelation.vue
  16. 1 1
      src/components/icss/AddDeptInfo.vue
  17. 1 1
      src/components/icss/AddDisAndScaleRelation.vue
  18. 4 3
      src/components/icss/AddDisclInfo.vue
  19. 28 74
      src/components/icss/AddIndeptLabel.vue
  20. 1 1
      src/components/icss/AddMedicalInfo.vue
  21. 3 2
      src/components/icss/AddMedicalMultRelation.vue
  22. 81 19
      src/components/icss/AddMedicalName.vue
  23. 5 3
      src/components/icss/AddMedicalRelation.vue
  24. 8 3
      src/components/icss/AddMedicinePrompt.vue
  25. 7 7
      src/components/icss/AddPhysicalExamTemp.vue
  26. 1 1
      src/components/icss/AddPromptInfo.vue
  27. 1 1
      src/components/icss/AddSimilarName.vue
  28. 7 3
      src/components/icss/AddVersion.vue
  29. 43 8
      src/components/icss/AssaySon.vue
  30. 41 3
      src/components/icss/ChemicalAndCommonMapping.vue
  31. 34 4
      src/components/icss/ChronicAndIndexRelation.vue
  32. 7 5
      src/components/icss/ChronicDiseaseAdd.vue
  33. 1 1
      src/components/icss/ChronicDiseaseManageAdd.vue
  34. 40 7
      src/components/icss/ChronicDiseaseStructureList.vue
  35. 1 1
      src/components/icss/CommonTemplate.vue
  36. 47 7
      src/components/icss/ConceptRelation.vue
  37. 1 1
      src/components/icss/DeptInfoDetail.vue
  38. 0 47
      src/components/icss/DiagnosisPubTag.vue
  39. 1 1
      src/components/icss/DiagnosisTemplate.vue
  40. 1 1
      src/components/icss/DiscInfoDetail.vue
  41. 40 5
      src/components/icss/DisclaimerInformation.vue
  42. 52 4
      src/components/icss/IndeptLabel.vue
  43. 45 3
      src/components/icss/LabelGroup.vue
  44. 47 6
      src/components/icss/MedicalMultRelation.vue
  45. 71 14
      src/components/icss/MedicalName.vue
  46. 52 30
      src/components/icss/MedicalRelation.vue
  47. 42 5
      src/components/icss/MedicinePrompt.vue
  48. 8 6
      src/components/icss/NoiseTemplate.vue
  49. 44 9
      src/components/icss/PhysicalExamTemplate.vue
  50. 1 1
      src/components/icss/PromptDetail.vue
  51. 12 15
      src/components/icss/PubIndeptTag.vue
  52. 1 41
      src/components/icss/PubTagGroup.vue
  53. 2 2
      src/components/icss/PubTemplateGroup.vue
  54. 78 1
      src/components/icss/SingleSelect.vue
  55. 42 3
      src/components/icss/TemplateMaintenance.vue
  56. 8 6
      src/components/icss/TemplateMaintenanceWrap.vue
  57. 1 1
      src/components/icss/VersionDetail.vue
  58. 26 2
      src/components/icss/VersionInfo.vue
  59. 9 7
      src/components/preTreat/AddCombinQuestion.vue
  60. 4 3
      src/components/preTreat/AddQuestionModules.vue
  61. 19 9
      src/components/preTreat/AddSimpleQuestion.vue
  62. 40 8
      src/components/preTreat/CombinQuestion.vue
  63. 2 13
      src/components/preTreat/PubIndeptQa.vue
  64. 43 25
      src/components/preTreat/PubSelect.vue
  65. 38 7
      src/components/preTreat/QuestionModules.vue
  66. 13 2
      src/components/preTreat/QuestionTagGroup.vue
  67. 56 7
      src/components/preTreat/SimpleQuestion.vue
  68. 8 1
      src/less/common.less
  69. 8 3
      src/routes.js
  70. 1 2
      vue.config.js

+ 13 - 0
src/api/config.js

@@ -228,6 +228,19 @@ export default {
     'moduleDetail':'/api/precman/moduleInfo_prec/getModuleInfoOne',    //模板详情
     'moduleDetail':'/api/precman/moduleInfo_prec/getModuleInfoOne',    //模板详情
     'deptList':'/api/precman/moduleInfo_prec/getAllDeptAndDisInfo',    //模板-科室列表
     'deptList':'/api/precman/moduleInfo_prec/getAllDeptAndDisInfo',    //模板-科室列表
     'getPrecModuleType':'/api/precman/moduleInfo_prec/getModuleType',     //获取未创建的模板类型
     'getPrecModuleType':'/api/precman/moduleInfo_prec/getModuleType',     //获取未创建的模板类型
+     /*********诊断依据*********/
+     'exportDiagnosticAll': '/api/knowledgeman/diagnose/exportDiagnosticAll', //诊断依据--导出诊断依据
+     'exportDiagnosticBasis': '/api/knowledgeman/diagnose/exportDiagnosticBasis', //诊断依据--导出诊断依据问题
+     'importDiagnosticBasis': '/api/knowledgeman/diagnose/importDiagnosticBasis', //诊断依据--导入诊断依据数据
+     'queryQuestionPage': '/api/knowledgeman/queryQuestionPage', //诊断依据--问题词分页查询
+     'diagBaseDelete': '/api/knowledgeman/delete', //诊断依据--删除
+     'diagBaseGetDetail': '/api/knowledgeman/getDetail', //诊断依据--获取详情
+     'diagBaseIndex': '/api/knowledgeman/index', //诊断依据--诊断检索
+     'diagBasePage': '/api/knowledgeman/page', //诊断依据--分页
+     'diagBaseUpdateNeo': '/api/knowledgeman/updateNeo', //诊断依据--更新图谱
+     'diagBaseVerifyAllData': '/api/knowledgeman/verifyAllData', //诊断依据--校验所有数据
+     'diagBaseVerifyData': '/api/knowledgeman/verifyData', //诊断依据--校验数据
+
   },
   },
 	menuIconList: { //菜单对应图标
 	menuIconList: { //菜单对应图标
 		'YH-KZT': 'el-icon-menu',
 		'YH-KZT': 'el-icon-menu',

+ 57 - 0
src/api/diagBase.js

@@ -0,0 +1,57 @@
+import axios from 'axios';
+import config from '@api/config.js';
+
+const urls = config.urls;
+export default {
+    exportDiagnosticAll(param){ //诊断依据--导出诊断依据
+        // return axios.post(urls.exportDiagnosticAll, param)
+        return axios({
+            method:'post',
+            url:urls.exportDiagnosticAll,
+            param,
+            contentType: "application/vnd.ms-excel" ,
+            responseType: 'blob'//必须添加,否则会乱码
+        })
+    },
+    exportDiagnosticBasis(data){ //诊断依据--导出诊断依据问题
+        // return axios.post(urls.exportDiagnosticBasis, param,{
+        //     contentType: "application/vnd.ms-excel" ,
+        //     responseType: 'blob' //必须添加,否则会乱码
+        // })
+        return axios({
+            method:'post',
+            url:urls.exportDiagnosticBasis,
+            data,
+            contentType: "application/vnd.ms-excel" ,
+            responseType: 'blob'//必须添加,否则会乱码
+        })
+    },
+    
+    importDiagnosticBasis(param){ //诊断依据--导入诊断依据数据
+        return axios.post(urls.importDiagnosticBasis, param)
+    },
+    queryQuestionPage(param){ //诊断依据--问题词分页查询
+        return axios.post(urls.queryQuestionPage, param)
+    },
+    diagBaseDelete(param){ //诊断依据--删除
+        return axios.post(urls.diagBaseDelete, param)
+    },
+    diagBaseGetDetail(param){ //诊断依据--获取详情
+        return axios.post(urls.diagBaseGetDetail, param)
+    },
+    diagBaseIndex(param){ //诊断依据--诊断检索
+        return axios.post(urls.diagBaseIndex, param)
+    },
+    diagBasePage(param){ //诊断依据--分页
+        return axios.post(urls.diagBasePage, param)
+    },
+    diagBaseUpdateNeo(param){ //诊断依据--更新图谱
+        return axios.post(urls.diagBaseUpdateNeo, param)
+    },
+    diagBaseVerifyAllData(param){ //诊断依据--校验所有数据
+        return axios.post(urls.diagBaseVerifyAllData, param)
+    },
+    diagBaseVerifyData(param){ //诊断依据--校验数据
+        return axios.post(urls.diagBaseVerifyData, param)
+    }
+}

+ 1 - 1
src/components/admin/AddAdmin.vue

@@ -121,7 +121,7 @@
         orgList: [],
         orgList: [],
         isEdit:false,
         isEdit:false,
         userId:'',
         userId:'',
-        link:'/admin/LT-KHZX-CGXX',
+        link:'superAdmin',
         curPage:'1',
         curPage:'1',
         orgName:'',
         orgName:'',
         form: {
         form: {

+ 1 - 1
src/components/admin/AddOrganization.vue

@@ -1,7 +1,7 @@
 <!-- 添加机构信息 By_liucf -->
 <!-- 添加机构信息 By_liucf -->
 <template>
 <template>
     <div>
     <div>
-        <crumbs title="机构信息-添加机构" linkTo="/admin/LT-KHZX-JGXX">
+        <crumbs title="机构信息-添加机构" linkTo="organizationInfo">
         </crumbs>
         </crumbs>
         <div class="contents">
         <div class="contents">
           <!--<img src="../../images/return.png" height="18" width="18" class="back" @click="back">-->
           <!--<img src="../../images/return.png" height="18" width="18" class="back" @click="back">-->

+ 1 - 1
src/components/admin/AddProductLine.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
     <div>
     <div>
         <!-------------面包屑-------------->
         <!-------------面包屑-------------->
-        <crumbs :title="`产品线管理-${isEdit?'修改':'添加'}产品线`" linkTo="/admin/LT-CPXGL">
+        <crumbs :title="`产品线管理-${isEdit?'修改':'添加'}产品线`" linkTo="productDetail">
         </crumbs>
         </crumbs>
         <!--------------表单--------------->
         <!--------------表单--------------->
         <div class="contents">
         <div class="contents">

+ 1 - 1
src/components/admin/ModifinedOrga.vue

@@ -1,7 +1,7 @@
 <!-- 添加机构信息 By_liucf -->
 <!-- 添加机构信息 By_liucf -->
 <template>
 <template>
     <div>
     <div>
-        <crumbs title="机构信息-修改机构" linkTo="/admin/LT-KHZX-JGXX">
+        <crumbs title="机构信息-修改机构" linkTo="organizationInfo">
         </crumbs>
         </crumbs>
         <div class="contents">
         <div class="contents">
             <el-form ref="form" :model="form" :rules="rules" label-width="110px" class="add-admin-form">
             <el-form ref="form" :model="form" :rules="rules" label-width="110px" class="add-admin-form">

+ 1 - 1
src/components/admin/ProductDetail.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
     <div>
     <div>
-        <crumbs title="产品线管理-产品线详情" linkTo="/admin/LT-CPXGL">
+        <crumbs title="产品线管理-产品线详情" linkTo="productDetail">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="机构名称:">
                 <el-form-item label="机构名称:">
                     <el-input size="mini" v-model="filter.orgName" placeholder="机构名称"></el-input>
                     <el-input size="mini" v-model="filter.orgName" placeholder="机构名称"></el-input>

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

@@ -11,15 +11,15 @@
 <script>
 <script>
   export default {
   export default {
     name: 'crumbs',
     name: 'crumbs',
-    props: ['title','linkTo','minWidth'],//minWidth-有些头部选项比较多,最小宽度需要调整
+    props: ['title','linkTo','minWidth','param'],//minWidth-有些头部选项比较多,最小宽度需要调整
     data: function () {
     data: function () {
       return {}
       return {}
     },
     },
     methods:{
     methods:{
       goBack(){
       goBack(){
         this.$router.push({
         this.$router.push({
-          path:this.linkTo,
-          query:this.curPage
+          name:this.linkTo,
+          params:this.param
         });
         });
       }
       }
     }
     }

+ 0 - 0
src/components/diagBase/DiagBase.vue


+ 214 - 0
src/components/diagBase/QuestionWords.vue

@@ -0,0 +1,214 @@
+<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.disName" placeholder="诊断名称" clearable></el-input>
+                </el-form-item>
+                <el-form-item label="问题词:">
+                    <el-input size="mini" v-model="filter.questionName" placeholder="问题词" clearable></el-input>
+                </el-form-item>
+                <el-form-item label="问题词归属:">
+                    <el-select size="mini" v-model="filter.questionType" @change="getValue"  placeholder="问题词归属" clearable>
+                        <el-option v-for="item in Adscriptions" :label="item.name" :value="item.val" :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" @click="addTagGroup">导出</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="disName"
+                    label="诊断名称">
+                </el-table-column>
+                <el-table-column
+                    :resizable = "false"
+                    prop="questionName"
+                    label="问题词">
+                </el-table-column>
+                <el-table-column
+                    :resizable = "false"
+                    prop="typeCn"
+                    label="问题词归属">
+                </el-table-column>
+                <el-table-column
+                    :resizable = "false"
+                    prop="modifier"
+                    label="操作人">
+                </el-table-column>
+            </el-table>
+        <div class="pagination">
+            <el-pagination v-if="total>pageSize"
+                       :current-page.sync="currentPage"
+                       @current-change="currentChange"
+                       background
+                       :page-size="pageSize"
+                       layout="total,prev, pager, next, jumper"
+                       :total="total">
+            </el-pagination>
+        </div>
+        
+        </div>
+    </div>
+</template>
+
+<script>
+import api from '@api/diagBase.js';
+import apis from '@api/icss.js';
+import utils from '@api/utils.js';
+
+export default {
+    name: 'QuestionWords',
+    data: function() {
+        return {
+            list: [],
+            tagTypes: [],
+            Adscriptions: [],   //标签归属列表
+            tagTypesList: [],   //标签类型列表
+            searched: false,
+            filter: {
+                disName: '', //诊断名称
+                questionCode: "",//问题词
+                questionName: "",//问题词
+                questionType: ""//问题词归属
+            },
+            currentPage: 1,
+            pageSize: 10,
+            total: 0,
+        }
+    },
+    created() {
+        this.getDropList().then(() => {
+            this.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);
+    })
+  },
+    methods: {
+        getValue(val) {
+            // console.log('changeVal', val, this.filter.tagAdscription)
+        },
+        getDropList() {
+            return apis.getknowledgeList().then((res) =>{
+                if(res.data.code === '0') {
+                    // this.Adscriptions = res.data.data[1];
+                    let tmpLis = res.data.data[4]
+                    // this.Adscriptions = tmpLis.filter(item => item.val);
+                    this.Adscriptions = tmpLis;
+                    // this.tagTypes =  res.data.data[4];
+                    // for (var i = 0; i < this.tagTypes.length; i++) {
+                    //     this.tagTypesList.push(this.tagTypes[i].val)
+                    // }
+                }
+                 
+            })
+        },
+        getDataList() {
+            const param = this.getFilterItems();
+            this.searched = true;
+            api.queryQuestionPage(param).then((res) => {
+                const list = res.data.data.records
+                for (var i = 0; i < list.length; i++) {
+                    for (var z =  0; z < this.Adscriptions.length; z++) {
+                        if(list[i].questionType == this.Adscriptions[z].val) {
+                            list[i].typeCn = this.Adscriptions[z].name
+                        }
+                    }
+                   
+                }
+                this.list = list;
+                this.total = res.data.data.total;
+            })
+        },
+        filterDatas() {
+            this.currentPage = 1;
+            this.getDataList();
+        },
+        addTagGroup() {
+          const data = {
+            disName: this.filter.disName||'',
+            question: this.filter.questionName||'',
+            type: this.filter.questionType||''
+          };
+          api.exportDiagnosticBasis(data).then((res) => {
+              utils.downloadExportedData(res.data,'问题词.xls')
+          })
+        },
+        currentChange(next) {
+            this.currentPage = next;
+            this.getDataList();
+        },
+        getFilterItems() {
+            const param = {
+                current: this.currentPage,
+                size: this.pageSize,
+                disName: this.filter.disName,
+                questionCode: this.filter.questionName,
+                questionType: this.filter.questionType
+            };
+            return param;
+        },
+        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;
+    }
+</style>

+ 5 - 2
src/components/icss/AddAssaySon.vue

@@ -3,7 +3,8 @@
         <crumbs
         <crumbs
           :title="'化验子项维护-'+titleText"
           :title="'化验子项维护-'+titleText"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSYKWH-HYZXWH"
+          :param="$route.params"
+          linkTo="AssaySon"
         ></crumbs>
         ></crumbs>
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
             <p class="assayTitle">添加化验标准术语</p>
             <p class="assayTitle">添加化验标准术语</p>
@@ -192,8 +193,10 @@
               if (res.data.code  === '0') {
               if (res.data.code  === '0') {
                   this.warning(res.data.msg || '关联成功', 'success','1000')
                   this.warning(res.data.msg || '关联成功', 'success','1000')
                   setTimeout(() => {
                   setTimeout(() => {
+                    //返回带搜索条件的首页
                   this.$router.push({
                   this.$router.push({
-                      path:'/admin/LT-YXSYKWH-HYZXWH'
+                      path:'AssaySon',
+                    params: Object.assign({}, this.$route.params, {currentPage: 1})
                   })
                   })
                   }, 1000);
                   }, 1000);
               } else {
               } else {

+ 35 - 33
src/components/icss/AddChemicalAndCommonMapping.vue

@@ -5,15 +5,42 @@
                 @click="back"
                 @click="back"
         ></i> 化验大小项与公表项对应维护--添加关联</div> -->
         ></i> 化验大小项与公表项对应维护--添加关联</div> -->
         <crumbs
         <crumbs
-          title="化验大小项与公表项对应维护--添加关联"
-          class="topBack"
-          linkTo="/admin/LT-YXSJWH-HYDXXYGBXDY"
+                title="化验大小项与公表项对应维护--添加关联"
+                class="topBack"
+                :param="$route.params"
+                linkTo="ChemicalAndCommonMapping"
         ></crumbs>
         ></crumbs>
         <div class="AddChemicalAndCommonMappingBox clearfix">
         <div class="AddChemicalAndCommonMappingBox clearfix">
             <div class="titleBox clearfix">
             <div class="titleBox clearfix">
                 <p class="title">关联公表项</p>
                 <p class="title">关联公表项</p>
                 <p class="title">关联化验项</p> 
                 <p class="title">关联化验项</p> 
             </div>
             </div>
+            <div class="rightBox">
+                <div class="itemLabel">
+                    <label  class="itemLabelName">选择公表项:</label>
+                    <input class="searchInput"  @focus="focuInput" type="text" v-model = "uniqueText"> 
+                    <span class="searchName" @click="searchMealItem(3)">搜索</span>
+                    <ul class="itemList uniqueNameList" ref="uniqueNameList">
+                      <li 
+                        v-for="item in uniqueNameList" 
+                        class="mealNameItem ellipsis"
+                        :title="item.conceptName"
+                        @click="selectUniqueName(item)"
+                        :key="item.conceptName">
+                        {{item.conceptName}}
+                      </li>
+                    </ul>
+                </div>
+                <div class="itemLabel">
+                    <label  class="itemLabelName isRequired">已选择公表项:</label>
+                    <span class="selectItemName">{{form.uniqueName}}</span>
+                </div>
+            </div>
+            
+            <div class="midBox">
+                <img class="midLogo" src="../../images/relation.png" alt="">
+                <p class="midTitle">相互关联</p>
+            </div>
             <div class="leftBox clearfix" >
             <div class="leftBox clearfix" >
                 
                 
                 <div class="itemLabel clearfix">
                 <div class="itemLabel clearfix">
@@ -56,31 +83,6 @@
                     <span class="selectItemName">{{form.itemName}}</span>
                     <span class="selectItemName">{{form.itemName}}</span>
                 </div>
                 </div>
             </div>
             </div>
-            <div class="midBox">
-                <img class="midLogo" src="../../images/relation.png" alt="">
-                <p class="midTitle">相互关联</p>
-            </div>
-            <div class="rightBox">
-                <div class="itemLabel">
-                    <label  class="itemLabelName">选择公表项:</label>
-                    <input class="searchInput"  @focus="focuInput" type="text" v-model = "uniqueText"> 
-                    <span class="searchName" @click="searchMealItem(3)">搜索</span>
-                    <ul class="itemList uniqueNameList" ref="uniqueNameList">
-                      <li 
-                        v-for="item in uniqueNameList" 
-                        class="mealNameItem ellipsis"
-                        :title="item.conceptName"
-                        @click="selectUniqueName(item)"
-                        :key="item.conceptName">
-                        {{item.conceptName}}
-                      </li>
-                    </ul>
-                </div>
-                <div class="itemLabel">
-                    <label  class="itemLabelName isRequired">已选择公表项:</label>
-                    <span class="selectItemName">{{form.uniqueName}}</span>
-                </div>
-            </div>
         </div>
         </div>
        <div class="btn">
        <div class="btn">
            <!-- <span class="sumbit" @click="submitForm">建立关联</span> -->
            <!-- <span class="sumbit" @click="submitForm">建立关联</span> -->
@@ -135,9 +137,6 @@ export default {
             this.$refs['itemNameList'].style.display='none';
             this.$refs['itemNameList'].style.display='none';
             this.$refs['uniqueNameList'].style.display='none';
             this.$refs['uniqueNameList'].style.display='none';
         },
         },
-        back() {
-            this.$router.go(-1)
-        },
         searchMealItem(type) {
         searchMealItem(type) {
             if( type == '1' || type == '2') {
             if( type == '1' || type == '2') {
                 this.getTagList(type)
                 this.getTagList(type)
@@ -206,7 +205,10 @@ export default {
             this.itemNameList = []
             this.itemNameList = []
         },
         },
         selectUniqueName(item) {
         selectUniqueName(item) {
-             this.form.uniqueName = item.conceptName
+            this.form.uniqueName = item.conceptName
+            let nameArr = item.conceptName.split('--');
+            this.form.mealName = nameArr[0]
+            this.form.itemName = nameArr[1]
             this.$refs['uniqueNameList'].style.display='none'
             this.$refs['uniqueNameList'].style.display='none'
             this.uniqueText = ''
             this.uniqueText = ''
             this.uniqueNameList = []
             this.uniqueNameList = []
@@ -389,7 +391,7 @@ export default {
         z-index: 2;
         z-index: 2;
         overflow-y: auto;
         overflow-y: auto;
     }
     }
-    .itemNameList {
+    .itemList {
         width: calc(100% - 131px);
         width: calc(100% - 131px);
     }
     }
     .mealNameItem {
     .mealNameItem {

+ 5 - 2
src/components/icss/AddChronicAndIndexRelation.vue

@@ -8,7 +8,8 @@
         <crumbs
         <crumbs
           :title="'慢病指标值关联维护-'+titleText"
           :title="'慢病指标值关联维护-'+titleText"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSYKWH-MBZBZGLWH"
+          :param="$route.params"
+          linkTo="ChronicAndIndexRelation"
         ></crumbs>
         ></crumbs>
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
             <el-form-item  class="addDepartFormItem"  v-if="!isEdit" label="选择慢病标准术语(概念ID):" prop="department">
             <el-form-item  class="addDepartFormItem"  v-if="!isEdit" label="选择慢病标准术语(概念ID):" prop="department">
@@ -216,8 +217,10 @@
                 if (res.data.code  === '0') {
                 if (res.data.code  === '0') {
                     this.warning(res.data.msg || '关联成功', 'success','1000')
                     this.warning(res.data.msg || '关联成功', 'success','1000')
                     setTimeout(() => {
                     setTimeout(() => {
+                      //返回带搜索条件的首页
                     this.$router.push({
                     this.$router.push({
-                        path:'/admin/LT-YXSYKWH-MBZBZGLWH'
+                        path:'ChronicAndIndexRelation',
+                      params: Object.assign({}, this.$route.params, {currentPage: 1})
                     })
                     })
                     }, 1000);
                     }, 1000);
                 } else {
                 } else {

+ 1 - 1
src/components/icss/AddCommonSymptom.vue

@@ -4,7 +4,7 @@
          <crumbs
          <crumbs
           :title="'常见选项维护系统-' + titleText"
           :title="'常见选项维护系统-' + titleText"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSJWH-CJXXWH"
+          linkTo="CommonSymptom"
         ></crumbs>
         ></crumbs>
         <el-form :model="form" ref="ruleForm" :rules="rules" class="addDepartForm">
         <el-form :model="form" ref="ruleForm" :rules="rules" class="addDepartForm">
            
            

+ 6 - 3
src/components/icss/AddConceptRelation.vue

@@ -3,7 +3,8 @@
     <crumbs
     <crumbs
     :title="'医学术语关联维护-'+titleText"
     :title="'医学术语关联维护-'+titleText"
     class="topBack"
     class="topBack"
-    linkTo="/admin/LT-YXSYKWH-YXSYGLWH"
+    :param="$route.params"
+    linkTo="ConceptRelation"
     ></crumbs>
     ></crumbs>
     <el-form :model="form" ref="ruleForm"  class="addDepartForm">
     <el-form :model="form" ref="ruleForm"  class="addDepartForm">
       <p class="assayTitle">选择医学标准术语</p>
       <p class="assayTitle">选择医学标准术语</p>
@@ -314,13 +315,15 @@ export default {
           "sonRelationId": 17
           "sonRelationId": 17
         }
         }
         this.showConfirmDialog('是否建立该关联?', () => {
         this.showConfirmDialog('是否建立该关联?', () => {
-          this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
+          this.saveDisable = true;  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
           api.addConceptRelation(param).then((res) => {
           api.addConceptRelation(param).then((res) => {
             if (res.data.code  === '0') {
             if (res.data.code  === '0') {
               this.warning(res.data.msg || '关联成功', 'success','1000')
               this.warning(res.data.msg || '关联成功', 'success','1000')
               setTimeout(() => {
               setTimeout(() => {
+                //返回带搜索条件的首页
                 this.$router.push({
                 this.$router.push({
-                  path:'/admin/LT-YXSYKWH-YXSYGLWH'
+                  name:'ConceptRelation',
+                  params: Object.assign({}, this.$route.params, {currentPage: 1})
                 })
                 })
               }, 1000);
               }, 1000);
             } else {
             } else {

+ 1 - 1
src/components/icss/AddDeptInfo.vue

@@ -1,7 +1,7 @@
 <!-- 添加机构信息 By_liucf -->
 <!-- 添加机构信息 By_liucf -->
 <template>
 <template>
     <div>
     <div>
-        <crumbs :title="topInfo" linkTo="/admin/LT-YXSJWH-KSWH">
+        <crumbs :title="topInfo" linkTo="deptInfo">
         </crumbs>
         </crumbs>
         <div class="contents">
         <div class="contents">
             <el-form ref="form" :label-position="labelPosition" :model="form" :rules="rules" label-width="100px" class="add-depart-form">
             <el-form ref="form" :label-position="labelPosition" :model="form" :rules="rules" label-width="100px" class="add-depart-form">

+ 1 - 1
src/components/icss/AddDisAndScaleRelation.vue

@@ -8,7 +8,7 @@
         <crumbs
         <crumbs
           :title="'量表关联维护-'+titleText"
           :title="'量表关联维护-'+titleText"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSJWH-LBGLWH"
+          linkTo="DisAndScaleRelation"
         ></crumbs>
         ></crumbs>
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
         <el-form :model="form" ref="ruleForm"  class="addDepartForm">
             <el-form-item  v-if="!isEdit" label="选择诊断标签:" prop="department">
             <el-form-item  v-if="!isEdit" label="选择诊断标签:" prop="department">

+ 4 - 3
src/components/icss/AddDisclInfo.vue

@@ -1,7 +1,8 @@
 <!-- 免责声明修改 By_liucf -->
 <!-- 免责声明修改 By_liucf -->
 <template>
 <template>
     <div>
     <div>
-        <crumbs :title="topInfo" linkTo="/admin/LT-YXSJKWH-MZSMWH">
+        <crumbs :title="topInfo"
+                :param="$route.params" linkTo="DisclaimerInformation">
         </crumbs>
         </crumbs>
         <div class="contents">
         <div class="contents">
             <el-form ref="form" :label-position="labelPosition" :model="form" :rules="rules" label-width="65px" class="add-discl-form">
             <el-form ref="form" :label-position="labelPosition" :model="form" :rules="rules" label-width="65px" class="add-discl-form">
@@ -143,7 +144,7 @@
               api.modifDiscInformation(param).then((res) => {
               api.modifDiscInformation(param).then((res) => {
                 if (res.data.code == '0') {
                 if (res.data.code == '0') {
                   this.$message({showClose: true,message: this.toast, type: 'success'});
                   this.$message({showClose: true,message: this.toast, type: 'success'});
-                  this.$router.push({path: 'LT-YXSJKWH-MZSMWH'});
+                  this.$router.push({name: 'DisclaimerInformation',params: Object.assign({}, this.$route.params, {currentPage: 1})});
                 } else {
                 } else {
                   this.$message({
                   this.$message({
                     showClose: true,
                     showClose: true,
@@ -169,7 +170,7 @@
               api.addDiscInformation(param).then((res) => {
               api.addDiscInformation(param).then((res) => {
                 if (res.data.code == '0') {
                 if (res.data.code == '0') {
                   this.$message({showClose: true,message: this.toast, type: 'success'});
                   this.$message({showClose: true,message: this.toast, type: 'success'});
-                  this.$router.push({path: 'LT-YXSJKWH-MZSMWH'});
+                  this.$router.push({name: 'DisclaimerInformation',params: Object.assign({}, this.$route.params, {currentPage: 1})});
                 } else {
                 } else {
                   this.$message({
                   this.$message({
                     showClose: true,
                     showClose: true,

+ 28 - 74
src/components/icss/AddIndeptLabel.vue

@@ -1,9 +1,10 @@
 <template>
 <template>
     <div class="NoiseTemplateWrapper TemplateWrapper">
     <div class="NoiseTemplateWrapper TemplateWrapper">
         <crumbs
         <crumbs
-          :title="txt"
-          class="topBack"
-          linkTo="/admin/LT-YXSJWH-DLLXBQWH"
+                :title="txt"
+                class="topBack"
+                :param="$route.params"
+                linkTo="IndeptLabel"
         ></crumbs>
         ></crumbs>
         <PubIndeptTag
         <PubIndeptTag
                 @changeVal="changeVal"
                 @changeVal="changeVal"
@@ -11,14 +12,15 @@
                 @changeType="changeType"
                 @changeType="changeType"
                 @validatePass="validatePass"
                 @validatePass="validatePass"
                 :editData="editData"
                 :editData="editData"
+                :isEditOrCopy="isEditOrCopy"
                 ref="submitForm"
                 ref="submitForm"
         ></PubIndeptTag>
         ></PubIndeptTag>
         <div class="main">
         <div class="main">
             <p class="title" v-if="dataPub.region2==1||dataPub.region2==2|| dataPub.region2==11">
             <p class="title" v-if="dataPub.region2==1||dataPub.region2==2|| dataPub.region2==11">
                 <i>*</i> 标签明细:
                 <i>*</i> 标签明细:
-                <i v-if='dataPub.region2==2' style="margin-left:70px;color: #22ccc8; font-size: 12px;">所有选项必须都有或者都没有同“伴”/“无”标记</i>
+                <i v-if='dataPub.region2==2' style="margin-left:70px;color: #48C5D7; font-size: 12px;">所有选项必须都有或者都没有同“伴”/“无”标记</i>
             </p>
             </p>
-            <SingleSelect v-if="dataPub.region2==1 || dataPub.region2==2 || dataPub.region2==11" :ascription="dataPub.region1" :sexType="dataPub.region7" :type="dataPub.region2" @pushValues="pushValues" :options="editData.questionDetailList"></SingleSelect>
+            <SingleSelect v-if="dataPub.region2==1 || dataPub.region2==2 || dataPub.region2==11" :ascription="dataPub.region1" :sexType="dataPub.region7" :type="dataPub.region2" @pushValues="pushValues" :isEditOrCopy="isEditOrCopy" :options="editData.questionDetailList"></SingleSelect>
             <div class="btn">
             <div class="btn">
                 <el-button
                 <el-button
                         type="primary"
                         type="primary"
@@ -55,14 +57,25 @@
           ]
           ]
         },
         },
         options: [],           //标签明细右侧操作数据
         options: [],           //标签明细右侧操作数据
-        saveDisable: false
+        saveDisable: false,
+        isEditOrCopy: false //
       }
       }
     },
     },
     beforeMount:function(){
     beforeMount:function(){
-      const {isEdit,data} = this.$route.params;
+      const {isEdit,isCopy,data} = this.$route.params;
+     
       if(isEdit){
       if(isEdit){
-        this.txt = '独立标签维护-修改独立标签'
-        this.editData = data;
+      this.txt = '标签组维护-修改独立标签';
+      this.isEditOrCopy = true
+      this.editData = data;
+      } else if(isCopy) {
+        this.txt = '标签组维护-添加独立标签';
+        this.isEditOrCopy = true
+        const copyData = JSON.parse(JSON.stringify(data))
+        copyData.id = ""
+        copyData.name=""  
+        copyData.tagName=""
+        this.editData = copyData;
       }
       }
     },
     },
     computed: {
     computed: {
@@ -72,7 +85,8 @@
     },
     },
     watch: {
     watch: {
       newSign(nextVal, prevVal) {
       newSign(nextVal, prevVal) {
-        if (nextVal != prevVal) {
+         const {isEdit,isCopy} = this.$route.params;
+        if (nextVal != prevVal && !isEdit&&!isCopy) {
           this.form.currentOrder = '0'
           this.form.currentOrder = '0'
         }
         }
       },
       },
@@ -87,7 +101,9 @@
         //console.log(sex)
         //console.log(sex)
       },
       },
       changeType(type) {        //填写单类型改变,标签明细左侧更新,右侧清空
       changeType(type) {        //填写单类型改变,标签明细左侧更新,右侧清空
-        // console.log('type',type)
+        if(this.isEditOrCopy&&type=='2') {
+          return
+        }
         this.options = [];
         this.options = [];
       },
       },
       pushValues(its){
       pushValues(its){
@@ -170,7 +186,7 @@
           api.saveOrUpdate(param).then((res) => {
           api.saveOrUpdate(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
               this.warning(res.data.msg || '保存成功', 'success');
               this.warning(res.data.msg || '保存成功', 'success');
-              this.$router.push("/admin/LT-YXSJWH-DLLXBQWH");
+              this.$router.push({name: 'IndeptLabel', params: Object.assign({}, this.$route.params, {currentPage: 1})});
             } else {
             } else {
               this.warning(res.data.msg)
               this.warning(res.data.msg)
             }
             }
@@ -181,64 +197,6 @@
             this.warning(err);
             this.warning(err);
           })
           })
         });
         });
-      //   const h = this.$createElement;
-      //   const {isEdit} = this.$route.params;
-      // const addMsg = h('div',{style:'padding-bottom:10px'},[
-      //       h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签?')
-      //     ])
-      // const modMsg = h('div',{style:'padding-bottom:10px'},[
-      //       h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签?'),
-      //       h('span',{style:'color:red;font-size:12px'},'若标签系统名称已经改变,请去别名维护中修改相关信息'),
-      //     ])
-      //   this.$msgbox({
-      //     title:'提示',
-      //     message:isEdit?modMsg:addMsg,
-      //     showCancelButton: true,
-      //     distinguishCancelAndClose:true,
-      //     confirmButtonText: '确认并前往别名维护',
-      //     cancelButtonText:'确认',
-      //     // type: 'warning',
-      //     cancelButtonClass:'toast-cancel'
-      //   }).then(()=>{
-      //     api.saveOrUpdate(param).then((res) => {
-      //       if (res.data.code === '0') {
-      //         this.warning(res.data.msg || '保存成功', 'success');
-      //         // 判断是否已有别名--有(修改),无(新增)
-      //         const item = {'questionId':param.questionWrapper.id,'questionName':param.questionWrapper.tagName};
-      //         api.similarNameDetl(item).then((res)=>{
-      //           if(res.data.code=='0'){
-      //             this.$router.push({
-      //               name:'AddSimilarName',
-      //               params: {id:param.questionWrapper.id,name:param.questionWrapper.tagName}
-      //             })
-      //           }else{
-      //             this.$router.push({
-      //               name:'AddSimilarName',
-      //               params: {}
-      //             })
-      //           }
-      //         })  
-      //       } else {
-      //         this.warning(res.data.msg)
-      //       }
-      //     }).catch((err) => {
-      //       this.warning(err);
-      //     })
-      //   }).catch((action)=>{
-      //     // action :cancel--取消,close--关闭
-      //     if(action=='cancel'){
-      //       api.saveOrUpdate(param).then((res) => {
-      //         if (res.data.code === '0') {
-      //           this.warning(res.data.msg || '保存成功', 'success');
-      //           this.$router.push("/admin/LT-YXSJWH-DLLXBQWH");
-      //         } else {
-      //           this.warning(res.data.msg)
-      //         }
-      //       }).catch((err) => {
-      //         this.warning(err);
-      //       })
-      //     }
-      //   })
       },
       },
       showConfirmDialog(msg, resolve) {
       showConfirmDialog(msg, resolve) {
         this.$alert(msg, '提示', {
         this.$alert(msg, '提示', {
@@ -297,9 +255,5 @@
     }
     }
     }
     }
     }
     }
-    .toast-cancel{
-      color: #22ccc8 !important;
-      // background: #22ccc8;
-    }
 </style>
 </style>
 
 

+ 1 - 1
src/components/icss/AddMedicalInfo.vue

@@ -7,7 +7,7 @@
         <crumbs
         <crumbs
           :title=" isEdit? '术语医学属性-修改':'术语医学属性-添加'"
           :title=" isEdit? '术语医学属性-修改':'术语医学属性-添加'"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSYKWH-SYYXSXWH"
+          linkTo="MedicalInfo"
         ></crumbs>
         ></crumbs>
         <div class="info-container">
         <div class="info-container">
             <el-form :rules="rules"
             <el-form :rules="rules"

+ 3 - 2
src/components/icss/AddMedicalMultRelation.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="addMedicalMultRelationWrapper">
   <div class="addMedicalMultRelationWrapper">
-    <crumbs :title="minTitle" linkTo="/admin/LT-YXSYKWH-YXSYDCGLWH"></crumbs>
+    <crumbs :title="minTitle" :param="$route.params" linkTo="MedicalMultRelation"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content">
       <div class="content">
         <div class="addBtn" v-if="list.length == 0">
         <div class="addBtn" v-if="list.length == 0">
@@ -176,7 +176,8 @@ import api from '@api/icss.js';
           if(data.code == '0') {
           if(data.code == '0') {
             this.message(res.data.msg||'术语建立成功','success');
             this.message(res.data.msg||'术语建立成功','success');
             setTimeout(() => {
             setTimeout(() => {
-              this.$router.push({name:'MedicalMultRelation'});
+              //返回带搜索条件的首页
+              this.$router.push({name:'MedicalMultRelation',params:Object.assign({},this.$route.params,{currentPage:1})});
             }, 2000);
             }, 2000);
           } else {
           } else {
             this.message(data.msg);
             this.message(data.msg);

+ 81 - 19
src/components/icss/AddMedicalName.vue

@@ -1,6 +1,8 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs :title="minTitle" linkTo="/admin/LT-YXSYKWH-YXSYMMWH"></crumbs>
+    <crumbs :title="minTitle"
+            :param="$route.params"
+            linkTo="MedicalName"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content">
       <div class="content">
         <h3>添加术语:</h3>
         <h3>添加术语:</h3>
@@ -25,14 +27,28 @@
               <input type="text" v-model="data.spell" placeholder="请输入拼音" maxlength="50"  @input="handlePinyin">
               <input type="text" v-model="data.spell" placeholder="请输入拼音" maxlength="50"  @input="handlePinyin">
             </td>
             </td>
             <td>
             <td>
-              <el-select v-if="!id" v-model="data.type" filterable placeholder="请选择" size="small" @change="selectType">
+              <!-- <el-select v-if="!id" v-model="data.type" filterable placeholder="请选择" size="small" @change="selectType">
                 <el-option
                 <el-option
                   v-for="item in typeList"
                   v-for="item in typeList"
                   :key="item.id"
                   :key="item.id"
                   :label="item.name"
                   :label="item.name"
                   :value="item.name">
                   :value="item.name">
                 </el-option>
                 </el-option>
-              </el-select>
+              </el-select> -->
+              <template v-if="!id">
+                <el-select v-model="data.type" filterable clearable placeholder="请选择" size="small" @change="selectType">
+                  <el-option-group
+                    v-for="group in options"
+                    :key="group.label">
+                    <el-option
+                      v-for="item in group.options"
+                      :key="item.id"
+                      :label="item.name"
+                      :value="item.name">
+                    </el-option>
+                  </el-option-group>
+                </el-select>
+              </template>
               <span v-else>{{data.type}}</span>
               <span v-else>{{data.type}}</span>
             </td>
             </td>
             <td class="desc">
             <td class="desc">
@@ -56,16 +72,32 @@
               <td :title="item.name&&item.name.length>9?item.name:''">
               <td :title="item.name&&item.name.length>9?item.name:''">
                 <!-- 使用原生input,输入限制 -->
                 <!-- 使用原生input,输入限制 -->
                 <!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
                 <!-- <el-input v-model="item.name" placeholder="请输入术语" maxlength="30" size="small" @input.native="handleInput(2,index)"></el-input> -->
-                <input type="text" v-model="item.name" :title="item.name" placeholder="请输入术语" maxlength="50" @blur="handleBlur(2,index,99)" :disabled="!item.isEdit">
+                <input type="text" v-model="item.name" :title="item.name" placeholder="请输入术语" maxlength="50" @blur="handleBlur(2,index,99)" >
               </td>
               </td>
-              <td v-if="!item.isEdit">
+              <!-- <td v-if="!item.isEdit">
                 {{item.spell}}
                 {{item.spell}}
               </td>
               </td>
-              <td v-else>
+              <td v-else> -->
+              <td>
                 <input type="text" v-model="item.spell" placeholder="请输入拼音" maxlength="50"  @input="handlePinyin" class="spell">
                 <input type="text" v-model="item.spell" placeholder="请输入拼音" maxlength="50"  @input="handlePinyin" class="spell">
               </td>
               </td>
               <td>
               <td>
-                {{data.type}}
+                <!-- {{data.type}} -->
+                <template v-if="index==0&&copy">
+                  <el-select v-model="data.type" filterable placeholder="请选择" size="small" @change="selectType">
+                    <el-option-group
+                      v-for="group in options"
+                      :key="group.label">
+                      <el-option
+                        v-for="item in group.options"
+                        :key="item.id"
+                        :label="item.name"
+                        :value="item.name">
+                      </el-option>
+                    </el-option-group>
+                  </el-select>
+                </template>
+                <span v-else>{{data.type}}</span>
               </td>
               </td>
               <td class="desc">
               <td class="desc">
                 <input v-model="item.remark" placeholder="请输入术语说明" maxlength="120"></input>
                 <input v-model="item.remark" placeholder="请输入术语说明" maxlength="120"></input>
@@ -83,11 +115,11 @@
             </tr>
             </tr>
           </table>
           </table>
           <div class="actionDo">
           <div class="actionDo">
-            <div class="btnWrap">
+            <!-- <div class="btnWrap"> -->
               <!-- <el-button type="primary" size="mini" v-if="show" @click="comfirn(14)">确认修改</el-button> -->
               <!-- <el-button type="primary" size="mini" v-if="show" @click="comfirn(14)">确认修改</el-button> -->
-              <el-button plain size="mini" v-if="show" @click="toggleShow(1)">放弃修改</el-button>
-              <el-button plain size="mini" @click="toggleShow(2)" v-if="!show">修改标准词</el-button>
-            </div>
+              <!-- <el-button plain size="mini" v-if="show" @click="toggleShow(1)">放弃修改</el-button>
+              <el-button plain size="mini" @click="toggleShow(2)" v-if="!show">修改标准词</el-button> -->
+            <!-- </div> -->
             <div class="radioWrap" v-if="show">
             <div class="radioWrap" v-if="show">
               <el-radio-group v-model="radioVal" size="mini">
               <el-radio-group v-model="radioVal" size="mini">
                 <el-radio v-for="(item,index) in allwords" :label="index" :disabled="index == 0">选为标准词</el-radio>
                 <el-radio v-for="(item,index) in allwords" :label="index" :disabled="index == 0">选为标准词</el-radio>
@@ -209,14 +241,18 @@ import pinyin from '../../js/Convert_Pinyin.js';
           }
           }
         ],
         ],
         unfit:false, //点确认时是否弹提示,
         unfit:false, //点确认时是否弹提示,
-        saveDisable: false  //保存按钮禁止点击
+        saveDisable: false,  //保存按钮禁止点击
+        options:[],
+        copy:null
       }
       }
     },
     },
     created(){
     created(){
       this.getTypeList();
       this.getTypeList();
       const id = this.$route.params.id || '';
       const id = this.$route.params.id || '';
+      const copy = this.$route.params.copy || '';
+      this.copy = copy;
       if(id){
       if(id){
-        this.minTitle = '医学术语命名维护-修改';
+        this.minTitle = copy?'医学术语命名维护-复制':'医学术语命名维护-修改';
         this.id = id;
         this.id = id;
         this.colspan = 5;
         this.colspan = 5;
         this.getDetail(id);
         this.getDetail(id);
@@ -285,6 +321,17 @@ import pinyin from '../../js/Convert_Pinyin.js';
           if(data.code==0){
           if(data.code==0){
             // this.typeList = data.data.records;
             // this.typeList = data.data.records;
             this.typeList = data.data;
             this.typeList = data.data;
+            // 类型改成平铺
+            if(data.data.length>0){
+              const total = data.data.length;
+              const average = parseInt(total/3);
+              const firstGroup = data.data.slice(0,average);
+              this.options.push({label:1,options:firstGroup});
+              const secGroup = data.data.slice(average,average*2);
+              this.options.push({label:2,options:secGroup});
+              const thirdGroup = data.data.slice(average*2,total-1);
+              this.options.push({label:3,options:thirdGroup});
+            }
           }else{
           }else{
             this.$message({
             this.$message({
               message:data.msg,
               message:data.msg,
@@ -327,16 +374,17 @@ import pinyin from '../../js/Convert_Pinyin.js';
         }else if(type==2){
         }else if(type==2){
           // 修改时术语名称、拼音和类型均不能修改
           // 修改时术语名称、拼音和类型均不能修改
           if(flg == 99){
           if(flg == 99){
-              if(this.synonymous[index-1].name && !pattern.test(this.synonymous[index-1].name)){
+              // if(this.synonymous[index-1].name && !pattern.test(this.synonymous[index-1].name)){
+              if(this.allwords[index].name && !pattern.test(this.allwords[index].name)){
               this.$message({
               this.$message({
-                // message:'无法输入纯数字或者纯字符,请输入正确数据!',
                 message:'无法输入纯数字,请输入正确数据!',
                 message:'无法输入纯数字,请输入正确数据!',
                 type:'warning'
                 type:'warning'
               });
               });
               // this.synonymous[index-1].name = '';
               // this.synonymous[index-1].name = '';
               this.unfit = true;
               this.unfit = true;
             }else{
             }else{
-              let current = this.synonymous[index-1];
+              // let current = this.synonymous[index-1];
+              let current = this.allwords[index];
               current.spell = pinyin.getCamelChars(current.name);
               current.spell = pinyin.getCamelChars(current.name);
               this.unfit = false;
               this.unfit = false;
             }
             }
@@ -484,7 +532,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
             'name':this.data.name,
             'name':this.data.name,
             'type':this.data.type,
             'type':this.data.type,
             'detailList':detailList,
             'detailList':detailList,
-            'conceptId':this.id,
+            'conceptId':this.copy?'':this.id,//复制当新增,把id置空
             'sexType':sexCode,
             'sexType':sexCode,
             'maxAge':this.maxAge,
             'maxAge':this.maxAge,
             'minAge':this.minAge
             'minAge':this.minAge
@@ -494,7 +542,7 @@ import pinyin from '../../js/Convert_Pinyin.js';
             'name':this.data.name,
             'name':this.data.name,
             'type':this.data.type,
             'type':this.data.type,
             'detailList':detailList,
             'detailList':detailList,
-            'conceptId':this.id
+            'conceptId':this.copy?'':this.id
           }
           }
         }
         }
         this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
         this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
@@ -502,7 +550,8 @@ import pinyin from '../../js/Convert_Pinyin.js';
           const result = res.data;
           const result = res.data;
           if(result.code==0){
           if(result.code==0){
             this.warning(res.data.msg||'操作成功','success');
             this.warning(res.data.msg||'操作成功','success');
-            this.$router.push({name:'MedicalName'});
+            //返回带搜索条件的首页
+            this.$router.push({name:'MedicalName',params:Object.assign({},this.$route.params,{currentPage:1})});
             /*if(flg == 14){
             /*if(flg == 14){
               this.getDetail(this.id)
               this.getDetail(this.id)
               this.radioVal = ''
               this.radioVal = ''
@@ -538,6 +587,19 @@ import pinyin from '../../js/Convert_Pinyin.js';
      text-align: right;
      text-align: right;
      margin-left: 0;
      margin-left: 0;
    }
    }
+   // 饿了么分组下拉
+    .el-scrollbar{
+     .el-select-dropdown__list{
+       .el-select-group__wrap{
+        min-width: 160px !important;
+        display: inline-block !important;
+        vertical-align: top !important;
+      }
+    }
+   }
+   .el-select-group__wrap::after{
+    background:#fff !important;
+   } 
    .displayColor {
    .displayColor {
      color: #ccc;
      color: #ccc;
      cursor:not-allowed;
      cursor:not-allowed;

+ 5 - 3
src/components/icss/AddMedicalRelation.vue

@@ -1,6 +1,7 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs title="医学术语关系-添加" linkTo="/admin/LT-YXSYKWH-YXSYGXWH"></crumbs>
+    <crumbs title="医学术语关系-添加"
+            :param="$route.params" linkTo="MedicalRelation"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content" @click="closeSearch">
       <div class="content" @click="closeSearch">
         <p>明细</p>
         <p>明细</p>
@@ -126,8 +127,9 @@
             this.$message({
             this.$message({
               type:'success',
               type:'success',
               message:result.msg||'添加成功'
               message:result.msg||'添加成功'
-            })
-            this.$router.push({path: 'LT-YXSYKWH-YXSYGXWH'});
+            });
+            //返回带搜索条件的首页
+            this.$router.push({name: 'MedicalRelation',params: Object.assign({}, this.$route.params, {currentPage: 1})});
           }else{
           }else{
             this.$message({
             this.$message({
               type:'warning',
               type:'warning',

+ 8 - 3
src/components/icss/AddMedicinePrompt.vue

@@ -3,7 +3,8 @@
         <crumbs
         <crumbs
           :title=" isEdit? '医学术语静态知识维护-修改':'医学术语静态知识维护-添加'"
           :title=" isEdit? '医学术语静态知识维护-修改':'医学术语静态知识维护-添加'"
           class="topBack"
           class="topBack"
-          linkTo="/admin/LT-YXSYKWH-YXSYJTZSWH"
+          :param="$route.params"
+          linkTo="MedicinePrompt"
         ></crumbs>
         ></crumbs>
         <div class="info-container">
         <div class="info-container">
             <el-form :rules="rules"
             <el-form :rules="rules"
@@ -189,9 +190,12 @@
       },
       },
       back() { this.$router.go(-1) },
       back() { this.$router.go(-1) },
       searchTerms(query){
       searchTerms(query){
+        if(!query.trim()){
+            return;
+        }
         //搜索术语列表
         //搜索术语列表
         this.showDrop = true;
         this.showDrop = true;
-        api.getAllConcept({name:query}).then((res) =>{
+        api.getAllConcept({name:query.trim()}).then((res) =>{
           this.showDrop = false;
           this.showDrop = false;
           if(res.data.code === '0') {
           if(res.data.code === '0') {
             this.terms = res.data.data;
             this.terms = res.data.data;
@@ -243,7 +247,8 @@
           api.saveTermPrompts(param).then((res) => {
           api.saveTermPrompts(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
               this.warning(res.data.msg || '保存成功', 'success');
               this.warning(res.data.msg || '保存成功', 'success');
-              this.$router.push("/admin/LT-YXSYKWH-YXSYJTZSWH");
+              //返回带搜索条件的首页
+              this.$router.push({name:'MedicinePrompt',params:Object.assign({},this.$route.params,{currentPage:1})});
             } else {
             } else {
               this.warning(res.data.msg)
               this.warning(res.data.msg)
             }
             }

+ 7 - 7
src/components/icss/AddPhysicalExamTemp.vue

@@ -2,9 +2,10 @@
 <template>
 <template>
     <div class="AddPhysicalExamTempWrapper">
     <div class="AddPhysicalExamTempWrapper">
         <crumbs
         <crumbs
-          :title="'查体模板维护系统-'+titleText"
-          class="topBack"
-          linkTo="/admin/LT-YXSJWH-CTMBWH"
+                :title="'查体模板维护系统-'+titleText"
+                class="topBack"
+                :param="$route.params"
+                linkTo="PhysicalExamTemplate"
         ></crumbs>
         ></crumbs>
         <el-form :model="form" ref="ruleForm" :rules="rules" class="addDepartForm">
         <el-form :model="form" ref="ruleForm" :rules="rules" class="addDepartForm">
             <el-form-item label="模板归属:"  >
             <el-form-item label="模板归属:"  >
@@ -137,9 +138,6 @@
         }
         }
     },
     },
     methods: {
     methods: {
-        back(){
-            this.$router.go(-1);
-        },
         getDepartmentList() {
         getDepartmentList() {
             api.getPhysicalExamTempDepartList().then((res)=>{
             api.getPhysicalExamTempDepartList().then((res)=>{
                if(res.data.code === '0') {
                if(res.data.code === '0') {
@@ -275,8 +273,10 @@
                 if (res.data.code  === '0') {
                 if (res.data.code  === '0') {
                     this.warning(res.data.msg || '保存成功', 'success','1000')
                     this.warning(res.data.msg || '保存成功', 'success','1000')
                     setTimeout(() => {
                     setTimeout(() => {
+                      //返回带搜索条件的首页
                     this.$router.push({
                     this.$router.push({
-                        path:'/admin/LT-YXSJWH-CTMBWH'
+                      name: 'PhysicalExamTemplate',
+                      params: Object.assign({}, this.$route.params, {currentPage: 1})
                     })
                     })
                     }, 1000);
                     }, 1000);
                 } else {
                 } else {

+ 1 - 1
src/components/icss/AddPromptInfo.vue

@@ -2,7 +2,7 @@
     <div class="NoiseTemplateWrapper TemplateWrapper">
     <div class="NoiseTemplateWrapper TemplateWrapper">
         <crumbs :title="isEdit?'提示信息维护-修改':'提示信息维护-添加'"
         <crumbs :title="isEdit?'提示信息维护-修改':'提示信息维护-添加'"
                 class="topBack"
                 class="topBack"
-                linkTo="/admin/LT-YXSJWH-TSXXWH"></crumbs>
+                linkTo="PromptInfo"></crumbs>
         <div class="pinfo-container">
         <div class="pinfo-container">
             <el-form :rules="rules"
             <el-form :rules="rules"
                      :model="form"
                      :model="form"

+ 1 - 1
src/components/icss/AddSimilarName.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs :title="minTitle" linkTo="/admin/LT-YXSJWH-BMWH"></crumbs>
+    <crumbs :title="minTitle" linkTo="SimilarName"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content" @click="close">
       <div class="content" @click="close">
         <h3>选择标签</h3>
         <h3>选择标签</h3>

+ 7 - 3
src/components/icss/AddVersion.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs :title="title" linkTo="/admin/LT-YXSJWH-BBXXWH"></crumbs>
+    <crumbs :title="title" :param="$route.params" linkTo="VersionInfo"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content">
       <div class="content">
         <!-- <el-form ref="form" :label-position="labelPosition" label-width="95px" class="add-admin-form" :model="form" :rules="rules"> -->
         <!-- <el-form ref="form" :label-position="labelPosition" label-width="95px" class="add-admin-form" :model="form" :rules="rules"> -->
@@ -137,8 +137,12 @@
                   this.$message({
                   this.$message({
                     message:"修改成功",
                     message:"修改成功",
                     type:'success'
                     type:'success'
-                  })
-                  this.$router.push({path: 'LT-YXSJWH-BBXXWH'});
+                  });
+                  //返回带搜索条件的首页
+                  this.$router.push({
+                    name: 'VersionInfo',
+                    params: Object.assign({}, this.$route.params, {currentPage: 1})
+                  });
                 }else{
                 }else{
                   this.$message({
                   this.$message({
                     message:res.data.msg,
                     message:res.data.msg,

+ 43 - 8
src/components/icss/AssaySon.vue

@@ -3,7 +3,7 @@
         <crumbs title="化验子项维护" style="min-width: 980px">
         <crumbs title="化验子项维护" style="min-width: 980px">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="标准术语:">
                 <el-form-item label="标准术语:">
-                    <el-input size="mini" v-model="conceptName" placeholder="术语名称" clearable></el-input>
+                    <el-input size="mini" v-model="filter.conceptName" placeholder="术语名称" clearable></el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
@@ -88,22 +88,43 @@ export default {
     data: function() {
     data: function() {
         return {
         return {
             list: [],
             list: [],
-            conceptName:'',
+            searched: false,
+            filter:{
+              conceptName:'',
+            },
             currentPage: 1,
             currentPage: 1,
             pageSize: 10,
             pageSize: 10,
             total: 0,
             total: 0,
         }
         }
     },
     },
     created() {
     created() {
-        this.getDataList()
-        
+      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);
+    })
+  },
     methods: {
     methods: {
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
+            this.searched = true;
             api.getAssaySon(param).then((res) => {
             api.getAssaySon(param).then((res) => {
                 if(res.data.code == '0') {
                 if(res.data.code == '0') {
-                    this.list = res.data.data.records
+                    this.list = res.data.data.records;
                     this.total = res.data.data.total;
                     this.total = res.data.data.total;
                 }
                 }
             })
             })
@@ -113,7 +134,11 @@ export default {
             this.getDataList();
             this.getDataList();
         },
         },
         addRelation() {
         addRelation() {
-            this.$router.push({name:'AddAssaySon'})
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+            this.$router.push({name:'AddAssaySon', params: pam})
         },
         },
         modifyRelation(row) {
         modifyRelation(row) {
             const param = {
             const param = {
@@ -122,9 +147,13 @@ export default {
             }
             }
             api.getAssaySonDetail(param).then((res) => {
             api.getAssaySonDetail(param).then((res) => {
                 if(res.data.code == '0') {
                 if(res.data.code == '0') {
+                  const pam = this.searched ? {
+                    currentPage: this.currentPage,
+                    filter: this.filter
+                  } : {currentPage: this.currentPage};
                     // const item = Object.assign({},row,{data: res.data.data});
                     // const item = Object.assign({},row,{data: res.data.data});
                     const item = res.data.data;
                     const item = res.data.data;
-                    this.$router.push({name:'AddAssaySon',params:{isEdit:true,data:item}});
+                    this.$router.push({name:'AddAssaySon',params:Object.assign(pam, {isEdit:true,data:item})});
                 }
                 }
             })
             })
         },
         },
@@ -136,7 +165,7 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                name:this.conceptName
+                name:this.filter.conceptName
             };
             };
             return param;
             return param;
         },
         },
@@ -170,6 +199,12 @@ export default {
           this.showConfirmDialog('是否删除该关联?',()=>{
           this.showConfirmDialog('是否删除该关联?',()=>{
             api.delAssaySon(param).then((res)=>{
             api.delAssaySon(param).then((res)=>{
               if(res.data.code=='0'){
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    conceptName:'',
+                  };
+                }
                 this.getDataList();
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
                 this.warning(res.data.msg || '操作成功','success');
               }else{
               }else{

+ 41 - 3
src/components/icss/ChemicalAndCommonMapping.vue

@@ -103,6 +103,7 @@ export default {
     data: function() {
     data: function() {
         return {
         return {
             list: [],
             list: [],
+          searched: false,
             filter: {
             filter: {
                 mealName:'',
                 mealName:'',
                 itemName:'',
                 itemName:'',
@@ -117,9 +118,24 @@ export default {
         this.getDataList()
         this.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);
+    })
+  },
     methods: {
     methods: {
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
+          this.searched = true;
             api.getLisMappingPage(param).then((res) => {
             api.getLisMappingPage(param).then((res) => {
                 if(res.data.code == '0') {
                 if(res.data.code == '0') {
                     this.list = res.data.data.records
                     this.list = res.data.data.records
@@ -132,12 +148,22 @@ export default {
             this.getDataList();
             this.getDataList();
         },
         },
         addRelation() {
         addRelation() {
-            this.$router.push({name:'AddChemicalAndCommonMapping'})
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+          this.$router.push({name: 'AddChemicalAndCommonMapping', params: pam})
         },
         },
         modifyRelation(row) {
         modifyRelation(row) {
-            console.log(row,'row')
             const item = Object.assign({},row);
             const item = Object.assign({},row);
-            this.$router.push({name:'AddChemicalAndCommonMapping',params:{isEdit:true,data:item}});
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+          this.$router.push({
+            name: 'AddChemicalAndCommonMapping',
+            params: Object.assign(pam, {isEdit: true, data: item})
+          });
         },
         },
         currentChange(next) {
         currentChange(next) {
             this.currentPage = next;
             this.currentPage = next;
@@ -183,6 +209,18 @@ export default {
           this.showConfirmDialog('是否删除该关联?',()=>{
           this.showConfirmDialog('是否删除该关联?',()=>{
             api.delLisMappingById({id:id}).then((res)=>{
             api.delLisMappingById({id:id}).then((res)=>{
               if(res.data.code=='0'){
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    mealName:'',
+                    itemName:'',
+                    uniqueName:''
+                  };
+                }
+                if(this.list.length==1){
+                  //当前在最后一页且只有一条数据时,删除后跳到前一页
+                  this.currentPage = this.currentPage===1?1:this.currentPage-1;
+                }
                 this.getDataList();
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
                 this.warning(res.data.msg || '操作成功','success');
               }else{
               }else{

+ 34 - 4
src/components/icss/ChronicAndIndexRelation.vue

@@ -95,6 +95,7 @@ export default {
     data: function() {
     data: function() {
         return {
         return {
             list: [],
             list: [],
+            searched: false,
             filter: {
             filter: {
                 diseaseName: ''
                 diseaseName: ''
             },
             },
@@ -107,12 +108,27 @@ export default {
         this.getDataList()
         this.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);
+    })
+  },
     methods: {
     methods: {
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
+            this.searched = true;
             api.queryIndexConfigPages(param).then((res) => {
             api.queryIndexConfigPages(param).then((res) => {
                 if(res.data.code == '0') {
                 if(res.data.code == '0') {
-                    this.list = res.data.data.records
+                    this.list = res.data.data.records;
                     this.total = res.data.data.total;
                     this.total = res.data.data.total;
                 }
                 }
             })
             })
@@ -122,16 +138,24 @@ export default {
             this.getDataList();
             this.getDataList();
         },
         },
         addRelation() {
         addRelation() {
-            this.$router.push({name:'AddChronicAndIndexRelation'})
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+            this.$router.push({name:'AddChronicAndIndexRelation', params: pam})
         },
         },
         modifyRelation(row) {
         modifyRelation(row) {
             const param = {
             const param = {
                 diseaseId: row.diseaseId
                 diseaseId: row.diseaseId
-            }
+            };
             api.getIndexConfigLists(param).then((res) => {
             api.getIndexConfigLists(param).then((res) => {
                 if(res.data.code == '0') {
                 if(res.data.code == '0') {
+                    const pam = this.searched ? {
+                        currentPage: this.currentPage,
+                        filter: this.filter
+                      } : {currentPage: this.currentPage};
                     const item = Object.assign({},row,{data: res.data.data});
                     const item = Object.assign({},row,{data: res.data.data});
-                    this.$router.push({name:'AddChronicAndIndexRelation',params:{isEdit:true,data:item}});
+                    this.$router.push({name:'AddChronicAndIndexRelation',params:Object.assign(pam, {isEdit:true,data:item})});
                 }
                 }
             })
             })
         },
         },
@@ -182,6 +206,12 @@ export default {
           this.showConfirmDialog(warntTxt,()=>{
           this.showConfirmDialog(warntTxt,()=>{
             api.cancelIndexConfigAlls(param).then((res)=>{
             api.cancelIndexConfigAlls(param).then((res)=>{
               if(res.data.code=='0'){
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    diseaseName: ''
+                  };
+                }
                 this.getDataList();
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
                 this.warning(res.data.msg || '操作成功','success');
               }else{
               }else{

+ 7 - 5
src/components/icss/ChronicDiseaseAdd.vue

@@ -3,7 +3,8 @@
     <crumbs
     <crumbs
       :title="minTitle"
       :title="minTitle"
       class="topBack"
       class="topBack"
-      linkTo="/admin/LT-YXSYKWH-LBJGWH"
+      :param="$route.params"
+      linkTo="ChronicDiseaseStructureList"
     ></crumbs>
     ></crumbs>
     <div class="ChronicDiseaseAddWrap" @click="close">
     <div class="ChronicDiseaseAddWrap" @click="close">
       <div class="ChronicDisease">
       <div class="ChronicDisease">
@@ -38,7 +39,7 @@
             ></span></p>
             ></span></p>
           <p><span
           <p><span
               class="el-icon-arrow-left"
               class="el-icon-arrow-left"
-              @click="toLeftPool" 
+              @click="toLeftPool"
             ></span></p>
             ></span></p>
         </div>
         </div>
         <div class="ChronicDiseaseRight">
         <div class="ChronicDiseaseRight">
@@ -239,7 +240,7 @@ export default {
       let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
       let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
       for(let i = 0;i < tmpPool.length;i++){
       for(let i = 0;i < tmpPool.length;i++){
         if(tmpPool[i].val == 0 && !tmpPool[i].content){
         if(tmpPool[i].val == 0 && !tmpPool[i].content){
-          
+
         }else{
         }else{
           let tmpObj = {
           let tmpObj = {
             "content": "",
             "content": "",
@@ -280,13 +281,14 @@ export default {
             this.warning(res.data.msg || '保存成功', 'success');
             this.warning(res.data.msg || '保存成功', 'success');
             setTimeout(() => {
             setTimeout(() => {
               this.$router.push({
               this.$router.push({
-                path:'/admin/LT-YXSYKWH-LBJGWH'
+                name:'ChronicDiseaseStructureList',
+                params: Object.assign({}, this.$route.params, {currentPage: 1})
               })
               })
             }, 1000);
             }, 1000);
           }
           }
           this.saveDisable = false
           this.saveDisable = false
         })
         })
-        
+
       })
       })
     },
     },
     showConfirmDialog(msg, resolve) {
     showConfirmDialog(msg, resolve) {

+ 1 - 1
src/components/icss/ChronicDiseaseManageAdd.vue

@@ -3,7 +3,7 @@
     <crumbs
     <crumbs
       :title="minTitle"
       :title="minTitle"
       class="topBack"
       class="topBack"
-      linkTo="/admin/LT-YXSJWH-MBGLYPG"
+      linkTo="ChronicDiseaseManage"
     ></crumbs>
     ></crumbs>
     <div class="ChronicDiseaseAddWrap">
     <div class="ChronicDiseaseAddWrap">
       <div class="ChronicDisease">
       <div class="ChronicDisease">

+ 40 - 7
src/components/icss/ChronicDiseaseStructureList.vue

@@ -6,7 +6,7 @@
                     <el-input size="mini" v-model="filter.tagSysName" placeholder="量表名称" clearable></el-input>
                     <el-input size="mini" v-model="filter.tagSysName" placeholder="量表名称" clearable></el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item label="状态:">
                 <el-form-item label="状态:">
-                <el-select v-model="isState" clearable placeholder="请选择" size="mini">
+                <el-select v-model="filter.isState" clearable placeholder="请选择" size="mini">
                   <el-option
                   <el-option
                     v-for="item in stateSelect"
                     v-for="item in stateSelect"
                     :key="item.id"
                     :key="item.id"
@@ -95,12 +95,14 @@
           {id:'N',name:'启用中'},
           {id:'N',name:'启用中'},
           {id:'Y',name:'已删除'},
           {id:'Y',name:'已删除'},
         ],
         ],
-        isState:'',
+
         tagTypes: [],
         tagTypes: [],
         AdscriptionsType:[],
         AdscriptionsType:[],
         AdscriptionsOwnTo:[],
         AdscriptionsOwnTo:[],
         tagTypesList: [],
         tagTypesList: [],
+        searched: false,
         filter: {
         filter: {
+          isState:'',
           tagType: [], //标签类型
           tagType: [], //标签类型
           tagSysName: '', //标签系统名称
           tagSysName: '', //标签系统名称
         },
         },
@@ -114,10 +116,24 @@
         this.getDataList()
         this.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);
+      })
+    },
     methods: {
     methods: {
       getDropList() {
       getDropList() {
         let templateType = localStorage.getItem('icssEnumsData') ? JSON.parse(localStorage.getItem('icssEnumsData')).moduleInfoTypeEnum : []
         let templateType = localStorage.getItem('icssEnumsData') ? JSON.parse(localStorage.getItem('icssEnumsData')).moduleInfoTypeEnum : []
-        this.AdscriptionsType = templateType
+        this.AdscriptionsType = templateType;
         return api.getknowledgeList().then((res) =>{
         return api.getknowledgeList().then((res) =>{
           if(res.data.code === '0') {
           if(res.data.code === '0') {
             localStorage.setItem('DiseaseManage',JSON.stringify(res.data.data[1]))
             localStorage.setItem('DiseaseManage',JSON.stringify(res.data.data[1]))
@@ -130,8 +146,9 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.scaleContentStructure(param).then((res) => {
         api.scaleContentStructure(param).then((res) => {
-          const list = res.data.data.records
+          const list = res.data.data.records;
           // for (var i = 0; i < list.length; i++) {
           // for (var i = 0; i < list.length; i++) {
           //   for (var j =  0; j < this.tagTypes.length; j++) {
           //   for (var j =  0; j < this.tagTypes.length; j++) {
           //     if(list[i].tagType === this.tagTypes[j].val) {
           //     if(list[i].tagType === this.tagTypes[j].val) {
@@ -148,13 +165,21 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addIndeptTag() {
       addIndeptTag() {
-        this.$router.push({name:'ChronicDiseaseAdd'})
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name:'ChronicDiseaseAdd', params: pam})
       },
       },
       modifyIndeptTag(row) {
       modifyIndeptTag(row) {
         api.rebuildOrUpdate({conceptId:row.conceptId}).then((res)=>{
         api.rebuildOrUpdate({conceptId:row.conceptId}).then((res)=>{
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
             if(code=='0'){
             if(code=='0'){
-              this.$router.push({name:'ChronicDiseaseAdd',params:{isEdit:true,data:data,row:row}});
+              const pam = this.searched ? {
+                currentPage: this.currentPage,
+                filter: this.filter
+              } : {currentPage: this.currentPage};
+              this.$router.push({name:'ChronicDiseaseAdd',params:Object.assign(pam, {isEdit:true,data:data,row:row})});
             }else{
             }else{
               this.$message({
               this.$message({
                 message: msg,
                 message: msg,
@@ -172,7 +197,7 @@
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           name: this.filter.tagSysName,
           name: this.filter.tagSysName,
-          status:this.isState
+          status:this.filter.isState
         };
         };
         return param;
         return param;
       },
       },
@@ -205,6 +230,14 @@
         this.showConfirmDialog(waringTxt,()=>{
         this.showConfirmDialog(waringTxt,()=>{
           api.deleteScale(param).then((res)=>{
           api.deleteScale(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  isState:'',
+                  tagType: [], //标签类型
+                  tagSysName: '', //标签系统名称
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 1 - 1
src/components/icss/CommonTemplate.vue

@@ -572,7 +572,7 @@ export default {
         "tagName": this.searchVal,
         "tagName": this.searchVal,
         "type": tmpTypeSin,
         "type": tmpTypeSin,
         "notIds": notIds,
         "notIds": notIds,
-        "notTagType": (this.type==2 || this.type==22 || this.type==32 || this.type==322 || this.type==4)?[4,8,10]:[3,4,8,10]//查体没有症状尾巴有血压,其他史有症状尾巴无血压
+        "notTagType": (this.type==2 || this.type==22 || this.type==32 || this.type==322 || this.type==4)?[4,8,10]:[3,4,8,10]
       }
       }
       let params = {
       let params = {
         "notIds": notIds,
         "notIds": notIds,

+ 47 - 7
src/components/icss/ConceptRelation.vue

@@ -3,7 +3,7 @@
         <crumbs title="医学术语关联维护" style="min-width: 980px">
         <crumbs title="医学术语关联维护" style="min-width: 980px">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="标准术语名称:">
                 <el-form-item label="标准术语名称:">
-                    <el-input size="mini" v-model="conceptName" placeholder="术语名称" clearable></el-input>
+                    <el-input size="mini" v-model="filter.conceptName" placeholder="术语名称" clearable></el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
@@ -87,18 +87,40 @@ export default {
     data: function() {
     data: function() {
         return {
         return {
           list: [],
           list: [],
-          conceptName:'',
+          searched: false,
+          filter:{
+            conceptName:''
+          },
           currentPage: 1,
           currentPage: 1,
           pageSize: 10,
           pageSize: 10,
           total: 0,
           total: 0,
         }
         }
     },
     },
     created() {
     created() {
-        this.getDataList()    
+      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);
+    })
+  },
     methods: {
     methods: {
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
+            this.searched = true;
             api.getConceptRelation(param).then((res) => {
             api.getConceptRelation(param).then((res) => {
               if(res.data.code == '0') {
               if(res.data.code == '0') {
                 this.list = res.data.data.records
                 this.list = res.data.data.records
@@ -111,17 +133,25 @@ export default {
             this.getDataList();
             this.getDataList();
         },
         },
         addRelation() {
         addRelation() {
-            this.$router.push({name:'AddConceptRelation'})
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+          this.$router.push({name:'AddConceptRelation',params:pam})
         },
         },
         modifyRelation(row) {
         modifyRelation(row) {
             const param = {
             const param = {
               "conceptId": row.conceptId,
               "conceptId": row.conceptId,
               "relationId":17
               "relationId":17
             }
             }
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
             api.getConceptRelationDet(param).then((res) => {
             api.getConceptRelationDet(param).then((res) => {
               if(res.data.code=='0'){
               if(res.data.code=='0'){
-                const { data } = res.data
-                this.$router.push({name:'AddConceptRelation',params:{isEdit:true,data:data}});
+                const { data } = res.data;
+                this.$router.push({name:'AddConceptRelation',params:Object.assign(pam, {isEdit: true, data: data})});
               } else {
               } else {
                 this.warning(res.data.msg);
                 this.warning(res.data.msg);
               }
               }
@@ -138,7 +168,7 @@ export default {
             const param = {
             const param = {
                 current: this.currentPage,
                 current: this.currentPage,
                 size: this.pageSize,
                 size: this.pageSize,
-                name:this.conceptName
+                name:this.filter.conceptName
             };
             };
             return param;
             return param;
         },
         },
@@ -172,6 +202,16 @@ export default {
             }
             }
             api.delConceptRelation(param).then((res)=>{
             api.delConceptRelation(param).then((res)=>{
               if(res.data.code=='0'){
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    conceptName:''
+                  };
+                }
+                if(this.list.length==1){
+                  //当前在最后一页且只有一条数据时,删除后跳到前一页
+                  this.currentPage = this.currentPage===1?1:this.currentPage-1;
+                }
                 this.getDataList();
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
                 this.warning(res.data.msg || '操作成功','success');
               }else{
               }else{

+ 1 - 1
src/components/icss/DeptInfoDetail.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs title="icss科室维护系统-详情" linkTo="/admin/LT-YXSJWH-KSWH"></crumbs>
+    <crumbs title="icss科室维护系统-详情" linkTo="deptInfo"></crumbs>
     <div class="contents">
     <div class="contents">
       <table class="deptbox">
       <table class="deptbox">
         <tr>
         <tr>

+ 0 - 47
src/components/icss/DiagnosisPubTag.vue

@@ -392,43 +392,6 @@ export default {
         this.initForm()
         this.initForm()
       }
       }
       this.changeSex(tmpData);
       this.changeSex(tmpData);
-      // if(type == 3){
-      //   this.form.region7 = this.tmpSex;
-      //   this.$alert('改变性别后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region7 = tmpData
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region7 = this.tmpSex;
-      //   });
-      // }else if(type == 2){
-      //   this.form.region2 = this.tmpType
-      //   this.$alert('改变类型后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region2 = tmpData;
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region2 = this.tmpType;
-      //   });
-      // }else if(type == 1){
-      //   this.form.region1 = this.tmpOwn;
-      //   this.$alert('改变归属后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region1 = tmpData;
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region1 = this.tmpOwn;
-      //   });
-      // }
     },
     },
     submitForm(formName) {
     submitForm(formName) {
       this.$refs[formName].validate((valid) => {
       this.$refs[formName].validate((valid) => {
@@ -515,16 +478,6 @@ export default {
   .el-message-box__btns .el-button--default {
   .el-message-box__btns .el-button--default {
     color: #606266 !important;
     color: #606266 !important;
   }
   }
-  .cancelColor {
-    color: #22ccc8 !important;
-  }
-  .changeTips {
-    position: absolute;
-    left: 220px;
-    // min-width: 300px;
-    color: #22ccc8;
-    font-size: 12px;
-  }
 }
 }
 }
 }
 </style>
 </style>

+ 1 - 1
src/components/icss/DiagnosisTemplate.vue

@@ -3,7 +3,7 @@
     <crumbs
     <crumbs
       :title="txt"
       :title="txt"
       class="topBack"
       class="topBack"
-      linkTo="/admin/LT-YXSJWH-ZDBQWH"
+      linkTo="DiagnosisList"
     ></crumbs>
     ></crumbs>
     <DiagnosisPubTag
     <DiagnosisPubTag
       :editData="editData"
       :editData="editData"

+ 1 - 1
src/components/icss/DiscInfoDetail.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs title="免责声明维护-详情" linkTo="/admin/LT-YXSJKWH-MZSMWH"></crumbs>
+    <crumbs title="免责声明维护-详情" linkTo="DisclaimerInformation"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="deptbox">
       <div class="deptbox">
         <p class="titl">标题</p>
         <p class="titl">标题</p>

+ 40 - 5
src/components/icss/DisclaimerInformation.vue

@@ -7,9 +7,7 @@
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
-                    <router-link to="/admin/LT-YXSJWH-TJMZSM" style="margin:0 10px">
-                        <el-button size="mini" type="warning">添加</el-button>
-                    </router-link>
+                    <el-button size="mini" type="warning" @click="addDisclInfo" style="margin:0 10px">添加</el-button>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
         </crumbs>
         </crumbs>
@@ -92,19 +90,49 @@
         total: 0,
         total: 0,
         linkIn:[],
         linkIn:[],
         pays:[],
         pays:[],
+        searched: false,
         filter: {
         filter: {
           title: ''
           title: ''
         }
         }
       }
       }
     },
     },
     created() {
     created() {
-      this.getDataList();
+      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);
+      })
     },
     },
     methods: {
     methods: {
+      addDisclInfo(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name: 'AddDisclInfo', params: pam});
+      },
       toEditDiscl(row){
       toEditDiscl(row){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
         this.$router.push({
         this.$router.push({
           name:'AddDisclInfo',
           name:'AddDisclInfo',
-          params: {info:row}
+          params: Object.assign(pam, {info:row})
         })
         })
       },
       },
       filterDatas(){
       filterDatas(){
@@ -113,6 +141,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.discInformation(param).then((res) => {
         api.discInformation(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -167,6 +196,12 @@
         this.showConfirmDialog('是否删除该免责声明?',()=>{
         this.showConfirmDialog('是否删除该免责声明?',()=>{
           api.delDiscInformation({id:item.id}).then((res)=>{
           api.delDiscInformation({id:item.id}).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  title: ''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 52 - 4
src/components/icss/IndeptLabel.vue

@@ -76,7 +76,9 @@
                         prop="operate"
                         prop="operate"
                         label="操作">
                         label="操作">
                     <template slot-scope="scope">
                     <template slot-scope="scope">
-                        <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
+                        <el-button  @click="modifyIndeptTag(scope.row, 'modify')" type="text" size="small">修改</el-button>
+                        <span style="margin:0 3px;">|</span>
+                        <el-button @click="modifyIndeptTag(scope.row, 'copy')" class="text" type="text" size="small">复制</el-button>
                         <span style="margin:0 3px;">|</span>
                         <span style="margin:0 3px;">|</span>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                     </template>
                     </template>
@@ -116,6 +118,7 @@
         tagTypes: [],
         tagTypes: [],
         Adscriptions: [],
         Adscriptions: [],
         tagTypesList:[],
         tagTypesList:[],
+        searched: false,
         filter: {
         filter: {
           tagType: [], //标签类型
           tagType: [], //标签类型
           controlType: [],
           controlType: [],
@@ -133,6 +136,20 @@
       })
       })
 
 
     },
     },
+    watch: {
+      'filter': {
+        handler: function () {
+          this.searched = false;
+        },
+        deep: true
+      }
+    },
+    beforeRouteEnter(to, from, next) {
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm, to.params);
+      })
+    },
     methods: {
     methods: {
       getValue(val) {
       getValue(val) {
         console.log('changeVal', val, this.filter.tagAdscription)
         console.log('changeVal', val, this.filter.tagAdscription)
@@ -150,6 +167,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getTagList(param).then((res) => {
         api.getTagList(param).then((res) => {
           const list = [...res.data.data.records];
           const list = [...res.data.data.records];
           for (var i = 0; i < list.length; i++) {
           for (var i = 0; i < list.length; i++) {
@@ -174,14 +192,31 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addIndeptTag() {
       addIndeptTag() {
-        this.$router.push({path:'LT-YXSJWH-TJDLBQ'})
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({
+          name: 'AddIndeptLabel',
+          params: pam
+        })
       },
       },
-      modifyIndeptTag(row) {
+      modifyIndeptTag(row, type) {
         api.detailsTag({id:row.id}).then((res)=>{
         api.detailsTag({id:row.id}).then((res)=>{
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
           if(code=='0'){
           if(code=='0'){
             const item = Object.assign({},row,data);
             const item = Object.assign({},row,data);
-            this.$router.push({name:'AddIndeptLabel',params:{isEdit:true,data:item}});
+            const pam = this.searched ? {
+              currentPage: this.currentPage,
+              filter: this.filter
+            } : {currentPage: this.currentPage};
+            if(type == 'modify') {
+              this.$router.push({name: 'AddIndeptLabel', params: Object.assign(pam, {isEdit: true, data: item})});
+            } else if( type == 'copy') {
+              this.$router.push({name: 'AddIndeptLabel', params: Object.assign(pam, {isCopy: true, data: item})});
+            } else {
+                return
+            }
           }else{
           }else{
             this.$message({
             this.$message({
               message: msg,
               message: msg,
@@ -240,6 +275,19 @@
         this.showConfirmDialog('是否删除该标签?',()=>{
         this.showConfirmDialog('是否删除该标签?',()=>{
           api.deleteTagGroup(param).then((res)=>{
           api.deleteTagGroup(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  tagType: [], //标签类型
+                  controlType: [],
+                  tagAdscription: '', //标签归属
+                  tagSysName: '', //标签系统名称
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.getDataList();
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
               this.warning(res.data.msg || '操作成功','success');
             }else{
             }else{

+ 45 - 3
src/components/icss/LabelGroup.vue

@@ -119,6 +119,7 @@ export default {
             tagTypes: [],
             tagTypes: [],
             Adscriptions: [],   //标签归属列表
             Adscriptions: [],   //标签归属列表
             tagTypesList: [],   //标签类型列表
             tagTypesList: [],   //标签类型列表
+            searched: false,
             filter: {
             filter: {
                 tagType: [], //标签类型
                 tagType: [], //标签类型
                 tagAdscription: '', //标签归属
                 tagAdscription: '', //标签归属
@@ -135,6 +136,20 @@ export default {
         })
         })
         
         
     },
     },
+  watch: {
+    'filter': {
+      handler: function () {
+        this.searched = false;
+      },
+      deep: true
+    }
+  },
+  beforeRouteEnter(to, from, next) {
+    next(vm => {
+      //const pm = to.param;
+      Object.assign(vm, to.params);
+    })
+  },
     methods: {
     methods: {
         getValue(val) {
         getValue(val) {
             // console.log('changeVal', val, this.filter.tagAdscription)
             // console.log('changeVal', val, this.filter.tagAdscription)
@@ -157,6 +172,7 @@ export default {
         },
         },
         getDataList() {
         getDataList() {
             const param = this.getFilterItems();
             const param = this.getFilterItems();
+          this.searched = true;
             api.getTagList(param).then((res) => {
             api.getTagList(param).then((res) => {
                 const list = res.data.data.records
                 const list = res.data.data.records
                 for (var i = 0; i < list.length; i++) {
                 for (var i = 0; i < list.length; i++) {
@@ -181,18 +197,32 @@ export default {
             this.getDataList();
             this.getDataList();
         },
         },
         addTagGroup() {
         addTagGroup() {
-            this.$router.push({path:'LT-YXSJWH-TJBQZ'})
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+          this.$router.push({name: 'AddLabelGroup', params: pam});
         },
         },
         modifyTagGroup(row, type) {
         modifyTagGroup(row, type) {
             api.detailsTag({id:row.id}).then((res)=>{
             api.detailsTag({id:row.id}).then((res)=>{
                 const {code,data,msg} = res.data;
                 const {code,data,msg} = res.data;
                 if(code=='0'){
                 if(code=='0'){
                     const item = Object.assign({},row,data);
                     const item = Object.assign({},row,data);
+                  const pam = this.searched ? {
+                    currentPage: this.currentPage,
+                    filter: this.filter
+                  } : {currentPage: this.currentPage};
                     // console.log('item', item)
                     // console.log('item', item)
                     if(type == 'modify') {
                     if(type == 'modify') {
-                        this.$router.push({name:'AddLabelGroup',params:{isEdit:true,data:item}});
+                      this.$router.push({
+                        name: 'AddLabelGroup',
+                        params: Object.assign(pam, {isEdit: true, data: item})
+                      });
                     } else if( type == 'copy') {
                     } else if( type == 'copy') {
-                        this.$router.push({name:'AddLabelGroup',params:{isCopy:true,data:item}});
+                      this.$router.push({
+                        name: 'AddLabelGroup',
+                        params: Object.assign(pam, {isCopy: true, data: item})
+                      });
                     } else {
                     } else {
                         return
                         return
                     }
                     }
@@ -249,6 +279,18 @@ export default {
           this.showConfirmDialog('是否删除该标签组?',()=>{
           this.showConfirmDialog('是否删除该标签组?',()=>{
             api.deleteTagGroup({ids:id,type:type}).then((res)=>{
             api.deleteTagGroup({ids:id,type:type}).then((res)=>{
               if(res.data.code=='0'){
               if(res.data.code=='0'){
+                if(!this.searched){
+                  //未点确认时清空搜索条件
+                  this.filter={
+                    tagType: [], //标签类型
+                    tagAdscription: '', //标签归属
+                    tagSysName: '', //标签系统名称
+                  };
+                }
+                if(this.list.length==1){
+                  //当前在最后一页且只有一条数据时,删除后跳到前一页
+                  this.currentPage = this.currentPage===1?1:this.currentPage-1;
+                }
                 this.getDataList();
                 this.getDataList();
                 this.warning(res.data.msg || '操作成功','success');
                 this.warning(res.data.msg || '操作成功','success');
               }else{
               }else{

+ 47 - 6
src/components/icss/MedicalMultRelation.vue

@@ -7,9 +7,7 @@
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
-                    <router-link to="/admin/LT-YXSYKWH-TJYXSYDCGL" style="margin:0 10px">
-                        <el-button size="mini" type="warning">添加</el-button>
-                    </router-link>
+                    <el-button size="mini" type="warning" style="margin:0 10px"  @click="addMedicalMultR">添加</el-button>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
         </crumbs>
         </crumbs>
@@ -89,6 +87,7 @@
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
         total: 0,
         total: 0,
+        searched: false,
         filter: {
         filter: {
           term:'',
           term:'',
           type:''
           type:''
@@ -97,20 +96,50 @@
       }
       }
     },
     },
     created() {
     created() {
-      this.getDataList();
+      const that = this;
+      //返回时避免参数未赋值就获取列表
+      setTimeout(function(){
+        that.getDataList();
+      });
       this.getTypeList();
       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);
+      })
+    },
     methods: {
     methods: {
+      addMedicalMultR(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name:'AddMedicalMultRelation',
+          params:pam});
+      },
       toEditProduct(row){
       toEditProduct(row){
         const param = {
         const param = {
           conceptId: row.conceptId,
           conceptId: row.conceptId,
           relationId: 17
           relationId: 17
-        }
+        };
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
         api.relationContactDetail(param).then((res) => {
         api.relationContactDetail(param).then((res) => {
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
           if(code=='0'){
           if(code=='0'){
               const item = Object.assign({},row,data);
               const item = Object.assign({},row,data);
-              this.$router.push({name:'AddMedicalMultRelation',params:{isEdit:true,data:item}});
+              this.$router.push({name:'AddMedicalMultRelation',params:Object.assign(pam, {isEdit: true, data: item})});
           }else{
           }else{
               this.$message({
               this.$message({
               message: msg,
               message: msg,
@@ -125,6 +154,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.multContactList(param).then((res) => {
         api.multContactList(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -202,6 +232,17 @@
         this.showConfirmDialog(waringTxt,()=>{
         this.showConfirmDialog(waringTxt,()=>{
           api.removeRelationContact(param).then((res)=>{
           api.removeRelationContact(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term:'',
+                  type:''
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 71 - 14
src/components/icss/MedicalName.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
     <div>
     <div>
-        <crumbs title="医学术语命名维护" minWidth="995px">
+        <crumbs title="医学术语命名维护" minWidth="995px" class="knowledgeTitle">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="医学标准术语:">
                 <el-form-item label="医学标准术语:">
                     <el-input size="mini" v-model="filter.term" placeholder="输入术语"></el-input>
                     <el-input size="mini" v-model="filter.term" placeholder="输入术语"></el-input>
@@ -22,7 +22,7 @@
                 <el-form-item label="同义词:">
                 <el-form-item label="同义词:">
                     <el-input size="mini" v-model="filter.libName" placeholder="输入同义词"></el-input>
                     <el-input size="mini" v-model="filter.libName" placeholder="输入同义词"></el-input>
                 </el-form-item>
                 </el-form-item>
-              <!--<el-form-item label="状态:">
+              <el-form-item label="状态:">
                 <el-select v-model="isState" clearable placeholder="请选择" size="mini">
                 <el-select v-model="isState" clearable placeholder="请选择" size="mini">
                   <el-option
                   <el-option
                     v-for="item in stateSelect"
                     v-for="item in stateSelect"
@@ -31,18 +31,23 @@
                     :value="item.id">
                     :value="item.id">
                   </el-option>
                   </el-option>
                 </el-select>
                 </el-select>
-              </el-form-item>-->
+              </el-form-item>
                 <el-form-item>
                 <el-form-item>
-                    <el-button size="mini" @click="filterDatas">确认</el-button>
-                    <el-button size="mini" @click="uploadClick">导入</el-button>
-                    <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
-                    <router-link to="/admin/LT-YXSYKWH-TJYXSY" style="margin:0 10px">
-                        <el-button size="mini" type="warning">添加医学标准术语</el-button>
-                    </router-link>
+                  <el-button size="mini" @click="filterDatas">确认</el-button>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
+            <el-form class="secLine">
+              <el-form-item>
+                  <el-button size="mini" @click="uploadClick">导入</el-button>
+                  <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
+                  <!-- <router-link to="/admin/LT-YXSYKWH-TJYXSY" style="margin:0 10px">
+                      <el-button size="mini" type="warning">添加医学标准术语</el-button>
+                  </router-link> -->
+                  <el-button size="mini" type="warning"  @click="addMedicalName" style="margin:0 10px">添加医学标准术语</el-button>
+              </el-form-item>
+            </el-form>
         </crumbs>
         </crumbs>
-        <div class="contents">
+        <div class="contents knowledgeContents">
             <el-table :data="list"
             <el-table :data="list"
                       border
                       border
                       style="width: 100%">
                       style="width: 100%">
@@ -89,6 +94,8 @@
                     <template slot-scope="scope">
                     <template slot-scope="scope">
                         <el-button type="text" size="small" :disabled="scope.row.isDeleted != 'N'" @click="toEditProduct(scope.row)">修改</el-button>
                         <el-button type="text" size="small" :disabled="scope.row.isDeleted != 'N'" @click="toEditProduct(scope.row)">修改</el-button>
                         <span style="margin:0 3px;">|</span>
                         <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 == 'N'?'删除':'恢复'}}</el-button>
                         <el-button type="text" size="small" :class="scope.row.isDeleted == 'N'?'delete':'review'" @click="showDelDialog(scope.row)">{{scope.row.isDeleted == 'N'?'删除':'恢复'}}</el-button>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
@@ -122,6 +129,7 @@
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
         total: 0,
         total: 0,
+        searched:false,
         filter: {
         filter: {
           term:'',
           term:'',
           type:'',
           type:'',
@@ -131,15 +139,42 @@
       }
       }
     },
     },
     created() {
     created() {
-      this.getDataList();
+      // this.getDataList();
       this.getTypeList();
       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);
+      })
     },
     },
     methods: {
     methods: {
-      toEditProduct(row){
+      addMedicalName(){
+        const pam = this.searched?{currentPage:this.currentPage,
+          filter:this.filter}:{currentPage:this.currentPage};
+        this.$router.push({name:'AddMedicalName',
+          params:pam});
+      },
+      toEditProduct(row,copy){
+        const pam = this.searched?{currentPage:this.currentPage,
+          filter:this.filter}:{currentPage:this.currentPage};
         this.$router.push({
         this.$router.push({
           name:'AddMedicalName',
           name:'AddMedicalName',
           // params: {info:row}
           // params: {info:row}
-          params: {id:row.conceptId}
+          params: Object.assign(pam,{id:row.conceptId,copy:copy})
         })
         })
       },
       },
       filterDatas(){
       filterDatas(){
@@ -148,6 +183,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.knowledgeName(param).then((res) => {
         api.knowledgeName(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -180,7 +216,8 @@
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
           type:this.filter.type,
           type:this.filter.type,
-          libName:this.filter.libName
+          libName:this.filter.libName,
+          isDeleted:this.isState
         };
         };
         return param;
         return param;
       },
       },
@@ -224,6 +261,14 @@
         this.showConfirmDialog(waringTxt,()=>{
         this.showConfirmDialog(waringTxt,()=>{
           api.deletMedicalName(param).then((res)=>{
           api.deletMedicalName(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term:'',
+                  type:'',
+                  libName:''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{
@@ -284,6 +329,18 @@
 
 
 <style lang="less" scoped>
 <style lang="less" scoped>
     @import "../../less/admin.less";
     @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{
     .delete{
         color: red;
         color: red;
     }
     }

+ 52 - 30
src/components/icss/MedicalRelation.vue

@@ -6,7 +6,7 @@
                   <span>{{total}}条</span>
                   <span>{{total}}条</span>
               </el-form-item>
               </el-form-item>
               <el-form-item label="术语关系:">
               <el-form-item label="术语关系:">
-                <el-select v-model="type" clearable placeholder="请选择" size="mini">
+                <el-select v-model="filter.type" clearable placeholder="请选择" size="mini">
                   <el-option
                   <el-option
                     v-for="item in typeList"
                     v-for="item in typeList"
                     :key="item.key"
                     :key="item.key"
@@ -16,13 +16,13 @@
                 </el-select>
                 </el-select>
               </el-form-item>
               </el-form-item>
               <el-form-item label="起始术语:">
               <el-form-item label="起始术语:">
-                  <el-input size="mini" v-model="startName" placeholder="输入术语"></el-input>
+                  <el-input size="mini" v-model="filter.startName" placeholder="输入术语"></el-input>
               </el-form-item>
               </el-form-item>
               <el-form-item label="终点术语:">
               <el-form-item label="终点术语:">
-                  <el-input size="mini" v-model="endName" placeholder="输入术语"></el-input>
+                  <el-input size="mini" v-model="filter.endName" placeholder="输入术语"></el-input>
               </el-form-item>
               </el-form-item>
               <el-form-item label="状态:">
               <el-form-item label="状态:">
-                <el-select v-model="isState" clearable placeholder="请选择" size="mini">
+                <el-select v-model="filter.isState" clearable placeholder="请选择" size="mini">
                   <el-option
                   <el-option
                     v-for="item in stateSelect"
                     v-for="item in stateSelect"
                     :key="item.id"
                     :key="item.id"
@@ -39,9 +39,7 @@
               <el-form-item>
               <el-form-item>
                   <el-button size="mini" @click="uploadClick">导入</el-button>
                   <el-button size="mini" @click="uploadClick">导入</el-button>
                   <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
                   <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
-                  <router-link to="/admin/LT-YXSYKWH-TJYXSYGX" style="margin:0 10px">
-                      <el-button size="mini" type="warning">添加医学术语关系</el-button>
-                  </router-link>
+                  <el-button size="mini" @click="addMedicalR" type="warning" style="margin:0 10px">添加医学术语关系</el-button>
               </el-form-item>
               </el-form-item>
             </el-form>
             </el-form>
         </crumbs>
         </crumbs>
@@ -130,48 +128,62 @@
           {id:'N',name:'启用中'},
           {id:'N',name:'启用中'},
           {id:'Y',name:'已删除'},
           {id:'Y',name:'已删除'},
         ],
         ],
-        isState:'',
+        searched: false,
+        filter:{
+          isState:'',
+          startName:'',
+          endName:'',
+          type:'',
+        },
         cacheData: {},
         cacheData: {},
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
         total: 0,
         total: 0,
-        startName:'',
-        endName:'',
-        type:'',
         typeList:[],
         typeList:[],
         titleWidth:'1070px' //头部最小宽度
         titleWidth:'1070px' //头部最小宽度
       }
       }
     },
     },
     created() {
     created() {
-      this.getDataList();
       // this.getRelationList();
       // this.getRelationList();
       const typeList = JSON.parse(localStorage.getItem("knowledgeEnumsData"));
       const typeList = JSON.parse(localStorage.getItem("knowledgeEnumsData"));
       if(typeList){
       if(typeList){
         this.typeList = typeList.lexiconRSTypeEnum;
         this.typeList = typeList.lexiconRSTypeEnum;
       }
       }
+      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);
+      })
     },
     },
     methods: {
     methods: {
-      toEditProduct(row){
-        // this.$router.push({
-        //   name:'AddSimilarName',
-        //   params: {id:row.questionId,name:row.questionName}
-        // })
+      addMedicalR(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name: 'AddMedicalRelation', params: pam});
       },
       },
       filterDatas(){
       filterDatas(){
         this.currentPage = 1;
         this.currentPage = 1;
         this.getDataList(1);
         this.getDataList(1);
       },
       },
       getDataList(flag) {
       getDataList(flag) {
-        const param = this.getFilterItems();
-        const param1 = {
-          "current": this.currentPage,
-          "endName": this.endName,
-          "relationId": this.type,
-          "size": this.pageSize,
-          "startName": this.startName,
-          "isDeleted":this.isState
-        }
-        const params = this.type?param1:param;
+        const params = this.getFilterItems();
+        this.searched = true;
         api.knowledgeRelation(params).then((res) => {
         api.knowledgeRelation(params).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -211,9 +223,10 @@
         const param = {
         const param = {
           current: this.currentPage,
           current: this.currentPage,
           size: this.pageSize,
           size: this.pageSize,
-          startName: this.startName,
-          endName: this.endName,
-          isDeleted:this.isState
+          relationId: this.filter.type,
+          startName: this.filter.startName,
+          endName: this.filter.endName,
+          isDeleted:this.filter.isState
         };
         };
         return param;
         return param;
       },
       },
@@ -252,6 +265,15 @@
         this.showConfirmDialog(warningTxt,()=>{
         this.showConfirmDialog(warningTxt,()=>{
           api.delKnowledgeRelation(params).then((res)=>{
           api.delKnowledgeRelation(params).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  isState:'',
+                  startName:'',
+                  endName:'',
+                  type:'',
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 42 - 5
src/components/icss/MedicinePrompt.vue

@@ -7,9 +7,7 @@
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
-                    <router-link to="/admin/LT-YXSYKWH-TJYXSYJTZS" style="margin:0 10px">
-                        <el-button size="mini" type="warning">添加静态知识</el-button>
-                    </router-link>
+                    <el-button size="mini" type="warning" style="margin:0 10px" @click="addMedicalPrompt">添加静态知识</el-button>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
         </crumbs>
         </crumbs>
@@ -90,6 +88,7 @@
         total: 0,
         total: 0,
         linkIn:[],
         linkIn:[],
         pays:[],
         pays:[],
+        searched: false,
         filter: {
         filter: {
           term: '',
           term: '',
           title:''
           title:''
@@ -97,13 +96,43 @@
       }
       }
     },
     },
     created() {
     created() {
-      this.getDataList();
+      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);
+      })
     },
     },
     methods: {
     methods: {
+      addMedicalPrompt(){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name:'AddMedicinePrompt',
+          params:pam});
+      },
       toEditProduct(row){
       toEditProduct(row){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
         this.$router.push({
         this.$router.push({
           name:'AddMedicinePrompt',
           name:'AddMedicinePrompt',
-          params: {data:row,isEdit:true}
+          params: Object.assign(pam, {data:row,isEdit:true})
         })
         })
       },
       },
       toCopyProduct(row){
       toCopyProduct(row){
@@ -118,6 +147,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getConceptKnowledgeList(param).then((res) => {
         api.getConceptKnowledgeList(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -170,6 +200,13 @@
         this.showConfirmDialog('是否删除该静态知识?',()=>{
         this.showConfirmDialog('是否删除该静态知识?',()=>{
           api.delConceptInfo({conceptId:[row.conceptId],status:'Y'}).then((res)=>{
           api.delConceptInfo({conceptId:[row.conceptId],status:'Y'}).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  term: '',
+                  title:''
+                };
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 8 - 6
src/components/icss/NoiseTemplate.vue

@@ -1,9 +1,10 @@
 <template>
 <template>
   <div class="NoiseTemplateWrapper TemplateWrapper">
   <div class="NoiseTemplateWrapper TemplateWrapper">
       <crumbs
       <crumbs
-      :title="txt"
-      class="topBack"
-      linkTo="/admin/LT-YXSJWH-BQZWH"
+              :title="txt"
+              class="topBack"
+              :param="$route.params"
+              linkTo="labelGroup"
     ></crumbs>
     ></crumbs>
     <PubTagGroup
     <PubTagGroup
       :editData="editData"
       :editData="editData"
@@ -166,7 +167,6 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
-    back() { this.$router.go(-1) },
     changeVal(val) {    //子组件数据改变传递到父组件
     changeVal(val) {    //子组件数据改变传递到父组件
       this.dataPub = val
       this.dataPub = val
       // console.log('公用组件传的值都在这', val)
       // console.log('公用组件传的值都在这', val)
@@ -249,8 +249,10 @@ export default {
           if (res.data.code === '0') {
           if (res.data.code === '0') {
             this.warning(res.data.msg || '保存成功', 'success','1000')
             this.warning(res.data.msg || '保存成功', 'success','1000')
             setTimeout(() => {
             setTimeout(() => {
+              //返回带搜索条件的首页
               this.$router.push({
               this.$router.push({
-                path:'/admin/LT-YXSJWH-BQZWH'
+                name: 'labelGroup',
+                params: Object.assign({}, this.$route.params, {currentPage: 1})
               })
               })
             }, 1000);
             }, 1000);
           } else {
           } else {
@@ -379,7 +381,7 @@ export default {
         color: #f56c6c;
         color: #f56c6c;
       }
       }
       span {
       span {
-        color:#22ccc8;
+        color:@adminBase;
         font-size: 12px;
         font-size: 12px;
       }
       }
     }
     }

+ 44 - 9
src/components/icss/PhysicalExamTemplate.vue

@@ -14,9 +14,7 @@
                 </el-form-item>
                 </el-form-item>
                 <el-form-item>
                 <el-form-item>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
                     <el-button size="mini" @click="filterDatas">确认</el-button>
-                    <router-link to="/admin/LT-YXSJWH-TJCTMB" style="margin:0 10px">
-                        <el-button size="mini" type="warning">添加模板</el-button>
-                    </router-link>
+                    <el-button size="mini" type="warning" @click="addModule" style="margin:0 10px">添加模板</el-button>
                 </el-form-item>
                 </el-form-item>
             </el-form>
             </el-form>
         </crumbs>
         </crumbs>
@@ -95,16 +93,41 @@
         total: 0,
         total: 0,
         linkIn:[],
         linkIn:[],
         pays:[],
         pays:[],
+        searched: false,
         filter: {
         filter: {
           deptId: ''
           deptId: ''
         }
         }
       }
       }
     },
     },
     created() {
     created() {
-      this.getDeptShortListSearh()
-      this.getDataList();
+      this.getDeptShortListSearh();
+      const that = this;
+      setTimeout(function () {
+        that.getDataList();
+      }, 200);
+    },
+    watch: {
+      'filter': {
+        handler: function () {
+          this.searched = false;
+        },
+        deep: true
+      }
+    },
+    beforeRouteEnter(to, from, next) {
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm, to.params);
+      })
     },
     },
     methods: {
     methods: {
+      addModule() {
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name: 'AddPhysicalExamTemp', params: pam});
+      },
       toEditProduct(row){
       toEditProduct(row){
         this.getPhysicalExamTempByDepId('isEdit', row)
         this.getPhysicalExamTempByDepId('isEdit', row)
       },
       },
@@ -113,8 +136,12 @@
         api.getPhysicalExamTempByDepId(param).then((res)=>{
         api.getPhysicalExamTempByDepId(param).then((res)=>{
             const {code,data,msg} = res.data;
             const {code,data,msg} = res.data;
             if(code=='0'){
             if(code=='0'){
+              const pam = this.searched ? {
+                currentPage: this.currentPage,
+                filter: this.filter
+              } : {currentPage: this.currentPage};
                 const item = Object.assign({},row,data);
                 const item = Object.assign({},row,data);
-                this.$router.push({name:'AddPhysicalExamTemp',params:{[type]:true,data:item}});
+              this.$router.push({name: 'AddPhysicalExamTemp', params: Object.assign(pam, {[type]: true, data: item})});
             }else{
             }else{
                 this.$message({
                 this.$message({
                 message: msg,
                 message: msg,
@@ -138,9 +165,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
-        // const param = {
-        //   'name':''
-        // };
+        this.searched = true;
         api.getPhysicalExamTempList(param).then((res) => {
         api.getPhysicalExamTempList(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;
@@ -192,6 +217,16 @@
         this.showConfirmDialog('是否删除该科室查体模板?',()=>{
         this.showConfirmDialog('是否删除该科室查体模板?',()=>{
           api.delPhysicalExamTemp({'deptId':deptId}).then((res)=>{
           api.delPhysicalExamTemp({'deptId':deptId}).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  deptId: ''
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.warning(res.data.msg||'操作成功','success');
               this.warning(res.data.msg||'操作成功','success');
               this.getDataList();
               this.getDataList();
             }else{
             }else{

+ 1 - 1
src/components/icss/PromptDetail.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
     <div class="NoiseTemplateWrapper TemplateWrapper">
     <div class="NoiseTemplateWrapper TemplateWrapper">
-        <crumbs title="提示信息维护--详情" class="topBack" linkTo="/admin/LT-YXSJWH-TSXXWH">
+        <crumbs title="提示信息维护--详情" class="topBack" linkTo="PromptInfo">
         </crumbs>
         </crumbs>
         <div class="info-container">
         <div class="info-container">
             <el-form label-width="130px"
             <el-form label-width="130px"

+ 12 - 15
src/components/icss/PubIndeptTag.vue

@@ -17,7 +17,7 @@
                 <el-select
                 <el-select
                         v-model="form.region1"
                         v-model="form.region1"
                         placeholder="请选择归属"
                         placeholder="请选择归属"
-                        :disabled="!!editData.id"
+                        :disabled="isEditOrCopy"
                         @change="(e)=>readyChangeSelect(e,1)"
                         @change="(e)=>readyChangeSelect(e,1)"
                 >
                 >
                     <el-option
                     <el-option
@@ -36,7 +36,7 @@
                 <el-select
                 <el-select
                         v-model="form.region2"
                         v-model="form.region2"
                         placeholder="请选择填写单类型"
                         placeholder="请选择填写单类型"
-                        :disabled="!!editData.id  || !form.region1"
+                        :disabled="isEditOrCopy&&(form.region2!= '1'&&form.region2!= '2' ) || !form.region1"
                         @change="(e)=>readyChangeSelect(e,2)"
                         @change="(e)=>readyChangeSelect(e,2)"
                 >
                 >
                     <el-option
                     <el-option
@@ -319,7 +319,7 @@
 // 化验(val:5):化验数字键盘(val:7)、化验单选(val:1)
 // 化验(val:5):化验数字键盘(val:7)、化验单选(val:1)
 
 
   export default {
   export default {
-    props:['editData'],
+    props:['editData','isEditOrCopy'],
     data() { 
     data() { 
       var validatePass1 = (rule, value, callback) => {
       var validatePass1 = (rule, value, callback) => {
           this.validateSystomName(value,callback,1)
           this.validateSystomName(value,callback,1)
@@ -434,7 +434,8 @@
       this.getDropList();
       this.getDropList();
       //编辑时赋值
       //编辑时赋值
       const editData = this.$props.editData;
       const editData = this.$props.editData;
-      if(editData.id){
+       const isEditOrCopy = this.$props.isEditOrCopy;
+      if(isEditOrCopy){
         const trans = utils.transformKeys(editData);
         const trans = utils.transformKeys(editData);
         this.form = Object.assign({},this.form,trans);
         this.form = Object.assign({},this.form,trans);
       }
       }
@@ -450,13 +451,13 @@
       },
       },
       newType(nextVal, prevVal) {
       newType(nextVal, prevVal) {
         const editData = this.$props.editData;
         const editData = this.$props.editData;
-        if(!editData.id) {
+        if(!this.isEditOrCopy) {
           this.initForm()
           this.initForm()
         }
         }
       },
       },
       newSign(nextVal, prevVal) {
       newSign(nextVal, prevVal) {
         const editData = this.$props.editData;
         const editData = this.$props.editData;
-        if(!editData.id) {
+        if(!this.isEditOrCopy) {
           this.initForm()
           this.initForm()
         }
         }
       },
       },
@@ -478,7 +479,11 @@
             this.AdscriptionsList = res.data.data[1]
             this.AdscriptionsList = res.data.data[1]
             this.labelTypesList = res.data.data[6];
             this.labelTypesList = res.data.data[6];
             this.form.tipLis = res.data.data[6];
             this.form.tipLis = res.data.data[6];
-            this.labelTypes = this.labelTypesList;
+            if(this.isEditOrCopy && (this.form.region2=='1'||this.form.region2=='2')) {
+              this.labelTypes = this.labelTypesList.filter(item => (item.val=='1'||item.val=='2'));
+            } else {
+              this.labelTypes = this.labelTypesList;
+            }
             this.Adscriptions = this.AdscriptionsList.filter(item => Object.keys(this.labelTypesMaps).indexOf(item.val) > -1)
             this.Adscriptions = this.AdscriptionsList.filter(item => Object.keys(this.labelTypesMaps).indexOf(item.val) > -1)
           }
           }
         })
         })
@@ -707,16 +712,8 @@
     .el-message-box__btns .el-button--default {
     .el-message-box__btns .el-button--default {
         color: #606266 !important;
         color: #606266 !important;
     }
     }
-    .cancelColor {
-        color: #22ccc8 !important;
-    }
     .changeTips {
     .changeTips {
-        position: absolute;
-        left: 220px;
-        // min-width: 300px;
         width: 200%;
         width: 200%;
-        color: #ea7777;
-        font-size: 12px;
     }
     }
     }
     }
 </style>
 </style>

+ 1 - 41
src/components/icss/PubTagGroup.vue

@@ -565,43 +565,6 @@ export default {
         this.initForm()
         this.initForm()
       }
       }
       this.changeSex(tmpData);
       this.changeSex(tmpData);
-      // if(type == 3){
-      //   this.form.region7 = this.tmpSex;
-      //   this.$alert('改变性别后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region7 = tmpData
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region7 = this.tmpSex;
-      //   });
-      // }else if(type == 2){
-      //   this.form.region2 = this.tmpType
-      //   this.$alert('改变类型后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region2 = tmpData;
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region2 = this.tmpType;
-      //   });
-      // }else if(type == 1){
-      //   this.form.region1 = this.tmpOwn;
-      //   this.$alert('改变归属后,标签明细将会恢复到默认状态?', '提示', {
-      //     confirmButtonText: '确定',
-      //     cancelButtonClass: 'cancelColor',
-      //     type: 'warning'
-      //   }).then(() => {
-      //     this.form.region1 = tmpData;
-      //     this.changeSex(tmpData);
-      //   }).catch(() => {
-      //     // this.form.region1 = this.tmpOwn;
-      //   });
-      // }
     },
     },
     submitForm(formName) {
     submitForm(formName) {
       this.$refs[formName].validate((valid) => {
       this.$refs[formName].validate((valid) => {
@@ -690,14 +653,11 @@ export default {
     .el-message-box__btns .el-button--default {
     .el-message-box__btns .el-button--default {
       color: #606266 !important;
       color: #606266 !important;
     }
     }
-    .cancelColor {
-      color: #22ccc8 !important;
-    }
     .changeTips {
     .changeTips {
       position: absolute;
       position: absolute;
       left: 220px;
       left: 220px;
       // min-width: 300px;
       // min-width: 300px;
-      color: #22ccc8;
+      color: #48C5D7;
       font-size: 12px;
       font-size: 12px;
     }
     }
     .changeTipsName {
     .changeTipsName {

+ 2 - 2
src/components/icss/PubTemplateGroup.vue

@@ -349,13 +349,13 @@ export default {
     color: #606266 !important;
     color: #606266 !important;
   }
   }
   .cancelColor {
   .cancelColor {
-    color: #22ccc8 !important;
+    color: #48C5D7 !important;
   }
   }
   .changeTips {
   .changeTips {
     position: absolute;
     position: absolute;
     left: 220px;
     left: 220px;
     // min-width: 300px;
     // min-width: 300px;
-    color: #22ccc8;
+    color: #48C5D7;
     font-size: 12px;
     font-size: 12px;
   }
   }
 }
 }

+ 78 - 1
src/components/icss/SingleSelect.vue

@@ -19,6 +19,13 @@
                
                
             </div>
             </div>
             <div class="main-area">
             <div class="main-area">
+                <div class="buttonBox"> 
+             
+                    <div class="bottomPartMid bottomPartMidss fl">
+                        <p><span class="el-icon-arrow-up" @click="toggleTopDownList(1)"></span></p>
+                        <p><span class="el-icon-arrow-down" @click="toggleTopDownList(2)"></span></p>
+                    </div>
+                </div>
                 <el-col v-for="(it,i) in rows" :key="i">
                 <el-col v-for="(it,i) in rows" :key="i">
                     <el-input v-model="rows[i].name"
                     <el-input v-model="rows[i].name"
                               v-bind:class="{select:focusOn==i}"
                               v-bind:class="{select:focusOn==i}"
@@ -30,6 +37,10 @@
                 </el-col>
                 </el-col>
                 <el-button @click="addRow">+</el-button>
                 <el-button @click="addRow">+</el-button>
             </div>
             </div>
+            
+
+            
+
         </el-form>
         </el-form>
     </div>
     </div>
 </template>
 </template>
@@ -81,6 +92,30 @@
                 }
                 }
             }
             }
         }
         }
+        .buttonBox {
+            width: 10%;
+            position: absolute;
+            right: 170px;
+            margin-top: 20px;
+        }
+        .bottomPartMid {
+            width: 8%;
+            p {
+            width: 100%;
+            text-align: center;
+            span {
+                cursor: pointer;
+                display: inline-block;
+                width: 30px;
+                height: 40px;
+                line-height: 40px;
+                margin: 0 auto;
+                border: 1px solid @icssBorder;
+                margin-bottom: 15px;
+                font-size: 18px;
+            }
+            }
+        }
         
         
         .el-button{
         .el-button{
             width: 200px;
             width: 200px;
@@ -91,7 +126,7 @@
   import utils from '@api/utils.js';
   import utils from '@api/utils.js';
   import Vue from 'vue';
   import Vue from 'vue';
     export default {
     export default {
-      props:['type','options','ascription','sexType'],
+      props:['type','options','ascription','sexType','isEditOrCopy'],
       data(){
       data(){
         return {
         return {
           maps:{isBan:'同“伴”',isNone:'同“无”',defaultSelect:'默认选中',isError:'异常选项'},
           maps:{isBan:'同“伴”',isNone:'同“无”',defaultSelect:'默认选中',isError:'异常选项'},
@@ -161,7 +196,16 @@
         type(newVal, preVal) {
         type(newVal, preVal) {
             if (newVal != preVal) {
             if (newVal != preVal) {
                 if (JSON.stringify(newVal) != JSON.stringify(preVal)) {
                 if (JSON.stringify(newVal) != JSON.stringify(preVal)) {
+                  if(this.isEditOrCopy) {
+                    for(let i = 0, len = this.rows.length; i < len; i++) {
+                      this.rows[i].defaultSelect = ''
+                      this.rows[i].isBan = ''
+                      this.rows[i].isNone = ''
+                      this.rows[i].isError = ''
+                    }
+                  } else {
                     this.rows = [{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''}];
                     this.rows = [{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''},{name:'',defaultSelect:'',isBan:'',isNone:'',isError:''}];
+                  }
                 }
                 }
             }
             }
         },
         },
@@ -206,6 +250,39 @@
           }
           }
           
           
         },
         },
+        toggleTopDownList(type){
+          if(this.focusOn == '-1') {
+            return
+          }
+          const rows = JSON.parse(JSON.stringify(this.rows))
+          if(type == '1') {
+            if(this.focusOn == '0') {
+              return
+            } else {
+              let i = this.focusOn
+              let tmp1 = rows[i]
+              let tmp2 = rows[i-1]
+              rows.splice(i-1,1,tmp1)
+              rows.splice(i,1,tmp2)
+              this.rows = [...rows]
+              this.focusOn = i-1
+            }
+          } else if(type == '2') {
+            if(this.focusOn == this.rows.length-1) {
+              return
+            } else {
+               let i = this.focusOn
+              let tmp1 = rows[i]
+              let tmp2 = rows[i+1]
+              rows.splice(i,1,tmp2)
+              rows.splice(i+1,1,tmp1)
+              this.rows = [...rows]
+              this.focusOn = i+1
+            }
+          }
+           const items = utils.simpleOptionData(this.rows);
+          this.$emit('pushValues',items);
+        },
         delRow(){
         delRow(){
           if(this.focusOn==-1){
           if(this.focusOn==-1){
             this.$message({
             this.$message({

+ 42 - 3
src/components/icss/TemplateMaintenance.vue

@@ -112,6 +112,7 @@
         AdscriptionsType:[],
         AdscriptionsType:[],
         AdscriptionsOwnTo:[],
         AdscriptionsOwnTo:[],
         tagTypesList: [],
         tagTypesList: [],
+        searched: false,
         filter: {
         filter: {
           tagType: [], //标签类型
           tagType: [], //标签类型
           templateType: '', //模板类型
           templateType: '', //模板类型
@@ -137,6 +138,12 @@
       }
       }
     },
     },
     watch: {
     watch: {
+      'filter': {
+        handler: function () {
+          this.searched = false;
+        },
+        deep: true
+      },
       tmpType(newVal, preVal){
       tmpType(newVal, preVal){
         this.filter.tagAdscription = ''
         this.filter.tagAdscription = ''
         //根据类型不同删选归属
         //根据类型不同删选归属
@@ -169,6 +176,12 @@
         }
         }
       }
       }
     },
     },
+    beforeRouteEnter(to, from, next) {
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm, to.params);
+      })
+    },
     methods: {
     methods: {
       getSubTemplate() {
       getSubTemplate() {
         api.getAllDeptAndDisInfo({}).then((res) => {
         api.getAllDeptAndDisInfo({}).then((res) => {
@@ -196,6 +209,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getModuleInfoList(param).then((res) => {
         api.getModuleInfoList(param).then((res) => {
           if(res.data.code == 0){
           if(res.data.code == 0){
             const list = res.data.data.records
             const list = res.data.data.records
@@ -221,7 +235,11 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addIndeptTag() {
       addIndeptTag() {
-        this.$router.push({path:'LT-YXSJWH-TJMBWH'})
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
+        this.$router.push({name: 'TemplateMaintenanceWrap', params: pam})
       },
       },
       modifyIndeptTag(row) {
       modifyIndeptTag(row) {
         // api.detailsTag({ids:row.id}).then((res) => {
         // api.detailsTag({ids:row.id}).then((res) => {
@@ -243,8 +261,15 @@
           if(data1.code == 0){
           if(data1.code == 0){
             rightMsg = Object.assign({},data1);
             rightMsg = Object.assign({},data1);
           }
           }
-          allData = Object.assign({},topMsg,rightMsg)
-          this.$router.push({name:'TemplateMaintenanceWrap',params:{isEdit:true,data:allData}});
+          allData = Object.assign({}, topMsg, rightMsg);
+          const pam = this.searched ? {
+            currentPage: this.currentPage,
+            filter: this.filter
+          } : {currentPage: this.currentPage};
+          this.$router.push({
+            name: 'TemplateMaintenanceWrap',
+            params: Object.assign(pam, {isEdit: true, data: allData})
+          });
         })
         })
       },
       },
       currentChange(next) {
       currentChange(next) {
@@ -283,6 +308,20 @@
         this.showConfirmDialog('是否删除该标签?',()=>{
         this.showConfirmDialog('是否删除该标签?',()=>{
           api.delTemplate({ids:id,type:type}).then((res)=>{
           api.delTemplate({ids:id,type:type}).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  tagType: [], //标签类型
+                  templateType: '', //模板类型
+                  ownTo: '', //属于科室、慢病
+                  tagAdscription: '', //标签归属
+                  tagSysName: '', //标签系统名称
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.getDataList();
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
               this.warning(res.data.msg || '操作成功','success');
             }else{
             }else{

+ 8 - 6
src/components/icss/TemplateMaintenanceWrap.vue

@@ -1,9 +1,10 @@
 <template>
 <template>
   <div class="NoiseTemplateWrapper TemplateWrapper">
   <div class="NoiseTemplateWrapper TemplateWrapper">
     <crumbs
     <crumbs
-      :title="txt"
-      class="topBack"
-      linkTo="/admin/LT-YXSJWH-MBWH"
+            :title="txt"
+            class="topBack"
+            :param="$route.params"
+            linkTo="TemplateMaintenance"
     ></crumbs>
     ></crumbs>
     <PubTemplateGroup
     <PubTemplateGroup
       :editData="editData"
       :editData="editData"
@@ -65,7 +66,6 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
-    back() { this.$router.go(-1) },
     staticOwn(val){
     staticOwn(val){
       this.staticOwnTo = val
       this.staticOwnTo = val
     },
     },
@@ -150,10 +150,12 @@ export default {
           this.saveDisable = false  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
           this.saveDisable = false  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
           api.updateModuleInfo(param).then((res) => {
           api.updateModuleInfo(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
-              this.warning(res.data.msg || '修改成功', 'success','1000')
+              this.warning(res.data.msg || '修改成功', 'success', '1000');
+              //返回带搜索条件的首页
               setTimeout(() => {
               setTimeout(() => {
                 this.$router.push({
                 this.$router.push({
-                  path:'/admin/LT-YXSJWH-MBWH'
+                  name: 'TemplateMaintenance',
+                  params: Object.assign({}, this.$route.params, {currentPage: 1})
                 })
                 })
               }, 1000);
               }, 1000);
             } else {
             } else {

+ 1 - 1
src/components/icss/VersionDetail.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div>
   <div>
-    <crumbs title="版本信息维护-明细" linkTo="/admin/LT-YXSJWH-BBXXWH"></crumbs>
+    <crumbs title="版本信息维护-明细" linkTo="VersionInfo"></crumbs>
     <div class="contents">
     <div class="contents">
       <div class="content">
       <div class="content">
         <el-form ref="form" :label-position="labelPosition" label-width="85px" class="add-admin-form">
         <el-form ref="form" :label-position="labelPosition" label-width="85px" class="add-admin-form">

+ 26 - 2
src/components/icss/VersionInfo.vue

@@ -82,6 +82,7 @@
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
         total: 0,
         total: 0,
+        searched: false,
         filter: {
         filter: {
           name: ''
           name: ''
         },
         },
@@ -92,18 +93,40 @@
     created() {
     created() {
       this.getDataList();
       this.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);
+      })
+    },
     methods: {
     methods: {
       addVersion(){
       addVersion(){
         // 添加版本信息
         // 添加版本信息
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
         this.$router.push({
         this.$router.push({
           name:'AddVersion',
           name:'AddVersion',
-          params: {copy:true}
+          params: pam
         })
         })
       },
       },
       toEditVersion(row,flag){
       toEditVersion(row,flag){
+        const pam = this.searched ? {
+          currentPage: this.currentPage,
+          filter: this.filter
+        } : {currentPage: this.currentPage};
         this.$router.push({
         this.$router.push({
           name:'AddVersion',
           name:'AddVersion',
-          params: {info:row,copy:flag}
+          params: Object.assign(pam, {info: row, copy: flag})
         })
         })
       },
       },
       filterDatas(){
       filterDatas(){
@@ -112,6 +135,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.versionInfo(param).then((res) => {
         api.versionInfo(param).then((res) => {
           if (res.data.code == '0') {
           if (res.data.code == '0') {
             const data = res.data.data;
             const data = res.data.data;

+ 9 - 7
src/components/preTreat/AddCombinQuestion.vue

@@ -3,13 +3,15 @@
         <crumbs
         <crumbs
                 :title="txt"
                 :title="txt"
                 class="topBack"
                 class="topBack"
-                linkTo="/admin/LT-YWZSJWH-ZHTXDWH"
+                :param="$route.params"
+                linkTo="CombinQuestion"
         ></crumbs>
         ></crumbs>
         <PubIndeptQa
         <PubIndeptQa
                 @changeVal="changeVal"
                 @changeVal="changeVal"
                 @changeType="changeType"
                 @changeType="changeType"
                 @validatePass="validatePass"
                 @validatePass="validatePass"
                 qaType="2"
                 qaType="2"
+                :isEdit="$route.params.isEdit"
                 :editData="editData"
                 :editData="editData"
                 ref="submitForm"
                 ref="submitForm"
         ></PubIndeptQa>
         ></PubIndeptQa>
@@ -49,14 +51,13 @@
       }
       }
     },
     },
     beforeMount:function(){
     beforeMount:function(){
-      const {isEdit,data} = this.$route.params;
-      if(isEdit){
-        this.txt = '组合填写单维护-修改组合填写单';
-        this.editData = data;console.log(data)
+      const {isEdit,isCopy,data} = this.$route.params;
+      if(isEdit||isCopy){
+        this.txt = isCopy?'组合填写单维护-复制组合填写单':'组合填写单维护-修改组合填写单';
+        this.editData = data;
       }
       }
     },
     },
     methods: {
     methods: {
-      back() { this.$router.go(-1) },
       changeVal(val) {    //子组件数据改变传递到父组件
       changeVal(val) {    //子组件数据改变传递到父组件
         this.dataPub = val;
         this.dataPub = val;
         console.log('公用组件传的值都在这', val);
         console.log('公用组件传的值都在这', val);
@@ -117,7 +118,8 @@
           api.questionAdd(param).then((res) => {
           api.questionAdd(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
               this.warning(res.data.msg || '保存成功', 'success');
               this.warning(res.data.msg || '保存成功', 'success');
-              this.$router.push("/admin/LT-YWZSJWH-ZHTXDWH");
+              //返回带搜索条件的首页
+              this.$router.push({name:'CombinQuestion',params:Object.assign({},this.$route.params,{currentPage:1})});
             } else {
             } else {
               this.warning(res.data.msg)
               this.warning(res.data.msg)
             }
             }

+ 4 - 3
src/components/preTreat/AddQuestionModules.vue

@@ -3,7 +3,8 @@
         <crumbs
         <crumbs
                 :title="txt"
                 :title="txt"
                 class="topBack"
                 class="topBack"
-                linkTo="/admin/LT-YWZSJWH-MBWH"
+                :param="$route.params"
+                linkTo="QuestionModules"
         ></crumbs>
         ></crumbs>
         <div class="PubTagGroupWrapper">
         <div class="PubTagGroupWrapper">
         <el-form class="groups"
         <el-form class="groups"
@@ -180,7 +181,6 @@
       },
       },
     },
     },
     methods: {
     methods: {
-      back() { this.$router.go(-1) },
       getAvailibleType(){
       getAvailibleType(){
         api.getModuleType({moduleType:this.form.moduleType,relationId:this.form.relationId}).then((res) =>{
         api.getModuleType({moduleType:this.form.moduleType,relationId:this.form.relationId}).then((res) =>{
           if(res.data.code === '0') {
           if(res.data.code === '0') {
@@ -266,7 +266,8 @@
           api.addModule(param).then((res) => {
           api.addModule(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
               this.warning(res.data.msg || '保存成功', 'success');
               this.warning(res.data.msg || '保存成功', 'success');
-              this.$router.push("/admin/LT-YWZSJWH-MBWH");
+              //返回带搜索条件的首页
+              this.$router.push({name:'QuestionModules',params:Object.assign({},this.$route.params,{currentPage:1})});
             } else {
             } else {
               this.warning(res.data.msg)
               this.warning(res.data.msg)
             }
             }

+ 19 - 9
src/components/preTreat/AddSimpleQuestion.vue

@@ -3,7 +3,8 @@
         <crumbs
         <crumbs
                 :title="txt"
                 :title="txt"
                 class="topBack"
                 class="topBack"
-                linkTo="/admin/LT-YWZSJWH-DLTXDWH"
+                :param="param"
+                linkTo="SimpleQuestion"
         ></crumbs>
         ></crumbs>
         <PubIndeptQa
         <PubIndeptQa
                 @changeVal="changeVal"
                 @changeVal="changeVal"
@@ -46,6 +47,7 @@
     data() {
     data() {
       return {
       return {
         txt:'独立填写单维护-添加独立填写单',
         txt:'独立填写单维护-添加独立填写单',
+        param:this.$route.params,
         imgList:[],
         imgList:[],
         dataPub: {},      //公用组件传的值都在这
         dataPub: {},      //公用组件传的值都在这
         itemsTypes:[1,2],            //有明细的类型
         itemsTypes:[1,2],            //有明细的类型
@@ -54,14 +56,13 @@
       }
       }
     },
     },
     beforeMount:function(){
     beforeMount:function(){
-      const {isEdit,data} = this.$route.params;
-      if(isEdit){
-        this.txt = '独立填写单维护-修改独立填写单';
+      const {isEdit,isCopy,data} = this.$route.params;
+      if(isEdit||isCopy){
+        this.txt = isCopy?'独立填写单维护-复制独立填写单':'独立填写单维护-修改独立填写单';
         this.editData = data;
         this.editData = data;
       }
       }
     },
     },
     methods: {
     methods: {
-      back() { this.$router.go(-1) },
       changeVal(val) {   //子组件数据改变传递到父组件
       changeVal(val) {   //子组件数据改变传递到父组件
         this.dataPub = val;
         this.dataPub = val;
         //console.log('公用组件传的值都在这', val);
         //console.log('公用组件传的值都在这', val);
@@ -84,9 +85,10 @@
         let options2 = [];
         let options2 = [];
         const opts = this.options;
         const opts = this.options;
         let pureName='',pureDesc = '';
         let pureName='',pureDesc = '';
+        const reg = /(\$\{number_\S*?\})|(\$\{input_\S*?\})/g;
         for (let i = 0; i < opts.length; i++) {
         for (let i = 0; i < opts.length; i++) {
-          pureName=opts[i].name.replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
-          pureDesc = opts[i].description.replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
+          pureName=opts[i].name.replace(reg,'');
+          pureDesc = opts[i].description.replace(reg,'');
           if(pureName.length>30){
           if(pureName.length>30){
             this.warning('医生界面展示内容不能超过30个字');
             this.warning('医生界面展示内容不能超过30个字');
             return ;
             return ;
@@ -95,7 +97,14 @@
             this.warning('患者界面展示内容不能超过30个字');
             this.warning('患者界面展示内容不能超过30个字');
             return ;
             return ;
           }
           }
-
+          if(this.dataPub.region2=='3'&&(opts[i].name&&!reg.test(opts[i].name))){
+            this.$message({
+              message: '请添加数字输入框或者文本输入框',
+              type: 'warning',
+              showClose: true,
+            });
+            return;
+          }
           if(opts[i].name.trim() != '') {
           if(opts[i].name.trim() != '') {
               options2.push(this.options[i]);
               options2.push(this.options[i]);
           }else if(opts[i].description.trim() != ''){           //患者填了,医生没填,提示医生必填
           }else if(opts[i].description.trim() != ''){           //患者填了,医生没填,提示医生必填
@@ -141,7 +150,8 @@
           api.questionAdd(param).then((res) => {
           api.questionAdd(param).then((res) => {
             if (res.data.code === '0') {
             if (res.data.code === '0') {
               this.warning(res.data.msg || '保存成功', 'success');
               this.warning(res.data.msg || '保存成功', 'success');
-              this.$router.push("/admin/LT-YWZSJWH-DLTXDWH");
+              //返回带搜索条件的首页
+              this.$router.push({name:"SimpleQuestion",params:Object.assign({},this.param,{currentPage:1})});
             } else {
             } else {
               this.warning(res.data.msg)
               this.warning(res.data.msg)
             }
             }

+ 40 - 8
src/components/preTreat/CombinQuestion.vue

@@ -3,7 +3,7 @@
         <crumbs title="组合填写单维护">
         <crumbs title="组合填写单维护">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="归属:">
                 <el-form-item label="归属:">
-                    <el-select size="mini" v-model="filter.tagAdscription" @change="getValue"  placeholder="归属" clearable>
+                    <el-select size="mini" v-model="filter.tagAdscription"  placeholder="归属" clearable>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                     </el-select>
                     </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -65,10 +65,12 @@
                         :resizable = "false"
                         :resizable = "false"
                         prop="operate"
                         prop="operate"
                         label="操作"
                         label="操作"
-                        width="120">
+                        width="140">
                     <template slot-scope="scope">
                     <template slot-scope="scope">
                         <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
                         <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
                         <span style="margin:0 3px;">|</span>
                         <span style="margin:0 3px;">|</span>
+                        <el-button  @click="modifyIndeptTag(scope.row,true)" type="text" size="small">复制</el-button>
+                        <span style="margin:0 3px;">|</span>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
@@ -96,6 +98,7 @@
         tagTypes: [],
         tagTypes: [],
         Adscriptions: [],
         Adscriptions: [],
         tagTypesList:[],
         tagTypesList:[],
+        searched:false,
         filter: {
         filter: {
           tagType: [], //标签类型
           tagType: [], //标签类型
           tagAdscription: '', //标签归属
           tagAdscription: '', //标签归属
@@ -109,10 +112,21 @@
     created() {
     created() {
       this.getDropList();
       this.getDropList();
     },
     },
+    watch:{
+      'filter':{
+        handler:function(){
+          this.searched = false;
+        },
+        deep:true
+      }
+    },
+    beforeRouteEnter(to, from, next){
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm,to.params);
+      })
+    },
     methods: {
     methods: {
-      getValue(val) {
-        console.log('changeVal', val, this.filter.tagAdscription)
-      },
       getDropList() {
       getDropList() {
         api.getPreTypeList().then((res) =>{
         api.getPreTypeList().then((res) =>{
           this.getDataList();
           this.getDataList();
@@ -127,6 +141,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getQuestionList(param).then((res) => {
         api.getQuestionList(param).then((res) => {
           const list = [...res.data.data.records];
           const list = [...res.data.data.records];
           for (var i = 0; i < list.length; i++) {
           for (var i = 0; i < list.length; i++) {
@@ -151,14 +166,19 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addIndeptTag() {
       addIndeptTag() {
-        this.$router.push({path:'LT-YWZSJWH-TJZHTXD'});
+        const pam = this.searched?{currentPage:this.currentPage,
+          filter:this.filter}:{currentPage:this.currentPage};
+        this.$router.push({name:'AddCombinQuestion',
+          params:pam});
       },
       },
-      modifyIndeptTag(row) {
+      modifyIndeptTag(row,isCopy) {
         api.questionDetail({id:row.id}).then((res)=>{
         api.questionDetail({id:row.id}).then((res)=>{
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
           if(code=='0'){
           if(code=='0'){
             const infos = Object.assign({},row,data);
             const infos = Object.assign({},row,data);
-            this.$router.push({name:'AddCombinQuestion',params:{isEdit:true,data:infos}});
+            const pam = this.searched?{currentPage:this.currentPage,
+              filter:this.filter}:{currentPage:this.currentPage};
+            this.$router.push({name:'AddCombinQuestion',params:Object.assign(pam,{[isCopy?'isCopy':'isEdit']:true,data:infos})});
           }else{
           }else{
             this.$message({
             this.$message({
               message: msg,
               message: msg,
@@ -210,6 +230,18 @@
         this.showConfirmDialog('是否删除该填写单?',()=>{
         this.showConfirmDialog('是否删除该填写单?',()=>{
           api.questionDel(param).then((res)=>{
           api.questionDel(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  tagType: [], //标签类型
+                  tagAdscription: '', //标签归属
+                  tagSysName: '', //标签系统名称
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.getDataList();
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
               this.warning(res.data.msg || '操作成功','success');
             }else{
             }else{

+ 2 - 13
src/components/preTreat/PubIndeptQa.vue

@@ -53,7 +53,7 @@
             >
             >
                 <el-select
                 <el-select
                         v-model="form.region12"
                         v-model="form.region12"
-                        :disabled="!form.region1||!!editData.id"
+                        :disabled="!form.region1||isEdit"
                         @change="sendData"
                         @change="sendData"
                 >
                 >
                     <el-option
                     <el-option
@@ -207,7 +207,7 @@
 // 补充内容(val:52):单选(val:1)、多选(val:2)、多列填写(val:3)、输入框(val:6)、数字输入框(val:7)、文本域(val:5)
 // 补充内容(val:52):单选(val:1)、多选(val:2)、多列填写(val:3)、输入框(val:6)、数字输入框(val:7)、文本域(val:5)
 
 
   export default {
   export default {
-    props:['editData','qaType'],      //qaType:独立1/组合2填写单
+    props:['editData','qaType','isEdit'],      //qaType:独立1/组合2填写单
     data() {
     data() {
       var validatePass1 = (rule, value, callback) => {
       var validatePass1 = (rule, value, callback) => {
         this.validateSystomName(value,callback,1)
         this.validateSystomName(value,callback,1)
@@ -570,17 +570,6 @@
     .el-message-box__btns .el-button--default {
     .el-message-box__btns .el-button--default {
         color: #606266 !important;
         color: #606266 !important;
     }
     }
-    .cancelColor {
-        color: #22ccc8 !important;
-    }
-    .changeTips {
-        position: absolute;
-        left: 220px;
-    // min-width: 300px;
-        width: 200%;
-        color: #ea7777;
-        font-size: 12px;
-    }
     }
     }
     .el-upload-list{
     .el-upload-list{
         float: left;
         float: left;

+ 43 - 25
src/components/preTreat/PubSelect.vue

@@ -8,7 +8,7 @@
                 <el-checkbox-group size="small">
                 <el-checkbox-group size="small">
                     <el-checkbox-button :label="0" :disabled="disableBtn" @change="handlePlaceholder(1)">数字输入框占位符</el-checkbox-button>
                     <el-checkbox-button :label="0" :disabled="disableBtn" @change="handlePlaceholder(1)">数字输入框占位符</el-checkbox-button>
                 </el-checkbox-group>
                 </el-checkbox-group>
-                <el-checkbox-group size="small" v-if="type==2">
+                <el-checkbox-group size="small" v-if="type==2" v-model="checkedExc">
                     <el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
                     <el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
                 </el-checkbox-group>
                 </el-checkbox-group>
                 <el-button type="danger" size="small" class="del" @click="delRow">删除</el-button>
                 <el-button type="danger" size="small" class="del" @click="delRow">删除</el-button>
@@ -42,11 +42,11 @@
                 <el-col v-for="(it,i) in rows" :key="i">
                 <el-col v-for="(it,i) in rows" :key="i">
                     <div class="inps">
                     <div class="inps">
                         <el-input v-model="rows[i].name"
                         <el-input v-model="rows[i].name"
-                                  v-bind:class="{select:focusOn==i}"
+                                  v-bind:class="{'red':noHolder.indexOf(i)!==-1, 'select':focusOn==i}"
                                   @focus="selectRow(i,'name')"
                                   @focus="selectRow(i,'name')"
                                   ref = "inputName"
                                   ref = "inputName"
                                   @input="HandleInputName(i, rows[i].name,true)"
                                   @input="HandleInputName(i, rows[i].name,true)"
-                                  @blur="emitValues"></el-input>
+                                  @blur="emitValues(i)"></el-input>
                     </div>
                     </div>
                     <el-tag v-if="it.exclusion" type="info" size="mini">互斥项</el-tag>
                     <el-tag v-if="it.exclusion" type="info" size="mini">互斥项</el-tag>
                 </el-col>
                 </el-col>
@@ -57,6 +57,9 @@
 </template>
 </template>
 <style lang="less">
 <style lang="less">
     @import "../../less/common.less";
     @import "../../less/common.less";
+    .main-area .el-col .el-input.red .el-input__inner{
+        border-color: red;
+    }
     .el-checkbox-button--small .el-checkbox-button__inner{
     .el-checkbox-button--small .el-checkbox-button__inner{
         font-size: 14px;
         font-size: 14px;
     }
     }
@@ -146,9 +149,12 @@
     data(){
     data(){
       return {
       return {
         rows:[...initRows],
         rows:[...initRows],
+        checkedExc:false,
         focusOn:-1,         //聚焦的行index
         focusOn:-1,         //聚焦的行index
         focusName:'name',        //是否聚焦医生界面输入框
         focusName:'name',        //是否聚焦医生界面输入框
         disableBtn:false,       //占位符是否禁用
         disableBtn:false,       //占位符是否禁用
+        noHolder:'',            //是否有占位符-仅多列使用
+        msgTimer:null,          //占位符必填提示延时
       }
       }
     },
     },
     mounted(){
     mounted(){
@@ -163,20 +169,13 @@
         this.initData();
         this.initData();
       }
       }
     },
     },
-    computed:{
-      showTag:function(){
-        return function(it){
-          let name = Object.keys(this.maps).find((item)=>{
-            return it[item];
-          });
-          return this.maps[name];
-        }
-      },
-    },
     watch: {
     watch: {
       /*ascription(newVal, preVal) {        //永远检测不到,因为归属修改时类型被清空,本组件被销毁
       /*ascription(newVal, preVal) {        //永远检测不到,因为归属修改时类型被清空,本组件被销毁
         this.rows = [...utils.getInitRow(initRow,4)];
         this.rows = [...utils.getInitRow(initRow,4)];
       },*/
       },*/
+      focusOn(newVal){
+        this.checkedExc = this.rows[newVal].exclusion===1;
+      },
       type() {
       type() {
         this.initData();
         this.initData();
       },
       },
@@ -203,6 +202,7 @@
       },
       },
       handlePlaceholder(type){          //占位符类型,type=0文本输入框,type=1数字输入框
       handlePlaceholder(type){          //占位符类型,type=0文本输入框,type=1数字输入框
         const i = this.focusOn;
         const i = this.focusOn;
+        clearTimeout(this.msgTimer);
         if(i==-1){
         if(i==-1){
           this.$message({
           this.$message({
             message: '请先选中要操作的行',
             message: '请先选中要操作的行',
@@ -213,9 +213,10 @@
         }
         }
         const maps = {0:'${input_输入}',1:'${number_输入}'};
         const maps = {0:'${input_输入}',1:'${number_输入}'};
         const key = this.focusName;
         const key = this.focusName;
-        this.rows[i][key] = this.rows[i][key]+maps[type];
+        this.noHolder = this.noHolder.replace(','+i,'');
+        this.rows[i].name = this.rows[i].name+maps[type];
+        this.rows[i].description = this.rows[i].description+maps[type];
         this.disableBtn = true;
         this.disableBtn = true;
-        //this.rows[i].description = this.rows[i].description+maps[type];
       },
       },
       handleExclu(){
       handleExclu(){
         const i = this.focusOn;
         const i = this.focusOn;
@@ -227,6 +228,10 @@
           });
           });
           return ;
           return ;
         }
         }
+        if(this.rows[i].exclusion===1){
+          this.rows[i].exclusion=0;
+          return ;
+        }
         this.rows.map((it,x)=>{
         this.rows.map((it,x)=>{
           if(x===i){
           if(x===i){
             it.exclusion = 1;
             it.exclusion = 1;
@@ -235,24 +240,37 @@
           }
           }
         });
         });
       },
       },
-      emitValues(i,type,flag){
-        if(typeof i =='number'&&this.focusOn == -1){
-          this.$message({
-            message: '请先选择要操作的行',
-            type: 'warning',
-            showClose: true,
-          });
-          return;
+      emitValues(i){
+        if(typeof i ==='number'){
+          const reg = /(\$\{number_\S*?\})|(\$\{input_\S*?\})/g;
+          const name = this.rows[i].name;
+          if(name&&!reg.test(name)){
+            this.noHolder = this.noHolder.indexOf(i)!=-1?this.noHolder:this.noHolder+","+i;
+            const that = this;
+            this.msgTimer = setTimeout(function(){
+              that.$message({
+                message: '请添加数字输入框或者文本输入框',
+                type: 'warning',
+                showClose: true,
+              });
+            },500);
+
+            this.$emit('pushValues',this.rows);
+            return;
+          }
+          this.noHolder = this.noHolder.replace(','+i,'');
         }
         }
         const items = this.rows;
         const items = this.rows;
         this.$emit('pushValues',items);
         this.$emit('pushValues',items);
       },
       },
       HandleInputName(i, name, isName) {
       HandleInputName(i, name, isName) {
-        const pureName=name.replace(/(\$\{number_\S*?\})|(\$\{input_\S*?\})/g,'');
-        const hasPlace = /(\$\{number_\S*?\})|(\$\{input_\S*?\})/g.test(name);
+        const reg = /(\$\{number_\S*?\})|(\$\{input_\S*?\})/g;
+        const pureName=name.replace(reg,'');
+        const hasPlace = reg.test(name);
         if(hasPlace&&this.disableBtn==false){
         if(hasPlace&&this.disableBtn==false){
           this.disableBtn = true;
           this.disableBtn = true;
         }else if(!hasPlace&&this.disableBtn==true){
         }else if(!hasPlace&&this.disableBtn==true){
+          this.rows[i][isName?'description':'name'] = this.rows[i][isName?'description':'name'].replace(reg,'');
           this.disableBtn = false;
           this.disableBtn = false;
         }
         }
         if(pureName.length > 30) {
         if(pureName.length > 30) {

+ 38 - 7
src/components/preTreat/QuestionModules.vue

@@ -6,7 +6,7 @@
                     <el-input size="mini" v-model="filter.name" placeholder="模板名称" clearable></el-input>
                     <el-input size="mini" v-model="filter.name" placeholder="模板名称" clearable></el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item label="归属:">
                 <el-form-item label="归属:">
-                    <el-select size="mini" v-model="filter.type" @change="getValue"  placeholder="归属" clearable>
+                    <el-select size="mini" v-model="filter.type"  placeholder="归属" clearable>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                     </el-select>
                     </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -16,7 +16,7 @@
                     </el-select>
                     </el-select>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item label="归属科室:" v-if="filter.moduleType==1">
                 <el-form-item label="归属科室:" v-if="filter.moduleType==1">
-                    <el-select size="mini" v-model="filter.relationId" @change="getValue"  placeholder="归属" clearable>
+                    <el-select size="mini" v-model="filter.relationId"  placeholder="归属" clearable>
                         <el-option v-for="item in deptList" :label="item.name" :value="item.conceptId" :key="item.conceptId" ></el-option>
                         <el-option v-for="item in deptList" :label="item.name" :value="item.conceptId" :key="item.conceptId" ></el-option>
                     </el-select>
                     </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -104,6 +104,7 @@
       return {
       return {
         list: [],
         list: [],
         tagTypes: [],
         tagTypes: [],
+        searched:false,
         Adscriptions: [],
         Adscriptions: [],
         deptList:[],
         deptList:[],
         filter: {
         filter: {
@@ -120,10 +121,21 @@
     created() {
     created() {
       this.getDropList();
       this.getDropList();
     },
     },
+    watch:{
+      'filter':{
+        handler:function(){
+          this.searched = false;
+        },
+        deep:true
+      }
+    },
+    beforeRouteEnter(to, from, next){
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm,to.params);
+      })
+    },
     methods: {
     methods: {
-      getValue(val) {
-        console.log('changeVal', val, this.filter.tagAdscription)
-      },
       getDropList() {
       getDropList() {
         api.getPreTypeList().then((res) =>{
         api.getPreTypeList().then((res) =>{
           this.getDataList();
           this.getDataList();
@@ -150,6 +162,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getModuleList(param).then((res) => {
         api.getModuleList(param).then((res) => {
           if (res.data.code === '0') {
           if (res.data.code === '0') {
             const list = res.data.data&&res.data.data.records?[...res.data.data.records]:[];
             const list = res.data.data&&res.data.data.records?[...res.data.data.records]:[];
@@ -182,14 +195,19 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addModule() {
       addModule() {
-        this.$router.push({path:'LT-YWZSJWH-TJMBWH'});
+        const pam = this.searched?{currentPage:this.currentPage,
+          filter:this.filter}:{currentPage:this.currentPage};
+        this.$router.push({name:'AddQuestionModules',
+          params:pam});
       },
       },
       modifyModule(row) {
       modifyModule(row) {
         api.getModuleDetail({moduleId:row.id,type:row.type}).then((res)=>{
         api.getModuleDetail({moduleId:row.id,type:row.type}).then((res)=>{
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
           if(code=='0'){
           if(code=='0'){
             const item = Object.assign({},row,data);
             const item = Object.assign({},row,data);
-            this.$router.push({name:'AddQuestionModules',params:{isEdit:true,data:item}});
+            const pam = this.searched?{currentPage:this.currentPage,
+              filter:this.filter}:{currentPage:this.currentPage};
+            this.$router.push({name:'AddQuestionModules',params:Object.assign(pam,{isEdit:true,data:item})});
           }else{
           }else{
             this.$message({
             this.$message({
               message: msg,
               message: msg,
@@ -241,6 +259,19 @@
         this.showConfirmDialog('是否删除该模板?',()=>{
         this.showConfirmDialog('是否删除该模板?',()=>{
           api.delModule(param).then((res)=>{
           api.delModule(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                  name: '', //模板名称
+                  type: '', //模板归属
+                  moduleType: '', //模板类型
+                  relationId:'',  //归属科室
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.getDataList();
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
               this.warning(res.data.msg || '操作成功','success');
             }else{
             }else{

+ 13 - 2
src/components/preTreat/QuestionTagGroup.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
     <div class="symptomTagGroupWrapper commomSymptom clearfix">
     <div class="symptomTagGroupWrapper commomSymptom clearfix">
         <div class="operation-row">
         <div class="operation-row">
-            <el-checkbox-group size="small" v-if="qaType==2">
+            <el-checkbox-group size="small" v-if="qaType==2" v-model="checkedExc">
                 <el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
                 <el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
             </el-checkbox-group>
             </el-checkbox-group>
         </div>
         </div>
@@ -64,6 +64,7 @@ export default {
     props: ['ascription','sexType','options','type','qaType','relationId'],
     props: ['ascription','sexType','options','type','qaType','relationId'],
     data() {
     data() {
         return {
         return {
+            checkedExc:false,
             leftTagsList: [],
             leftTagsList: [],
             selectLeftTagsList: [],
             selectLeftTagsList: [],
             rightTagsList: [],
             rightTagsList: [],
@@ -106,6 +107,12 @@ export default {
         relationId(newVal, preVal){
         relationId(newVal, preVal){
           this.ifReflashTagList(newVal, preVal);
           this.ifReflashTagList(newVal, preVal);
         },
         },
+        'selectRightTagsList':{
+          handler:function(newVal){
+            this.checkedExc = newVal[0]&&newVal[0].exclusionType===1;
+          },
+          deep:true
+        }
     },
     },
     methods: {
     methods: {
         handleExclu(){
         handleExclu(){
@@ -119,7 +126,11 @@ export default {
             }
             }
             const arr = this.rightTagsList.map((it)=>{
             const arr = this.rightTagsList.map((it)=>{
               if(it.id==this.selectRightTagsList[0].id){
               if(it.id==this.selectRightTagsList[0].id){
-                it.exclusionType=1;
+                if(it.exclusionType===1){
+                  it.exclusionType = 0
+                }else{
+                  it.exclusionType=1;
+                }
               }else{
               }else{
                 it.exclusionType=0;
                 it.exclusionType=0;
               }
               }

+ 56 - 7
src/components/preTreat/SimpleQuestion.vue

@@ -3,7 +3,7 @@
         <crumbs title="独立填写单维护">
         <crumbs title="独立填写单维护">
             <el-form :inline="true" class="demo-form-inline">
             <el-form :inline="true" class="demo-form-inline">
                 <el-form-item label="归属:">
                 <el-form-item label="归属:">
-                    <el-select size="mini" v-model="filter.tagAdscription" @change="getValue"  placeholder="归属" clearable>
+                    <el-select size="mini" v-model="filter.tagAdscription"  placeholder="归属" clearable>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                         <el-option v-if="item.val!=6&&item.val!=7&&item.val!=8&&item.val!=9&&item.val!=10&&item.val!=21&&item.val!=22" v-for="item in Adscriptions" :label="item.name" :value="item.val" :key="item.id" ></el-option>
                     </el-select>
                     </el-select>
                 </el-form-item>
                 </el-form-item>
@@ -65,10 +65,12 @@
                         :resizable = "false"
                         :resizable = "false"
                         prop="operate"
                         prop="operate"
                         label="操作"
                         label="操作"
-                        width="120">
+                        width="140">
                     <template slot-scope="scope">
                     <template slot-scope="scope">
                         <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
                         <el-button  @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
                         <span style="margin:0 3px;">|</span>
                         <span style="margin:0 3px;">|</span>
+                        <el-button  @click="copyIndeptTag(scope.row)" type="text" size="small">复制</el-button>
+                        <span style="margin:0 3px;">|</span>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                         <el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
                     </template>
                     </template>
                 </el-table-column>
                 </el-table-column>
@@ -96,6 +98,7 @@
         tagTypes: [],
         tagTypes: [],
         Adscriptions: [],
         Adscriptions: [],
         tagTypesList:[],
         tagTypesList:[],
+        searched:false,
         filter: {
         filter: {
           tagType: [], //标签类型
           tagType: [], //标签类型
           controlType: [],
           controlType: [],
@@ -110,10 +113,21 @@
     created() {
     created() {
       this.getDropList();
       this.getDropList();
     },
     },
+    watch:{
+      'filter':{
+        handler:function(){
+          this.searched = false;
+        },
+        deep:true
+      }
+    },
+    beforeRouteEnter(to, from, next){
+      next(vm => {
+        //const pm = to.param;
+        Object.assign(vm,to.params);
+      })
+    },
     methods: {
     methods: {
-      getValue(val) {
-        console.log('changeVal', val, this.filter.tagAdscription)
-      },
       getDropList() {
       getDropList() {
         api.getPreTypeList().then((res) =>{
         api.getPreTypeList().then((res) =>{
           this.getDataList();
           this.getDataList();
@@ -128,6 +142,7 @@
       },
       },
       getDataList() {
       getDataList() {
         const param = this.getFilterItems();
         const param = this.getFilterItems();
+        this.searched = true;
         api.getQuestionList(param).then((res) => {
         api.getQuestionList(param).then((res) => {
           const list = [...res.data.data.records];
           const list = [...res.data.data.records];
           for (var i = 0; i < list.length; i++) {
           for (var i = 0; i < list.length; i++) {
@@ -152,14 +167,35 @@
         this.getDataList();
         this.getDataList();
       },
       },
       addIndeptTag() {
       addIndeptTag() {
-        this.$router.push({path:'LT-YWZSJWH-TJDLTXD'})
+        const pam = this.searched?{currentPage:this.currentPage,
+            filter:this.filter}:{currentPage:this.currentPage};
+        this.$router.push({name:'AddSimpleQuestion',
+                            params:pam})
+      },
+      copyIndeptTag(row){
+        api.questionDetail({id:row.id}).then((res)=>{
+          const {code,data,msg} = res.data;
+          if(code=='0'){
+            const item = Object.assign({},row,data);
+            const pam = this.searched?{currentPage:this.currentPage,
+              filter:this.filter}:{currentPage:this.currentPage};
+            this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isCopy:true,data:item})});
+          }else{
+            this.$message({
+              message: msg,
+              type: 'warning'
+            });
+          }
+        });
       },
       },
       modifyIndeptTag(row) {
       modifyIndeptTag(row) {
         api.questionDetail({id:row.id}).then((res)=>{
         api.questionDetail({id:row.id}).then((res)=>{
           const {code,data,msg} = res.data;
           const {code,data,msg} = res.data;
           if(code=='0'){
           if(code=='0'){
             const item = Object.assign({},row,data);
             const item = Object.assign({},row,data);
-            this.$router.push({name:'AddSimpleQuestion',params:{isEdit:true,data:item}});
+            const pam = this.searched?{currentPage:this.currentPage,
+              filter:this.filter}:{currentPage:this.currentPage};
+            this.$router.push({name:'AddSimpleQuestion',params:Object.assign(pam,{isEdit:true,data:item})});
           }else{
           }else{
             this.$message({
             this.$message({
               message: msg,
               message: msg,
@@ -218,6 +254,19 @@
         this.showConfirmDialog('是否删除该填写单?',()=>{
         this.showConfirmDialog('是否删除该填写单?',()=>{
           api.questionDel(param).then((res)=>{
           api.questionDel(param).then((res)=>{
             if(res.data.code=='0'){
             if(res.data.code=='0'){
+              if(!this.searched){
+                //未点确认时清空搜索条件
+                this.filter={
+                    tagType: [], //标签类型
+                    controlType: [],
+                    tagAdscription: '', //标签归属
+                    tagSysName: '', //标签系统名称
+                };
+              }
+              if(this.list.length==1){
+                //当前在最后一页且只有一条数据时,删除后跳到前一页
+                this.currentPage = this.currentPage===1?1:this.currentPage-1;
+              }
               this.getDataList();
               this.getDataList();
               this.warning(res.data.msg || '操作成功','success');
               this.warning(res.data.msg || '操作成功','success');
             }else{
             }else{

+ 8 - 1
src/less/common.less

@@ -16,7 +16,7 @@
 @borderWidth: 2px;
 @borderWidth: 2px;
 
 
 /*朗通后台基本颜色*/
 /*朗通后台基本颜色*/
-@adminBase: #22ccc8;
+@adminBase: #48C5D7;
 @icssBorder: #c0c4cc;
 @icssBorder: #c0c4cc;
 @icssHeight:240px;
 @icssHeight:240px;
 
 
@@ -115,6 +115,13 @@
 .el-button--mini, .el-button--mini.is-round {
 .el-button--mini, .el-button--mini.is-round {
   padding: 5px 15px 4px;
   padding: 5px 15px 4px;
 }
 }
+.el-button--warning.el-button--mini{
+  background: @adminBase;
+  border:1px @adminBase solid;
+}
+.el-form-item.is-success .el-input__inner, .el-form-item.is-success .el-input__inner:focus, .el-form-item.is-success .el-textarea__inner, .el-form-item.is-success .el-textarea__inner:focus{
+  border-color:@adminBase;
+}
 
 
 .el-table td {
 .el-table td {
   padding: 0;
   padding: 0;

+ 8 - 3
src/routes.js

@@ -93,6 +93,8 @@ import AddCombinQuestion from '@components/preTreat/AddCombinQuestion.vue';
 import QuestionModules from '@components/preTreat/QuestionModules.vue';
 import QuestionModules from '@components/preTreat/QuestionModules.vue';
 import AddQuestionModules from '@components/preTreat/AddQuestionModules.vue';
 import AddQuestionModules from '@components/preTreat/AddQuestionModules.vue';
 
 
+import QuestionWords from '@components/diagBase/QuestionWords.vue';
+
 export default [
 export default [
   {
   {
     path: '/',
     path: '/',
@@ -150,6 +152,7 @@ export default [
         component: AuthedAdmin
         component: AuthedAdmin
       },
       },
     	{
     	{
+    	  name:'organizationInfo',
     	  path: 'LT-KHZX-JGXX',//机构信息
     	  path: 'LT-KHZX-JGXX',//机构信息
         component: OrganizationInfo,
         component: OrganizationInfo,
         meta:{
         meta:{
@@ -165,6 +168,7 @@ export default [
         component: ModifinedOrga
         component: ModifinedOrga
       },
       },
       {
       {
+        name:'superAdmin',
         path: 'LT-KHZX-CGXX',
         path: 'LT-KHZX-CGXX',
         component: SuperAdmin
         component: SuperAdmin
       },
       },
@@ -190,9 +194,9 @@ export default [
       {path: 'LT-CPXGL', component: ProductLinesManage},
       {path: 'LT-CPXGL', component: ProductLinesManage},
       {path: 'LT-CPXGL-TJCPX', component: AddProductLine,name:'editProductLine'},
       {path: 'LT-CPXGL-TJCPX', component: AddProductLine,name:'editProductLine'},
       {path: 'LT-GRZX/CHANGE',component: ChangePwd}, //个人中心--修改密码
       {path: 'LT-GRZX/CHANGE',component: ChangePwd}, //个人中心--修改密码
-      {path: 'LT-YXSJWH-BQZWH',component: LabelGroup}, //医学数据维护--标签组维护
+      {path: 'LT-YXSJWH-BQZWH',component: LabelGroup,name:'labelGroup'}, //医学数据维护--标签组维护
       {path:'LT-YXSJWH-TJBQZ',component:NoiseTemplate,name:'AddLabelGroup'},     //医学数据维护--标签组维护--添加标签组
       {path:'LT-YXSJWH-TJBQZ',component:NoiseTemplate,name:'AddLabelGroup'},     //医学数据维护--标签组维护--添加标签组
-      {path:'LT-YXSJWH-KSWH',component:DeptInfo},     //医学数据维护--科室维护
+      {path:'LT-YXSJWH-KSWH',component:DeptInfo,name:'deptInfo'},     //医学数据维护--科室维护
       {path:'LT-YXSJWH-KSXQ',component:DeptInfoDetail,name:'DeptInfoDetail'},     //科室维护--详情
       {path:'LT-YXSJWH-KSXQ',component:DeptInfoDetail,name:'DeptInfoDetail'},     //科室维护--详情
       {path:'LT-YXSJWH-TJKS',component:AddDeptInfo,name:'AddDeptInfo'},     //科室维护--添加
       {path:'LT-YXSJWH-TJKS',component:AddDeptInfo,name:'AddDeptInfo'},     //科室维护--添加
       {path:'LT-YXSJWH-DLLXBQWH',component:IndeptLabel,name:'IndeptLabel'},     //独立标签维护--详情
       {path:'LT-YXSJWH-DLLXBQWH',component:IndeptLabel,name:'IndeptLabel'},     //独立标签维护--详情
@@ -251,7 +255,8 @@ export default [
       {path:'LT-YWZSJWH-TJZHTXD',component:AddCombinQuestion,name:'AddCombinQuestion'},  //预问诊-添加组合填写单
       {path:'LT-YWZSJWH-TJZHTXD',component:AddCombinQuestion,name:'AddCombinQuestion'},  //预问诊-添加组合填写单
       {path:'LT-YWZSJWH-MBWH',component:QuestionModules,name:'QuestionModules'},  //预问诊-模板维护
       {path:'LT-YWZSJWH-MBWH',component:QuestionModules,name:'QuestionModules'},  //预问诊-模板维护
       {path:'LT-YWZSJWH-TJMBWH',component:AddQuestionModules,name:'AddQuestionModules'},  //预问诊-添加模板
       {path:'LT-YWZSJWH-TJMBWH',component:AddQuestionModules,name:'AddQuestionModules'},  //预问诊-添加模板
-
+      
+      {path:'LT-ZDYJWH-WTCSJWH',component:QuestionWords,name:'QuestionWords'},  //问题列表
 
 
     ]
     ]
   }
   }

+ 1 - 2
vue.config.js

@@ -1,7 +1,6 @@
 const path = require('path');
 const path = require('path');
-// const proxy_path = 'http://192.168.2.236:80';
-// const proxy_path = 'http://192.168.2.241:88';
 const proxy_path = 'http://192.168.2.236:88';
 const proxy_path = 'http://192.168.2.236:88';
+// const proxy_path = 'http://192.168.2.241:88';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
 // const proxy_path = 'http://192.168.3.115:5050';
 // const proxy_path = 'http://192.168.3.115:5050';