Commit 382342e3 by wangren
parents ead02bec 2e057e0a
...@@ -8,7 +8,7 @@ export default { ...@@ -8,7 +8,7 @@ export default {
], ],
"wfetsk.tsklist.jobstrtimhh":[ "wfetsk.tsklist.jobstrtimhh":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"} // {max: 2,message:"长度不能超过2"}
], ],
"wfetsk.tsklist.jobstrtimmm":[ "wfetsk.tsklist.jobstrtimmm":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
...@@ -18,7 +18,7 @@ export default { ...@@ -18,7 +18,7 @@ export default {
"wfetsk.tsklist.downtimehh":[ "wfetsk.tsklist.downtimehh":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"} // {max: 2,message:"长度不能超过2"}
], ],
"wfetsk.tsklist.downtimemm":[ "wfetsk.tsklist.downtimemm":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
"wfetsk.tsklist.redotime":[ "wfetsk.tsklist.redotime":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"} // {max: 4,message:"长度不能超过4"}
], ],
"wfetsk.seletgextkey":[ "wfetsk.seletgextkey":[
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvpdb.exeflg">cxheck open ACKs</c-checkbox> <c-checkbox v-model="model.srvpdb.exeflg"
>cxheck open ACKs</c-checkbox
>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Wait before 'Retry' " prop="srvpdb.rettim"> <el-form-item label="Wait before 'Retry' " prop="srvpdb.rettim">
<c-input v-model="model.srvpdb.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input
v-model="model.srvpdb.rettim"
placeholder="请输入Wait before 'Retry' "
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvfin.exeflg">mark order as finished</c-checkbox> <c-checkbox v-model="model.srvfin.exeflg"
>mark order as finished</c-checkbox
>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvgpi.exeflg">Return to Zhongtai</c-checkbox> <c-checkbox v-model="model.srvgpi.exeflg"
>Return to Zhongtai</c-checkbox
>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Wait before 'Retry' " prop="srvgpi.rettim"> <el-form-item label="Wait before 'Retry' " prop="srvgpi.rettim">
<c-input v-model="model.srvgpi.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input
v-model="model.srvgpi.rettim"
placeholder="请输入Wait before 'Retry' "
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height:24px;">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvpda.exeflg">cxheck open ACKs</c-checkbox> <c-checkbox v-model="model.srvpda.exeflg">cxheck open ACKs</c-checkbox>
...@@ -33,6 +40,13 @@ export default { ...@@ -33,6 +40,13 @@ export default {
} }
} }
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height:24px;">
<c-col :span="12"> <el-form-item label="Configuration Panel" class="messageLabel">
<c-checkbox v-model="model.srvpdp.exeflg">pending predecessors check</c-checkbox> </el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
...@@ -10,6 +13,14 @@ ...@@ -10,6 +13,14 @@
<c-input v-model="model.srvpdp.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input v-model="model.srvpdp.rettim" placeholder="请输入Wait before 'Retry' "></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12">
<el-form-item label="" >
<c-checkbox v-model="model.srvpdp.exeflg">pending predecessors check</c-checkbox>
</el-form-item>
</c-col>
</div> </div>
</template> </template>
<script> <script>
...@@ -33,6 +44,13 @@ export default { ...@@ -33,6 +44,13 @@ export default {
} }
} }
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvrto.exeflg">Return to Zhongtai</c-checkbox> <c-checkbox v-model="model.srvrto.exeflg"
>Return to Zhongtai</c-checkbox
>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Wait before 'Retry' " prop="srvrto.rettim"> <el-form-item label="Wait before 'Retry' " prop="srvrto.rettim">
<c-input v-model="model.srvrto.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input
v-model="model.srvrto.rettim"
placeholder="请输入Wait before 'Retry' "
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="22" :offset="1"> <c-col :span="24" style="text-align: right">
<c-table :border="true" :list="data" ref="table" style="width:80%,text-align:center" height="500" :paginationShow="false"> <c-button
<el-table-column label="Execute" width="auto" type="selection" prop="exeflg"></el-table-column> size="small"
<el-table-column label="Handler" width="auto" prop="srvhdl" sortable></el-table-column> type="primary"
<el-table-column label="Service" width="auto" prop="srv"></el-table-column> style="margin-left: 0"
<el-table-column label="Stop" width="auto" prop="stpflg"></el-table-column> :disabled="buttonFlag"
<el-table-column label="Succ." width="auto" prop="cntsuc"></el-table-column> @click="Start"
<el-table-column label="Retry" width="auto" prop="cntret"></el-table-column> >Start</c-button
<el-table-column label="Errors" width="auto" prop="cnterr"></el-table-column> >
<el-table-column label="Threshold" width="auto" prop="trsconerr"></el-table-column> <c-button
<el-table-column label="Consecutive Errors" width="auto" prop="cntconerr"></el-table-column> size="small"
<el-table-column label="Lck" width="auto" prop="trnlckflg"></el-table-column> type="primary"
<el-table-column label="Period for count (in hours)" width="auto" prop="cnttim"></el-table-column> style="margin-left: 0"
<el-table-column label="Configure" width="auto" prop=""></el-table-column> :disabled="!buttonFlag"
@click="Stop"
>Stop</c-button
>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-table
:border="true"
:list="data"
ref="table"
style="width:80%,text-align:center"
height="500"
:paginationShow="false"
>
<el-table-column
label="Execute"
width="auto"
type="selection"
prop="exeflg"
></el-table-column>
<el-table-column
label="Handler"
width="auto"
prop="srvhdl"
sortable
></el-table-column>
<el-table-column
label="Service"
width="auto"
prop="srv"
></el-table-column>
<el-table-column
label="Stop"
width="auto"
prop="stpflg"
></el-table-column>
<el-table-column
label="Succ."
width="auto"
prop="cntsuc"
></el-table-column>
<el-table-column
label="Retry"
width="auto"
prop="cntret"
></el-table-column>
<el-table-column
label="Errors"
width="auto"
prop="cnterr"
></el-table-column>
<el-table-column
label="Threshold"
width="auto"
prop="trsconerr"
></el-table-column>
<el-table-column
label="Consecutive Errors"
width="auto"
prop="cntconerr"
></el-table-column>
<el-table-column
label="Lck"
width="auto"
prop="trnlckflg"
></el-table-column>
<el-table-column
label="Period for count (in hours)"
width="auto"
prop="cnttim"
></el-table-column>
<el-table-column
label="Configure"
width="auto"
prop=""
></el-table-column>
</c-table> </c-table>
</c-col> </c-col>
</div> </div>
...@@ -30,24 +106,42 @@ export default { ...@@ -30,24 +106,42 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return { return {
data:[], data: [],
buttonFlag:false,
}; };
}, },
methods: { ...Event, methods: { ...Event,
Start() {
this.buttonFlag = false;
let rtnmsg = this.executeRule("wfetsk.tsklist.butstr");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
},
Stop() {
this.buttonFlag = true;
let rtnmsg = this.executeRule("wfetsk.tsklist.butstp");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
},
}, },
created: function () {}, created: function () {},
watch: { watch: {
'model.wfetsk.srsmod.srslst': function () { "model.wfetsk.srsmod.srslst": function () {
this.data = this.model.wfetsk.srsmod.srslst; this.data = this.model.wfetsk.srsmod.srslst;
this.$nextTick(() => { this.$nextTick(() => {
for(let i=0;i<this.data.length;i++){ for (let i = 0; i < this.data.length; i++) {
if(this.data[i].exeflg == 'Y'){ if (this.data[i].exeflg == "Y") {
this.$refs.table.$refs.table.toggleRowSelection(this.data[i],true); this.$refs.table.$refs.table.toggleRowSelection(
} this.data[i],
} true
}) );
} }
} }
});
},
},
}; };
</script> </script>
<style> <style>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvlmd.exeflg">Return to Zhongtai</c-checkbox> <c-checkbox v-model="model.srvlmd.exeflg"
>Return to Zhongtai</c-checkbox
>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Wait before 'Retry' " prop="srvlmd.rettim"> <el-form-item label="Wait before 'Retry' " prop="srvlmd.rettim">
<c-input v-model="model.srvlmd.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input
v-model="model.srvlmd.rettim"
placeholder="请输入Wait before 'Retry' "
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24">
<el-divider></el-divider>
</c-col>
<c-col :span="12"> <c-col :span="12">
<c-checkbox v-model="model.srvlme.exeflg">Return to Zhongtai</c-checkbox> <c-checkbox v-model="model.srvlme.exeflg"
>Return to Zhongtai</c-checkbox
>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="Wait before 'Retry' " prop="srvlme.rettim"> <el-form-item label="Wait before 'Retry' " prop="srvlme.rettim">
<c-input v-model="model.srvlme.rettim" placeholder="请输入Wait before 'Retry' "></c-input> <c-input
v-model="model.srvlme.rettim"
placeholder="请输入Wait before 'Retry' "
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
\ No newline at end of file
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="12"> <c-col :span="24" style="height:24px;">
<c-checkbox v-model="model.srvswt.exeflg">Outgoing SWIFT</c-checkbox> <el-form-item label="Configuration Panel" class="messageLabel">
</el-form-item>
</c-col>
<c-col :span="24" style="height: 10px;margin-bottom:10px">
<el-divider></el-divider>
</c-col> </c-col>
<c-col :span="12"> <!-- Left -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="Own BIC code" prop="srvswt.ownbic"> <el-form-item label="Own BIC code" prop="srvswt.ownbic">
<c-input type="textarea" v-model="model.srvswt.ownbic" maxlength="12" show-word-limit placeholder="请输入Own BIC code" ></c-input> <c-input v-model="model.srvswt.ownbic" show-word-limit placeholder="请输入Own BIC code" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Delivery Monitoring Code" prop="srvswt.delivrcod"> <el-form-item label="Delivery Monitoring Code" prop="srvswt.delivrcod">
<c-select v-model="model.srvswt.delivrcod" style="width:100%" placeholder="请选择Delivery Monitoring Code"> <c-select v-model="model.srvswt.delivrcod" style="width:100%" placeholder="请选择Delivery Monitoring Code">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Obsolescense Period" prop="srvswt.obsper"> <el-form-item label="File Format" prop="srvswt.fil">
<c-select v-model="model.srvswt.obsper" style="width:100%" placeholder="请选择Obsolescense Period"> <c-select v-model="model.srvswt.fil" style="width:100%" placeholder="请选择File Format">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="File Format" prop="srvswt.fil"> <el-form-item label="Job Execution" prop="srvswt.jobexe">
<c-select v-model="model.srvswt.fil" style="width:100%" placeholder="请选择File Format"> <c-select v-model="model.srvswt.jobexe" style="width:100%" placeholder="请选择Jobexecution">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<c-col :span="12"> <!-- Right -->
<el-form-item label="Pathname" prop="srvswt.outdir"> <c-col :span="12" :offset="1">
<c-input v-model="model.srvswt.outdir" maxlength="40" placeholder="请输入Pathname"></c-input> <c-col :span="24">
<el-form-item label="Obsolescense Period" prop="srvswt.obsper">
<c-select v-model="model.srvswt.obsper" style="width:100%" placeholder="请选择Obsolescense Period">
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-checkbox v-model="model.srvswt.etydirflg">Separate Directory per Entity</c-checkbox> <c-col :span="9" :offset="6">
<el-form-item label="Execute: SWF" label-width="100px">
<c-checkbox v-model="model.srvswt.exeflg" placeholder="请输入Pathname"></c-checkbox>
</el-form-item>
</c-col>
<c-col :span="9">
<el-form-item label="Separate Directory per Entity">
<c-checkbox v-model="model.srvswt.etydirflg" placeholder="请输入Pathname"></c-checkbox>
</el-form-item>
</c-col>
<!-- <el-form-item label="Separate Directory per Entity">
<c-checkbox v-model="model.srvswt.etydirflg" placeholder="请输入Pathname"></c-checkbox>
</el-form-item> -->
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Jobexecution" prop="srvswt.jobexe"> <el-form-item label="Pathname" prop="srvswt.outdir">
<c-select v-model="model.srvswt.jobexe" style="width:100%" placeholder="请选择Jobexecution"> <c-input v-model="model.srvswt.outdir" maxlength="40" placeholder="请输入Pathname"></c-input>
</c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Job to executed on successful export" prop="srvswt.job"> <el-form-item label="Job" prop="srvswt.job">
<c-input v-model="model.srvswt.job" maxlength="58" placeholder="请输入Job to executed on successful export"></c-input> <c-input v-model="model.srvswt.job" maxlength="58" placeholder="请输入Job to executed on successful export"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
</div> </div>
</template> </template>
<script> <script>
...@@ -77,6 +99,13 @@ export default { ...@@ -77,6 +99,13 @@ export default {
} }
} }
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label{
text-align: left;
font-weight:bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="24" style="height: 24px">
<c-col :span="12"> <el-form-item label="Configuration Panel" class="messageLabel">
<c-checkbox v-model="model.srvtco.exeflg">TradeConnect/BranchConnect</c-checkbox> </el-form-item>
</c-col>
<c-col :span="24" style="height: 10px; margin-bottom: 10px">
<el-divider></el-divider>
</c-col> </c-col>
<c-col :span="12"> <!-- Left -->
<span v-text="model.srvtco.owntidlbl" data-path=".srvtco.owntidlbl" > </span> <c-col :span="11">
<c-col :span="24">
<el-form-item label="Pathname" prop="srvtco.outdir">
<c-input
v-model="model.srvtco.outdir"
maxlength="80"
placeholder="请输入Pathname"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Own TID" prop="srvtco.owntid"> <el-form-item label="">
<c-input v-model="model.srvtco.owntid" maxlength="23" placeholder="请输入Own TID"></c-input> <c-checkbox v-model="model.srvtco.tidflg"
>Dont Write in Subdirectories</c-checkbox
>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Pathname" prop="srvtco.outdir"> <el-form-item label="">
<c-input v-model="model.srvtco.outdir" maxlength="80" placeholder="请输入Pathname"></c-input> <c-checkbox v-model="model.srvtco.lstflg"
>Dont Create Listfiles</c-checkbox
>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-checkbox v-model="model.srvtco.tidflg">Dont Write in Subdirectories</c-checkbox> <el-form-item label="Jobexecution" prop="srvtco.jobexe">
<c-select
v-model="model.srvtco.jobexe"
style="width: 100%"
placeholder="请选择Jobexecution"
>
</c-select>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-checkbox v-model="model.srvtco.etydirflg">Separate Directory per Entity</c-checkbox> <el-form-item label="Text for Header" prop="srvtco.heatxt">
<c-input
v-model="model.srvtco.heatxt"
maxlength="40"
placeholder="请输入Text for Header"
></c-input>
</el-form-item>
</c-col>
</c-col> </c-col>
<c-col :span="12"> <!-- Right -->
<c-checkbox v-model="model.srvtco.lstflg">Dont Create Listfiles</c-checkbox> <c-col :span="12" :offset="1">
<c-col :span="24">
<el-form-item label="Own TID" prop="srvtco.owntid">
<c-input
v-model="model.srvtco.owntid"
maxlength="23"
placeholder="请输入Own TID"
></c-input>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<c-checkbox v-model="model.srvtco.tecpdfflg">Send technical messages formatted</c-checkbox> <el-form-item label="">
<c-checkbox v-model="model.srvtco.etydirflg"
>Separate Directory per Entity</c-checkbox
>
</el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Jobexecution" prop="srvtco.jobexe"> <el-form-item label="">
<c-select v-model="model.srvtco.jobexe" style="width:100%" placeholder="请选择Jobexecution"> <c-checkbox v-model="model.srvtco.tecpdfflg"
</c-select> >Send technical messages formatted</c-checkbox
>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Job to executed on successful export" prop="srvtco.job"> <el-form-item
<c-input v-model="model.srvtco.job" maxlength="58" placeholder="请输入Job to executed on successful export"></c-input> label="Job"
prop="srvtco.job"
>
<c-input
v-model="model.srvtco.job"
maxlength="58"
placeholder="请输入Job to executed on successful export"
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="24">
<el-form-item label="Text for Header" prop="srvtco.heatxt"> <el-form-item label="">
<c-input v-model="model.srvtco.heatxt" maxlength="40" placeholder="请输入Text for Header"></c-input> <c-checkbox v-model="model.srvtco.exeflg"
>Execute: TCO</c-checkbox
>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col>
<!-- <c-col :span="12">
<span v-text="model.srvtco.owntidlbl" data-path=".srvtco.owntidlbl">
</span>
</c-col> -->
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Event from "~/model/Mgrtsk/Event" import Event from "~/model/Mgrtsk/Event";
export default { export default {
inject: ['root'], inject: ["root"],
props:["model","codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data(){ data() {
return { return {};
}
}, },
methods:{...Event}, methods: { ...Event },
created:function(){ created: function () {},
};
}
}
</script> </script>
<style> <style scoped>
.el-col >>> .el-divider--horizontal {
margin-top: 5px;
}
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style> </style>
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-col :span="23" style="text-align:right;"> <c-col :span="24" style="text-align: right">
<c-button size="small" type="primary" style="margin-left:0" @click="Start">Start</c-button> <c-button
<c-button size="small" type="primary" style="margin-left:0" @click="Stop">Stop</c-button> size="small"
type="primary"
style="margin-left: 0"
:disabled="buttonFlag"
@click="Update"
>Update</c-button
>
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="buttonFlag"
@click="Start"
>Start</c-button
>
<c-button
size="small"
type="primary"
style="margin-left: 0"
:disabled="!buttonFlag"
@click="Stop"
>Stop</c-button
>
</c-col> </c-col>
<c-col :span="24" style="margin-top:10px"> <c-col :span="24" style="margin-top: 10px">
<!-- ================左=============== --> <!-- ================左=============== -->
<!-- <c-col :span="11"> <!-- <c-col :span="11">
<c-col>(Services see 2nd Tab)</c-col> <c-col>(Services see 2nd Tab)</c-col>
...@@ -19,9 +41,12 @@ ...@@ -19,9 +41,12 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> --> </c-col> -->
<c-col :span="11"> <c-col :span="12">
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Start Processing" prop="wfetsk.tsklist.strflg"> <el-form-item
label="Start Processing"
prop="wfetsk.tsklist.strflg"
>
<c-select <c-select
v-model="model.wfetsk.tsklist.strflg" v-model="model.wfetsk.tsklist.strflg"
style="width: 100%" style="width: 100%"
...@@ -58,14 +83,15 @@ ...@@ -58,14 +83,15 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- ================右=============== --> <!-- ================右=============== -->
<c-col :span="11" :offset="1"> <c-col :span="12">
<c-col :span="14"> <c-col :span="14">
<el-form-item label="Started" prop="wfetsk.tsklist.jobstrdat"> <el-form-item
label="Started"
prop="wfetsk.tsklist.jobstrdat"
>
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.wfetsk.tsklist.jobstrdat" v-model="model.wfetsk.tsklist.jobstrdat"
...@@ -99,7 +125,10 @@ ...@@ -99,7 +125,10 @@
</c-col> </c-col>
<c-col :span="14"> <c-col :span="14">
<el-form-item label="Termination" prop="wfetsk.tsklist.terflg"> <el-form-item
label="Termination"
prop="wfetsk.tsklist.terflg"
>
<c-select <c-select
v-model="model.wfetsk.tsklist.terflg" v-model="model.wfetsk.tsklist.terflg"
style="width: 100%" style="width: 100%"
...@@ -149,7 +178,10 @@ ...@@ -149,7 +178,10 @@
</c-col> --> </c-col> -->
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Restart Period" prop="wfetsk.tsklist.redotime"> <el-form-item
label="Restart Period"
prop="wfetsk.tsklist.redotime"
>
<c-input <c-input
v-model="model.wfetsk.tsklist.redotime" v-model="model.wfetsk.tsklist.redotime"
placeholder="请输入Redotime" placeholder="请输入Redotime"
...@@ -261,8 +293,19 @@ ...@@ -261,8 +293,19 @@
E&xit E&xit
</c-button> </c-button>
</c-col> --> </c-col> -->
<c-col :span="22" :offset="1"> <c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns"> <c-istream-table :list="stmData.data" :columns="stmData.columns">
<el-table-column fixed="right" label="操作">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
:disabled = "buttonFlag"
@click="Entry(scope.row.index, scope.row)"
>Entry</el-button
>
</template>
</el-table-column>
</c-istream-table> </c-istream-table>
</c-col> </c-col>
</div> </div>
...@@ -281,45 +324,65 @@ export default { ...@@ -281,45 +324,65 @@ export default {
return { return {
stmData: { stmData: {
columns: [ columns: [
"8 1 \"Entity\" 100 1 0", '8 1 "Entity" 100 1 0',
"7 2 \"Object Identification\" 390 1 0", '7 2 "Object Identification" 390 1 0',
"6 3 \"Ident\" 100 1 0", '6 3 "Ident" 100 1 0',
"1 4 \"Service\" 100 1 0 3 SRVTXT", '1 4 "Service" 100 1 0 3 SRVTXT',
"2 5 \"Status\" 100 1 0 2 WFE:STA", '2 5 "Status" 100 1 0 2 WFE:STA',
"3 6 \"Retries\" 100 2 20:1 1 FormatRTR", '3 6 "Retries" 100 2 20:1 1 FormatRTR',
"4 7 \"Target\" auto 20 30 1" '4 7 "Target" 200 20 30 1',
], ],
data: [ data: [],
]
}, },
buttonFlag:false,
timer: null
}; };
}, },
methods: { ...Event, methods: {
Start(){ ...Event,
console.log(123) Entry() {
let rtnmsg = this.executeRule("wfetsk.tsklist.butstr") let rtnmsg = this.executeRule("wfetsk.tsklist.butexe");
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
}, },
Stop(){ Update() {
let rtnmsg = this.executeRule("wfetsk.tsklist.butstp") let rtnmsg = this.executeRule("wfetsk.tsklist.butupd");
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
}, },
Start() {
this.buttonFlag = true;
let rtnmsg = this.executeRule("wfetsk.tsklist.butstr");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
//定时任务
var timeVal = this.model.wfetsk.tsklist.redotime * 1000;
var that = this;
this.timer = setInterval(function(){
let rtnmsg = that.executeRule("wfetsk.tsklist.butstr");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
}, timeVal);
}, },
created: function () { Stop() {
this.buttonFlag = false;
clearInterval(this.timer);
let rtnmsg = this.executeRule("wfetsk.tsklist.butstp");
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
}
}, },
},
created: function () {},
watch: { watch: {
'model.wfetsk.wfestm': function () { "model.wfetsk.wfestm": function () {
this.stmData.data = this.model.wfetsk.wfestm.rows; this.stmData.data = this.model.wfetsk.wfestm.rows;
} },
} },
}; };
</script> </script>
<style> <style>
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<c-page title="">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
...@@ -90,6 +91,7 @@ ...@@ -90,6 +91,7 @@
</el-tab-pane> --> </el-tab-pane> -->
</c-tabs> </c-tabs>
</el-form> </el-form>
</c-page>
</div> </div>
</template> </template>
<script> <script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment