mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-29 18:38:32 +08:00
fix 构建编辑页面未输入构建命令提示错误
This commit is contained in:
parent
48371b1f4c
commit
a074fe208c
@ -5,6 +5,7 @@
|
|||||||
### 🐞 解决BUG、优化功能
|
### 🐞 解决BUG、优化功能
|
||||||
|
|
||||||
1. 【server】修复 非管理员用户无法使用脚本库数据(感谢[@丁炳坤](https://gitee.com/dbk12138) [Gitee issues IA8ZKP](https://gitee.com/dromara/Jpom/issues/IA8ZKP) )
|
1. 【server】修复 非管理员用户无法使用脚本库数据(感谢[@丁炳坤](https://gitee.com/dbk12138) [Gitee issues IA8ZKP](https://gitee.com/dromara/Jpom/issues/IA8ZKP) )
|
||||||
|
2. 【server】修复 构建编辑页面未输入构建命令提示错误(感谢[@yt](https://gitee.com/a1127583020) [Gitee issues IAAI8D](https://gitee.com/dromara/Jpom/issues/IAAI8D) )
|
||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
@ -1135,6 +1135,7 @@
|
|||||||
"i18n_674a284936":"The second part will only be matched when isMatchSecond is true, and it is turned off by default.",
|
"i18n_674a284936":"The second part will only be matched when isMatchSecond is true, and it is turned off by default.",
|
||||||
"i18n_674e7808b5":"MFA verification code",
|
"i18n_674e7808b5":"MFA verification code",
|
||||||
"i18n_679de60f71":"Please fill in the log item name",
|
"i18n_679de60f71":"Please fill in the log item name",
|
||||||
|
"i18n_67aa1c0169":"Please fill in the build command",
|
||||||
"i18n_67aa2d01b9":"Workspace menus, environment variables, and node distribution authorization need to be configured one by one",
|
"i18n_67aa2d01b9":"Workspace menus, environment variables, and node distribution authorization need to be configured one by one",
|
||||||
"i18n_67b667bf98":"partial backup",
|
"i18n_67b667bf98":"partial backup",
|
||||||
"i18n_67e3d3e09c":"batch build",
|
"i18n_67e3d3e09c":"batch build",
|
||||||
|
@ -1135,6 +1135,7 @@
|
|||||||
"i18n_674a284936": "当isMatchSecond为 true 时才会匹配秒部分默认都是关闭的",
|
"i18n_674a284936": "当isMatchSecond为 true 时才会匹配秒部分默认都是关闭的",
|
||||||
"i18n_674e7808b5": "mfa 验证码",
|
"i18n_674e7808b5": "mfa 验证码",
|
||||||
"i18n_679de60f71": "请填写日志项目名称",
|
"i18n_679de60f71": "请填写日志项目名称",
|
||||||
|
"i18n_67aa1c0169": "请填写构建命令",
|
||||||
"i18n_67aa2d01b9": "工作空间的菜单、环境变量、节点分发授权需要逐一配置",
|
"i18n_67aa2d01b9": "工作空间的菜单、环境变量、节点分发授权需要逐一配置",
|
||||||
"i18n_67b667bf98": "部分备份",
|
"i18n_67b667bf98": "部分备份",
|
||||||
"i18n_67e3d3e09c": "批量构建",
|
"i18n_67e3d3e09c": "批量构建",
|
||||||
@ -1594,7 +1595,6 @@
|
|||||||
"i18n_9014d6d289": "备份列表",
|
"i18n_9014d6d289": "备份列表",
|
||||||
"i18n_90154854b6": "请输入host",
|
"i18n_90154854b6": "请输入host",
|
||||||
"i18n_901de97cdb": "方式请求接口参数传入到请求体 ContentType 请使用:text/plain",
|
"i18n_901de97cdb": "方式请求接口参数传入到请求体 ContentType 请使用:text/plain",
|
||||||
|
|
||||||
"i18n_903b25f64e": "未知状态",
|
"i18n_903b25f64e": "未知状态",
|
||||||
"i18n_904615588b": "文件类型没有控制台功能",
|
"i18n_904615588b": "文件类型没有控制台功能",
|
||||||
"i18n_9057ac9664": "请选择触发类型",
|
"i18n_9057ac9664": "请选择触发类型",
|
||||||
|
@ -1135,6 +1135,7 @@
|
|||||||
"i18n_674a284936":"當isMatchSecond為 true 時才會匹配秒部分默認都是關閉的",
|
"i18n_674a284936":"當isMatchSecond為 true 時才會匹配秒部分默認都是關閉的",
|
||||||
"i18n_674e7808b5":"mfa 驗證碼",
|
"i18n_674e7808b5":"mfa 驗證碼",
|
||||||
"i18n_679de60f71":"請填寫日誌項目名稱",
|
"i18n_679de60f71":"請填寫日誌項目名稱",
|
||||||
|
"i18n_67aa1c0169":"請填寫構建命令",
|
||||||
"i18n_67aa2d01b9":"工作空間的菜單、環境變量、節點分發授權需要逐一配置",
|
"i18n_67aa2d01b9":"工作空間的菜單、環境變量、節點分發授權需要逐一配置",
|
||||||
"i18n_67b667bf98":"部分備份",
|
"i18n_67b667bf98":"部分備份",
|
||||||
"i18n_67e3d3e09c":"批量構建",
|
"i18n_67e3d3e09c":"批量構建",
|
||||||
|
@ -1135,6 +1135,7 @@
|
|||||||
"i18n_674a284936":"當isMatchSecond為 true 時才會匹配秒部分預設都是關閉的",
|
"i18n_674a284936":"當isMatchSecond為 true 時才會匹配秒部分預設都是關閉的",
|
||||||
"i18n_674e7808b5":"mfa 驗證碼",
|
"i18n_674e7808b5":"mfa 驗證碼",
|
||||||
"i18n_679de60f71":"請填寫日誌專案名稱",
|
"i18n_679de60f71":"請填寫日誌專案名稱",
|
||||||
|
"i18n_67aa1c0169":"請填寫構建命令",
|
||||||
"i18n_67aa2d01b9":"工作空間的選單、環境變數、節點分發授權需要逐一配置",
|
"i18n_67aa2d01b9":"工作空間的選單、環境變數、節點分發授權需要逐一配置",
|
||||||
"i18n_67b667bf98":"部分備份",
|
"i18n_67b667bf98":"部分備份",
|
||||||
"i18n_67e3d3e09c":"批量構建",
|
"i18n_67e3d3e09c":"批量構建",
|
||||||
|
@ -1474,7 +1474,7 @@ export default {
|
|||||||
buildMode: [{ required: true, message: this.$t('i18n_e3e85de50c'), trigger: 'blur' }],
|
buildMode: [{ required: true, message: this.$t('i18n_e3e85de50c'), trigger: 'blur' }],
|
||||||
releaseMethod: [{ required: true, message: this.$t('i18n_6d7f0f06be'), trigger: 'blur' }],
|
releaseMethod: [{ required: true, message: this.$t('i18n_6d7f0f06be'), trigger: 'blur' }],
|
||||||
branchName: [{ required: true, message: this.$t('i18n_50951f5e74'), trigger: 'blur' }],
|
branchName: [{ required: true, message: this.$t('i18n_50951f5e74'), trigger: 'blur' }],
|
||||||
script: [{ required: true, message: this.$t('i18n_50951f5e74'), trigger: 'blur' }],
|
script: [{ required: true, message: this.$t('i18n_67aa1c0169'), trigger: 'blur' }],
|
||||||
resultDirFile: [{ required: true, message: this.$t('i18n_cc92cf1e25'), trigger: 'blur' }],
|
resultDirFile: [{ required: true, message: this.$t('i18n_cc92cf1e25'), trigger: 'blur' }],
|
||||||
// releasePath: [{ required: true, message: '请填写发布目录', trigger: 'blur' }],
|
// releasePath: [{ required: true, message: '请填写发布目录', trigger: 'blur' }],
|
||||||
repositoryId: [
|
repositoryId: [
|
||||||
@ -1856,6 +1856,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(({ errorFields }) => {
|
.catch(({ errorFields }) => {
|
||||||
if (errorFields && errorFields[0]) {
|
if (errorFields && errorFields[0]) {
|
||||||
|
// console.log(errorFields[0])
|
||||||
const msg = errorFields[0].errors && errorFields[0].errors[0]
|
const msg = errorFields[0].errors && errorFields[0].errors[0]
|
||||||
if (msg) {
|
if (msg) {
|
||||||
$notification.warn({
|
$notification.warn({
|
||||||
@ -1865,12 +1866,22 @@ export default {
|
|||||||
}
|
}
|
||||||
// 切换到对应的流程
|
// 切换到对应的流程
|
||||||
const filedName = errorFields[0].name && errorFields[0].name[0]
|
const filedName = errorFields[0].name && errorFields[0].name[0]
|
||||||
filedName &&
|
if (filedName) {
|
||||||
this.rulesSteps.forEach((item, index) => {
|
for (let itemIndex in this.rulesSteps) {
|
||||||
|
const item = this.rulesSteps[itemIndex]
|
||||||
|
// console.log(itemIndex, filedName)
|
||||||
if (item.includes(filedName)) {
|
if (item.includes(filedName)) {
|
||||||
this.stepsChange(index)
|
this.stepsChange(Number(itemIndex))
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
// this.rulesSteps.forEach((item, index) => {
|
||||||
|
// if (item.includes(filedName)) {
|
||||||
|
// this.stepsChange(index)
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user