| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-model="scope.row.status" |
| | | active-value="0" |
| | | inactive-value="1" |
| | | v-model="scope.row.delivery" |
| | | @change="handleStatusChange(scope.row)" |
| | | ></el-switch> |
| | | </template> |
| | |
| | | /> |
| | | </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-form-item |
| | | :label="amendtag ? '请输入新的类别名称' : '请输入类别名称'" |
| | | > |
| | | <el-input v-model="form.name" autocomplete="off"></el-input> |
| | | <el-input |
| | | v-model="sidecolumnform.classesname" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | |
| | | scavisible: false, //删除弹框 |
| | | deleteVisible: false, //分类删除弹框 |
| | | deletefenl: "高血压", //删除项 |
| | | //修改添加标签弹框数据 |
| | | tagform: { |
| | | delivery: "", |
| | | name: "", |
| | | desc: "", |
| | | }, |
| | | // 用户表格数据 |
| | | // 标签表格数据 |
| | | userList: [ |
| | | { |
| | | userid: 1, |
| | | userId: 1, |
| | | userName: "三号", |
| | | nickName: "1.2.4", |
| | | aphonenumber: "关节炎症", |
| | | delivery: true, |
| | | aphonenumbers: "", |
| | | bphonenumber: "很棒", |
| | | cphonenumber: "2022-12-12 ", |
| | |
| | | form: {}, |
| | | numberlb: 22, |
| | | numberlbs: 2, |
| | | sidecolumnform: {}, //添加类别表单 |
| | | sidecolumnform: { |
| | | classesname: "", |
| | | }, //添加类别表单 |
| | | dialogFormVisible: false, //添加、修改类别弹框 |
| | | lstamendtagVisible: false, //添加、修改标签弹框 |
| | | goQRCodeVisible: false, //二维码弹框 |
| | |
| | | // 添加类别 |
| | | submitsidecolumn() { |
| | | this.dialogFormVisible = false; |
| | | this.tagform = { |
| | | delivery: "", |
| | | name: "", |
| | | desc: "", |
| | | }; |
| | | }, |
| | | // 修改弹框 |
| | | popoveramend() { |
| | |
| | | }, |
| | | /** 修改标签 */ |
| | | handleUpdate(row) { |
| | | console.log(row, "修改标签"); |
| | | this.lstamendtagVisible = true; |
| | | this.lstamendtag = true; |
| | | this.tagform = { |
| | | delivery: row.delivery, |
| | | name: row.userName, |
| | | desc: row.bphonenumber, |
| | | }; |
| | | }, |
| | | // 查看问卷 |
| | | ViewQuestionnaire() { |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | console.log(row, "删除弹窗"); |
| | | const userIds = row.userId || this.ids; |
| | | const aphonenumber = row.aphonenumber; |
| | | this.$modal |
| | | .confirm('是否确认删除用户编号为"' + userIds + '"的数据项?') |
| | | .confirm( |
| | | aphonenumber |
| | | ? '是否确认删除标签名称为"' + aphonenumber + '"的数据项?' |
| | | : "是否确认删除选中的数据项?" |
| | | ) |
| | | .then(function () { |
| | | return delUser(userIds); |
| | | }) |