CzRger 3 mēneši atpakaļ
vecāks
revīzija
a5feeba720

+ 7 - 2
src/views/manage/theme/relation-detail.vue

@@ -91,6 +91,12 @@
           limitNoUpload
           :delRule="(file) => true"
         />
+        <CusFormColumn
+          :span="12"
+          label="节点大小"
+          v-model:param="state.form.iconSize"
+          link="number"
+        />
         <template v-if="state.form.isMain == 1">
           <CusFormColumn
             :span="12"
@@ -100,8 +106,8 @@
             link="select"
             :options="DictionaryStore.relationChartLayoutList"
           />
+          <el-col :span="12"/>
         </template>
-        <el-col v-else :span="12"/>
         <el-col :span="12">
           <div class="__cus-title_1">数据条件</div>
           <CusTable
@@ -147,7 +153,6 @@
               <el-row>
                 <CusFormColumn
                   class="__cus-table-form-column"
-                  required
                   :span="24"
                   v-model:param="scope.row.paramType"
                   link="select"

+ 2 - 0
src/views/web/archive/index-worker.vue

@@ -249,6 +249,7 @@ const themeConfigCpt = computed(() => {
       const node = {
         id: String(v.id),
         iconSrc: v.url,
+        iconSize: v.iconSize,
         weight: v.weight || 100,
         num: 0,
         name: v.indexNameShort,
@@ -277,6 +278,7 @@ const themeConfigCpt = computed(() => {
       const node = {
         id: String(v.id),
         iconSrc: v.url,
+        iconSize: v.iconSize,
         weight: v.weight,
         num: 0,
         name: v.indexNameShort,

+ 2 - 0
src/views/web/archive/relation-chart.vue

@@ -28,6 +28,8 @@ const setNodes = (data) => {
       badge: true,
       badges:[{text: String(v.num), placement: 'top-right', offsetX: -10, offsetY: 10}],
       iconSrc: v.iconSrc,
+      iconWidth: Number(v.iconSize) > 0 ? Number(v.iconSize) : (v.weight - 10),
+      iconHeight: Number(v.iconSize) > 0 ? Number(v.iconSize) : (v.weight - 10),
     }
     if (props.showZero) {
       arr.push(v)