소스 검색

历史必填项

CzRger 1 년 전
부모
커밋
22b9be1062
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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>
         <div class="__cus-title_2">历史轨迹唯一标识(DATA.xxx形式,可任意拼接或使用字符串模板`POINT(${DATA.xxx} ${DATA.xxx})`或DATA.xxx + DATA.xxx)</div>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹"
             label="轨迹"
             v-model:param="form.historyTrackKey"/>
             v-model:param="form.historyTrackKey"/>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹点"
             label="轨迹点"
             v-model:param="form.historyTrackPointKey"/>
             v-model:param="form.historyTrackPointKey"/>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="WKT坐标"
             label="WKT坐标"
             v-model:param="form.historyTrackWktKey"/>
             v-model:param="form.historyTrackWktKey"/>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="速度"
             label="速度"
             v-model:param="form.historyTrackSpeedKey"/>
             v-model:param="form.historyTrackSpeedKey"/>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="航向"
             label="航向"
             v-model:param="form.historyTrackCourseKey"/>
             v-model:param="form.historyTrackCourseKey"/>
         <CusFormColumn
         <CusFormColumn
@@ -93,7 +93,7 @@
             v-model:param="form.historyTrackHeadKey"/>
             v-model:param="form.historyTrackHeadKey"/>
         <CusFormColumn
         <CusFormColumn
             :span="12"
             :span="12"
-            required
+            :required="!!currentSource.historyWsUrl"
             label="轨迹时间"
             label="轨迹时间"
             v-model:param="form.historyTrackTimeKey"/>
             v-model:param="form.historyTrackTimeKey"/>
       </CusForm>
       </CusForm>