|  |  | 
 |  |  |           v-show="showSearch" | 
 |  |  |           label-width="98px" | 
 |  |  |         > | 
 |  |  |           <el-form-item label="姓名" prop="name"> | 
 |  |  |           <el-form-item label="患者姓名" width="100" prop="name"> | 
 |  |  |             <el-input | 
 |  |  |               v-model="queryParams.name" | 
 |  |  |               placeholder="请输入姓名" | 
 |  |  |               clearable | 
 |  |  |               style="width: 200px" | 
 |  |  |               @keyup.enter.native="handleQuery" | 
 |  |  |             /> | 
 |  |  |           </el-form-item> | 
 |  |  |           <el-form-item label="过滤医生" width="100" prop="filterDrname"> | 
 |  |  |             <el-input | 
 |  |  |               v-model="queryParams.filterDrname" | 
 |  |  |               placeholder="请输入医生姓名" | 
 |  |  |               clearable | 
 |  |  |               style="width: 200px" | 
 |  |  |               @keyup.enter.native="handleQuery" | 
 |  |  | 
 |  |  |             </el-select> | 
 |  |  |           </el-form-item> --> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |           <el-row> | 
 |  |  |  | 
 |  |  |             <el-form-item> | 
 |  |  |               <el-button | 
 |  |  |                 type="primary" | 
 |  |  | 
 |  |  |           </el-row> | 
 |  |  |         </el-form> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |         <el-table | 
 |  |  |           v-loading="loading" | 
 |  |  |           :data="userList" | 
 |  |  | 
 |  |  |           <el-table-column | 
 |  |  |             fixed | 
 |  |  |             label="姓名" | 
 |  |  |             width="100" | 
 |  |  |             align="center" | 
 |  |  |             key="name" | 
 |  |  |             prop="name" | 
 |  |  |           /> | 
 |  |  |           <el-table-column label="性别" align="center" key="sex" prop="sex"> | 
 |  |  |           <el-table-column | 
 |  |  |             label="性别" | 
 |  |  |             width="100" | 
 |  |  |             align="center" | 
 |  |  |             key="sex" | 
 |  |  |             prop="sex" | 
 |  |  |           > | 
 |  |  |             <template slot-scope="scope"> | 
 |  |  |               <span>{{ scope.row.sex == 1 ? "男" : "女" }}</span> | 
 |  |  |             </template> | 
 |  |  | 
 |  |  |             prop="placeOfResidence" | 
 |  |  |             width="180" | 
 |  |  |             :show-overflow-tooltip="true" | 
 |  |  |           /> | 
 |  |  |           <el-table-column | 
 |  |  |             label="过滤医生" | 
 |  |  |             align="center" | 
 |  |  |             key="filterDrname" | 
 |  |  |             prop="filterDrname" | 
 |  |  |           /> | 
 |  |  |           <el-table-column | 
 |  |  |             label="患者标签" | 
 |  |  | 
 |  |  |                 @click=" | 
 |  |  |                   $router.push({ | 
 |  |  |                     path: '/patient/patient/profile/', | 
 |  |  |                     query: { id: scope.row.patid }, | 
 |  |  |                     query: { id: scope.row.id }, | 
 |  |  |                   }) | 
 |  |  |                 " | 
 |  |  |  | 
 |  |  |                 ><span class="button-textsc" | 
 |  |  |                   ><i class="el-icon-zoom-in"></i>查看</span | 
 |  |  |                 ></el-button | 
 |  |  | 
 |  |  |                 size="medium" | 
 |  |  |                 type="text" | 
 |  |  |                 @click="handleDelete(scope.row)" | 
 |  |  |  | 
 |  |  |                 ><span class="button-textxga" | 
 |  |  |                   ><i class="el-icon-edit"></i>取消过滤</span | 
 |  |  |                 ></el-button | 
 |  |  | 
 |  |  |         /> | 
 |  |  |       </el-col> | 
 |  |  |     </el-row> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |   </div> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | 
 |  |  | import { delUser } from "@/api/system/user"; | 
 |  |  |  | 
 |  |  | import { | 
 |  |  |   messagelistpatient, | 
 |  |  |   patarchivelist, | 
 |  |  |   alterpatient, | 
 |  |  |   addfiltration, | 
 |  |  |   particularpatient, | 
 |  |  | 
 |  |  |       propss: { multiple: true }, | 
 |  |  |       optionstag: [], //标签列表 | 
 |  |  |       Patientrange: [ | 
 |  |  |       { | 
 |  |  |         { | 
 |  |  |           value: 0, | 
 |  |  |           label: "所属患者", | 
 |  |  |         }, | 
 |  |  | 
 |  |  |     /** 查询患者列表 */ | 
 |  |  |     getList() { | 
 |  |  |       this.loading = true; | 
 |  |  |  | 
 |  |  |       messagelistpatient(this.queryParams).then((response) => { | 
 |  |  |       patarchivelist(this.queryParams).then((response) => { | 
 |  |  |         console.log(response); | 
 |  |  |         this.userList = response.rows; | 
 |  |  |         this.total = response.total; | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     /** 重置按钮操作 */ | 
 |  |  |     resetQuery() { | 
 |  |  |       this.dateRange = []; | 
 |  |  |       this.resetForm("queryForm"); | 
 |  |  |       this.$refs.tree.setCurrentKey(null); | 
 |  |  |       this.handleQuery(); | 
 |  |  |       (this.queryParams = { | 
 |  |  |         pageNum: 1, | 
 |  |  |         pageSize: 10, | 
 |  |  |         allhosp: "1", | 
 |  |  |         notrequiredFlag: 1, | 
 |  |  |       }), | 
 |  |  |         this.handleQuery(); | 
 |  |  |     }, | 
 |  |  |     // 多选框选中数据 | 
 |  |  |     handleSelectionChange(selection) { | 
 |  |  | 
 |  |  |       const userIds = row.id || this.ids; | 
 |  |  |       this.$modal | 
 |  |  |         .confirm('是否确认取消用户编号为"' + userIds + '"的数据项过滤?') | 
 |  |  |         .then( ()=> { | 
 |  |  |           row.notrequiredFlag=0 | 
 |  |  |         .then(() => { | 
 |  |  |           row.notrequiredFlag = 0; | 
 |  |  |           alterpatient(row) | 
 |  |  |           .then((response) => { | 
 |  |  |             console.log(response); | 
 |  |  |           }) | 
 |  |  |           .then(() => { | 
 |  |  |             this.getList(); | 
 |  |  |             this.$modal.msgSuccess("修改成功"); | 
 |  |  |           }); | 
 |  |  |             .then((response) => { | 
 |  |  |               console.log(response); | 
 |  |  |             }) | 
 |  |  |             .then(() => { | 
 |  |  |               this.getList(); | 
 |  |  |               this.$modal.msgSuccess("修改成功"); | 
 |  |  |             }); | 
 |  |  |         }) | 
 |  |  |  | 
 |  |  |         .catch(() => {}); | 
 |  |  | 
 |  |  |     /** 下载模板操作 */ | 
 |  |  |     importTemplate() { | 
 |  |  |       this.download( | 
 |  |  |         "system/user/importTemplate", | 
 |  |  |         "smartor/import/getImportPatTemplate", | 
 |  |  |         {}, | 
 |  |  |         `user_template_${new Date().getTime()}.xlsx` | 
 |  |  |       ); | 
 |  |  | 
 |  |  |     height: 100px; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | .button-textxga { | 
 |  |  |   color: #de7897; | 
 |  |  | } | 
 |  |  | .button-textsc { | 
 |  |  |   color: #28cfe6; | 
 |  |  |   color: #3664D9; | 
 |  |  | } | 
 |  |  | </style> |