!157 style(bqtakepulse): 意见主题输入框改为整行放大显示
* style(bqtakepulse): 意见主题输入框改为整行放大显示 * fix(bpm): 首页待阅查看详情补传增补意见tab显示参数 * style(bpm): 办理界面抄送人选择框自适应宽度并支持展示更多 * feat(bpm): 各流程表单默认抄送统一按分管所领导角色查询 * fix(bpm): 首页待办办理弹窗标题回显业务标题
This commit is contained in:
@@ -286,7 +286,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, onMounted, reactive, ref, watch } from 'vue';
|
||||
import { computed, onMounted, provide, reactive, ref, watch } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { getUserList, queryDepartTreeSync } from '/@/api/common/api';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
@@ -304,9 +304,6 @@
|
||||
PARTY_COMMITTEE_DEPT_ID,
|
||||
PARTY_COMMITTEE_DEPT_ID as CHARGE_LEADER_DEPT_ID,
|
||||
CHARGE_LEADER_ROLE_ID,
|
||||
SDW_LEADER_ROLE_ID,
|
||||
SUOBAN_DEPT_ID,
|
||||
MEASURE_RES_LEADER_ROLE_ID,
|
||||
} from '/@/constant/supervision';
|
||||
const { initBpmFormData } = usePermission();
|
||||
|
||||
@@ -356,6 +353,8 @@
|
||||
const isEnd = ref(0);
|
||||
const isFinish = ref('0');
|
||||
const defaultCcUsers = ref<Array<{ username: string; realname: string }>>([]);
|
||||
// 办理内容组件通过 inject 读取默认抄送,需与 defaultCc 开关保持一致地提供
|
||||
provide('defaultCcUsers', defaultCcUsers);
|
||||
const lastGeneratedNumber = ref('');
|
||||
|
||||
const mainForm = reactive<Record<string, any>>({
|
||||
@@ -508,19 +507,13 @@
|
||||
|
||||
async function fetchDefaultCcUsers() {
|
||||
try {
|
||||
const [res1, res2] = await Promise.all([
|
||||
defHttp.get({
|
||||
url: '/sys/user/queryUserRoleComponentData',
|
||||
params: { departId: PARTY_COMMITTEE_DEPT_ID, roleId: SDW_LEADER_ROLE_ID, searchSecurityLevel: 5, pageNo: 1, pageSize: 999 },
|
||||
}),
|
||||
defHttp.get({
|
||||
url: '/sys/user/queryUserRoleComponentData',
|
||||
params: { departId: SUOBAN_DEPT_ID, roleId: MEASURE_RES_LEADER_ROLE_ID, searchSecurityLevel: 5, pageNo: 1, pageSize: 999 },
|
||||
}),
|
||||
]);
|
||||
const records1 = res1?.records || res1?.result?.records || [];
|
||||
const records2 = res2?.records || res2?.result?.records || [];
|
||||
defaultCcUsers.value = [...records1, ...records2];
|
||||
// 默认抄送按分管所领导角色跨部门查询,与台账分管所领导下拉逻辑一致
|
||||
const res = await defHttp.get({
|
||||
url: '/sys/user/queryUserRoleComponentData',
|
||||
params: { roleId: CHARGE_LEADER_ROLE_ID, searchSecurityLevel: 5, pageNo: 1, pageSize: 999 },
|
||||
});
|
||||
const records = res?.records || res?.result?.records || [];
|
||||
defaultCcUsers.value = records.sort((a, b) => (a.sortno ?? Infinity) - (b.sortno ?? Infinity));
|
||||
} catch {
|
||||
defaultCcUsers.value = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user