diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 68da7ed2..642a0668 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -38,6 +38,7 @@ }, "dependencies": { "@amap/amap-jsapi-loader": "^1.0.1", + "@antv/x6": "^2.18.1", "@jiaminghi/data-view": "^2.10.0", "@riophae/vue-treeselect": "0.4.0", "@vue/composition-api": "^1.7.1", @@ -152,4 +153,4 @@ "> 1%", "last 2 versions" ] -} +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 7f61b9c2..0b94fd25 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -132,6 +132,15 @@ export const startStation = { }, }, key: "startStakeMark[0]", + rules: [ + { + message: "请补全桩号", + callback(value, data) { + if (!value?.trim() && data.startStakeMark[1]?.trim()) return false + else return true + } + } + ] }, { prefix: { @@ -140,7 +149,7 @@ export const startStation = { color: "#3DE8FF", }, }, - key: "startStakeMark[1]", + key: "startStakeMark[1]" }, ], } @@ -161,6 +170,15 @@ export const endStation = { }, }, key: "endStakeMark[0]", + rules: [ + { + message: "请补全桩号", + callback(value, data) { + if (!value?.trim() && data.endStakeMark[1]?.trim()) return false + else return true + } + } + ] }, { prefix: { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue index e0edd996..6ff92d96 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/HomeFrame/index.vue @@ -1,22 +1,17 @@