Browse Source

feat:更改查询接口、查看办理详情

feature/tsjb-1.0
buaixuexideshitongxue 1 month ago
parent
commit
d749d99a34
  1. 2
      src/api/data/complaintCollection.ts
  2. 31
      src/views/data/ComplaintCollection.vue

2
src/api/data/complaintCollection.ts

@ -4,7 +4,7 @@ import {getToken} from "../../utils/token";
export function getComplaintCollectionPage(body) {
return request.post({
url: `/data/complaintCollection/getComplaintCollectionPage`,
url: `/data/complaintCollection/getComplaintCollectionPageNew`,
body
});
}

31
src/views/data/ComplaintCollection.vue

@ -330,7 +330,13 @@
</el-table-column>
<el-table-column label="操作" width="240" fixed="right">
<template #default="{ row }">
<el-button type="primary" v-if="row.status === '0'" link @click="handleAction(row)">办理</el-button>
<!-- <el-button type="primary" v-if="row.status === '0'" link @click="handleAction(row)">办理</el-button>-->
<el-button
type="primary"
link
@click="handleActionDetail(row)"
>办理详情</el-button
>
<el-button type="primary" v-if="row.status === '0'" link @click="handleUpdate(row)">修改</el-button>
<el-button type="danger" v-if="row.status === '0'" link @click="handleDel(row)">删除</el-button>
<el-button type="primary" v-if="row.status === '1' || row.status === '2'" link @click="handleWatchDetail(row)">查看详情</el-button>
@ -403,6 +409,14 @@
:id="activeId"
:dict="dict"/>
<negative-dialog
v-model="show"
:id="activeNegativeId"
@close="show = false"
ref="negativeDialogRef"
/>
</template>
@ -468,8 +482,8 @@ const getList = async () => {
delete params.sourcePath
let res = await getComplaintCollectionPage(params);
console.log(res.complaintCollectionPageDTOS);
list.value = res.complaintCollectionPageDTOS;
debugger
list.value = res.records;
total.value = res.total;
loading.value = false;
}
@ -1021,6 +1035,17 @@ const handleWatchDetail = async (row) => {
}
// endregion
// region
// const show = ref(false);
const activeNegativeId = ref("");
function handleActionDetail(row) {
debugger
show.value = true;
activeNegativeId.value = row.negativeId;
}
// endregion
// region
const onHeaderDblClick = () => {
const rows = JSON.parse(JSON.stringify(toRaw(list.value || [])))

Loading…
Cancel
Save