vue2-client 1.17.3 → 1.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -147,10 +147,10 @@
|
|
|
147
147
|
</a-tooltip>
|
|
148
148
|
<a-popover title="开发者调试信息" placement="bottomRight" v-if="!isDebugUser()">
|
|
149
149
|
<template slot="content">
|
|
150
|
-
<p>租户:{{ realQueryParams.$globalProp
|
|
151
|
-
<p>命名空间:{{ realQueryParams.$globalProp
|
|
150
|
+
<p>租户:{{ realQueryParams.$globalProp?.tenantAlias }}</p>
|
|
151
|
+
<p>命名空间:{{ realQueryParams.$globalProp?.namespaceName }} - {{ realQueryParams.$globalProp?.module }}</p>
|
|
152
152
|
<p>配置名称:{{ queryParamsName }}</p>
|
|
153
|
-
<p>版本号:{{ realQueryParams.$globalProp
|
|
153
|
+
<p>版本号:{{ realQueryParams.$globalProp?.version }}</p>
|
|
154
154
|
</template>
|
|
155
155
|
<a-button>
|
|
156
156
|
<a-icon :style="iconStyle" type="bug"/>
|
|
@@ -404,7 +404,21 @@ export default {
|
|
|
404
404
|
// 判断步骤是否已完成
|
|
405
405
|
isStepCompleted (step) {
|
|
406
406
|
if (!step) return false
|
|
407
|
-
return
|
|
407
|
+
return this.isStepGreater(this.currentStepId, step.id) || this.state
|
|
408
|
+
},
|
|
409
|
+
|
|
410
|
+
// 判断第一环节是否再第二个环节之后
|
|
411
|
+
isStepGreater (firstId, secondId) {
|
|
412
|
+
const first = this.steps.find(item => item.id === firstId)
|
|
413
|
+
const second = this.steps.find(item => item.id === secondId)
|
|
414
|
+
// 优先使用 sequence,没有则用 id
|
|
415
|
+
const firstValue = first?.sequence ?? first?.id
|
|
416
|
+
const secondValue = second?.sequence ?? second?.id
|
|
417
|
+
if (firstValue == null || secondValue == null) {
|
|
418
|
+
console.warn('步骤不存在或无效:', { firstId, secondId })
|
|
419
|
+
return false
|
|
420
|
+
}
|
|
421
|
+
return firstValue > secondValue
|
|
408
422
|
},
|
|
409
423
|
|
|
410
424
|
// 判断id是否为流程中最后一个
|
|
@@ -430,7 +444,7 @@ export default {
|
|
|
430
444
|
} else if (!this.changeAble && stepId === this.currentStepId) {
|
|
431
445
|
return this.state ? 'blue' : 'green'
|
|
432
446
|
}
|
|
433
|
-
if (
|
|
447
|
+
if (this.isStepGreater(this.currentStepId, stepId) || this.state) {
|
|
434
448
|
return 'blue'
|
|
435
449
|
}
|
|
436
450
|
if (stepId === this.currentStepId) {
|
|
@@ -491,7 +505,7 @@ export default {
|
|
|
491
505
|
return
|
|
492
506
|
}
|
|
493
507
|
const curStep = this.steps.find(item => item.id === stepId)
|
|
494
|
-
if (stepId
|
|
508
|
+
if (this.isStepGreater(stepId, this.currentStepId) && curStep.status !== 1 && curStep.status !== 2) {
|
|
495
509
|
return this.$message.warn('请先完成当前步骤')
|
|
496
510
|
}
|
|
497
511
|
this.$emit('activeStep', stepId)
|