This commit is contained in:
“wanyongkang”
2021-07-23 09:38:55 +08:00
parent 89d515ca84
commit 0ad4080231
3 changed files with 24 additions and 21 deletions

View File

@@ -52,7 +52,7 @@
<el-pagination <el-pagination
background background
v-if="count !== 0" v-if="count !== 0"
:current-page="pageNum" :current-page="searchModel.page"
style="top:91%" style="top:91%"
layout="prev, pager, next" layout="prev, pager, next"
:page-size = "50" :page-size = "50"
@@ -105,18 +105,18 @@ export default {
}) })
}, },
prev_page () { prev_page () {
this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', {page: this.pageNum}).then(res => { this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', this.searchModel).then(res => {
this.tableData = res.data this.tableData = res.data
}) })
}, },
next_page () { next_page () {
this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', {page: this.pageNum}).then(res => { this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', this.searchModel).then(res => {
this.tableData = res.data this.tableData = res.data
}) })
}, },
handleCurrentChange: function (currentPage) { handleCurrentChange: function (currentPage) {
this.pageNum = currentPage this.searchModel.page = currentPage
this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', {page: this.pageNum}).then(res => { this.$api.get(this.$api.phpURL + 'order/FinanceCheck/buyiList', this.searchModel).then(res => {
this.tableData = res.data this.tableData = res.data
}) })
}, },

View File

@@ -2,6 +2,7 @@
<div v-loading="loading"> <div v-loading="loading">
<div class="heior_box"> <div class="heior_box">
<el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加代理商</el-button> <el-button size="small" type="primary" icon="el-icon-plus" @click="add">添加代理商</el-button>
代理商登录地址<el-link href="http://agent.juip.com/" type="primary">http://agent.juip.com/</el-link>
<div class="search-box"> <div class="search-box">
<el-input v-model="searchModel.keyWord" placeholder="请输入代理商账号" clearable size="small"> <el-input v-model="searchModel.keyWord" placeholder="请输入代理商账号" clearable size="small">
<el-button slot="append" icon="el-icon-search" @click="search"></el-button> <el-button slot="append" icon="el-icon-search" @click="search"></el-button>

View File

@@ -42,6 +42,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="400px"> <el-table-column label="操作" width="400px">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.agent_id==0">
<span class="handel cursor edit" @click="showUpdateTest(scope.row)">设置测试</span> <span class="handel cursor edit" @click="showUpdateTest(scope.row)">设置测试</span>
<router-link :to="{name:'userprice',query:{id:scope.row.Id}}"> <router-link :to="{name:'userprice',query:{id:scope.row.Id}}">
<span class="handel cursor edit">专项价</span> <span class="handel cursor edit">专项价</span>
@@ -58,6 +59,7 @@
</div> </div>
<span class="handel cursor more" slot="reference">更多</span> <span class="handel cursor more" slot="reference">更多</span>
</el-popover> </el-popover>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>