同步6/16
This commit is contained in:
@@ -143,10 +143,14 @@ const { queryParams, form, rules } = toRefs(data);
|
||||
/** 查询公告信息列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true;
|
||||
const res = await listNotice(queryParams.value);
|
||||
noticeList.value = res.rows;
|
||||
total.value = res.total;
|
||||
loading.value = false;
|
||||
listNotice(queryParams.value)
|
||||
.then((res) => {
|
||||
noticeList.value = res.rows;
|
||||
total.value = res.total;
|
||||
})
|
||||
.finally(() => {
|
||||
loading.value = false;
|
||||
});
|
||||
};
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
@@ -177,7 +181,7 @@ const handleAdd = () => {
|
||||
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: NoticeVO) => {
|
||||
const _id = row.noticeId || ids.value[0];
|
||||
const _id = row?.noticeId || ids.value[0];
|
||||
router.push({
|
||||
path: '/repair/editNoticePc',
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user