File tree Expand file tree Collapse file tree 7 files changed +15
-10
lines changed
Expand file tree Collapse file tree 7 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 5555 "@fesjs/plugin-model" : " ^2.0.0" ,
5656 "@fesjs/plugin-request" : " ^2.0.2" ,
5757 "@form-create/ant-design-vue" : " ^3.0.0-alpha.2" ,
58- "@vue/compiler-sfc" : " 3.2.20 " ,
58+ "@vue/compiler-sfc" : " 3.1.4 " ,
5959 "ant-design-vue" : " ^2.2.7" ,
6060 "echarts" : " ^5.2.1" ,
6161 "lodash-es" : " 4.17.21" ,
6262 "moment" : " ^2.29.4" ,
6363 "monaco-editor" : " ^0.34.0" ,
6464 "monaco-editor-webpack-plugin" : " ^7.0.1" ,
65- "vue" : " ^ 3.1.0 " ,
65+ "vue" : " 3.1.4 " ,
6666 "vue-request" : " ^1.2.0"
6767 },
6868 "private" : true
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ export default {
212212 const list = res? .result || [];
213213 if (! formState[' proxyUser' ]) {
214214 formState[' proxyUser' ] = list[0 ] || ' ' ;
215+ if (formState[' proxyUser' ]) {
216+ context .emit (' finish' , cloneDeep (formState), ' init' );
217+ }
215218 }
216219 proxyUsers .value = list;
217220 })
Original file line number Diff line number Diff line change 3939 :label =" $t('job.jobDetail.name')"
4040 name =" jobName"
4141 >
42- <a-input v-model:value =" formState.jobName" :maxLength =" 100" />
42+ <a-textarea v-model:value =" formState.jobName" :maxLength =" 100" showCount />
4343 </a-form-item >
4444 <a-form-item :label =" $t('job.jobDetail.label')" name =" jobLabels" >
4545 <a-tag
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ export default defineComponent({
164164 .catch ((err ) => {
165165 console .log (err)
166166 // message.error("获取日志失败")
167+ pauseFetchingLog (true );
167168 })
168169 } else {
169170 getTaskExecLog ({
@@ -180,6 +181,7 @@ export default defineComponent({
180181 .catch ((err ) => {
181182 console .log (err)
182183 message .error (" 获取日志失败" )
184+ pauseFetchingLog (true );
183185 })
184186 }
185187 }
Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ export default {
676676 }
677677 },
678678 // 更新保存任务配置
679- handleModalFinish (config ) {
679+ handleModalFinish (config , type = ' config ' ) {
680680 const _this = this ;
681681 const { id } = this .curTab ;
682682 const _config = Object .assign (
@@ -694,11 +694,11 @@ export default {
694694 _config .projectId = _this .$route .query .id
695695 updateTaskConfiguration (id, _config)
696696 .then ((res ) => {
697- message .success (' 更新/保存成功' );
697+ if (type !== ' init ' ) message .success (' 更新/保存成功' );
698698 _this .jobData .proxyUser = _config .proxyUser ;
699699 })
700700 .catch ((err ) => {
701- message .error (' 更新/保存失败' );
701+ if (type !== ' init ' ) message .error (' 更新/保存失败' );
702702 console .log (' updateTaskConfiguration error' , err);
703703 });
704704 },
Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ export default {
693693 }
694694 },
695695 // 更新保存任务配置
696- handleModalFinish (config ) {
696+ handleModalFinish (config , type = ' config ' ) {
697697 const _this = this ;
698698 const { id } = this .curTab ;
699699 const _config = Object .assign (
@@ -711,11 +711,11 @@ export default {
711711 _config .projectId = _this .$route .query .id
712712 updateTaskConfiguration (id, _config)
713713 .then ((res ) => {
714- message .success (' 更新/保存成功' );
714+ if (type !== ' init ' ) message .success (' 更新/保存成功' );
715715 _this .jobData .proxyUser = _config .proxyUser ;
716716 })
717717 .catch ((err ) => {
718- message .error (' 更新/保存失败' );
718+ if (type !== ' init ' ) message .error (' 更新/保存失败' );
719719 console .log (' updateTaskConfiguration error' , err);
720720 });
721721 },
Original file line number Diff line number Diff line change 1010 ]" >
1111 <a-input v-model:value =" formState.projectName" :maxLength =" 100" :placeholder ="
1212 $t(`projectManage.editModal.form.fields.projectName.placeholder`)
13- " />
13+ " :disabled = " mode === 'edit' " />
1414 </a-form-item >
1515 <!-- <a-form-item :label="$t(`projectManage.editModal.form.fields.tags.label`)" name="tags">-->
1616 <!-- <a-select mode="multiple" v-model:value="formState.tags" :placeholder="$t(`projectManage.editModal.form.fields.tags.placeholder`)">-->
You can’t perform that action at this time.
0 commit comments