diff --git a/public/images/apply/dingtalk-ent-app.png b/public/images/apply/dingtalk-ent-app.png new file mode 100644 index 00000000..fb837d45 Binary files /dev/null and b/public/images/apply/dingtalk-ent-app.png differ diff --git a/public/images/apply/internal-integrated.png b/public/images/apply/internal-integrated.png new file mode 100644 index 00000000..2a860e49 Binary files /dev/null and b/public/images/apply/internal-integrated.png differ diff --git a/public/images/apply/internal-standalone.png b/public/images/apply/internal-standalone.png new file mode 100644 index 00000000..5a7aa303 Binary files /dev/null and b/public/images/apply/internal-standalone.png differ diff --git a/public/images/apply/provider1.png b/public/images/apply/provider1.png deleted file mode 100644 index 1eab6713..00000000 Binary files a/public/images/apply/provider1.png and /dev/null differ diff --git a/public/images/apply/provider2.png b/public/images/apply/provider2.png deleted file mode 100644 index e42b1c1d..00000000 Binary files a/public/images/apply/provider2.png and /dev/null differ diff --git a/public/images/apply/provider3.png b/public/images/apply/provider3.png deleted file mode 100644 index c1c0f979..00000000 Binary files a/public/images/apply/provider3.png and /dev/null differ diff --git a/public/images/apply/provider4.png b/public/images/apply/provider4.png deleted file mode 100644 index 8318b232..00000000 Binary files a/public/images/apply/provider4.png and /dev/null differ diff --git a/public/images/apply/provider5.png b/public/images/apply/provider5.png deleted file mode 100644 index 528f2e79..00000000 Binary files a/public/images/apply/provider5.png and /dev/null differ diff --git a/public/images/apply/third-party.png b/public/images/apply/third-party.png new file mode 100644 index 00000000..ba264de5 Binary files /dev/null and b/public/images/apply/third-party.png differ diff --git a/public/images/apply/wechat-miniapp.png b/public/images/apply/wechat-miniapp.png new file mode 100644 index 00000000..f477ad1e Binary files /dev/null and b/public/images/apply/wechat-miniapp.png differ diff --git a/public/images/apply/wechat-webapp.png b/public/images/apply/wechat-webapp.png new file mode 100644 index 00000000..a41057ee Binary files /dev/null and b/public/images/apply/wechat-webapp.png differ diff --git a/public/images/home/home-view/comprehensive-active.png b/public/images/home/home-view/comprehensive-active.png new file mode 100644 index 00000000..94aedaed Binary files /dev/null and b/public/images/home/home-view/comprehensive-active.png differ diff --git a/public/images/home/home-view/comprehensive.png b/public/images/home/home-view/comprehensive.png new file mode 100644 index 00000000..5f5ee1f9 Binary files /dev/null and b/public/images/home/home-view/comprehensive.png differ diff --git a/public/images/home/home-view/device-active.png b/public/images/home/home-view/device-active.png new file mode 100644 index 00000000..ba50b81a Binary files /dev/null and b/public/images/home/home-view/device-active.png differ diff --git a/public/images/home/home-view/device.png b/public/images/home/home-view/device.png new file mode 100644 index 00000000..7dd611e7 Binary files /dev/null and b/public/images/home/home-view/device.png differ diff --git a/public/images/home/home-view/ops-active.png b/public/images/home/home-view/ops-active.png new file mode 100644 index 00000000..5dc0fbfb Binary files /dev/null and b/public/images/home/home-view/ops-active.png differ diff --git a/public/images/home/home-view/ops.png b/public/images/home/home-view/ops.png new file mode 100644 index 00000000..fc20c1da Binary files /dev/null and b/public/images/home/home-view/ops.png differ diff --git a/public/images/notice-rule/dingtalk.png b/public/images/notice-rule/dingtalk.png new file mode 100644 index 00000000..170929a9 Binary files /dev/null and b/public/images/notice-rule/dingtalk.png differ diff --git a/public/images/notice-rule/email.png b/public/images/notice-rule/email.png new file mode 100644 index 00000000..f41e09a2 Binary files /dev/null and b/public/images/notice-rule/email.png differ diff --git a/public/images/notice-rule/inside-mail.png b/public/images/notice-rule/inside-mail.png new file mode 100644 index 00000000..9b831f2a Binary files /dev/null and b/public/images/notice-rule/inside-mail.png differ diff --git a/public/images/notice-rule/sms.png b/public/images/notice-rule/sms.png new file mode 100644 index 00000000..b8d61fb4 Binary files /dev/null and b/public/images/notice-rule/sms.png differ diff --git a/public/images/notice-rule/voice.png b/public/images/notice-rule/voice.png new file mode 100644 index 00000000..37be5737 Binary files /dev/null and b/public/images/notice-rule/voice.png differ diff --git a/public/images/notice-rule/wechat.png b/public/images/notice-rule/wechat.png new file mode 100644 index 00000000..69acf60f Binary files /dev/null and b/public/images/notice-rule/wechat.png differ diff --git a/src/api/device/instance.ts b/src/api/device/instance.ts index 5b3d3ace..0653c123 100644 --- a/src/api/device/instance.ts +++ b/src/api/device/instance.ts @@ -99,7 +99,7 @@ export const templateDownload = (productId: string, type: string) => server.get( * @param type 文件类型 * @returns */ -export const deviceImport = (productId: string, fileUrl: string, autoDeploy: boolean) => `${BASE_API_PATH}/device-instance/${productId}/import?fileUrl=${fileUrl}&autoDeploy=${autoDeploy}&:X_Access_Token=${LocalStore.get(TOKEN_KEY)}` +export const deviceImport = (productId: string, fileUrl: string, autoDeploy: boolean) => `${BASE_API_PATH}/device-instance/${productId}/import/_withlog?fileUrl=${fileUrl}&autoDeploy=${autoDeploy}&:X_Access_Token=${LocalStore.get(TOKEN_KEY)}` /** * 设备导出 diff --git a/src/components/CheckBoxButton/index.vue b/src/components/CheckBoxButton/index.vue new file mode 100644 index 00000000..eb525e58 --- /dev/null +++ b/src/components/CheckBoxButton/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/components/MCarousel/index.vue b/src/components/MCarousel/index.vue index 8fcfb9fe..960c2aba 100644 --- a/src/components/MCarousel/index.vue +++ b/src/components/MCarousel/index.vue @@ -1,14 +1,11 @@ @@ -43,15 +37,13 @@ const props = defineProps({ }, }); -// const emit = defineEmits(['add']); - const pageIndex = ref(0); const getData = computed(() => { - const start = pageIndex.value >= 0 ? pageIndex.value : 0; + const start = pageIndex.value >= 0 ? pageIndex.value * props.showLength : 0; const end = - props.showLength + pageIndex.value < props.data.length - ? props.showLength + pageIndex.value + (pageIndex.value + 1) * props.showLength < props.data.length + ? props.showLength * (pageIndex.value + 1) : props.data.length; return props.data.slice(start, end); }); @@ -69,10 +61,6 @@ const onLeft = () => { pageIndex.value -= 1; } }; - -// const onAdd = () => { -// emit('add'); -// }; \ No newline at end of file diff --git a/src/views/account/Center/components/HomeView/index.vue b/src/views/account/Center/components/HomeView/index.vue index e23ab06d..0f6c1132 100644 --- a/src/views/account/Center/components/HomeView/index.vue +++ b/src/views/account/Center/components/HomeView/index.vue @@ -1,34 +1,31 @@ @@ -76,28 +73,26 @@ onMounted(() => { \ No newline at end of file diff --git a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue index e6f9b234..ec80dc0d 100644 --- a/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue +++ b/src/views/account/Center/components/StationMessage/components/NotificationRecord/index.vue @@ -1,88 +1,81 @@ diff --git a/src/views/device/Instance/Detail/MetadataMap/index.vue b/src/views/device/Instance/Detail/MetadataMap/index.vue index d317f0e5..5b2fd7fa 100644 --- a/src/views/device/Instance/Detail/MetadataMap/index.vue +++ b/src/views/device/Instance/Detail/MetadataMap/index.vue @@ -50,7 +50,7 @@ 功能说明

- 该功能用于将{{'协议包'}}中的 + 该功能用于将协议包中的 物模型属性标识平台物模型属性标识进行映射,当两方属性标识不一致时,可在当前页面直接修改映射管理,系统将以映射后的物模型属性进行数据处理。

diff --git a/src/views/device/Instance/Export/index.vue b/src/views/device/Instance/Export/index.vue index 87cf1672..7bb54b6d 100644 --- a/src/views/device/Instance/Export/index.vue +++ b/src/views/device/Instance/Export/index.vue @@ -83,6 +83,10 @@ watch( { immediate: true, deep: true }, ); +const productName = computed(() => { + return productList.value.find(item => item.id === modelRef.product)?.name || '' +}) + const handleOk = async () => { const params = encodeQuery(props.data); // downloadFile( @@ -97,7 +101,7 @@ const handleOk = async () => { if (res) { const blob = new Blob([res], { type: modelRef.fileType }); const url = URL.createObjectURL(blob); - downloadFileByUrl(url, `设备实例`, modelRef.fileType); + downloadFileByUrl(url, `${productName.value ? (productName.value + '下设备') : '设备实例'}`, modelRef.fileType); emit('close'); } }; diff --git a/src/views/device/Instance/Import/file.vue b/src/views/device/Instance/Import/file.vue index f164870e..3c2fa2db 100644 --- a/src/views/device/Instance/Import/file.vue +++ b/src/views/device/Instance/Import/file.vue @@ -1,70 +1,68 @@ \ No newline at end of file diff --git a/src/views/system/Apply/Save/components/ApplyList/MUpload.vue b/src/views/system/Apply/Save/components/ApplyList/MUpload.vue index 5561a59a..b691ad5f 100644 --- a/src/views/system/Apply/Save/components/ApplyList/MUpload.vue +++ b/src/views/system/Apply/Save/components/ApplyList/MUpload.vue @@ -172,7 +172,7 @@ const saveImage = (url: string) => { width: @with; height: @height; overflow: hidden; - //border-radius: 50%; + border-radius: 5px; // border: @border; transition: all 0.3s; @@ -197,9 +197,9 @@ const saveImage = (url: string) => { flex-direction: column; width: 100%; height: 100%; - background-color: rgba(#000, 0.06); + // background-color: rgba(#000, 0.06); cursor: pointer; - padding: 8px; + // padding: 8px; .upload-image-mask { .flex-center(); @@ -211,7 +211,7 @@ const saveImage = (url: string) => { width: 100%; height: 100%; color: #fff; - font-size: 16px; + font-size: 14px; background-color: @mask-color; } diff --git a/src/views/system/Apply/Save/components/ApplyList/index.vue b/src/views/system/Apply/Save/components/ApplyList/index.vue index 66664d43..1d7e4ed3 100644 --- a/src/views/system/Apply/Save/components/ApplyList/index.vue +++ b/src/views/system/Apply/Save/components/ApplyList/index.vue @@ -47,7 +47,7 @@ const props = defineProps({ }, photoUrl: { type: String, - default: getImage('/apply/provider1.png'), + default: getImage('/apply/internal-standalone.png'), }, options: { type: Array as PropType, @@ -58,12 +58,12 @@ const props = defineProps({ const emit = defineEmits(['update:value', 'update:photoUrl']); const defaultImg = { - 'internal-standalone': getImage('/apply/provider1.png'), - 'internal-integrated': getImage('/apply/provider2.png'), - 'wechat-webapp': getImage('/apply/provider4.png'), - 'dingtalk-ent-app': getImage('/apply/provider3.png'), - 'third-party': getImage('/apply/provider5.png'), - 'wechat-miniapp': getImage('/apply/provider1.png'), + 'internal-standalone': getImage('/apply/internal-standalone.png'), + 'internal-integrated': getImage('/apply/internal-integrated.png'), + 'wechat-webapp': getImage('/apply/wechat-webapp.png'), + 'dingtalk-ent-app': getImage('/apply/dingtalk-ent-app.png'), + 'third-party': getImage('/apply/third-party.png'), + 'wechat-miniapp': getImage('/apply/wechat-miniapp.png'), } const urlValue = ref({...defaultImg}); diff --git a/src/views/system/Apply/Save/components/EditForm.vue b/src/views/system/Apply/Save/components/EditForm.vue index d5e51cda..9f7b7ed7 100644 --- a/src/views/system/Apply/Save/components/EditForm.vue +++ b/src/views/system/Apply/Save/components/EditForm.vue @@ -1427,7 +1427,7 @@ const loading = ref(false); const initForm: formType = { name: '', provider: 'internal-standalone', - logoUrl: getImage('/apply/provider1.png'), + logoUrl: getImage('/apply/internal-standalone.png'), integrationModes: [], description: '', page: { diff --git a/src/views/system/NoticeRule/components/Item/index.vue b/src/views/system/NoticeRule/components/Item/index.vue index 03e3d668..9a66b217 100644 --- a/src/views/system/NoticeRule/components/Item/index.vue +++ b/src/views/system/NoticeRule/components/Item/index.vue @@ -1,7 +1,7 @@