@@ -40,12 +46,14 @@ export default {
name: 'index',
data() {
return {
+ schoolId: 1001,
keyword: '',
searchTimer: null,
listData:[],
page: 1,
pageSize: 10,
total: 0,
+ hotData: []
}
},
watch: {
@@ -57,7 +65,7 @@ export default {
}
},
mounted() {
-
+ this.getHot()
},
methods: {
getData(){
@@ -66,6 +74,18 @@ export default {
this.total = res.totalCount
}).catch(res => {})
},
+ getHot(){
+ this.$get(`${this.api.queryDatabaseInfo}?schoolId=${this.schoolId}&startTime=&endTime=`).then(res => {
+ let list = JSON.parse(res.databaseInfo)
+ list.map(n => {
+ n.download
+ })
+ list.sort((a,b) => {
+ return b.download - a.download
+ })
+ this.hotData = list.slice(0,3)
+ }).catch(res => {})
+ },
initData(){
this.page = 1
this.getData()
@@ -77,6 +97,9 @@ export default {
},
download(row){
this.$router.push(`/data?download=true&id=${row.id}&name=${row.name}`)
+ },
+ toData(row){
+ this.$router.push(`/data?typeId=${row.categoryTwoId}`)
}
}
};
@@ -150,5 +173,26 @@ export default {
}
}
}
+ .hot{
+ display: flex;
+ align-items: center;
+ width: 930px;
+ margin: 10px auto 0;
+ .name{
+ font-size: 14px;
+ color: #efefef;
+ }
+ .list{
+ flex: 1;
+ display: inline-flex;
+ margin-left: 20px;
+ li{
+ margin-right: 50px;
+ color: #568df2;
+ font-size: 16px;
+ cursor: pointer;
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/src/pages/setting/person/info.vue b/src/pages/setting/person/info.vue
index b67a189..1ef099d 100644
--- a/src/pages/setting/person/info.vue
+++ b/src/pages/setting/person/info.vue
@@ -349,7 +349,7 @@ export default {
getProvince(){
this.$get(this.api.queryProvince).then(res => {
this.provinceList = res.data.list
- }).catch(res => {});
+ }).catch(res => {})
},
// 获取城市
getCity(id,type){
@@ -360,7 +360,7 @@ export default {
let provinceId = this.personalInformation.provinceId
this.$get(this.api.queryCity,{provinceId}).then(res => {
this.cityList = res.data.list
- }).catch(res => {});
+ }).catch(res => {})
},
// 获取学校名称
getSchoolData(){
@@ -371,7 +371,7 @@ export default {
}
this.$get(`${this.api.queryClient}/1/1000`,data).then(res => {
this.schoolList = res.data.list
- }).catch(res => {});
+ }).catch(res => {})
},
accountChange(){
this.$get(`${this.api.getAccount}?account=${this.form.account}`).then(res => {
@@ -381,10 +381,10 @@ export default {
}else{
this.accountRepeat = false
}
- }).catch(res => {});
+ }).catch(res => {})
},
getdata() {
- this.$get(`${this.api.userinfo}?userId=${this.userId}`)
+ this.$get(`${this.api.userInfo}/${this.userId}`)
.then(res => {
this.personalInformation = res.data.userInfo
this.personalInformation.countries = '中国'
@@ -396,7 +396,7 @@ export default {
})
})
.catch(err => {
- console.log(err);
+ console.log(err)
});
},
save() {
@@ -421,8 +421,11 @@ export default {
userId: personalInformation.userId,
userName: personalInformation.userName,
}
- let data = userInfoEntity
- this.$post(this.api.userinfoUpdate,data).then(res => {
+ let data = {
+ userInfoEntity,
+ personalFileEntities: this.archivesList
+ }
+ this.$post(this.api.updateUser,data).then(res => {
if(res.success){
this.setUserName(personalInformation.userName)
util.successMsg('提交成功')
@@ -494,10 +497,9 @@ export default {
this.$message.success('更换成功')
this.passwordVisible = false
}
+ }).catch(err => {
+ console.log(err)
})
- .catch(err => {
- console.log(err);
- });
},
closePassword() {
this.passwordForm = {
@@ -562,12 +564,10 @@ export default {
email: this.email,
types: 1
}
- this.$post(this.api.sendEmailCode,data).then(res => {
- if(res.errmessage == 'success'){
- this.emailCountdown()
- this.emailOpener = res.data
- }
- }).catch(res => {});
+ this.$post(this.api.findPasswordByEmail,data).then(res => {
+ this.emailCountdown()
+ this.emailOpener = res.data
+ }).catch(res => {})
},
emailSubmit(){
if(!this.email) return this.$message.warning('请输入邮箱')
@@ -581,12 +581,10 @@ export default {
opener: this.emailOpener
}
this.$put(this.api.bingEmail,data).then(res => {
- if(res.errmessage == 'success'){
- this.$message.success('绑定成功')
- this.personalInformation.email = this.email
- this.emailVisible = false
- }
- }).catch(res => {});
+ this.$message.success('绑定成功')
+ this.personalInformation.email = this.email
+ this.emailVisible = false
+ }).catch(res => {})
},
closePhone(){
if(!this.emailDisabled){
@@ -602,11 +600,9 @@ export default {
types: 2
}
this.$post(this.api.sendPhoneCode,data).then(res => {
- if(res.errmessage == 'success'){
- this.phoneCountdown()
- this.phoneOpener = res.data
- }
- }).catch(res => {});
+ this.phoneCountdown()
+ this.phoneOpener = res.data
+ }).catch(res => {})
},
phoneSubmit(){
if(!this.phone) return this.$message.warning('请输入手机号')
@@ -619,13 +615,11 @@ export default {
code: this.phoneCode,
opener: this.phoneOpener
}
- this.$put(this.api.bindPhone,data).then(res => {
- if(res.errmessage == 'success'){
- this.$message.success('绑定成功')
- this.personalInformation.phone = this.phone
- this.phoneVisible = false
- }
- }).catch(res => {});
+ this.$put(this.api.findPasswordByPhone,data).then(res => {
+ this.$message.success('绑定成功')
+ this.personalInformation.phone = this.phone
+ this.phoneVisible = false
+ }).catch(res => {})
},
}
};
diff --git a/src/pages/stat/list/index.vue b/src/pages/stat/list/index.vue
index f5a3797..b83d9b7 100644
--- a/src/pages/stat/list/index.vue
+++ b/src/pages/stat/list/index.vue
@@ -1,16 +1,18 @@
-
-
广东工业大学
+
{{schoolName}}
+
+
{{item.productName}}
使用期限:
- 2021-05-01
至
2021-10-01
+ {{item.startTime}}
至
{{item.endTime}}
-
剩余期限:300 天
-
账号数量:10 天
+
剩余期限:{{item.deadline}} 天
+
账号数量:{{item.accountNum}} 个
+
续费
@@ -19,25 +21,25 @@
-
- 4人
+ {{userCount ? userCount : 0}}人
本校累计用户数量
-
- {{dayCount}}人
+ {{dayCount ? dayCount : 0}}人
平均日访客量
-
- {{schoolCount}}
+ {{schoolCount ? schoolCount : 0}}
累计下载
-
- 4人
+ {{onlineCunt ? onlineCunt : 0}}人
当前在线人数
@@ -61,7 +63,7 @@
按数据库统计使用概况
- 导出数据
+ 导出数据
@@ -82,7 +84,7 @@
按月份统计数据库使用概况
- 导出数据
+ 导出数据
@@ -109,12 +111,18 @@