|  |  | 
 |  |  | <template> | 
 |  |  |   <div>宣教管理</div> | 
 |  |  |   <div class="educationmanagement"> | 
 |  |  |     <!-- 左侧栏 --> | 
 |  |  |     <div class="sidecolumn"> | 
 |  |  |       <div class="sidecolumn-top"> | 
 |  |  |         <div class="top-wj">宣教类型</div> | 
 |  |  |         <div class="top-tj" @click="dialogFormVisible = true">+添加类别</div> | 
 |  |  |       </div> | 
 |  |  |       <div class="center-ss"> | 
 |  |  |         <el-input | 
 |  |  |           placeholder="请输入内容" | 
 |  |  |           v-model="sidecolumnval" | 
 |  |  |           class="input-with-select" | 
 |  |  |           size="medium " | 
 |  |  |         > | 
 |  |  |           <el-button | 
 |  |  |             @click="sidecolumnss" | 
 |  |  |             slot="append" | 
 |  |  |             icon="el-icon-search" | 
 |  |  |           ></el-button> | 
 |  |  |         </el-input> | 
 |  |  |       </div> | 
 |  |  |       <div class="bottom-fl"> | 
 |  |  |         <el-tabs tab-position="right"> | 
 |  |  |           <el-tab-pane :label="`全部 (${numberlb})`"></el-tab-pane> | 
 |  |  |           <el-tab-pane | 
 |  |  |             class="tab-paness" | 
 |  |  |             :key="item.name" | 
 |  |  |             v-for="(item, index) in editableTabs" | 
 |  |  |             :label="item.title + ' (' + item.number + ')'" | 
 |  |  |           ></el-tab-pane> | 
 |  |  |  | 
 |  |  |           <el-tab-pane :label="`未分组(${numberlbs})`"></el-tab-pane> | 
 |  |  |         </el-tabs> | 
 |  |  |       </div> | 
 |  |  |     </div> | 
 |  |  |     <!-- 右侧数据 --> | 
 |  |  |     <div class="leftvlue"> | 
 |  |  |       <div class="leftvlue-top"> | 
 |  |  |         <el-tabs v-model="topactiveName" @tab-click="tophandleClick"> | 
 |  |  |           <el-tab-pane name="Local"> | 
 |  |  |             <span class="mulsz" slot="label">本地宣教库 </span> | 
 |  |  |           </el-tab-pane> | 
 |  |  |           <el-tab-pane name="sharing"> | 
 |  |  |             <span class="mulsz" slot="label">共享宣教库 </span> | 
 |  |  |           </el-tab-pane> | 
 |  |  |         </el-tabs> | 
 |  |  |       </div> | 
 |  |  |       <div class="leftvlue-bg"> | 
 |  |  |         <el-row :gutter="20"> | 
 |  |  |           <!--用户数据--> | 
 |  |  |           <el-col :span="24" :xs="24"> | 
 |  |  |             <el-form | 
 |  |  |               :model="queryParams" | 
 |  |  |               ref="queryForm" | 
 |  |  |               size="small" | 
 |  |  |               :inline="true" | 
 |  |  |               v-show="showSearch" | 
 |  |  |               label-width="98px" | 
 |  |  |             > | 
 |  |  |               <el-form-item label="宣教名称" prop="userName"> | 
 |  |  |                 <el-input | 
 |  |  |                   v-model="queryParams.userName" | 
 |  |  |                   placeholder="请输入" | 
 |  |  |                   clearable | 
 |  |  |                   style="width: 200px" | 
 |  |  |                   @keyup.enter.native="handleQuery" | 
 |  |  |                 /> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="适用疾病" prop="sickness"> | 
 |  |  |                 <el-cascader | 
 |  |  |                   v-model="queryParams.sickness" | 
 |  |  |                   :options="optionss" | 
 |  |  |                   :props="propss" | 
 |  |  |                   clearable | 
 |  |  |                 ></el-cascader> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="宣教形式" prop="shape"> | 
 |  |  |                 <el-select | 
 |  |  |                   v-model="queryParams.shapevalue" | 
 |  |  |                   placeholder="请选择" | 
 |  |  |                 > | 
 |  |  |                   <el-option | 
 |  |  |                     v-for="item in xjxsoptions" | 
 |  |  |                     :key="item.value" | 
 |  |  |                     :label="item.label" | 
 |  |  |                     :value="item.value" | 
 |  |  |                   > | 
 |  |  |                   </el-option> | 
 |  |  |                 </el-select> | 
 |  |  |               </el-form-item> | 
 |  |  |               <el-form-item label="宣教分类" prop="classify"> | 
 |  |  |                 <el-select | 
 |  |  |                   v-model="queryParams.classifyvalue" | 
 |  |  |                   placeholder="请选择" | 
 |  |  |                 > | 
 |  |  |                   <el-option | 
 |  |  |                     v-for="(item, index) in editableTabs" | 
 |  |  |                     :key="index++" | 
 |  |  |                     :label="item.title" | 
 |  |  |                     :value="index++" | 
 |  |  |                   > | 
 |  |  |                   </el-option> | 
 |  |  |                 </el-select> | 
 |  |  |               </el-form-item> | 
 |  |  |  | 
 |  |  |               <el-form-item> | 
 |  |  |                 <el-button | 
 |  |  |                   type="primary" | 
 |  |  |                   icon="el-icon-search" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="handleQuery" | 
 |  |  |                   >搜索</el-button | 
 |  |  |                 > | 
 |  |  |                 <el-button | 
 |  |  |                   icon="el-icon-refresh" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="resetQuery" | 
 |  |  |                   >重置</el-button | 
 |  |  |                 > | 
 |  |  |               </el-form-item> | 
 |  |  |             </el-form> | 
 |  |  |  | 
 |  |  |             <el-row :gutter="10" class="mb8"> | 
 |  |  |               <el-col :span="1.5"> | 
 |  |  |                 <el-button | 
 |  |  |                   type="primary" | 
 |  |  |                   plain | 
 |  |  |                   icon="el-icon-plus" | 
 |  |  |                   size="medium" | 
 |  |  |                   @click="handleAdd" | 
 |  |  |                   v-hasPermi="['system:user:add']" | 
 |  |  |                   >新增</el-button | 
 |  |  |                 > | 
 |  |  |               </el-col> | 
 |  |  |  | 
 |  |  |               <el-col :span="1.5"> | 
 |  |  |                 <el-button | 
 |  |  |                   type="danger" | 
 |  |  |                   plain | 
 |  |  |                   icon="el-icon-delete" | 
 |  |  |                   size="medium" | 
 |  |  |                   :disabled="multiple" | 
 |  |  |                   @click="handleDelete" | 
 |  |  |                   v-hasPermi="['system:user:remove']" | 
 |  |  |                   >删除</el-button | 
 |  |  |                 > | 
 |  |  |               </el-col> | 
 |  |  |  | 
 |  |  |               <!-- <el-col :span="1.5"> </el-col> --> | 
 |  |  |             </el-row> | 
 |  |  |             <!-- <right-toolbar | 
 |  |  |           :showSearch.sync="showSearch" | 
 |  |  |           @queryTable="getList" | 
 |  |  |           :columns="columns" | 
 |  |  |         ></right-toolbar> --> | 
 |  |  |             <el-table | 
 |  |  |               v-loading="loading" | 
 |  |  |               :data="userList" | 
 |  |  |               border="true" | 
 |  |  |               @selection-change="handleSelectionChange" | 
 |  |  |             > | 
 |  |  |               <el-table-column type="selection" width="50" align="center" /> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="序号" | 
 |  |  |                 align="center" | 
 |  |  |                 key="userid" | 
 |  |  |                 prop="userid" | 
 |  |  |               /> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="宣教名称" | 
 |  |  |                 align="center" | 
 |  |  |                 key="userName" | 
 |  |  |                 prop="userName" | 
 |  |  |                 :show-overflow-tooltip="true" | 
 |  |  |               /> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="版本" | 
 |  |  |                 align="center" | 
 |  |  |                 key="nickName" | 
 |  |  |                 prop="nickName" | 
 |  |  |                 :show-overflow-tooltip="true" | 
 |  |  |               /> | 
 |  |  |  | 
 |  |  |               <el-table-column | 
 |  |  |                 label="适用疾病" | 
 |  |  |                 align="center" | 
 |  |  |                 key="aphonenumber" | 
 |  |  |                 prop="aphonenumber" | 
 |  |  |                 width="120" | 
 |  |  |               /><el-table-column | 
 |  |  |                 label="宣教描述" | 
 |  |  |                 align="center" | 
 |  |  |                 key="bphonenumber" | 
 |  |  |                 prop="bphonenumber" | 
 |  |  |                 width="120" | 
 |  |  |               /> | 
 |  |  |               <el-table-column | 
 |  |  |                 label="最近编辑" | 
 |  |  |                 align="center" | 
 |  |  |                 key="cphonenumber" | 
 |  |  |                 prop="cphonenumber" | 
 |  |  |                 width="120" | 
 |  |  |               /> | 
 |  |  |  | 
 |  |  |               <el-table-column | 
 |  |  |                 label="操作" | 
 |  |  |                 align="center" | 
 |  |  |                 width="300" | 
 |  |  |                 class-name="small-padding fixed-width" | 
 |  |  |               > | 
 |  |  |                 <template slot-scope="scope"> | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="goQRCode(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:edit']" | 
 |  |  |                   > | 
 |  |  |                     <span class="button-text" | 
 |  |  |                       ><i class="el-icon-edit"></i>二维码</span | 
 |  |  |                     ></el-button | 
 |  |  |                   > | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="Vieweducation(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:edit']" | 
 |  |  |                     ><span class="button-textck" | 
 |  |  |                       ><i class="el-icon-edit"></i>查看</span | 
 |  |  |                     ></el-button | 
 |  |  |                   > | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="handleUpdate(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:edit']" | 
 |  |  |                     ><span class="button-textxg" | 
 |  |  |                       ><i class="el-icon-edit"></i>修改</span | 
 |  |  |                     ></el-button | 
 |  |  |                   > | 
 |  |  |                   <el-button | 
 |  |  |                     size="medium" | 
 |  |  |                     type="text" | 
 |  |  |                     @click="handleDelete(scope.row)" | 
 |  |  |                     v-hasPermi="['system:user:remove']" | 
 |  |  |                     ><span class="button-textsc" | 
 |  |  |                       ><i class="el-icon-edit"></i>删除</span | 
 |  |  |                     ></el-button | 
 |  |  |                   > | 
 |  |  |                 </template> | 
 |  |  |               </el-table-column> | 
 |  |  |             </el-table> | 
 |  |  |  | 
 |  |  |             <pagination | 
 |  |  |               v-show="total > 0" | 
 |  |  |               :total="total" | 
 |  |  |               :page.sync="queryParams.pageNum" | 
 |  |  |               :limit.sync="queryParams.pageSize" | 
 |  |  |               @pagination="getList" | 
 |  |  |             /> | 
 |  |  |           </el-col> | 
 |  |  |         </el-row> | 
 |  |  |  | 
 |  |  |         <!-- 添加或修改宣教配置对话框 --> | 
 |  |  |         <el-dialog | 
 |  |  |           :title="title" | 
 |  |  |           :visible.sync="open" | 
 |  |  |           width="900px" | 
 |  |  |           append-to-body | 
 |  |  |         > | 
 |  |  |           <el-form ref="form" :model="form" :rules="rules" label-width="100px"> | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="姓名" prop="nickName"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.nickName" | 
 |  |  |                     placeholder="请输入姓名" | 
 |  |  |                     maxlength="30" | 
 |  |  |                   /> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="性别" prop="deptId"> | 
 |  |  |                   <el-select v-model="form.sex" placeholder="请选择性别"> | 
 |  |  |                     <el-option | 
 |  |  |                       v-for="dict in dict.type.sys_user_sex" | 
 |  |  |                       :key="dict.value" | 
 |  |  |                       :label="dict.label" | 
 |  |  |                       :value="dict.value" | 
 |  |  |                     ></el-option> | 
 |  |  |                   </el-select> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="证件类型" prop="phonenumber"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.phonenumber" | 
 |  |  |                     placeholder="请选择证件类型" | 
 |  |  |                     maxlength="11" | 
 |  |  |                   /> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="证件号" prop="email"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.email" | 
 |  |  |                     placeholder="请输入证件号" | 
 |  |  |                     maxlength="50" | 
 |  |  |                   /> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="本人手机号" prop="userName"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.userName" | 
 |  |  |                     placeholder="请输入手机号" | 
 |  |  |                     maxlength="30" | 
 |  |  |                   /> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="亲属手机号" prop="password"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.password" | 
 |  |  |                     placeholder="请输入亲属手机号" | 
 |  |  |                     type="password" | 
 |  |  |                     maxlength="20" | 
 |  |  |                     show-password | 
 |  |  |                   /> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="12"> | 
 |  |  |                 <el-form-item label="患者标签"> | 
 |  |  |                   <el-cascader | 
 |  |  |                     :options="optionss" | 
 |  |  |                     :props="propss" | 
 |  |  |                     clearable | 
 |  |  |                   ></el-cascader> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  |  | 
 |  |  |             <el-row> | 
 |  |  |               <el-col :span="24"> | 
 |  |  |                 <el-form-item label="备注"> | 
 |  |  |                   <el-input | 
 |  |  |                     v-model="form.remark" | 
 |  |  |                     type="textarea" | 
 |  |  |                     placeholder="请输入内容" | 
 |  |  |                   ></el-input> | 
 |  |  |                 </el-form-item> | 
 |  |  |               </el-col> | 
 |  |  |             </el-row> | 
 |  |  |           </el-form> | 
 |  |  |           <div slot="footer" class="dialog-footer"> | 
 |  |  |             <el-button type="primary" @click="submitForm">确 定</el-button> | 
 |  |  |             <el-button @click="cancel">取 消</el-button> | 
 |  |  |           </div> | 
 |  |  |         </el-dialog> | 
 |  |  |       </div> | 
 |  |  |     </div> | 
 |  |  |     <!-- 添加类别弹框 --> | 
 |  |  |     <el-dialog width="30%" :visible.sync="dialogFormVisible"> | 
 |  |  |       <el-form :model="sidecolumnform"> | 
 |  |  |         <el-form-item label="请输入类别名称"> | 
 |  |  |           <el-input v-model="form.name" autocomplete="off"></el-input> | 
 |  |  |         </el-form-item> | 
 |  |  |       </el-form> | 
 |  |  |       <div slot="footer" class="dialog-footer"> | 
 |  |  |         <el-button @click="dialogFormVisible = false">取 消</el-button> | 
 |  |  |         <el-button type="primary" @click="submitsidecolumn">确 定</el-button> | 
 |  |  |       </div> | 
 |  |  |     </el-dialog> | 
 |  |  |     <!-- 二维码展示弹框 --> | 
 |  |  |     <el-dialog width="30%" :visible.sync="goQRCodeVisible"> | 
 |  |  |       <div class="qrcode-dialo"> | 
 |  |  |         <div class="qrcode-text"> | 
 |  |  |           {{ nameeducation }}<span>{{ haoeducation }}</span> | 
 |  |  |         </div> | 
 |  |  |         <div class="qrcode-img"></div> | 
 |  |  |       </div> | 
 |  |  |     </el-dialog> | 
 |  |  |   </div> | 
 |  |  | </template> | 
 |  |  |  | 
 |  |  | <script> | 
 |  |  | import { | 
 |  |  |   listUser, | 
 |  |  |   getUser, | 
 |  |  |   delUser, | 
 |  |  |   addUser, | 
 |  |  |   updateUser, | 
 |  |  | } from "@/api/system/user"; | 
 |  |  | import { getToken } from "@/utils/auth"; | 
 |  |  | import Treeselect from "@riophae/vue-treeselect"; | 
 |  |  | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; | 
 |  |  | export default { | 
 |  |  |   name: "education", | 
 |  |  |   dicts: ["sys_normal_disable", "sys_user_sex"], | 
 |  |  |   components: { Treeselect }, | 
 |  |  |   data() { | 
 |  |  |     return {}; | 
 |  |  |     return { | 
 |  |  |       topactiveName: "Local", //顶部选择 | 
 |  |  |       // 遮罩层 | 
 |  |  |       loading: false, | 
 |  |  |       // 选中数组 | 
 |  |  |       ids: [], | 
 |  |  |       // 非单个禁用 | 
 |  |  |       single: true, | 
 |  |  |       // 非多个禁用 | 
 |  |  |       multiple: true, | 
 |  |  |       // 显示搜索条件 | 
 |  |  |       showSearch: true, | 
 |  |  |       // 总条数 | 
 |  |  |       total: 0, | 
 |  |  |       nameeducation: "", | 
 |  |  |       haoeducation: "", | 
 |  |  |       // 用户表格数据 | 
 |  |  |       userList: [ | 
 |  |  |         { | 
 |  |  |           userid: 1, | 
 |  |  |           userName: "三号宣教", | 
 |  |  |           nickName: "1.2.4", | 
 |  |  |  | 
 |  |  |           aphonenumber: "关节炎症", | 
 |  |  |           bphonenumber: "很棒", | 
 |  |  |           cphonenumber: "2022-12-12", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       // 弹出层标题 | 
 |  |  |       title: "", | 
 |  |  |       // 是否显示弹出层 | 
 |  |  |       open: false, | 
 |  |  |       // 日期范围 | 
 |  |  |       dateRange: [], | 
 |  |  |       // 岗位选项 | 
 |  |  |       postOptions: [], | 
 |  |  |       // 角色选项 | 
 |  |  |       roleOptions: [], | 
 |  |  |       // 表单参数 | 
 |  |  |       form: {}, | 
 |  |  |       numberlb: 22, | 
 |  |  |       numberlbs: 2, | 
 |  |  |       sidecolumnform: {}, //添加类别表单 | 
 |  |  |       dialogFormVisible: false, //添加类别弹框 | 
 |  |  |       goQRCodeVisible: false, //二维码弹框 | 
 |  |  |       sidecolumnval: "", //类别搜索 | 
 |  |  |       propss: { multiple: true }, | 
 |  |  |       optionss: [ | 
 |  |  |         { | 
 |  |  |           value: 1, | 
 |  |  |           label: "东南", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 2, | 
 |  |  |           label: "西北", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 3, | 
 |  |  |           label: "仨仨仨", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 4, | 
 |  |  |           label: "六飒飒飒", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       xjxsoptions: [ | 
 |  |  |         { | 
 |  |  |           value: 1, | 
 |  |  |           label: "视频", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 2, | 
 |  |  |           label: "讲座", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 3, | 
 |  |  |           label: "语音", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       //类别列表 | 
 |  |  |       editableTabs: [ | 
 |  |  |         { | 
 |  |  |           title: "宣教分类一", | 
 |  |  |           number: "1", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           title: "宣教分类二", | 
 |  |  |           number: "2", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           title: "宣教分类三", | 
 |  |  |           number: "2", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           title: "宣教分类四", | 
 |  |  |           number: "2", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           title: "宣教分类五", | 
 |  |  |           number: "2", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |       // 查询参数 | 
 |  |  |       queryParams: { | 
 |  |  |         pageNum: 1, | 
 |  |  |         pageSize: 10, | 
 |  |  |         sickness: "", | 
 |  |  |         classifyvalue: "", | 
 |  |  |         shapevalue: "", | 
 |  |  |         userName: undefined, | 
 |  |  |       }, | 
 |  |  |       // 列信息 | 
 |  |  |       columns: [ | 
 |  |  |         { key: 0, label: `用户编号`, visible: true }, | 
 |  |  |         { key: 1, label: `用户名称`, visible: true }, | 
 |  |  |         { key: 2, label: `用户昵称`, visible: true }, | 
 |  |  |         { key: 3, label: `部门`, visible: true }, | 
 |  |  |         { key: 4, label: `手机号码`, visible: true }, | 
 |  |  |         { key: 5, label: `状态`, visible: true }, | 
 |  |  |         { key: 6, label: `创建时间`, visible: true }, | 
 |  |  |       ], | 
 |  |  |       // 表单校验 | 
 |  |  |       rules: { | 
 |  |  |         userName: [ | 
 |  |  |           { required: true, message: "用户名称不能为空", trigger: "blur" }, | 
 |  |  |           { | 
 |  |  |             min: 2, | 
 |  |  |             max: 20, | 
 |  |  |             message: "用户名称长度必须介于 2 和 20 之间", | 
 |  |  |             trigger: "blur", | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |         nickName: [ | 
 |  |  |           { required: true, message: "用户昵称不能为空", trigger: "blur" }, | 
 |  |  |         ], | 
 |  |  |         password: [ | 
 |  |  |           { required: true, message: "用户密码不能为空", trigger: "blur" }, | 
 |  |  |           { | 
 |  |  |             min: 5, | 
 |  |  |             max: 20, | 
 |  |  |             message: "用户密码长度必须介于 5 和 20 之间", | 
 |  |  |             trigger: "blur", | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |         email: [ | 
 |  |  |           { | 
 |  |  |             type: "email", | 
 |  |  |             message: "请输入正确的邮箱地址", | 
 |  |  |             trigger: ["blur", "change"], | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |         phonenumber: [ | 
 |  |  |           { | 
 |  |  |             pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, | 
 |  |  |             message: "请输入正确的手机号码", | 
 |  |  |             trigger: "blur", | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |         IDnumber: [ | 
 |  |  |           { | 
 |  |  |             pattern: | 
 |  |  |               /^\d{6}((((((19|20)\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|(((19|20)\d{2})(0[13578]|1[02])31)|((19|20)\d{2})02(0[1-9]|1\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\d{3})|((((\d{2})(0[13-9]|1[012])(0[1-9]|[12]\d|30))|((\d{2})(0[13578]|1[02])31)|((\d{2})02(0[1-9]|1\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\d{2}))(\d|X|x)$/, | 
 |  |  |             message: "请输入正确的身份证号码", | 
 |  |  |             trigger: "blur", | 
 |  |  |           }, | 
 |  |  |         ], | 
 |  |  |       }, | 
 |  |  |     }; | 
 |  |  |   }, | 
 |  |  |   watch: {}, | 
 |  |  |   created() { | 
 |  |  |     this.getList(); | 
 |  |  |   }, | 
 |  |  |  | 
 |  |  |   created() {}, | 
 |  |  |   methods: { | 
 |  |  |     /** 查询用户列表 */ | 
 |  |  |     getList() { | 
 |  |  |       //   this.loading = true; | 
 |  |  |       listUser().then((response) => { | 
 |  |  |         console.log(response); | 
 |  |  |         // this.userList = response.data; | 
 |  |  |         // this.total = response.total; | 
 |  |  |         // this.loading = false; | 
 |  |  |         console.log(this.userList); | 
 |  |  |       }); | 
 |  |  |       //   const { rows } = await listUser(); | 
 |  |  |       //   console.log(rows); | 
 |  |  |       //   this.list = rows; | 
 |  |  |     }, | 
 |  |  |     // 添加类别 | 
 |  |  |     submitsidecolumn() { | 
 |  |  |       this.dialogFormVisible = false; | 
 |  |  |     }, | 
 |  |  |     //搜索类别 | 
 |  |  |     sidecolumnss() {}, | 
 |  |  |     // 切换共享/本地 | 
 |  |  |     tophandleClick() {}, | 
 |  |  |     // 取消按钮 | 
 |  |  |     cancel() { | 
 |  |  |       this.open = false; | 
 |  |  |       this.reset(); | 
 |  |  |     }, | 
 |  |  |     goQRCode(row) { | 
 |  |  |       this.goQRCodeVisible = true; | 
 |  |  |       this.nameeducation = row.userName; | 
 |  |  |       this.haoeducation = row.nickName; | 
 |  |  |     }, | 
 |  |  |     // 表单重置 | 
 |  |  |     reset() { | 
 |  |  |       this.form = { | 
 |  |  |         userId: undefined, | 
 |  |  |         deptId: undefined, | 
 |  |  |         userName: undefined, | 
 |  |  |         nickName: undefined, | 
 |  |  |         password: undefined, | 
 |  |  |         phonenumber: undefined, | 
 |  |  |         email: undefined, | 
 |  |  |         sex: undefined, | 
 |  |  |         status: "0", | 
 |  |  |         remark: undefined, | 
 |  |  |         postIds: [], | 
 |  |  |         roleIds: [], | 
 |  |  |       }; | 
 |  |  |       this.resetForm("form"); | 
 |  |  |     }, | 
 |  |  |     /** 搜索按钮操作 */ | 
 |  |  |     handleQuery() { | 
 |  |  |       this.queryParams.pageNum = 1; | 
 |  |  |       this.getList(); | 
 |  |  |     }, | 
 |  |  |     /** 重置按钮操作 */ | 
 |  |  |     resetQuery() { | 
 |  |  |       this.dateRange = []; | 
 |  |  |       this.resetForm("queryForm"); | 
 |  |  |       this.queryParams.deptId = undefined; | 
 |  |  |       this.$refs.tree.setCurrentKey(null); | 
 |  |  |       this.handleQuery(); | 
 |  |  |     }, | 
 |  |  |     // 多选框选中数据 | 
 |  |  |     handleSelectionChange(selection) { | 
 |  |  |       this.ids = selection.map((item) => item.userId); | 
 |  |  |       this.single = selection.length != 1; | 
 |  |  |       this.multiple = !selection.length; | 
 |  |  |     }, | 
 |  |  |     /** 新增按钮操作 */ | 
 |  |  |     handleAdd() { | 
 |  |  |       this.$router.push({ | 
 |  |  |         path: "/knowledge/education/compilequer/", | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |     /** 修改按钮操作 */ | 
 |  |  |     handleUpdate(row) { | 
 |  |  |       this.$router.push({ | 
 |  |  |         path: "/knowledge/education/compilequer/", | 
 |  |  |         query: { id: "1" }, | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |     // 查看宣教 | 
 |  |  |     Vieweducation() { | 
 |  |  |       this.$router.push({ | 
 |  |  |         path: "/knowledge/education/examine/", | 
 |  |  |         query: { id: "1" }, | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |  | 
 |  |  |   methods: {}, | 
 |  |  |     /** 更新/修改提交按钮 */ | 
 |  |  |     submitForm: function () { | 
 |  |  |       this.$refs["form"].validate((valid) => { | 
 |  |  |         if (valid) { | 
 |  |  |           if (this.form.userId != undefined) { | 
 |  |  |             updateUser(this.form).then((response) => { | 
 |  |  |               this.$modal.msgSuccess("修改成功"); | 
 |  |  |               this.open = false; | 
 |  |  |               this.getList(); | 
 |  |  |             }); | 
 |  |  |           } else { | 
 |  |  |             addUser(this.form).then((response) => { | 
 |  |  |               this.$modal.msgSuccess("新增成功"); | 
 |  |  |               this.open = false; | 
 |  |  |               this.getList(); | 
 |  |  |             }); | 
 |  |  |           } | 
 |  |  |         } | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |     /** 删除按钮操作 */ | 
 |  |  |     handleDelete(row) { | 
 |  |  |       const userIds = row.userId || this.ids; | 
 |  |  |       this.$modal | 
 |  |  |         .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') | 
 |  |  |         .then(function () { | 
 |  |  |           return delUser(userIds); | 
 |  |  |         }) | 
 |  |  |         .then(() => { | 
 |  |  |           this.getList(); | 
 |  |  |           this.$modal.msgSuccess("删除成功"); | 
 |  |  |         }) | 
 |  |  |         .catch(() => {}); | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  | }; | 
 |  |  | </script> | 
 |  |  |  | 
 |  |  | <style lang="scss" scoped></style> | 
 |  |  | <style lang="scss" scoped> | 
 |  |  | .educationmanagement { | 
 |  |  |   display: flex; | 
 |  |  | } | 
 |  |  | .sidecolumn { | 
 |  |  |   width: 300px; | 
 |  |  |   min-height: 100vh; | 
 |  |  |   text-align: center; | 
 |  |  |   //   display: flex; | 
 |  |  |   margin-top: 20px; | 
 |  |  |   margin: 20px; | 
 |  |  |   padding: 30px; | 
 |  |  |   background: #edf1f7; | 
 |  |  |   border: 1px solid #dcdfe6; | 
 |  |  |   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |     0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |   .sidecolumn-top { | 
 |  |  |     display: flex; | 
 |  |  |     justify-content: space-between; | 
 |  |  |     .top-wj { | 
 |  |  |       font-size: 20px; | 
 |  |  |     } | 
 |  |  |     .top-tj { | 
 |  |  |       font-size: 18px; | 
 |  |  |  | 
 |  |  |       color: rgb(0, 89, 255); | 
 |  |  |       cursor: pointer; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  |   .center-ss { | 
 |  |  |     margin-top: 30px; | 
 |  |  |     .input-with-select { | 
 |  |  |       height: 40px !important; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  |   .bottom-fl { | 
 |  |  |     margin-top: 30px; | 
 |  |  |     display: center !important; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | .qrcode-dialo { | 
 |  |  |   text-align: center; | 
 |  |  |   //   display: flex; | 
 |  |  |   margin: 20px; | 
 |  |  |   padding: 30px; | 
 |  |  |   background: #edf1f7; | 
 |  |  |   border: 1px solid #dcdfe6; | 
 |  |  |   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |     0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |   .qrcode-text { | 
 |  |  |     font-size: 20px; | 
 |  |  |     span { | 
 |  |  |       margin-left: 20px; | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  |   .qrcode-img { | 
 |  |  |     width: 300px; | 
 |  |  |     height: 400px; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--left, | 
 |  |  | .el-tabs--right { | 
 |  |  |   overflow: hidden; | 
 |  |  |   align-items: center; | 
 |  |  |   display: flex; | 
 |  |  | } | 
 |  |  | ::v-deep.el-input--medium .el-input__inner { | 
 |  |  |   height: 40px !important; | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--right .el-tabs__active-bar.is-right { | 
 |  |  |   height: 40px; | 
 |  |  |   width: 5px; | 
 |  |  |   left: 0; | 
 |  |  | } | 
 |  |  | ::v-deep.el-tabs--right .el-tabs__item.is-right { | 
 |  |  |   display: block; | 
 |  |  |   font-size: 20px; | 
 |  |  | } | 
 |  |  | .leftvlue { | 
 |  |  |   //   display: flex; | 
 |  |  |   //   flex: 1; | 
 |  |  |   width: 80%; | 
 |  |  |   margin-top: 20px; | 
 |  |  |   //   margin: 20px; | 
 |  |  |   padding: 30px; | 
 |  |  |   background: #ffff; | 
 |  |  |   border: 1px solid #dcdfe6; | 
 |  |  |   -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), | 
 |  |  |     0 0 6px 0 rgba(0, 0, 0, 0.04); | 
 |  |  |   .mulsz { | 
 |  |  |     font-size: 20px; | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | .button-text { | 
 |  |  |   color: rgb(70, 204, 238); | 
 |  |  | } | 
 |  |  | .button-textck { | 
 |  |  |   color: rgb(39, 167, 67); | 
 |  |  | } | 
 |  |  | .button-textxg { | 
 |  |  |   color: rgb(35, 81, 233); | 
 |  |  | } | 
 |  |  | .button-textsc { | 
 |  |  |   color: rgb(235, 23, 23); | 
 |  |  | } | 
 |  |  | </style> |