Browse Source

Merge branch 'master' of https://172.16.32.165/lighter/vue-intergration-platform

xiaochan 2 năm trước cách đây
mục cha
commit
42bc89f3dd
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      src/views/clinic/interactive/Comments.vue

+ 8 - 1
src/views/clinic/interactive/Comments.vue

@@ -12,7 +12,8 @@
       </el-select>
       <el-input v-model="inquiry.doctorName" placeholder="医生姓名" clearable style="width: 90px"></el-input>
       <el-divider direction="vertical"></el-divider>
-      <el-button icon="Search" type="primary" @click="handleClickSearch">检索</el-button>
+      <el-button icon="Search" type="primary" @click="handleClickSearch" style="margin-right: 12px">检索</el-button>
+      <el-checkbox v-model="inquiry.onlyValidComments" @change="handleCheckboxChange">只看有内容的评价</el-checkbox>
     </template>
     <template #main>
       <el-table :data="comments.list" stripe :height="tableHeight" highlight-current-row>
@@ -99,6 +100,7 @@ const inquiry = reactive({
   deleted: null,
   pageNum: 1,
   pageSize: 15,
+  onlyValidComments: false,
 })
 
 const comments = reactive({
@@ -116,6 +118,11 @@ const handleClickSearch = () => {
   })
 }
 
+const handleCheckboxChange = () => {
+  inquiry.pageNum = 1
+  handleClickSearch()
+}
+
 const handleSizeChange = (val) => {
   inquiry.pageSize = val
   handleClickSearch()