diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 4d0298b..9f763b5 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -150,9 +150,9 @@
v-for="image in step.stepImages"
:key="image.objId"
class="image-item"
- @click="previewImage(image.imageUrl)"
+ @click="previewImage(getFullImageUrl(image.imageUrl))"
>
-
+
@@ -275,8 +294,8 @@
:key="image.tempId || image.objId"
class="image-item"
>
-
-
![预览图]()
+
+
0) {
+ const temp = this.actionStepsList[index];
+ this.actionStepsList[index] = this.actionStepsList[index - 1];
+ this.actionStepsList[index - 1] = temp;
+ // 重新排序步骤序号
+ this.actionStepsList.forEach((step, idx) => {
+ step.stepSequence = idx + 1;
+ });
+ }
+ },
+ moveStepDown(index) {
+ if (index < this.actionStepsList.length - 1) {
+ const temp = this.actionStepsList[index];
+ this.actionStepsList[index] = this.actionStepsList[index + 1];
+ this.actionStepsList[index + 1] = temp;
+ // 重新排序步骤序号
+ this.actionStepsList.forEach((step, idx) => {
+ step.stepSequence = idx + 1;
+ });
+ }
+ },
+ // 获取完整的图片URL
+ getFullImageUrl(relativePath) {
+ if (!relativePath) return '';
+
+ // 如果已经是完整URL,直接返回(兼容历史数据)
+ if (relativePath.startsWith('http')) {
+ return relativePath;
+ }
+
+ // 动态拼接当前环境的baseURL
+ const baseURL = process.env.VUE_APP_BASE_API || '';
+ return baseURL + relativePath;
}
}
}
@@ -746,6 +808,21 @@ export default {
font-weight: bold;
color: #409EFF;
}
+
+ .step-controls {
+ display: flex;
+ align-items: center;
+ gap: 5px;
+
+ .el-button--text {
+ color: #606266;
+ font-size: 16px;
+
+ &:hover {
+ color: #409EFF;
+ }
+ }
+ }
}
.step-content {