Przeglądaj źródła

数据源配置

CzRger 1 rok temu
rodzic
commit
a885a7cf65

BIN
src/assets/images/cus/cus-tab_type2-active.png


BIN
src/assets/images/cus/cus-title_type2-icon.png


+ 9 - 0
src/assets/svg/business/tips.svg

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 26.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve">
+<path class="st0" d="M64,7.7C32.9,7.7,7.7,32.9,7.7,64c0,0,0,0,0,0c0,31.1,25.2,56.3,56.3,56.3c31.1,0,56.3-25.2,56.3-56.3
+	c0,0,0,0,0,0C120.3,32.9,95.1,7.7,64,7.7z M58.9,76.8V33.3c0-2.8,2.3-5.1,5.1-5.1s5.1,2.3,5.1,5.1v43.5c0,2.8-2.3,5.1-5.1,5.1
+	S58.9,79.6,58.9,76.8C58.9,76.8,58.9,76.8,58.9,76.8z M64,99.8C64,99.8,64,99.8,64,99.8c-2.8,0-5.1-2.3-5.1-5.1
+	c0-2.8,2.3-5.1,5.1-5.1c2.8,0,5.1,2.3,5.1,5.1S66.8,99.8,64,99.8z"/>
+</svg>

+ 1 - 1
src/components/cus/CusFormColumn.vue

@@ -8,7 +8,7 @@
   }" :span="span" :offset="offset" ref="ref_cusFormColumn">
     <el-form-item :label="label" :label-width="labelWidth" :class="{
       required: required !== false,
-      'no-label': (labelWidth == 0 || labelWidth === '0px') && !$util.isValue(label)
+      'no-label': (labelWidth == 0 || labelWidth === '0px') && !$util.isValue(label) && !$slots.label
     }" :error="errorMessage" :required="required">
       <template #label>
         <slot name="label"/>

+ 1 - 1
src/styles/cus.scss

@@ -282,7 +282,7 @@
     left: 10px;
     width: 18px;
     height: 18px;
-    //background-image: url("@/assets/images/cus/cus-title_type2-icon.png");
+    background-image: url("@/assets/images/cus/cus-title_type2-icon.png");
     background-repeat: no-repeat;
     background-size: 100% 100%;
   }

+ 32 - 0
src/views/ship-test/manage/source/detail.vue

@@ -11,6 +11,7 @@
   >
     <div class="__normal-form">
       <CusForm labelWidth="120px" ref="ref_form" :formView="isViewCpt">
+        <div class="__cus-title_2">基本信息</div>
         <CusFormColumn
             :span="24"
             required
@@ -32,6 +33,34 @@
             :rows="4"
             maxlength="225"
             show-word-limit/>
+        <div class="__cus-title_2">瓦片地图</div>
+        <CusFormColumn
+          :span="24"
+          required
+          label="地址"
+          v-model:param="cusDetail.tileUrl"/>
+        <CusFormColumn
+          :span="24"
+          required
+          label="图层名称"
+          v-model:param="cusDetail.tileName"/>
+        <div class="__cus-title_2">WebSocker</div>
+        <CusFormColumn
+          :span="24"
+          required
+          label="地址"
+          v-model:param="cusDetail.wsUrl"/>
+        <CusFormColumn
+          :span="24"
+          v-model:param="cusDetail.wsDataFlag">
+          <template #label>
+            <el-tooltip content="实际返回数据的路径,空值的话直接取返回值,或者data、data.list">
+              <div>
+                数据标识<SvgIcon name="tips" color="#333333"/>
+              </div>
+            </el-tooltip>
+          </template>
+        </CusFormColumn>
       </CusForm>
     </div>
   </CusDialog>
@@ -134,4 +163,7 @@ export default defineComponent({
 </script>
 
 <style scoped lang="scss">
+.__cus-title_2 {
+  margin-bottom: 10px;
+}
 </style>