Commit 59632fb6 authored by 黄奎's avatar 黄奎

页面修改

parent e772175f
...@@ -16,12 +16,7 @@ ...@@ -16,12 +16,7 @@
</span> </span>
</li> </li>
<li> <li>
<input <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()">
type="button"
class="hollowFixedBtn"
:value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()"
>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -36,9 +31,9 @@ ...@@ -36,9 +31,9 @@
<th>{{$t('system.query_type')}}</th> <th>{{$t('system.query_type')}}</th>
<th>{{$t('active.cl_user')}}</th> <th>{{$t('active.cl_user')}}</th>
<th>{{$t('active.cl_hdriqi')}}</th> <th>{{$t('active.cl_hdriqi')}}</th>
<!-- <th>操作</th> -->
</tr> </tr>
<tr v-for="(item,index) in DataList" v-loading="loading"> <tbody v-loading="loading">
<tr v-for="(item,index) in DataList" :key="index">
<td> <td>
<span v-if="item.accessType == 1">{{$t('active.cl_choujiang')}}</span> <span v-if="item.accessType == 1">{{$t('active.cl_choujiang')}}</span>
</td> </td>
...@@ -64,44 +59,20 @@ ...@@ -64,44 +59,20 @@
<td>{{item.couponsType ===1 ? $t('active.cl_dyquan') : $t('active.cl_zkquan')}}</td> <td>{{item.couponsType ===1 ? $t('active.cl_dyquan') : $t('active.cl_zkquan')}}</td>
<td>{{item.userPlatform === 1 ? "B2B" : $t('active.cl_qita')}}{{item.userName}}</td> <td>{{item.userPlatform === 1 ? "B2B" : $t('active.cl_qita')}}{{item.userName}}</td>
<td>{{item.acessDate}}</td> <td>{{item.acessDate}}</td>
<!-- <td>
<el-tooltip class="item" effect="dark" content="修改用户信息" placement="top">
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="outerVisible=true,dialogTitle='修改用户信息',updateData(item),getCompany()"
></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除优惠券" placement="top">
<el-button
v-if="item.couponStatus !== 3"
type="danger"
icon="iconfont icon-img_delete_small"
circle
@click="deleteItem(item)"
></el-button>
</el-tooltip>
</td> -->
</tr> </tr>
</tbody>
</table> </table>
<div class="noDataNotice" v-if="DataList.length<1"> <div class="noDataNotice" v-if="DataList.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
<p>{{$t('active.ld_noData')}}</p> <p>{{$t('active.ld_noData')}}</p>
</div> </div>
<el-pagination <el-pagination background @current-change="handleCurrentChange" v-if="DataList.length>0"
background :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size="msg.pageSize"
@current-change="handleCurrentChange" :total="total"></el-pagination>
v-if="DataList.length>0"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
></el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
loading: false, loading: false,
...@@ -116,27 +87,31 @@ export default { ...@@ -116,27 +87,31 @@ export default {
total: 0, total: 0,
}; };
}, },
created(){ created() {
this.msg.couponId = this.$route.query.couponId this.msg.couponId = this.$route.query.couponId
this.msg.useState = this.$route.query.useState this.msg.useState = this.$route.query.useState
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage();
this.getList(); this.getList();
}, },
methods: { methods: {
getList() { getList() {
//获取数据 //获取数据
this.loading = true this.loading = true;
this.apiJavaPost("/api/sell/coupon/getCouponAllotList", this.msg, res => { this.apipost(
"coupon_post_GetCouponAllotPage",
this.msg,
res => {
this.loading = false;
console.log("coupon_post_GetCouponAllotPage", res.data);
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.total = res.data.data.count this.total = res.data.data.count;
this.DataList = res.data.data.pageData this.DataList = res.data.data.pageData;
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
this.loading = false }
}, null); );
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -147,5 +122,6 @@ export default { ...@@ -147,5 +122,6 @@ export default {
this.currentPage = 1; this.currentPage = 1;
}, },
} }
}; };
</script> </script>
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