fix: bug#20731

* fix: 修改lodash依赖包

* fix: bug#20731
This commit is contained in:
qiaochuLei 2023-11-30 17:09:50 +08:00 committed by GitHub
parent 4eedc5812c
commit 2b57d81eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 29 additions and 35 deletions

View File

@ -149,7 +149,7 @@ import { StatusColorEnum, updateStatus } from './data';
import { useMenuStore } from 'store/menu';
import Save from './Save/index.vue';
import { protocolList } from '@/utils/consts';
import _ from 'lodash';
import _ from 'lodash-es';
const menuStory = useMenuStore();
const tableRef = ref<Record<string, any>>({});

View File

@ -87,7 +87,7 @@
<script lang="ts" setup>
import type { FormInstance } from 'ant-design-vue';
import { savePointBatch } from '@/api/data-collect/collector';
import { cloneDeep, isObject } from 'lodash';
import { cloneDeep, isObject } from 'lodash-es';
import { regOnlyNumber } from '../../../data';
const props = defineProps({

View File

@ -148,7 +148,7 @@ import {
} from '@/api/data-collect/collector';
import Save from './Save/index.vue';
import { onlyMessage } from '@/utils/comm';
import _ from 'lodash';
import _ from 'lodash-es';
import { colorMap } from '../data.ts';
const props = defineProps({

View File

@ -481,7 +481,7 @@ import {
getAliyunProductsList,
queryProductList,
} from '@/api/northbound/alicloud';
import _ from 'lodash';
import _ from 'lodash-es';
import { onlyMessage } from '@/utils/comm';
import MSelect from '../../components/MSelect/index.vue';
import { _deploy } from '@/api/device/product';

View File

@ -546,7 +546,7 @@ import {
savePatch,
detail,
} from '@/api/northbound/dueros';
import _, { cloneDeep } from 'lodash';
import _, { cloneDeep } from 'lodash-es';
import { useMenuStore } from '@/store/menu';
import { onlyMessage } from '@/utils/comm';
import MSelect from '../../components/MSelect/index.vue';

View File

@ -74,7 +74,7 @@
import type { ActionsType } from '@/components/Table/index';
import { query, queryProduct, remove } from '@/api/device/firmware';
import dayjs from 'dayjs';
import _ from 'lodash';
import _ from 'lodash-es';
import Save from './Save/index.vue';
import { useMenuStore } from 'store/menu';
import type { FormDataType } from './type';

View File

@ -57,7 +57,7 @@ import { map } from 'rxjs/operators';
import { useInstanceStore } from '@/store/instance';
import { getWebSocket } from '@/utils/websocket';
import { randomString } from '@/utils/utils';
import _ from 'lodash';
import _ from 'lodash-es';
const message = reactive<MessageType>({
up: {

View File

@ -49,7 +49,7 @@
<script lang="ts" setup>
import { useInstanceStore } from '@/store/instance';
import _ from 'lodash';
import _ from 'lodash-es';
import { saveTags, delTags } from '@/api/device/instance'
import { onlyMessage } from '@/utils/comm';

View File

@ -160,7 +160,7 @@ import {
delDeviceCode, queryCodeTips, queryProductCodeTips,
} from '@/api/device/instance';
import { message } from 'jetlinks-ui-components';
import { isBoolean } from 'lodash';
import { isBoolean } from 'lodash-es';
import { onlyMessage } from '@/utils/comm';
const defaultValue =

View File

@ -30,7 +30,7 @@
<script lang="ts" setup>
import { useInstanceStore } from '@/store/instance';
import _ from 'lodash';
import _ from 'lodash-es';
import Event from './Event/index.vue';
import Property from './Property/index.vue';

View File

@ -119,7 +119,7 @@ import {
testCode,
saveProductCode, queryProductCodeTips,
} from '@/api/device/instance';
import { isBoolean } from 'lodash';
import { isBoolean } from 'lodash-es';
import { onlyMessage } from '@/utils/comm';
const defaultValue =

View File

@ -300,7 +300,7 @@ import 'driver.js/dist/driver.min.css';
import { marked } from 'marked';
import type { TableColumnType } from 'ant-design-vue';
import { useMenuStore } from '@/store/menu';
import _ from 'lodash';
import _ from 'lodash-es';
import { accessConfigTypeFilter } from '@/utils/setting';
import AccessModal from './accessModal.vue'
import MetaDataModal from './metadataModal.vue'

View File

@ -190,14 +190,13 @@ import {
updateDevice,
} from '@/api/device/product';
import { isNoCommunity, downloadObject } from '@/utils/utils';
import { omit } from 'lodash-es';
import { omit , cloneDeep } from 'lodash-es';
import { typeOptions } from '@/components/Search/util';
import Save from './Save/index.vue';
import { useMenuStore } from 'store/menu';
import { useRoute } from 'vue-router';
import { useRouterParams } from '@/utils/hooks/useParams';
import { accessConfigTypeFilter } from '@/utils/setting';
import {cloneDeep} from "lodash";
/**
* 表格数据
*/

View File

@ -269,12 +269,11 @@ import { asyncUpdateMetadata, updateMetadata } from '../metadata';
import { useMetadataStore } from '@/store/metadata';
import { DeviceInstance } from '@/views/device/Instance/typings';
import { onlyMessage , LocalStore} from '@/utils/comm';
import {omit} from "lodash-es";
import { omit , cloneDeep} from "lodash-es";
import { PropertiesModal, FunctionModal, EventModal, TagsModal } from './DetailModal'
import { Modal } from 'jetlinks-ui-components'
import {EventEmitter} from "@/utils/utils";
import {computed, watch} from "vue";
import {cloneDeep} from "lodash";
import {useSystem} from "store/system";
import {storeToRefs} from "pinia";
import { FULL_CODE } from 'jetlinks-ui-components/es/DataTable'

View File

@ -71,7 +71,7 @@ import { EventLevel, ExpandsTypeList } from '@/views/device/data';
import { useMetadataStore } from '@/store/metadata';
import { validateJson } from './validator';
import { Rule } from 'ant-design-vue/es/form';
import { debounce } from 'lodash';
import { debounce } from 'lodash-es';
const props = defineProps({
type: {

View File

@ -21,7 +21,7 @@ import { DeviceInstance } from '@/views/device/Instance/typings';
import BaseForm from './BaseForm.vue';
import { PropType } from 'vue';
import { _deploy } from '@/api/device/product';
import { cloneDeep } from 'lodash';
import { cloneDeep } from 'lodash-es';
import { onlyMessage } from '@/utils/comm';
const props = defineProps({

View File

@ -41,7 +41,7 @@ import { reactive } from 'vue';
import type { PropType } from 'vue';
import Item from './item.vue'
import {Form} from "jetlinks-ui-components";
import {cloneDeep} from "lodash";
import { cloneDeep } from "lodash-es";
import { FULL_CODE } from 'jetlinks-ui-components/es/DataTable'
import dayjs from "dayjs";

View File

@ -68,12 +68,11 @@
<script setup lang="ts" name="OtherSetting">
import Metrics from './Metrics/Metrics.vue'
import {watch} from "vue";
import {cloneDeep} from "lodash";
import {useProductStore} from "store/product";
import {useInstanceStore} from "store/instance";
import {getMetadataConfig, getMetadataDeviceConfig} from "@/api/device/product";
import ModelButton from '@/views/device/components/Metadata/Base/components/ModelButton.vue'
import {omit} from "lodash-es";
import { omit , cloneDeep} from "lodash-es";
import { FULL_CODE } from 'jetlinks-ui-components/es/DataTable'
const props = defineProps({

View File

@ -33,8 +33,7 @@ import type { Key } from 'ant-design-vue/es/_util/type';
import { convertMetadata, getCodecs, detail as productDetail } from '@/api/device/product';
import { detail } from '@/api/device/instance'
import { onlyMessage } from '@/utils/comm';
import {cloneDeep} from "lodash";
import {omit} from "lodash-es";
import { omit , cloneDeep } from "lodash-es";
interface Props {
visible: boolean;

View File

@ -4,7 +4,7 @@
<iframe
v-if="loading"
:src="iframeUrl"
scrolling="no"
scrolling="yes"
frameBorder="0"
style="width: 100%; height: 100%"
></iframe>

View File

@ -146,7 +146,7 @@ import { getImage } from '@/utils/comm';
import { list, remove } from '@/api/link/protocol';
import { onlyMessage } from '@/utils/comm';
import Save from './Save/index.vue';
import _ from 'lodash';
import _ from 'lodash-es';
const tableRef = ref<Record<string, any>>({});
const params = ref<Record<string, any>>({});

View File

@ -29,7 +29,7 @@
</template>
<script setup lang="ts">
import { debounce } from 'lodash';
import { debounce } from 'lodash-es';
import ChannelApi from '@/api/media/channel';
import DeviceApi from '@/api/media/device';

View File

@ -80,7 +80,7 @@ import Tag from './Tag.vue';
import RelationSelect from './RelationSelect.vue';
import { getParams } from '../../../util';
import { handleParamsData } from '../../../components/Terms/util';
import _ from 'lodash';
import _ from 'lodash-es';
const props = defineProps({
values: {

View File

@ -127,7 +127,7 @@ const dropdownButtonClass = computed(() => ({
const treeSelect = (v: any, option: any) => {
const node = option.node
visible.value = false
label.value = node.fullname || node.name
label.value = node.fullName || node.name
selectValue.value = v[0]
emit('update:value', node[props.valueName])
emit('select', node)

View File

@ -82,8 +82,7 @@ import { ContextKey, arrayParamsKey, timeTypeKeys } from './util'
import { useSceneStore } from 'store/scene'
import { storeToRefs } from 'pinia';
import { Form } from 'jetlinks-ui-components'
import {indexOf, isArray, isObject, isString, pick} from 'lodash-es'
import {cloneDeep} from "lodash";
import {indexOf, isArray, isObject, isString, pick , cloneDeep } from 'lodash-es'
const sceneStore = useSceneStore()
const { data: formModel } = storeToRefs(sceneStore)

View File

@ -1428,7 +1428,7 @@ import { getImage, onlyMessage } from '@/utils/comm';
import type { formType, dictType, optionsType, applyType } from '../typing';
import { getRoleList_api } from '@/api/system/user';
import { randomString } from '@/utils/utils';
import { cloneDeep, difference } from 'lodash';
import { cloneDeep, difference } from 'lodash-es';
import { useMenuStore } from '@/store/menu';
import { Rule } from 'ant-design-vue/lib/form';
import ApplyList from './ApplyList/index.vue';

View File

@ -235,8 +235,7 @@ import { onlyMessage } from '@/utils/comm';
import { randomString } from '@/utils/utils';
import { FormInstance } from 'ant-design-vue';
import { DataNode } from 'ant-design-vue/lib/tree';
import _ from 'lodash';
import { cloneDeep } from 'lodash';
import _ , { cloneDeep } from 'lodash-es';
import type { dbColumnType, dictItemType, sourceItemType } from '../typing';
const id = useRoute().query.id as string;

View File

@ -76,7 +76,7 @@ import {
} from './utils';
import BaseMenu from '@/views/init-home/data/baseMenu';
import type { AntTreeNodeDropEvent } from 'ant-design-vue/es/tree';
import { cloneDeep } from 'lodash';
import { cloneDeep } from 'lodash-es';
import { onlyMessage } from '@/utils/comm';
import {
USER_CENTER_MENU_CODE,

View File

@ -131,7 +131,7 @@ import { JsonViewer } from 'vue3-json-viewer';
import 'vue3-json-viewer/dist/index.css';
import type { apiDetailsType } from '../typing';
import InputCard from './InputCard.vue';
import { cloneDeep, toLower } from 'lodash';
import { cloneDeep, toLower } from 'lodash-es';
import { FormInstance } from 'ant-design-vue';
import server from '@/utils/request';
import { findData, getCodeText } from '../utils';