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) { export function getComplaintCollectionPage(body) {
return request.post({ return request.post({
url: `/data/complaintCollection/getComplaintCollectionPage`, url: `/data/complaintCollection/getComplaintCollectionPageNew`,
body body
}); });
} }

31
src/views/data/ComplaintCollection.vue

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

Loading…
Cancel
Save