运行图 发布审核流程调整
This commit is contained in:
parent
af2c431511
commit
12eed3629a
@ -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'
|
||||
};
|
||||
|
@ -24,5 +24,6 @@ export default {
|
||||
runPlanName: '运行图名称',
|
||||
passedRunPlan: '通过运行图',
|
||||
rejectRunPlan: '驳回运行图',
|
||||
runPlanPreview: '预览'
|
||||
runPlanPreview: '预览',
|
||||
inputRunPlanName: '请输入运行图名称'
|
||||
};
|
||||
|
@ -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}`);
|
||||
})
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -99,6 +99,9 @@ export default {
|
||||
// '$store.state.scriptRecord.scriptId': function (val) {
|
||||
// this.formModel.mapId=val;
|
||||
// }
|
||||
'$route' () {
|
||||
this.loadInitData();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loadInitData();
|
||||
|
Loading…
Reference in New Issue
Block a user