|
@@ -39,7 +39,7 @@
|
|
|
</el-col> -->
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
- <el-table v-loading="loading" :data="messageListSum" @selection-change="handleSelectionChange"
|
|
|
+ <el-table v-loading="loading" :data="messageListSum" row-key="equityMessageId" @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">
|
|
@@ -235,11 +235,15 @@ const { queryParams, form, rules } = toRefs(data);
|
|
|
function getList() {
|
|
|
loading.value = true;
|
|
|
MessageList(queryParams.value).then(response => {
|
|
|
- messageListSum.value = []; // 先清空数组
|
|
|
- nextTick(() => { // 等待DOM更新
|
|
|
- messageListSum.value = response.rows; // 重新赋值
|
|
|
- total.value = response.total;
|
|
|
- });
|
|
|
+
|
|
|
+ console.log(response, '>>>>>>>>')
|
|
|
+ // messageListSum.value = []; // 先清空数组
|
|
|
+ // nextTick(() => { // 等待DOM更新
|
|
|
+ // messageListSum.value = response.rows; // 重新赋值
|
|
|
+ // total.value = response.total;
|
|
|
+ // });
|
|
|
+ messageListSum.value = response.rows; // 重新赋值
|
|
|
+ total.value = response.total;
|
|
|
loading.value = false;
|
|
|
});
|
|
|
}
|
|
@@ -275,6 +279,10 @@ const setVoteStatus = (status) => {
|
|
|
proxy.$modal.msgError("操作失败");
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 取消按钮
|
|
|
function cancel() {
|
|
|
open.value = false;
|
|
@@ -438,7 +446,6 @@ const cellStyle = ({ row, column, rowIndex, columnIndex }) => {
|
|
|
|
|
|
/** 组件挂载时启动定时器 */
|
|
|
onMounted(() => {
|
|
|
-
|
|
|
getList(); // 立即调用一次
|
|
|
timer = setInterval(() => {
|
|
|
getList();
|