Browse Source

fit: 新增12337处理结果映射

main
wxc 6 months ago
parent
commit
f0d6e06d0a
  1. 2
      src/views/books/Mail12337.vue
  2. 10
      src/views/system/Dict.vue
  3. 85
      src/views/system/HandleResultMaping.vue

2
src/views/books/Mail12337.vue

@ -42,7 +42,7 @@
<div class="mb-25 flex between">
<div>
<el-button type="primary" @click="handleExport"
>数据导出
>台账导出
</el-button>
</div>
<div>

10
src/views/system/Dict.vue

@ -6,11 +6,19 @@
<el-col :span="6">
<el-form-item label="字典名称">
<el-input
placeholder="请选择字典名称"
placeholder="请输入字典名称"
v-model="query.dictName"
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="字典类型">
<el-input
placeholder="请输入字典类型"
v-model="query.dictType"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="mb-25 flex between">

85
src/views/system/HandleResultMaping.vue

@ -1,10 +1,20 @@
<template>
<div class="container">
<el-tabs v-model="query.source" type="card">
<el-tab-pane
v-for="item in sources"
:key="item"
:label="item.text"
:name="item.value"
>
</el-tab-pane>
</el-tabs>
<div class="container">
<header>
<el-row>
<el-col :span="12">
<div class="form-row flex">
<label class="text-center">局长信箱</label>
<label class="text-center">{{ query.source }}</label>
<div class="flex wrap query-box">
<el-input
placeholder="处理结果"
@ -51,9 +61,10 @@
</div>
</div>
</header>
<div class="table-container">
<div class="table-container" v-loading="loading">
<el-table :data="list">
<el-table-column label="局长信箱处理结果" prop="externalName" />
<el-table-column label="处理结论形态" prop="externalType" v-if="query.source === '12337'" />
<el-table-column label="处理结果" prop="externalName" />
<el-table-column label="数字督察处理结果" prop="internalName" />
<el-table-column
label="最后修改时间"
@ -85,6 +96,8 @@
</el-pagination>
</div>
</div>
</div>
<el-dialog
v-model="show"
@ -93,7 +106,19 @@
>
<el-form :label-width="140" :model="formData" ref="fomrRef">
<el-form-item
label="局长信箱处理结果"
label="来源"
prop="source"
:rules="{
required: true,
message: '请选择'
}"
>
<el-select v-model="formData.source" clearable style="width: 280px">
<el-option v-for="item in sources" :key="item" :label="item.text" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item
label="处理结果"
prop="externalName"
:rules="{
required: true,
@ -108,6 +133,20 @@
placeholder="请输入"
/>
</el-form-item>
<el-form-item
label="处理结论形态"
prop="externalType"
:rules="{
required: true,
message: '请选择',
trigger: ['blur'],
}"
v-if="formData.source === '12337'"
>
<el-select v-model="formData.externalType" clearable style="width: 280px">
<el-option v-for="item in externalTypes" :key="item" :label="item.text" :value="item.value" />
</el-select>
</el-form-item>
<el-form-item
label="数字督察处理结果"
prop="internalId"
@ -188,14 +227,22 @@ function getProblemType(id) {
const query = ref({
current: 1,
size: 10,
source: '局长信箱'
});
watch(() => query.value.source, () => {
getList()
})
const list = ref([]);
const total = ref(0);
const loading = ref(false)
function getList() {
loading.value = true
listHandleResultMaping(query.value).then((data) => {
list.value = data.records;
total.value = data.total;
loading.value = false
});
}
@ -246,6 +293,36 @@ async function submit() {
getList();
feedback.msgSuccess("操作成功");
}
const sources = [
{
text: '局长信箱',
value: '局长信箱'
},
{
text: '12337',
value: '12337'
}
]
const externalTypes = [
{
text: '第一种形态',
value: '第一种形态'
},
{
text: '第二种形态',
value: '第二种形态'
},
{
text: '第三种形态',
value: '第三种形态'
},
{
text: '第四种形态',
value: '第四种形态'
}
]
</script>
<style lang="scss" scoped>
</style>
Loading…
Cancel
Save