Commit 7ead77a9 by 胡悦

修改

1 parent b927f5b4
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<el-tab-pane label="售后" name="3"></el-tab-pane> <el-tab-pane label="售后" name="3"></el-tab-pane>
</el-tabs> </el-tabs>
</div>--> </div>-->
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="!loading && modelList.length > 0" v-loading="loading">
<div class="model-item" v-for="item in modelList" :key="item.id"> <div class="model-item" v-for="item in modelList" :key="item.id">
<div class="model-item-radio"> <div class="model-item-radio">
<el-radio v-model="messageRadio" :label="item"></el-radio> <el-radio v-model="messageRadio" :label="item"></el-radio>
...@@ -47,9 +47,7 @@ ...@@ -47,9 +47,7 @@
<div class="model-title-h2">{{ item.content }}</div> <div class="model-title-h2">{{ item.content }}</div>
</div> </div>
<div class="model-item-content"> <div class="model-item-content">
<div <div class="model-content">创建人:{{item.createdName}}</div>
class="model-content"
>创建人:{{createdList.find(i => i.createdBy = item.createdBy).createdName}}{{userId}}</div>
<div class="model-content">创建日期:{{ item.createdTime }}</div> <div class="model-content">创建日期:{{ item.createdTime }}</div>
</div> </div>
<div class="model-item-btn"> <div class="model-item-btn">
...@@ -74,7 +72,7 @@ ...@@ -74,7 +72,7 @@
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="pageSize" :page-size="pageSize"
:total="tableTotal" :total="tableTotal"
layout="total, sizes, prev, pager, next, jumper" layout="pager"
></el-pagination> ></el-pagination>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
...@@ -162,6 +160,7 @@ export default { ...@@ -162,6 +160,7 @@ export default {
}, },
methods: { methods: {
init() { init() {
this.pageNum = 1
this.messageRadio = {} this.messageRadio = {}
this.dialogVisible = true this.dialogVisible = true
this.dracImMessage() this.dracImMessage()
...@@ -183,6 +182,7 @@ export default { ...@@ -183,6 +182,7 @@ export default {
this.tableTotal = 0 this.tableTotal = 0
}, },
dracImMessage(searcher) { dracImMessage(searcher) {
this.modelList = []
this.loading = true this.loading = true
let params = { let params = {
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -205,6 +205,8 @@ export default { ...@@ -205,6 +205,8 @@ export default {
console.log(`每页 ${val} 条`) console.log(`每页 ${val} 条`)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNum = val
this.dracImMessage()
console.log(`当前页: ${val}`) console.log(`当前页: ${val}`)
}, },
createModel() { createModel() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!