更新页面
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
<el-card shadow="always" class="card_style">
|
<el-card shadow="always" class="card_style">
|
||||||
<span style="font-size:25px;font-weight:540;color: #676767">已发布</span>
|
<span style="font-size:25px;font-weight:540;color: #676767">已发布</span>
|
||||||
<br/><br/>
|
<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/>
|
<br/><br/>
|
||||||
<span style="font-size:25px;font-weight:540;color: #676767">期</span>
|
<span style="font-size:25px;font-weight:540;color: #676767">期</span>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -52,9 +52,9 @@
|
|||||||
<div style="border-top:1.5px solid #ababab;border-bottom:1.5px solid #ababab;">
|
<div style="border-top:1.5px solid #ababab;border-bottom:1.5px solid #ababab;">
|
||||||
<br/>
|
<br/>
|
||||||
<span style="font-size:18px;font-weight:540;color: #676767">选择期数: </span>
|
<span style="font-size:18px;font-weight:540;color: #676767">选择期数: </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
|
<el-option
|
||||||
v-for="item in ProjectNum"
|
v-for="item in Monely"
|
||||||
:key="item"
|
:key="item"
|
||||||
:label="item"
|
:label="item"
|
||||||
:value="item"
|
:value="item"
|
||||||
@@ -145,18 +145,23 @@ export default {
|
|||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
// 项目总数
|
// 项目总数
|
||||||
ProjectNum:null,
|
ProjectNum:0,
|
||||||
selectProNum:null,
|
//期刊总数:
|
||||||
|
Monely:0,
|
||||||
|
//保存用户选择期刊期数:
|
||||||
|
selectMonly:null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// 初始化渲染页面
|
// 初始化渲染页面
|
||||||
mounted(){
|
mounted(){
|
||||||
this.getProjectNum();
|
this.getProjectNum();
|
||||||
|
this.getMonely();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goBack() {
|
goBack() {
|
||||||
window.history.go(-1);
|
window.history.go(-1);
|
||||||
},
|
},
|
||||||
|
// 获取项目总数
|
||||||
getProjectNum(){
|
getProjectNum(){
|
||||||
var that = this;
|
var that = this;
|
||||||
axios({
|
axios({
|
||||||
@@ -166,7 +171,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}).then((res)=>{
|
}).then((res)=>{
|
||||||
that.ProjectNum = parseInt(res.data);
|
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);
|
// console.log(res.data);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user