diff --git a/src/utils/consts.ts b/src/utils/consts.ts
index d4404334..555c55ef 100644
--- a/src/utils/consts.ts
+++ b/src/utils/consts.ts
@@ -55,5 +55,5 @@ export const USER_CENTER_MENU_BUTTON_CODE = 'user-center-passwd-update'
export const protocolList = [
{ label: 'OPC-UA', value: 'OPC_UA', alias: 'opc-ua' },
{ label: 'Modbus/TCP', value: 'MODBUS_TCP', alias: 'modbus-tcp' },
- { label: 'GATEWAY', value: 'GATEWAY', alias: 'collector-gateway' },
+ { label: 'GATEWAY', value: 'COLLECTOR_GATEWAY', alias: 'collector-gateway' },
]
diff --git a/src/views/DataCollect/Channel/Save/index.vue b/src/views/DataCollect/Channel/Save/index.vue
index 545281c8..cfccd740 100644
--- a/src/views/DataCollect/Channel/Save/index.vue
+++ b/src/views/DataCollect/Channel/Save/index.vue
@@ -93,7 +93,7 @@
/>
(cloneDeep(FormState));
const handleOk = async () => {
const params: any = await formRef.value?.validate();
- if (params?.provider === 'GATEWAY') {
+ if (params?.provider === 'COLLECTOR_GATEWAY') {
params.configuration.deviceName = formData.value.configuration.deviceName
}
diff --git a/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue b/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue
index 9d40ba15..20beddc7 100644
--- a/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue
+++ b/src/views/DataCollect/Collector/Point/Save/SaveModBus.vue
@@ -347,7 +347,7 @@ const handleOk = async () => {
address: data?.pointKey,
};
- if (props.data.provider === 'GATEWAY') {
+ if (props.data.provider === 'COLLECTOR_GATEWAY') {
const configuration = cloneDeep(params.configuration)
params.configuration = {
configuration: configuration,
@@ -447,12 +447,12 @@ watch(
watch(
() => props.data,
(value) => {
- if (value.id && ['MODBUS_TCP', 'GATEWAY'].includes(value.provider)) {
+ if (value.id && ['MODBUS_TCP', 'COLLECTOR_GATEWAY'].includes(value.provider)) {
const _value: any = cloneDeep(value);
const { writeByteCount, byteCount } =
- props.data.provider === 'GATEWAY' ? _value.configuration.configuration.parameter: _value.configuration.parameter;
+ props.data.provider === 'COLLECTOR_GATEWAY' ? _value.configuration.configuration.parameter: _value.configuration.parameter;
- if (props.data.provider === 'GATEWAY') {
+ if (props.data.provider === 'COLLECTOR_GATEWAY') {
formData.value = {
...omit(_value, ['configuration']),
..._value.configuration,
diff --git a/src/views/DataCollect/Collector/Point/index.vue b/src/views/DataCollect/Collector/Point/index.vue
index e05c3d0a..28a3b1c6 100644
--- a/src/views/DataCollect/Collector/Point/index.vue
+++ b/src/views/DataCollect/Collector/Point/index.vue
@@ -20,7 +20,7 @@
-
+
{{ getTypeTooltip(formData.configuration.inheritBreakerSpec.type) }}
{
let _copyData = _data
- if (['GATEWAY'].includes(provider.value)) {
+ if (['COLLECTOR_GATEWAY'].includes(provider.value)) {
const copyData = cloneDeep(_data)
_copyData = omit(copyData, ['configuration', 'collectorProvider'])
@@ -345,7 +345,7 @@ watch(
(value) => {
const dt = _channelListAll.value.find((item) => item.id === value);
visibleUnitId.value = visibleEndian.value =
- dt?.provider && ['MODBUS_TCP', 'GATEWAY'].includes(dt?.provider);
+ dt?.provider && ['MODBUS_TCP', 'COLLECTOR_GATEWAY'].includes(dt?.provider);
},
{ deep: true },
);
@@ -355,7 +355,7 @@ watch(
(value) => {
if (value.id) {
let copyValue = cloneDeep(value)
- if (!copyValue?.configuration?.inheritBreakerSpec && copyValue.provider !== 'GATEWAY') {
+ if (!copyValue?.configuration?.inheritBreakerSpec && copyValue.provider !== 'COLLECTOR_GATEWAY') {
copyValue.configuration = {
...copyValue.configuration,
inheritBreakerSpec: {
@@ -365,7 +365,7 @@ watch(
copyValue.circuitBreaker.type = 'Ignore'
}
- if (copyValue.provider === 'GATEWAY') {
+ if (copyValue.provider === 'COLLECTOR_GATEWAY') {
formData.value = {
...omit(copyValue, ['configuration']),
...copyValue.configuration,
@@ -381,7 +381,7 @@ watch(
);
watchEffect(() => {
- if (provider.value === 'GATEWAY') {
+ if (provider.value === 'COLLECTOR_GATEWAY') {
geyProviderList()
}
})
diff --git a/src/views/device/Instance/Detail/components/EditTable/PatchMapping.vue b/src/views/device/Instance/Detail/components/EditTable/PatchMapping.vue
index d488608d..c1133a31 100644
--- a/src/views/device/Instance/Detail/components/EditTable/PatchMapping.vue
+++ b/src/views/device/Instance/Detail/components/EditTable/PatchMapping.vue
@@ -104,12 +104,12 @@ const handleData = (data: any[], type: string) => {
const handleSearch = async () => {
loading.value = true;
const resp = await treeMapping({
- terms: [
- {
- column: 'provider',
- value: _props.type,
- },
- ],
+ // terms: [
+ // {
+ // column: 'provider',
+ // value: _props.type,
+ // },
+ // ],
});
loading.value = false;
if (resp.status === 200) {
diff --git a/vite.config.ts b/vite.config.ts
index 36d90794..ffa11a2c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -94,9 +94,9 @@ export default defineConfig(({ mode}) => {
[env.VITE_APP_BASE_API]: {
// target: 'http://192.168.32.226:8844',
// target: 'http://192.168.32.244:8881',
- // target: 'http://192.168.32.163:8844', //张季本地
+ target: 'http://192.168.32.163:8844', //张季本地
// target: 'http://120.77.179.54:8844', // 120测试
- target: 'http://192.168.33.46:8844', // 本地开发环境
+ // target: 'http://192.168.33.46:8844', // 本地开发环境
ws: 'ws://192.168.33.46:8844',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')