|
@@ -128,19 +128,22 @@ export default {
|
|
|
this.id = data.id
|
|
|
this.title ="模板维护-修改"
|
|
|
this.form.tempName = data.name
|
|
|
+ this.getModuleTypeList().then(res =>{
|
|
|
+ this.form.moduleType = data.recordModuleId
|
|
|
+ this.form.example = this.moduleTypeList.find(item => item.id == this.form.moduleType).behospitalCodes
|
|
|
+ })
|
|
|
}
|
|
|
if(isCopy){
|
|
|
this.isEdit = isEdit;
|
|
|
this.id = ""
|
|
|
this.form.tempName = ""
|
|
|
+ this.form.moduleType=""
|
|
|
+ this.form.example=""
|
|
|
}
|
|
|
this.form.hospital = ''+data.hospitalId
|
|
|
this.form.moduleName = ''+data.modeId
|
|
|
|
|
|
- this.getModuleTypeList().then(res =>{
|
|
|
- this.form.moduleType = data.recordModuleId
|
|
|
- this.form.example = this.moduleTypeList.find(item => item.id == this.form.moduleType).behospitalCodes
|
|
|
- })
|
|
|
+
|
|
|
const moduleDetail = data.moduleDetail
|
|
|
const keysList = Object.keys(moduleDetail)
|
|
|
for(let i = 0; i < keysList.length; i++){
|