Commit b05aef25 authored by 吴冠's avatar 吴冠

完善模块

parent 0523f608
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="currentPage" :current-page="currentPage"
:size ="size" :size ="size"
layout="total, prev, pager, next, jumper" :page-sizes="[10, 20, 30, 40]"
layout="total,sizes, prev, pager, next, jumper"
:total="total"> :total="total">
</el-pagination > </el-pagination >
</div> </div>
...@@ -70,9 +71,11 @@ import { ...@@ -70,9 +71,11 @@ import {
this.getListContent(message) this.getListContent(message)
let detailsType = sessionStorage.getItem("detailsType") let detailsType = sessionStorage.getItem("detailsType")
let detailsId = sessionStorage.getItem("detailsId") let detailsId = sessionStorage.getItem("detailsId")
//平台动态 //判断是否来自于首页底部三大模块
if(detailsType =="1"){ if(detailsType =="1"){
this.isClick(detailsId) this.isClick(detailsId)
sessionStorage.removeItem("detailsType")
sessionStorage.removeItem("detailsId")
} }
}, },
data() { data() {
...@@ -80,6 +83,7 @@ import { ...@@ -80,6 +83,7 @@ import {
detailList:{ detailList:{
}, },
detailsId:'',
contentList:'', contentList:'',
isList:true, isList:true,
activeName: '124', activeName: '124',
...@@ -98,6 +102,7 @@ import { ...@@ -98,6 +102,7 @@ import {
methods:{ methods:{
handleSelect(key, keyPath) { handleSelect(key, keyPath) {
let keyValue = key/* .slice(4) */ let keyValue = key/* .slice(4) */
this.detailsId = key
let message = {} let message = {}
message.cateId = keyValue message.cateId = keyValue
this.getListContent(message) this.getListContent(message)
...@@ -120,10 +125,19 @@ import { ...@@ -120,10 +125,19 @@ import {
this.total = total this.total = total
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getListContent(this.currentPage,val) /* this.getListContent(this.currentPage,val) */
let mes = {
currentPage:this.currentPage,
size:val
}
this.getListContent(mes)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.getListContent(val,this.size) let mes = {
currentPage:val,
size:this.size
}
this.getListContent(mes)
}, },
//点击之后存储id 获取详情 //点击之后存储id 获取详情
async isClick(id){ async isClick(id){
...@@ -134,8 +148,12 @@ import { ...@@ -134,8 +148,12 @@ import {
}, },
//返回 //返回
returnPrev(){ returnPrev(){
window.history.back(); this.isList = true
} let mess = {
cateId:this.detailsId
}
this.getListContent(mess)
},
} }
} }
</script> </script>
...@@ -149,10 +167,11 @@ import { ...@@ -149,10 +167,11 @@ import {
} }
.message { .message {
border: 1px solid rgba(219, 219, 219, 1); border: 1px solid rgba(219, 219, 219, 1);
height:6.98rem; min-height:6.98rem;
position: relative; position: relative;
left:115px; left:115px;
width:9.2rem width:9.2rem
} }
.message>ul>li { .message>ul>li {
......
...@@ -510,7 +510,6 @@ ...@@ -510,7 +510,6 @@
style="width: 2.4rem" style="width: 2.4rem"
minlength="12" minlength="12"
maxlength="30" maxlength="30"
type="number"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="结算账号名" prop="bankAccountName" class="item"> <el-form-item label="结算账号名" prop="bankAccountName" class="item">
...@@ -772,6 +771,15 @@ export default { ...@@ -772,6 +771,15 @@ export default {
callback(); 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 { return {
Verification:true, 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