更新页面

This commit is contained in:
2023-07-02 11:24:20 +08:00
parent 4463b1fe02
commit 85608faf85

View File

@@ -44,7 +44,7 @@
<el-card shadow="always" class="card_style">
<span style="font-size:25px;font-weight:540;color: #676767">已发布</span>
<br/><br/>
<span style="font-size:55px;font-weight:650;color: #3d8bff">{{ProjectNum}}</span>
<span style="font-size:55px;font-weight:650;color: #3d8bff">{{Monely}}</span>
<br/><br/>
<span style="font-size:25px;font-weight:540;color: #676767"></span>
<br/>
@@ -52,9 +52,9 @@
<div style="border-top:1.5px solid #ababab;border-bottom:1.5px solid #ababab;">
<br/>
<span style="font-size:18px;font-weight:540;color: #676767">选择期数: &nbsp;</span>
<el-select clearable v-model="selectProNum" filterable placeholder="期数" style="width:80px;">
<el-select clearable v-model="selectMonly" filterable placeholder="期数" style="width:80px;">
<el-option
v-for="item in ProjectNum"
v-for="item in Monely"
:key="item"
:label="item"
:value="item"
@@ -145,18 +145,23 @@ export default {
data(){
return{
// 项目总数
ProjectNum:null,
selectProNum:null,
ProjectNum:0,
//期刊总数:
Monely:0,
//保存用户选择期刊期数:
selectMonly:null,
};
},
// 初始化渲染页面
mounted(){
this.getProjectNum();
this.getMonely();
},
methods: {
goBack() {
window.history.go(-1);
},
// 获取项目总数
getProjectNum(){
var that = this;
axios({
@@ -166,7 +171,20 @@ export default {
}
}).then((res)=>{
that.ProjectNum = parseInt(res.data);
that.selectProNum = that.ProjectNum;
// console.log(res.data);
})
},
getMonely(){
var that = this;
axios({
method: 'post',
url: 'http://localhost:8082/helloGithub_war_exploded/latest',
params: {
}
}).then(function (res){
that.Monely = res.data;
// that.Monely = parseInt(res.data);
// that.selectMonly = that.Monely;
// console.log(res.data);
})
},