Browse Source

fix: 完善督察问题

main
wxc 8 months ago
parent
commit
a584c94b07
  1. 6
      src/api/mobileSupervision/taskProblem.ts
  2. 15
      src/views/mobileSupervise/TaskProblem.vue

6
src/api/mobileSupervision/taskProblem.ts

@ -7,3 +7,9 @@ export function listTaskProblem(query) {
query
});
}
export function getTaskProblem(id) {
return request.get({
url: '/task/problem/' + id
});
}

15
src/views/mobileSupervise/TaskProblem.vue

@ -46,8 +46,7 @@
</el-form>
<div class="flex between">
<el-button type="primary" @click="">
生成督察通报</el-button
>
生成督察通报</el-button>
<div>
<el-button type="primary" @click="getList">
<template #icon>
@ -165,12 +164,15 @@
<span>{{ getDictLable(dict.distributionState, activeRow.distributionState) }}</span>
</div>
</div>
<div>
<file-list :files="activeRow.files? JSON.parse(activeRow.files) : []" />
</div>
</div>
</el-dialog>
</template>
<script setup>
import { getDictLable } from "@/utils/util";
import { listTaskProblem } from '@/api/mobileSupervision/taskProblem'
import { getDictLable } from "@/utils/util";
import { listTaskProblem, getTaskProblem } from '@/api/mobileSupervision/taskProblem'
import useCatchStore from "@/stores/modules/catch";
const catchStore = useCatchStore();
@ -199,6 +201,7 @@ import { getDictLable } from "@/utils/util";
function getList() {
listTaskProblem(query.value).then(data => {
list.value = data.records
total.value = data.total
})
}
@ -208,9 +211,9 @@ import { getDictLable } from "@/utils/util";
const show = ref(false)
const activeRow = ref({})
function showDeatil(row) {
async function showDeatil(row) {
show.value = true
activeRow.value = row
activeRow.value = await getTaskProblem(row.id)
}
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save