Browse Source

历史必填项

CzRger 1 year ago
parent
commit
22b9be1062
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/ship-test/manage/track/index.vue

+ 6 - 6
src/views/ship-test/manage/track/index.vue

@@ -64,27 +64,27 @@
         <div class="__cus-title_2">历史轨迹唯一标识(DATA.xxx形式,可任意拼接或使用字符串模板`POINT(${DATA.xxx} ${DATA.xxx})`或DATA.xxx + DATA.xxx)</div>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹"
             v-model:param="form.historyTrackKey"/>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹点"
             v-model:param="form.historyTrackPointKey"/>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="WKT坐标"
             v-model:param="form.historyTrackWktKey"/>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="速度"
             v-model:param="form.historyTrackSpeedKey"/>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="航向"
             v-model:param="form.historyTrackCourseKey"/>
         <CusFormColumn
@@ -93,7 +93,7 @@
             v-model:param="form.historyTrackHeadKey"/>
         <CusFormColumn
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹时间"
             v-model:param="form.historyTrackTimeKey"/>
       </CusForm>