zsw007 3 tahun lalu
induk
melakukan
7263f13346
1 mengubah file dengan 39 tambahan dan 17 penghapusan
  1. 39 17
      src/components/callRecord/CallRecordManager.vue

+ 39 - 17
src/components/callRecord/CallRecordManager.vue

@@ -1,12 +1,12 @@
 <template>
   <div>
     <crumbs title="调用记录" style="min-width: 1200px" class="knowledgeTitle">
-      <el-form :inline="true" class="demo-form-inline">
+      <el-form :inline="true" :rules="rulesFrom" class="demo-form-inline">
         <el-form-item label="患者标识:" prop="patientId">
           <el-input
             size="mini"
             v-model="filter.patientId"
-            placeholder="输入规则名称"
+            placeholder="输入患者标识名称"
             clearable
           ></el-input>
         </el-form-item>
@@ -14,7 +14,7 @@
           <el-input
             size="mini"
             v-model="filter.sceneName"
-            placeholder="输入规则名称"
+            placeholder="输入服务名称"
             clearable
           ></el-input>
         </el-form-item>
@@ -77,7 +77,7 @@
           <el-button size="mini" @click="filterDatas">确认</el-button>
         </el-form-item> -->
       </el-form>
-      <el-form class="secLine" :inline="true">
+      <el-form class="secLine" :rules="rulesFrom" :inline="true">
         <el-form-item label="状态:">
           <el-select
             v-model="filter.successFlag"
@@ -93,11 +93,11 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="院区:">
+        <el-form-item label="院区:" prop="subHospitalName">
           <el-input
             size="mini"
             v-model="filter.subHospitalName"
-            placeholder="输入规则名称"
+            placeholder="输入子院区名称"
             clearable
           ></el-input>
         </el-form-item>
@@ -123,7 +123,7 @@
             <span>{{ scope.row.patientId === null? '-' : scope.row.patientId }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="服务名" align="center">
+        <el-table-column label="服务名" align="center">
           <template slot-scope="scope">{{ scope.row.sceneName }}</template>
         </el-table-column>
         <el-table-column prop="parConceptName" label="请求内容" align="center" width="100">
@@ -193,9 +193,7 @@
             <el-button
               type="text"
               size="small"
-              @click="editData(scope.row.parId)"
               align="center"
-              :style="scope.row.successFlag === 1? 'color: #48c5d7;' : 'color:#ff0000'"
             >
               {{ scope.row.successFlag === 1 ? "成功" : "失败" }}
             </el-button>
@@ -208,7 +206,9 @@
           width="100"
         >
         <template slot-scope="scope">
-            <span>{{ scope.row.subHospitalName === null? '-' : scope.row.patientId }}</span>
+            <span class="code-name">
+              {{ scope.row.subHospitalName === null? '-' : scope.row.patientId }}
+            </span>
           </template>
         </el-table-column>
         <el-table-column
@@ -218,7 +218,8 @@
           width="100"
         >
         <template slot-scope="scope">
-            <span>{{ scope.row.subHospitalCode === null? '-' : scope.row.patientId }}</span>
+            <span class="code-name">
+              {{ scope.row.subHospitalCode === null? '-' : scope.row.patientId }}</span>
           </template>
         </el-table-column>
       </el-table>
@@ -236,8 +237,8 @@
       <el-dialog
         title="请求日志信息"
         :visible.sync="reqVisible"
-        width="450px"
-        height="280px"
+        width="700px"
+        height="600px"
         >
         <div>{{params}}</div>
       </el-dialog>
@@ -246,8 +247,8 @@
       <el-dialog
         title="响应日志信息"
         :visible.sync="respVisible"
-        width="450px"
-        height="280px"
+        width="700px"
+        height="600px"
         >
         <div>{{result}}</div>
       </el-dialog>
@@ -277,7 +278,7 @@ export default {
         successFlag: "",
         patientId: "",
         sceneName: "",
-        subHospitalName: '' // 院区
+        subHospitalName: '' // 院区
       },
       cacheData: {},
       currentPage: 1,
@@ -291,7 +292,18 @@ export default {
       reqVisible: false,
       respVisible: false,
       params: '',
-      result: ''
+      result: '',
+      rulesFrom: {
+        patientId: [
+            {required: true, max: 50, message: '患者标识字符长度小于50个字符', trigger: 'blur' }
+          ],
+          sceneName: [
+            {required: true, max: 50, message: '服务名称字符长度小于50个字符', trigger: 'blur' }
+          ],
+          subHospitalName: [
+            {required: true, max: 50, message: '子院区字符长度小于50个字符', trigger: 'blur' }
+          ]
+      }
     };
   },
   created() {
@@ -570,4 +582,14 @@ export default {
   color: #ff0000;
 }
 
+.code-name {
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 1;
+  overflow: hidden;
+   white-space: nowrap;
+   text-overflow: ellipsis;
+  -o-text-overflow:ellipsis;
+}
+
 </style>