From 1c2a726df988a88008ef83a5b2521054cc23de62 Mon Sep 17 00:00:00 2001 From: pnoker Date: Fri, 21 Aug 2020 23:57:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dc3/docker-compose.yml | 2 +- src/util/util.js | 14 +++--- src/views/device/Device.vue | 98 ++++++++++++++++++++++++++++++++++++- 3 files changed, 106 insertions(+), 8 deletions(-) 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 格式文件,批量导入过程比较耗时,需要耐心等待,请勿切换其他页面!
+
+ +
+