fix(bqtakepulse): 修复前端页面 QA 审查发现的问题

- 部门树切换点选模式并回写牵头/协办部门
- 导出切换 EasyExcel 端点,统计标签随操作刷新
- 牵头部门必填星号、保存提示、标题点击防连带展开
- bpmStatus 空值不再同时显示发起与再次督办,搜索加防抖

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-08-11 17:43:30 +08:00
co-authored by Claude Opus 4.7
parent d0928f8edc
commit 98abb8fa95
3 changed files with 24 additions and 10 deletions
@@ -66,12 +66,12 @@
</a-col>
<a-col :xs="24" :md="12">
<a-form-item label="牵头部门" v-bind="validateInfos.responDeptid" id="BgTakepulseForm-responDeptid" name="responDeptid">
<sz-select-dept v-model:value="formData.responDeptid" :multiple="true" checkStrictly allow-clear />
<sz-select-dept v-model:value="formData.responDeptid" :multiple="true" :checkable="false" checkStrictly allow-clear />
</a-form-item>
</a-col>
<a-col :xs="24" :md="12">
<a-form-item label="协办部门" v-bind="validateInfos.assistDeptid" id="BgTakepulseForm-assistDeptid" name="assistDeptid">
<sz-select-dept v-model:value="formData.assistDeptid" :multiple="true" checkStrictly allow-clear />
<sz-select-dept v-model:value="formData.assistDeptid" :multiple="true" :checkable="false" checkStrictly allow-clear />
</a-form-item>
</a-col>
<a-col :xs="24" :md="12">
@@ -172,6 +172,7 @@
<script lang="ts">
import { defineComponent, ref, reactive, computed, toRaw, onMounted, watch } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import { queryDataById, saveOrUpdate } from '../BgTakepulse.api';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
@@ -215,6 +216,7 @@
setup(props, {emit}) {
const SUP_LEADER_DEPT_ID = SUOBAN_DEPT_ID;
const SUP_LEADER_ROLE_ID = MEASURE_RES_LEADER_ROLE_ID;
const { createMessage } = useMessage();
const loading = ref(false);
const formRef = ref();
const formData = reactive<Record<string, any>>({
@@ -258,6 +260,7 @@
secretLevel: [{ required: true, message: '请选择密级' }],
title: [{ required: true, message: '请输入意见主题' }],
responDeptid: [
{ required: true, message: '请选择牵头部门' },
{
validator: async (_rule, value) => {
if (value === undefined || value === null || value === '' || (Array.isArray(value) && value.length === 0)) {
@@ -394,6 +397,7 @@
console.log('表单提交数据', values)
const isUpdate = values.id ? true : false
await saveOrUpdate(values, isUpdate);
createMessage.success('保存成功');
//关闭弹窗
emit('success');
}