|
|
@ -3,7 +3,7 @@ |
|
|
<div class="edit-top"> |
|
|
<div class="edit-top"> |
|
|
<div class="left-top"> |
|
|
<div class="left-top"> |
|
|
<img src="@/assets/images/back.png" @click="cancel()" /> |
|
|
<img src="@/assets/images/back.png" @click="cancel()" /> |
|
|
<div class="left-title">{{$t('page.business.study.nonTrial.create')}}</div> |
|
|
|
|
|
|
|
|
<div class="left-title">{{this.infoDialog.formData.id!=''?$t('page.business.study.nonTrial.xgsy'):$t('page.business.study.nonTrial.create')}}</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="right-top"> |
|
|
<div class="right-top"> |
|
|
<el-button @click="cancel()">{{$t('page.business.study.nonTrial.cancel')}}</el-button> |
|
|
<el-button @click="cancel()">{{$t('page.business.study.nonTrial.cancel')}}</el-button> |
|
|
@ -82,6 +82,7 @@ export default { |
|
|
], |
|
|
], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
oldStatus:1 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -95,10 +96,12 @@ export default { |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields() |
|
|
this.$refs['infoDialogForm'] && this.$refs['infoDialogForm'].resetFields() |
|
|
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName}) |
|
|
this.infoDialog.formData = _.merge({}, EmptyDialogData,{leader:this.$store.getters.id,leaderName:this.$store.getters.nickName}) |
|
|
|
|
|
this.oldStatus = 1 |
|
|
if(row && row.id){ |
|
|
if(row && row.id){ |
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
nonTrial_info({id:row.id}).then(({data}) => { |
|
|
nonTrial_info({id:row.id}).then(({data}) => { |
|
|
this.infoDialog.formData = data |
|
|
this.infoDialog.formData = data |
|
|
|
|
|
this.oldStatus = data.status |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
@ -113,7 +116,7 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.infoDialog.formData.status = status |
|
|
this.infoDialog.formData.status = status |
|
|
if(status === 3){ |
|
|
if(status === 3){ |
|
|
this.$refs.editSignRef.show(this.$t('page.business.study.nonTrial.submit'),this.$t('page.business.study.nonTrial.create')) |
|
|
|
|
|
|
|
|
this.$refs.editSignRef.show(this.oldStatus==1?this.$t('page.business.study.nonTrial.submit'):this.$t('page.business.study.nonTrial.xgsy'),this.oldStatus==1?'创建试验':'修改试验') |
|
|
}else{ |
|
|
}else{ |
|
|
this.doSave({}) |
|
|
this.doSave({}) |
|
|
} |
|
|
} |
|
|
|