Browse Source

信件查询和不满意信件流程节点显示修改

master
21819 2 years ago
parent
commit
3a3adc906a
  1. 4
      src/api/org/label.ts
  2. 2
      src/views/work/Dissatisfied.vue
  3. 5
      src/views/work/Query.vue
  4. 22
      src/views/work/components/MailLabel.vue

4
src/api/org/label.ts

@ -13,4 +13,8 @@ export function labelAdd(params?: any) {
// 标签插入
export function labelInsert(params?: any) {
return request.post({ url: '/system/label/insert', params })
}
export function labelDetail(params?: any){
return request.get({ url: '/system/label/detail', params })
}

2
src/views/work/Dissatisfied.vue

@ -109,7 +109,7 @@
<el-table-column prop="threeDeptName" label="办理单位" width="160" />
<el-table-column label="流程节点">
<template #default="{ row }">
<el-tag :type="getFlowTagType(row.flowKey)" v-if="row.flowBeforeName">{{ row.flowBeforeName
<el-tag :type="getFlowTagType(row.flowName)" v-if="row.flowName">{{ row.flowName
}}</el-tag>
<el-tag type="danger" v-else>未签收</el-tag>
</template>

5
src/views/work/Query.vue

@ -126,7 +126,7 @@
<el-table-column prop="threeDeptName" label="办理单位" width="160" />
<el-table-column label="流程节点">
<template #default="{ row }">
<el-tag :type="getFlowTagType(row.flowKey)" v-if="row.flowBeforeName">{{ row.flowBeforeName
<el-tag :type="getFlowTagType(row.flowName)" v-if="row.flowName">{{ row.flowName
}}</el-tag>
<el-tag type="danger" v-else>未签收</el-tag>
</template>
@ -169,7 +169,7 @@
</main>
</div>
<MailDialog v-model:show="showModel" :mail-id="activeMailId" :disabled="true" @update="getList" />
<MailLabel v-model:show="showLabel" :mail-id="activeMailId" @close="showLabel = false" @update="getList" />
<MailLabel v-model:if="showLabel" :mail-id="activeMailId" @close="showLabel = false" @update="getList" />
<MailCheck v-model:show="showCheck" @close="showCheck = false" />
</template>
<script lang="ts" setup>
@ -302,6 +302,7 @@ function getList() {
query.value.mailLabels = strLabels
}
getMails(query.value).then((data: any) => {
console.log("data", data)
form.value = data.records;
totalSize.total = data.total;
totalSize.pages = data.pages;

22
src/views/work/components/MailLabel.vue

@ -35,10 +35,9 @@
</template>
<script lang="ts" setup>
import { ref, defineProps } from 'vue'
import { watch } from 'vue'
import { watch, onMounted } from 'vue'
import { labelLists } from '@/api/org/label'
import { labelAdd } from '@/api/org/label'
import { labelInsert } from '@/api/org/label'
import { labelInsert, labelDetail, labelAdd } from '@/api/org/label'
import { ElMessage } from 'element-plus'
const emit = defineEmits(['update'])
const props = defineProps({
@ -48,7 +47,7 @@ const props = defineProps({
},
mailId: {
type: String,
default: ''
default: '2233'
}
})
const visible = ref(props.show)
@ -58,6 +57,20 @@ watch(
visible.value = val;
}
);
const handleDetail = () => {
labelDetail(props.mailId).then((res: any) => {
console.log(res)
form.mainLabels.value = res.data.map((item: any) => {
return { labelName: item.labelName }
})
}).catch((err: any) => {
console.log(err)
})
}
// onMounted(() => {
// handleDetail()
// })
interface MailLabel {
id: number,
@ -104,6 +117,7 @@ const handleSubmit = () => {
})
console.log(form.value.mainLabels)
}
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save