diff --git a/dc3/docker-compose.yml b/dc3/docker-compose.yml index 29a1ab2..acbfd31 100644 --- a/dc3/docker-compose.yml +++ b/dc3/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: ../ dockerfile: ./Dockerfile - image: pnoker/dc3-web:3.0 + image: registry.cn-beijing.aliyuncs.com/dc3/dc3-web:1.0 restart: always ports: - 80:80 diff --git a/src/util/util.js b/src/util/util.js index 932e996..9f051ad 100644 --- a/src/util/util.js +++ b/src/util/util.js @@ -1,5 +1,5 @@ import {isNull} from './validate' -import {Message, Notification} from 'element-ui' +import {Notification} from 'element-ui' let failNotify = true, failNotifyText = ''; @@ -356,11 +356,13 @@ export const successMessage = (message) => { if (message === '' || message == null) { message = '操作成功!'; } - Message({ - center: true, - type: 'success', - showClose: true, - message: message + Notification.success({ + title: '成功', + message: message, + onClose: () => { + failNotify = false; + failNotifyText = ''; + } }); }; diff --git a/src/views/device/Device.vue b/src/views/device/Device.vue index 20953da..ed7d7f4 100644 --- a/src/views/device/Device.vue +++ b/src/views/device/Device.vue @@ -17,6 +17,10 @@ @size-change="sizeChange" @current-change="currentChange" > + + + +
+ + +
将文件拖到此处,或点击上传
+
只能上传 json 格式文件,批量导入过程比较耗时,需要耐心等待,请勿切换其他页面!
+
+ +
+