浏览代码

慢病指标值维护

zhangxc 6 年之前
父节点
当前提交
a0836ae112

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

@@ -40,7 +40,7 @@
                         class="diagItem ellipsis"
                         :title="item.conceptName"
                         @click="selectIndex(item)"
-                        :key="item.conceptName">
+                        :key="item.conceptId">
                         {{item.conceptName}}
                         </li>
                     </ul>
@@ -49,12 +49,12 @@
                 
                 <tr>
                     <td class="selectedContent">已选择内容</td>
-                    <td class="selectedContentGrop">已选内容分组(只可输入数字,相同数字归为一组展示)</td>
+                    <td class="selectedContentGroup">已选内容分组(只可输入数字,相同数字归为一组展示)</td>
                     <td class="selectedContentOpera">操作</td>
                 </tr>
                 <tr v-for="(item, index) in selectedIndexList" :key="item.indexUnique"> 
                     <td class="selectedContent ">{{item.indexUnique}}</td>
-                    <td class="selectedContentGrop"><input class="groupInput" type="number" v-model="item.indexDesc" ></td>
+                    <td class="selectedContentGroup"><input class="groupInput" type="number" @input="handleInputGroup" v-model="item.indexDesc" ></td>
                     <td class="selectedContentOpera"><el-button type="text" size="small" class="delete" @click="delSelectedIndex(item, index)">删除</el-button></td>
                 </tr>
             </table>
@@ -120,8 +120,8 @@
         close() {
             this.diagList = [];
             this.indexList = [];
-            this.$refs['diagList'].style.display = 'none';
-            this.$refs['indexList'].style.display = 'none';
+            if(this.diagList.length>0){this.$refs['diagList'].style.display = 'none';}
+            if(this.indexList.length>0){this.$refs['indexList'].style.display = 'none';}
         },
         back(){
             this.$router.go(-1);
@@ -172,7 +172,7 @@
             })
         },
         selectIndex(item) {
-            this.selectedIndexList.push({indexUnique: item.conceptName, indexDesc:''})
+            this.selectedIndexList.push({indexUnique: item.conceptName, conceptId: item.conceptId, indexDesc:''})
             this.selectedIndexMap.push(item.conceptName)
             this.indexList = []
             this.$refs['indexList'].style.display='none'
@@ -336,7 +336,7 @@
             .selectedContent {
                 width: 25%;
             }
-            .selectedContentGrop {
+            .selectedContentGroup {
                 width: 55%;
             }
             .selectedContentOpera {

+ 9 - 0
src/components/icss/IndeptLabel.vue

@@ -54,6 +54,15 @@
                         prop="tagName"
                         label="标签系统名称">
                 </el-table-column>
+                <el-table-column
+                    :resizable = "false"
+                    label="标签名称已存在与标准术语">
+                    <template slot-scope="scope">
+                        <span>
+                            {{scope.row.exist ? "已存在" : "未存在"}}
+                        </span>
+                    </template>
+                </el-table-column>
                 <el-table-column
                         :resizable = "false"
                         prop="modifier"

+ 19 - 1
src/components/icss/LabelGroup.vue

@@ -15,6 +15,11 @@
                 <el-form-item label="标签系统名称:">
                     <el-input size="mini" v-model="filter.tagSysName" placeholder="标签系统名称" clearable></el-input>
                 </el-form-item>
+                 <!-- <el-form-item label="标签名称已存在与标准术语:">
+                    <el-select size="mini" v-model="filter.isExist" placeholder="" clearable>
+                        <el-option v-for="item in isExistList" :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>
@@ -54,6 +59,15 @@
                     prop="tagName"
                     label="标签系统名称">
                 </el-table-column>
+                <el-table-column
+                    :resizable = "false"
+                    label="标签名称已存在与标准术语">
+                    <template slot-scope="scope">
+                        <span>
+                            {{scope.row.exist ? "已存在" : "未存在"}}
+                        </span>
+                    </template>
+                </el-table-column>
                 <el-table-column
                     :resizable = "false"
                     prop="modifier"
@@ -107,10 +121,14 @@ export default {
             tagTypes: [],
             Adscriptions: [],   //标签归属列表
             tagTypesList: [],   //标签类型列表
+            isExistList: [
+
+            ],
             filter: {
                 tagType: [], //标签类型
                 tagAdscription: '', //标签归属
                 tagSysName: '', //标签系统名称
+                isExist: '' //标签名称已存在与标准术语
             },
             currentPage: 1,
             pageSize: 10,
@@ -125,7 +143,7 @@ export default {
     },
     methods: {
         getValue(val) {
-            console.log('changeVal', val, this.filter.tagAdscription)
+            // console.log('changeVal', val, this.filter.tagAdscription)
         },
         getDropList() {
             return api.getDropList().then((res) =>{