Browse Source

[Fix 0000] 打包问题修复

ruienger 4 tháng trước cách đây
mục cha
commit
171a828537

+ 2 - 2
src/components/Configurable/detail/CustomList.vue

@@ -43,14 +43,14 @@
   @import '/@/design/theme.less';
 
   .list {
-    --image-list_bg_default: url(/@/assets/images/home-container/configurable/list_bg_default.png);
+    // --image-list_bg_default: url(/@/assets/images/home-container/configurable/list_bg_default.png);
     padding: 5px 20px;
     position: relative;
     background-repeat: no-repeat;
     width: 100%;
     height: 100%;
     background-size: 100% 100%;
-    background-image: var(--image-list_bg_default);
+    // background-image: var(--image-list_bg_default);
   }
 
   .list-item__label {

+ 0 - 125
src/views/system/algorithm/components/DynamicForm.vue

@@ -1,125 +0,0 @@
-<script lang="ts">
-  // 在 setup 中使用
-  import { h, defineComponent } from 'vue';
-  import BasicForm from './BasicForm.vue'; // 假设 BasicForm 组件的路径
-  import { FormItem, InputGroup, InputNumber, Input } from 'ant-design-vue';
-
-  export default defineComponent({
-    name: 'MyFormComponent',
-
-    setup() {
-      return () =>
-        h(
-          BasicForm,
-          {
-            register: 'registerForm',
-          },
-          {
-            // 使用 slots 而不是 scopedSlots(Vue 3)
-            InputRangeNumber: ({ model, field, schema }) => {
-              return h(FormItem, null, {
-                default: () =>
-                  h(InputGroup, null, {
-                    default: () => [
-                      h(InputNumber, {
-                        modelValue: model[`${field}Start`],
-                        'onUpdate:modelValue': (val) => (model[`${field}Start`] = val),
-                        style: { width: 'calc(50% - 100px)' },
-                        placeholder: '-',
-                      }),
-                      h(Input, {
-                        value: schema.groupName,
-                        style: {
-                          width: '200px',
-                          borderLeft: '0',
-                          pointerEvents: 'none',
-                          color: 'inherit',
-                        },
-                        disabled: true,
-                      }),
-                      h(InputNumber, {
-                        modelValue: model[`${field}End`],
-                        'onUpdate:modelValue': (val) => (model[`${field}End`] = val),
-                        style: {
-                          width: 'calc(50% - 100px)',
-                          borderLeft: '0',
-                        },
-                        placeholder: '-',
-                      }),
-                    ],
-                  }),
-              });
-            },
-
-            InputGreaterNumber: ({ model, field, schema }) => {
-              return h(FormItem, null, {
-                default: () =>
-                  h(InputGroup, null, {
-                    default: () => [
-                      h(InputNumber, {
-                        style: { width: 'calc(50% - 100px)' },
-                        placeholder: '-',
-                        disabled: true,
-                      }),
-                      h(Input, {
-                        value: schema.groupName,
-                        style: {
-                          width: '200px',
-                          borderLeft: '0',
-                          pointerEvents: 'none',
-                          color: 'inherit',
-                        },
-                        disabled: true,
-                      }),
-                      h(InputNumber, {
-                        modelValue: model[field],
-                        'onUpdate:modelValue': (val) => (model[field] = val),
-                        style: {
-                          width: 'calc(50% - 100px)',
-                          borderLeft: '0',
-                        },
-                        placeholder: '-',
-                      }),
-                    ],
-                  }),
-              });
-            },
-
-            InputLowerNumber: ({ model, field, schema }) => {
-              return h(FormItem, null, {
-                default: () =>
-                  h(InputGroup, null, {
-                    default: () => [
-                      h(InputNumber, {
-                        modelValue: model[field],
-                        'onUpdate:modelValue': (val) => (model[field] = val),
-                        style: { width: 'calc(50% - 100px)' },
-                        placeholder: '-',
-                      }),
-                      h(Input, {
-                        value: schema.groupName,
-                        style: {
-                          width: '200px',
-                          borderLeft: '0',
-                          pointerEvents: 'none',
-                          color: 'inherit',
-                        },
-                        disabled: true,
-                      }),
-                      h(InputNumber, {
-                        style: {
-                          width: 'calc(50% - 100px)',
-                          borderLeft: '0',
-                        },
-                        placeholder: '-',
-                        disabled: true,
-                      }),
-                    ],
-                  }),
-              });
-            },
-          }
-        );
-    },
-  });
-</script>

+ 0 - 105
src/views/system/algorithm/components/EnfMineTree.vue

@@ -1,105 +0,0 @@
-<template>
-  <a-card :bordered="false" :body-style="{ background: backgroundColor }">
-    <a-spin :spinning="loading">
-      <a-input-search v-if="showSearch" class="mb-10px" placeholder="按名称搜索…" @search="onSearch" allowClear />
-      <!--组织机构树-->
-      <template v-if="treeData.length > 0">
-        <a-tree
-          :style="{ background: backgroundColor }"
-          showLine
-          :clickRowToExpand="false"
-          :treeData="treeData"
-          :selectedKeys="selectedKeys"
-          v-model:expandedKeys="expandedKeys"
-          @select="onSelect"
-        >
-        </a-tree>
-
-        <!-- style="overflow-y: auto; height: calc(100vh - 310px)" -->
-        <!-- :selectedKeys="selectedKeys" -->
-        <!-- v-model:expandedKeys="expandedKeys" -->
-      </template>
-      <a-empty v-else description="暂无数据" />
-    </a-spin>
-  </a-card>
-</template>
-
-<script lang="ts" setup>
-  import { onMounted, ref } from 'vue';
-  import { getMineTree } from '../algorithm.api';
-
-  // 定义props
-  defineProps({
-    // 是否显示搜索框
-    showSearch: {
-      type: Boolean,
-      default: true,
-    },
-    // 背景色
-    backgroundColor: {
-      type: String,
-      default: 'inherit',
-    },
-  });
-  const emit = defineEmits(['select', 'rootTreeData']);
-
-  const loading = ref<boolean>(false);
-  // 树列表数据
-  const treeData = ref<any[]>([]);
-  // 当前展开的项
-  const expandedKeys = ref<any[]>([]);
-  // 当前选中的项
-  const selectedKeys = ref<any[]>([]);
-
-  // 搜索关键字
-  const searchKeyword = ref('');
-
-  /**
-   * 设置当前选中的行
-   */
-  function setSelectedKey(key: string, data?: object) {
-    selectedKeys.value = [key];
-    if (data) {
-      emit('select', data);
-    }
-  }
-
-  // 搜索事件
-  async function onSearch(value: string = '') {
-    try {
-      loading.value = true;
-      treeData.value = [];
-      const { tree, firstLeafKey, firstParentKey } = await getMineTree({ searchValue: value });
-      if (Array.isArray(tree)) {
-        treeData.value = tree;
-      }
-      if (expandedKeys.value.length === 0) {
-        expandedKeys.value = [firstParentKey];
-      }
-      if (selectedKeys.value.length === 0) {
-        selectedKeys.value = [firstLeafKey];
-      }
-    } finally {
-      loading.value = false;
-    }
-    searchKeyword.value = value;
-  }
-
-  // 树选择事件
-  function onSelect(selKeys, event) {
-    if (selKeys.length > 0 && selectedKeys.value[0] !== selKeys[0]) {
-      setSelectedKey(selKeys[0], event.selectedNodes[0]);
-    } else {
-      // 这样可以防止用户取消选择
-      setSelectedKey(selectedKeys.value[0]);
-    }
-  }
-
-  onMounted(() => {
-    onSearch();
-  });
-
-  defineExpose({
-    onSearch,
-  });
-</script>