|
@@ -39,7 +39,7 @@
|
|
|
</el-col> -->
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
- <el-table v-loading="loading" :data="messageList" @selection-change="handleSelectionChange"
|
|
|
+ <el-table v-loading="loading" :data="messageListSum" @selection-change="handleSelectionChange"
|
|
|
@cell-click="handleCellClick" :cell-style="cellStyle">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="消息类型" align="center" prop="msgType">
|
|
@@ -80,7 +80,6 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
|
|
|
v-model:limit="queryParams.pageSize" @pagination="getList" />
|
|
|
|
|
@@ -174,7 +173,7 @@ const dialogTitle = ref(''); // 对话框标题
|
|
|
const currentRowId = ref(''); // 存储 equityMessageId
|
|
|
const noticeContent = ref('');
|
|
|
const voteReason = ref('');//投票原因
|
|
|
-const messageList = ref([]);
|
|
|
+const messageListSum = ref([]);
|
|
|
const open = ref(false);
|
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
@@ -237,8 +236,11 @@ const { queryParams, form, rules } = toRefs(data);
|
|
|
function getList() {
|
|
|
loading.value = true;
|
|
|
MessageList(queryParams.value).then(response => {
|
|
|
- messageList.value = response.rows;
|
|
|
- total.value = response.total;
|
|
|
+ messageListSum.value = []; // 先清空数组
|
|
|
+ nextTick(() => { // 等待DOM更新
|
|
|
+ messageListSum.value = response.rows; // 重新赋值
|
|
|
+ total.value = response.total;
|
|
|
+ });
|
|
|
loading.value = false;
|
|
|
});
|
|
|
}
|