运行图 发布审核流程调整

This commit is contained in:
joylink_cuiweidong 2019-10-12 17:15:25 +08:00
parent af2c431511
commit 12eed3629a
6 changed files with 22 additions and 12 deletions

View File

@ -24,5 +24,6 @@ export default {
runPlanName: 'Run Plan Name',
passedRunPlan: 'Passed Run Plan',
rejectRunPlan: 'Reject Run Plan',
runPlanPreview: 'RunPlan Preview'
runPlanPreview: 'RunPlan Preview',
inputRunPlanName: 'Please input run plan name'
};

View File

@ -24,5 +24,6 @@ export default {
runPlanName: '运行图名称',
passedRunPlan: '通过运行图',
rejectRunPlan: '驳回运行图',
runPlanPreview: '预览'
runPlanPreview: '预览',
inputRunPlanName: '请输入运行图名称'
};

View File

@ -146,8 +146,13 @@
},
handleConfirmPass(data){
publishRunPlan(data.id,data).then(resp => {
if(resp.data.length<=0){
this.$message.success(this.$t('approval.passedScriptSuccess'));
}
else{
this.$messageBox(`${this.$t('approval.passedScriptFailed')}: ${resp.data[0]}`);
}
this.reloadTable();
this.$message.success(this.$t('approval.passedScriptSuccess'));
}).catch(error => {
this.$messageBox(`${this.$t('approval.passedScriptFailed')}: ${error.message}`);
})

View File

@ -16,7 +16,7 @@
return {
dialogVisible: false,
formModel:{
name:'',
runPlanName:'',
id:'',
explanation:'',
},
@ -34,7 +34,7 @@
form = {
labelWidth: '150px',
items: [
{ prop: 'name', label: this.$t('approval.scriptName'), type: 'text', required: true},
{ prop: 'runPlanName', label: this.$t('approval.runPlanName'), type: 'text', required: true},
]
}
}
@ -53,8 +53,8 @@
let crules ={};
if(this.type=="applyPassed"){
crules={
name: [
{ required: true, message: this.$t('approval.inputScriptName'), trigger: 'blur' },
runPlanName: [
{ required: true, message: this.$t('approval.inputRunPlanName'), trigger: 'blur' },
]
}
}
@ -71,7 +71,7 @@
methods: {
doShow(row) {
if(this.type=="applyPassed"){
this.formModel.name=row.name;
this.formModel.runPlanName=row.name;
}
this.formModel.id=row.id;
this.dialogVisible = true

View File

@ -16,7 +16,7 @@
return {
dialogVisible: false,
formModel:{
name:'',
scriptName:'',
id:'',
explanation:'',
},
@ -34,7 +34,7 @@
form = {
labelWidth: '150px',
items: [
{ prop: 'name', label: this.$t('approval.scriptName'), type: 'text', required: true},
{ prop: 'scriptName', label: this.$t('approval.scriptName'), type: 'text', required: true},
]
}
}
@ -53,7 +53,7 @@
let crules ={};
if(this.type=="applyPassed"){
crules={
name: [
scriptName: [
{ required: true, message: this.$t('approval.inputScriptName'), trigger: 'blur' },
]
}
@ -71,7 +71,7 @@
methods: {
doShow(row) {
if(this.type=="applyPassed"){
this.formModel.name=row.name;
this.formModel.scriptName=row.name;
}
this.formModel.id=row.id;
this.dialogVisible = true

View File

@ -99,6 +99,9 @@ export default {
// '$store.state.scriptRecord.scriptId': function (val) {
// this.formModel.mapId=val;
// }
'$route' () {
this.loadInitData();
}
},
mounted() {
this.loadInitData();