| | |
| | | remark: undefined, |
| | | postIds: [], |
| | | roleIds: [], |
| | | deptCodes:[], |
| | | wardCodes:[], |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | |
| | | this.form = response.data; |
| | | this.belongDepts = response.belongDepts; |
| | | this.belongWards = response.belongWards; |
| | | if (this.form.hospInfo) |
| | | if (this.form.hospInfo){ |
| | | this.form.deptCodes = JSON.parse(this.form.hospInfo); |
| | | if (this.form.deptInfo) |
| | | }else{ |
| | | this.form.deptCodes = []; |
| | | } |
| | | if (this.form.deptInfo){ |
| | | this.form.wardCodes = JSON.parse(this.form.deptInfo); |
| | | }else{ |
| | | this.form.wardCodes = []; |
| | | } |
| | | console.log(this.form.wardCodes, "wardCodes"); |
| | | console.log(this.form.deptCodes, "deptCodes"); |
| | | |
| | |
| | | /** 下载模板操作 */ |
| | | importTemplate() { |
| | | this.download( |
| | | "system/user/importTemplate", |
| | | "smartor/import/getImportPatTemplate", |
| | | {}, |
| | | `user_template_${new Date().getTime()}.xlsx` |
| | | ); |