2626 class =" action-button"
2727 @confirm =" handleSetNextCronTimeToNow(<string>transaction?.gid)" >
2828 <a-button type =" default" >Reset next cron time</a-button >
29+ </a-popconfirm >
30+ <a-date-picker
31+ v-model:value =" nextCronTimeInput"
32+ format =" YYYY-MM-DD HH:mm:ss"
33+ placeholder =" Set NextCronTime"
34+ show-time
35+ />
36+ <a-popconfirm
37+ title =" Set next cron time?"
38+ ok-text =" Yes, reset"
39+ cancel-text =" No"
40+ class =" action-button"
41+ :disabled =" !nextCronTimeInput"
42+ @confirm =" handleSetNextCronTime(<string>transaction?.gid)" >
43+ <a-button type =" default" :disabled =" !nextCronTimeInput" >Set next cron time</a-button >
2944 </a-popconfirm >
3045 <a-descriptions bordered size =" small" :column =" { xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }" >
3146 <a-descriptions-item label =" Status" >
@@ -61,7 +76,7 @@ import { getTransaction } from '/@/api/api_dtm'
6176import screenfull from ' /@/components/Screenfull/index.vue'
6277import { useRoute } from ' vue-router' ;
6378import { string } from ' vue-types' ;
64- import { forceStopTransaction , resetNextCronTime } from ' /@/api/api_dtm'
79+ import { forceStopTransaction , resetNextCronTime , setNextCronTime } from ' /@/api/api_dtm'
6580// import VueJsonPretty from 'vue-json-pretty';
6681// import 'vue-json-pretty/lib/styles.css'
6782const route = useRoute ();
@@ -72,6 +87,7 @@ const transaction = ref<Transaction>()
7287const visible = ref (false )
7388const textVal = ref (' ' )
7489const closeable = ref (true )
90+ const nextCronTimeInput = ref ()
7591
7692
7793let _gid = <string >route .params .gid ;
@@ -137,6 +153,11 @@ const handleSetNextCronTimeToNow = async(gid: string) => {
137153 refresh ();
138154}
139155
156+ const handleSetNextCronTime = async (gid : string ) => {
157+ await setNextCronTime (gid , nextCronTimeInput .value );
158+ refresh ();
159+ }
160+
140161type Data = {
141162 branches: {
142163 gid: string
0 commit comments