浏览代码

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

xiaochan 2 年之前
父节点
当前提交
42bc89f3dd
共有 1 个文件被更改,包括 8 次插入1 次删除
  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()