|
@@ -154,8 +154,19 @@ export default {
|
|
|
this.$httpWithMsg.get(url).then((response) => {
|
|
|
if (response.data.auth == true) {
|
|
|
this.info.activation = "已授权";
|
|
|
- this.info.expire = response.data.expireTime;
|
|
|
- this.info.maxCount = response.data.maxOnlineUserCount;
|
|
|
+ if (this.info.activation == "已授权" && !response.data.expireTime) {
|
|
|
+ this.info.expire = "不限制";
|
|
|
+ } else {
|
|
|
+ this.info.expire = response.data.expireTime;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.info.activation == "已授权" &&
|
|
|
+ !response.data.maxOnlineUserCount
|
|
|
+ ) {
|
|
|
+ this.info.maxCount = "不限制";
|
|
|
+ } else {
|
|
|
+ this.info.maxCount = response.data.maxOnlineUserCount;
|
|
|
+ }
|
|
|
this.info.onlineCount = response.data.onlineUserCount;
|
|
|
this.info.type =
|
|
|
response.data.type == "ONLINE" ? "在线激活" : "离线激活";
|
|
@@ -196,6 +207,14 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
submitUpload() {
|
|
|
+ var fileList = this.$refs.upload.uploadFiles;
|
|
|
+ if (fileList.length == 0) {
|
|
|
+ this.$notify({
|
|
|
+ message: "请选择授权文件",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.$refs.upload.submit();
|
|
|
},
|
|
|
uploadSuccess(response) {
|