Browse Source

fix: 完善督察问题

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

6
src/api/mobileSupervision/taskProblem.ts

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

13
src/views/mobileSupervise/TaskProblem.vue

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

Loading…
Cancel
Save