| | |
| | | submitForm: function () { |
| | | this.form.hospInfo = JSON.stringify(this.form.deptCodes); |
| | | this.form.deptInfo = JSON.stringify(this.form.wardCodes); |
| | | if (this.form.deptCodes.length) |
| | | this.form.deptCodes = this.form.deptCodes.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | | if (this.form.wardCodes.length) |
| | | this.form.wardCodes = this.form.wardCodes.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | |
| | | /** 下载模板操作 */ |
| | | importTemplate() { |
| | | this.download( |
| | | "system/user/importTemplate", |
| | | "smartor/import/getImportPatTemplate", |
| | | {}, |
| | | `user_template_${new Date().getTime()}.xlsx` |
| | | ); |