Commit b05aef25 authored by 吴冠's avatar 吴冠

完善模块

parent 0523f608
......@@ -26,7 +26,8 @@
@current-change="handleCurrentChange"
:current-page="currentPage"
:size ="size"
layout="total, prev, pager, next, jumper"
:page-sizes="[10, 20, 30, 40]"
layout="total,sizes, prev, pager, next, jumper"
:total="total">
</el-pagination >
</div>
......@@ -70,9 +71,11 @@ import {
this.getListContent(message)
let detailsType = sessionStorage.getItem("detailsType")
let detailsId = sessionStorage.getItem("detailsId")
//平台动态
//判断是否来自于首页底部三大模块
if(detailsType =="1"){
this.isClick(detailsId)
sessionStorage.removeItem("detailsType")
sessionStorage.removeItem("detailsId")
}
},
data() {
......@@ -80,6 +83,7 @@ import {
detailList:{
},
detailsId:'',
contentList:'',
isList:true,
activeName: '124',
......@@ -98,6 +102,7 @@ import {
methods:{
handleSelect(key, keyPath) {
let keyValue = key/* .slice(4) */
this.detailsId = key
let message = {}
message.cateId = keyValue
this.getListContent(message)
......@@ -120,10 +125,19 @@ import {
this.total = total
},
handleSizeChange(val) {
this.getListContent(this.currentPage,val)
/* this.getListContent(this.currentPage,val) */
let mes = {
currentPage:this.currentPage,
size:val
}
this.getListContent(mes)
},
handleCurrentChange(val) {
this.getListContent(val,this.size)
let mes = {
currentPage:val,
size:this.size
}
this.getListContent(mes)
},
//点击之后存储id 获取详情
async isClick(id){
......@@ -134,8 +148,12 @@ import {
},
//返回
returnPrev(){
window.history.back();
}
this.isList = true
let mess = {
cateId:this.detailsId
}
this.getListContent(mess)
},
}
}
</script>
......@@ -149,10 +167,11 @@ import {
}
.message {
border: 1px solid rgba(219, 219, 219, 1);
height:6.98rem;
min-height:6.98rem;
position: relative;
left:115px;
width:9.2rem
}
.message>ul>li {
......
......@@ -510,7 +510,6 @@
style="width: 2.4rem"
minlength="12"
maxlength="30"
type="number"
></el-input>
</el-form-item>
<el-form-item label="结算账号名" prop="bankAccountName" class="item">
......@@ -772,6 +771,15 @@ export default {
callback();
}
};
//结算账号校验
let validateAccount = (rule, value, callback) => {
const realnameReg = /^([1-9]{1})(\d{14}|\d{18})$/;
if (!realnameReg.test(value)) {
return callback(new Error("您的输入有误,请重新输入!"));
} else {
callback();
}
};
return {
Verification:true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment