修复bug
parent
21e5143937
commit
a72dcdf0ec
|
@ -30,13 +30,30 @@
|
||||||
|
|
||||||
// get inherit binding value
|
// get inherit binding value
|
||||||
const getBindValues = computed(() => {
|
const getBindValues = computed(() => {
|
||||||
return Object.assign(
|
// update-begin--author:liaozhiyang---date:20231228---for:【issues/936】表格操作栏删除当接口失败时,气泡确认框不会消失
|
||||||
|
const result: any = Object.assign(
|
||||||
{
|
{
|
||||||
okText: t('common.okText'),
|
okText: t('common.okText'),
|
||||||
cancelText: t('common.cancelText'),
|
cancelText: t('common.cancelText'),
|
||||||
},
|
},
|
||||||
{ ...props, ...unref(attrs) }
|
{ ...props, ...unref(attrs) }
|
||||||
);
|
);
|
||||||
|
if (result.onConfirm) {
|
||||||
|
const confirm = result.confirm;
|
||||||
|
result.onConfirm = () => {
|
||||||
|
return new Promise<void>((resolve) => {
|
||||||
|
confirm()
|
||||||
|
?.finally(() => {
|
||||||
|
resolve();
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
// update-end--author:liaozhiyang---date:20231228---for:【issues/936】表格操作栏删除当接口失败时,气泡确认框不会消失
|
||||||
});
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
|
@ -202,6 +202,22 @@
|
||||||
if (characterInx !== -1 && !rules[characterInx].validator) {
|
if (characterInx !== -1 && !rules[characterInx].validator) {
|
||||||
rules[characterInx].message = rules[characterInx].message || t('component.form.maxTip', [rules[characterInx].max] as Recordable);
|
rules[characterInx].message = rules[characterInx].message || t('component.form.maxTip', [rules[characterInx].max] as Recordable);
|
||||||
}
|
}
|
||||||
|
// update-begin--author:liaozhiyang---date:20241226---for:【QQYUN-7495】pattern由字符串改成正则传递给antd(因使用InputNumber时发现正则无效)
|
||||||
|
rules.forEach((item) => {
|
||||||
|
if (typeof item.pattern === 'string') {
|
||||||
|
try {
|
||||||
|
const reg = new Function('item', `return ${item.pattern}`)(item);
|
||||||
|
if (Object.prototype.toString.call(reg) === '[object RegExp]') {
|
||||||
|
item.pattern = reg;
|
||||||
|
} else {
|
||||||
|
item.pattern = new RegExp(item.pattern);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
item.pattern = new RegExp(item.pattern);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// update-end--author:liaozhiyang---date:20231226---for:【QQYUN-7495】pattern由字符串改成正则传递给antd(因使用InputNumber时发现正则无效)
|
||||||
return rules;
|
return rules;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,7 +265,10 @@
|
||||||
const { autoSetPlaceHolder, size } = props.formProps;
|
const { autoSetPlaceHolder, size } = props.formProps;
|
||||||
const propsData: Recordable = {
|
const propsData: Recordable = {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
getPopupContainer: (trigger: Element) => trigger.parentNode,
|
getPopupContainer: (trigger: Element) => {
|
||||||
|
|
||||||
|
return trigger?.parentNode;
|
||||||
|
},
|
||||||
size,
|
size,
|
||||||
...unref(getComponentsProps),
|
...unref(getComponentsProps),
|
||||||
disabled: unref(getDisable),
|
disabled: unref(getDisable),
|
||||||
|
|
|
@ -61,6 +61,18 @@ export function handleInputNumberValue(component?: ComponentType, val?: any) {
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
*liaozhiyang
|
||||||
|
*2023-12-26
|
||||||
|
*某些组件的传值需要把字符串类型转成数值类型
|
||||||
|
*/
|
||||||
|
export function handleInputStringValue(component?: ComponentType, val?: any) {
|
||||||
|
if (!component) return val;
|
||||||
|
if (['InputNumber'].includes(component) && typeof val === 'string') {
|
||||||
|
return Number(val);
|
||||||
|
}
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 时间字段
|
* 时间字段
|
||||||
|
|
|
@ -4,7 +4,7 @@ import type { NamePath, ValidateOptions } from 'ant-design-vue/lib/form/interfac
|
||||||
import { unref, toRaw } from 'vue';
|
import { unref, toRaw } from 'vue';
|
||||||
import { isArray, isFunction, isObject, isString } from '/@/utils/is';
|
import { isArray, isFunction, isObject, isString } from '/@/utils/is';
|
||||||
import { deepMerge, getValueType } from '/@/utils';
|
import { deepMerge, getValueType } from '/@/utils';
|
||||||
import { dateItemType, handleInputNumberValue } from '../helper';
|
import { dateItemType, handleInputNumberValue, handleInputStringValue } from '../helper';
|
||||||
import { dateUtil } from '/@/utils/dateUtil';
|
import { dateUtil } from '/@/utils/dateUtil';
|
||||||
import { cloneDeep, uniqBy } from 'lodash-es';
|
import { cloneDeep, uniqBy } from 'lodash-es';
|
||||||
import { error } from '/@/utils/log';
|
import { error } from '/@/utils/log';
|
||||||
|
@ -65,6 +65,9 @@ export function useFormEvents({
|
||||||
const hasKey = Reflect.has(values, key);
|
const hasKey = Reflect.has(values, key);
|
||||||
|
|
||||||
value = handleInputNumberValue(schema?.component, value);
|
value = handleInputNumberValue(schema?.component, value);
|
||||||
|
// update-begin--author:liaozhiyang---date:20231226---for:【QQYUN-7535】popup回填字段inputNumber组件验证错误
|
||||||
|
value = handleInputStringValue(schema?.component, value);
|
||||||
|
// update-end--author:liaozhiyang---date:20231226---for:【QQYUN-7535】popup回填字段inputNumber组件验证错误
|
||||||
// 0| '' is allow
|
// 0| '' is allow
|
||||||
if (hasKey && fields.includes(key)) {
|
if (hasKey && fields.includes(key)) {
|
||||||
// time type
|
// time type
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!--部门选择框-->
|
<!--部门选择框-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<BasicModal v-bind="$attrs" @register="register" :title="modalTitle" width="500px" @ok="handleOk" destroyOnClose @visible-change="visibleChange">
|
<BasicModal v-bind="$attrs" @register="register" :title="modalTitle" width="500px" :maxHeight="maxHeight" @ok="handleOk" destroyOnClose @visible-change="visibleChange">
|
||||||
<BasicTree
|
<BasicTree
|
||||||
ref="treeRef"
|
ref="treeRef"
|
||||||
:treeData="treeData"
|
:treeData="treeData"
|
||||||
|
@ -55,6 +55,12 @@
|
||||||
type: String,
|
type: String,
|
||||||
default: '部门选择',
|
default: '部门选择',
|
||||||
},
|
},
|
||||||
|
// update-begin--author:liaozhiyang---date:20231220---for:【QQYUN-7678】部门组件内容过多没有滚动条(给一个默认最大高)
|
||||||
|
maxHeight: {
|
||||||
|
type: Number,
|
||||||
|
default: 500,
|
||||||
|
},
|
||||||
|
// update-end--author:liaozhiyang---date:20231220---for:【QQYUN-7678】部门组件内容过多没有滚动条(给一个默认最大高)
|
||||||
value: propTypes.oneOfType([propTypes.string, propTypes.array])
|
value: propTypes.oneOfType([propTypes.string, propTypes.array])
|
||||||
},
|
},
|
||||||
emits: ['register', 'getSelectResult'],
|
emits: ['register', 'getSelectResult'],
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
<template #renderItem="{ item }">
|
<template #renderItem="{ item }">
|
||||||
<a-list-item style="padding: 3px 0">
|
<a-list-item style="padding: 3px 0">
|
||||||
<div class="user-select-user-info" @click="(e) => onClickUser(e, item)">
|
<div class="user-select-user-info" @click="(e) => onClickUser(e, item)">
|
||||||
<div>
|
<div style="margin-left: 10px">
|
||||||
<a-checkbox v-model:checked="checkStatus[item.id]" />
|
<a-checkbox v-model:checked="checkStatus[item.id]" v-if="multi" />
|
||||||
|
<a-radio v-model:checked="checkStatus[item.id]" v-else />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a-avatar v-if="item.avatar" :src="getFileAccessHttpUrl(item.avatar)"></a-avatar>
|
<a-avatar v-if="item.avatar" :src="getFileAccessHttpUrl(item.avatar)"></a-avatar>
|
||||||
|
@ -38,6 +39,10 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'UserList',
|
name: 'UserList',
|
||||||
props: {
|
props: {
|
||||||
|
multi: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
dataList: {
|
dataList: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="padding-left: 10px">
|
<a-col :span="12" style="padding-left: 10px">
|
||||||
<div :style="containerStyle">
|
<div :style="containerStyle">
|
||||||
<user-list :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" @selected="onSelectUser" @unSelect="unSelectUser" />
|
<user-list :multi="multi" :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" @selected="onSelectUser" @unSelect="unSelectUser" />
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -50,6 +50,10 @@
|
||||||
excludeUserIdList:{
|
excludeUserIdList:{
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
},
|
||||||
|
multi: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['loaded', 'selected', 'unSelect'],
|
emits: ['loaded', 'selected', 'unSelect'],
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="padding-left: 10px">
|
<a-col :span="12" style="padding-left: 10px">
|
||||||
<div :style="containerStyle">
|
<div :style="containerStyle">
|
||||||
<user-list :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" @selected="onSelectUser" @unSelect="unSelectUser" />
|
<user-list :multi="multi" :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" @selected="onSelectUser" @unSelect="unSelectUser" />
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -41,6 +41,10 @@
|
||||||
excludeUserIdList:{
|
excludeUserIdList:{
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
|
},
|
||||||
|
multi: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ['selected', 'unSelect'],
|
emits: ['selected', 'unSelect'],
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<a-tabs v-model:activeKey="myActiveKey" :centered="true" @change="onChangeTab">
|
<a-tabs v-model:activeKey="myActiveKey" :centered="true" @change="onChangeTab">
|
||||||
<!-- 所有用户 -->
|
<!-- 所有用户 -->
|
||||||
<a-tab-pane key="1" tab="全部" forceRender>
|
<a-tab-pane key="1" tab="全部" forceRender>
|
||||||
<user-list :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" depart @selected="onSelectUser" @unSelect="unSelectUser" />
|
<user-list :multi="multi" :excludeUserIdList="excludeUserIdList" :dataList="userDataList" :selectedIdList="selectedIdList" depart @selected="onSelectUser" @unSelect="unSelectUser" />
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
<!-- 部门用户 -->
|
<!-- 部门用户 -->
|
||||||
|
|
|
@ -31,7 +31,7 @@ export function useSelectBiz(getList, props) {
|
||||||
if (selectValues['change'] == false && !isEmpty(selectValues['value'])) {
|
if (selectValues['change'] == false && !isEmpty(selectValues['value'])) {
|
||||||
//update-end-author:liusq---date:2023-10-19--for: [issues/788]判断有设置数值才去加载
|
//update-end-author:liusq---date:2023-10-19--for: [issues/788]判断有设置数值才去加载
|
||||||
//update-begin---author:wangshuai ---date:20220412 for:[VUEN-672]发文草稿箱编辑时拟稿人显示用户名------------
|
//update-begin---author:wangshuai ---date:20220412 for:[VUEN-672]发文草稿箱编辑时拟稿人显示用户名------------
|
||||||
let params = {};
|
let params = { isMultiTranslate: 'true' };
|
||||||
params[props.rowKey] = selectValues['value'].join(',');
|
params[props.rowKey] = selectValues['value'].join(',');
|
||||||
//update-end---author:wangshuai ---date:20220412 for:[VUEN-672]发文草稿箱编辑时拟稿人显示用户名--------------
|
//update-end---author:wangshuai ---date:20220412 for:[VUEN-672]发文草稿箱编辑时拟稿人显示用户名--------------
|
||||||
loadingEcho.value = isFirstLoadEcho;
|
loadingEcho.value = isFirstLoadEcho;
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
theme: getDarkMode.value === 'dark' ? 'dark' : 'classic',
|
theme: getDarkMode.value === 'dark' ? 'dark' : 'classic',
|
||||||
lang: unref(getCurrentLang),
|
lang: unref(getCurrentLang),
|
||||||
mode: 'sv',
|
mode: 'sv',
|
||||||
|
cdn: 'https://cdn.jsdelivr.net/npm/vditor@3.9.6',
|
||||||
fullscreen: {
|
fullscreen: {
|
||||||
index: 520,
|
index: 520,
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,17 +4,18 @@ import { basicProps } from '../props';
|
||||||
import { useModalDragMove } from '../hooks/useModalDrag';
|
import { useModalDragMove } from '../hooks/useModalDrag';
|
||||||
import { useAttrs } from '/@/hooks/core/useAttrs';
|
import { useAttrs } from '/@/hooks/core/useAttrs';
|
||||||
import { extendSlots } from '/@/utils/helper/tsxHelper';
|
import { extendSlots } from '/@/utils/helper/tsxHelper';
|
||||||
|
import { omit } from 'lodash-es';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Modal',
|
name: 'Modal',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
props: basicProps,
|
props: omit(basicProps, ['visible']),
|
||||||
emits: ['cancel'],
|
emits: ['cancel'],
|
||||||
setup(props, { slots, emit }) {
|
setup(props, { slots, emit }) {
|
||||||
const { visible, draggable, destroyOnClose } = toRefs(props);
|
const { open, draggable, destroyOnClose } = toRefs(props);
|
||||||
const attrs = useAttrs();
|
const attrs = useAttrs();
|
||||||
useModalDragMove({
|
useModalDragMove({
|
||||||
visible,
|
visible: open,
|
||||||
destroyOnClose,
|
destroyOnClose,
|
||||||
draggable,
|
draggable,
|
||||||
});
|
});
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
useWrapper: { type: Boolean, default: true },
|
useWrapper: { type: Boolean, default: true },
|
||||||
modalHeaderHeight: { type: Number, default: 57 },
|
modalHeaderHeight: { type: Number, default: 57 },
|
||||||
modalFooterHeight: { type: Number, default: 74 },
|
modalFooterHeight: { type: Number, default: 74 },
|
||||||
minHeight: { type: Number, default: 200 },
|
minHeight: { type: Number, default: null },
|
||||||
|
maxHeight: { type: Number, default: null },
|
||||||
height: { type: Number },
|
height: { type: Number },
|
||||||
footerOffset: { type: Number, default: 0 },
|
footerOffset: { type: Number, default: 0 },
|
||||||
visible: { type: Boolean },
|
visible: { type: Boolean },
|
||||||
|
@ -60,10 +61,34 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
const spinStyle = computed((): CSSProperties => {
|
const spinStyle = computed((): CSSProperties => {
|
||||||
return {
|
// update-begin--author:liaozhiyang---date:20231205---for:【QQYUN-7147】Model的高度设置不生效
|
||||||
minHeight: `${props.minHeight}px`,
|
if (props.fullScreen) {
|
||||||
[props.fullScreen ? 'height' : 'maxHeight']: `${unref(realHeightRef)}px`,
|
return {
|
||||||
};
|
height: `${unref(realHeightRef)}px`,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
const defaultMiniHeight = 200;
|
||||||
|
if (props.height != undefined) {
|
||||||
|
let height: number = props.height;
|
||||||
|
if (props.minHeight === null) {
|
||||||
|
return {
|
||||||
|
height: `${height}px`,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
height: `${props.minHeight > height ? props.minHeight : height}px`,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return {
|
||||||
|
minHeight: `${props.minHeight === null ? defaultMiniHeight : props.minHeight}px`,
|
||||||
|
// update-begin--author:liaozhiyang---date:20231219---for:【QQYUN-7641】basicModal组件添加MaxHeight属性
|
||||||
|
maxHeight: `${props.maxHeight ? props.maxHeight : unref(realHeightRef)}px`,
|
||||||
|
// update-end--author:liaozhiyang---date:20231219---for:【QQYUN-7641】basicModal组件添加MaxHeight属性
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20231205---for:【QQYUN-7147】Model的高度设置不生效
|
||||||
});
|
});
|
||||||
|
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam, BasicColumn } from './types/table';
|
import type { BasicTableProps, TableActionType, SizeType, ColumnChangeParam, BasicColumn } from './types/table';
|
||||||
|
|
||||||
import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect, watch, onUnmounted, onMounted } from 'vue';
|
import { defineComponent, ref, computed, unref, toRaw, inject, watchEffect, watch, onUnmounted, onMounted, nextTick } from 'vue';
|
||||||
import { Table } from 'ant-design-vue';
|
import { Table } from 'ant-design-vue';
|
||||||
import { BasicForm, useForm } from '/@/components/Form/index';
|
import { BasicForm, useForm } from '/@/components/Form/index';
|
||||||
import { PageWrapperFixedHeightKey } from '/@/components/Page/injectionKey';
|
import { PageWrapperFixedHeightKey } from '/@/components/Page/injectionKey';
|
||||||
|
@ -370,7 +370,11 @@
|
||||||
return { native, custom };
|
return { native, custom };
|
||||||
});
|
});
|
||||||
// update-end--author:sunjianlei---date:220230718---for:【issues/179】兼容新老slots写法,移除控制台警告
|
// update-end--author:sunjianlei---date:220230718---for:【issues/179】兼容新老slots写法,移除控制台警告
|
||||||
|
// update-begin--author:liaozhiyang---date:20231226---for:【issues/945】BasicTable组件设置默认展开不生效
|
||||||
|
nextTick(() => {
|
||||||
|
getProps.value.defaultExpandAllRows && expandAll();
|
||||||
|
})
|
||||||
|
// update-end--author:sunjianlei---date:20231226---for:【issues/945】BasicTable组件设置默认展开不生效
|
||||||
expose(tableAction);
|
expose(tableAction);
|
||||||
|
|
||||||
emit('register', tableAction, formActions);
|
emit('register', tableAction, formActions);
|
||||||
|
@ -421,8 +425,8 @@
|
||||||
.@{prefix-cls} {
|
.@{prefix-cls} {
|
||||||
//表格选择工具栏样式
|
//表格选择工具栏样式
|
||||||
.alert {
|
.alert {
|
||||||
background-color: #323232;
|
// background-color: #323232;
|
||||||
border-color: #424242;
|
// border-color: #424242;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -523,8 +527,8 @@
|
||||||
//表格选择工具栏样式
|
//表格选择工具栏样式
|
||||||
.alert {
|
.alert {
|
||||||
height: 38px;
|
height: 38px;
|
||||||
background-color: #e6f7ff;
|
// background-color: #e6f7ff;
|
||||||
border-color: #91d5ff;
|
// border-color: #91d5ff;
|
||||||
}
|
}
|
||||||
&--inset {
|
&--inset {
|
||||||
.ant-table-wrapper {
|
.ant-table-wrapper {
|
||||||
|
|
|
@ -90,7 +90,8 @@ export const vxeProps = () => ({
|
||||||
keyboardEdit: propTypes.bool.def(false),
|
keyboardEdit: propTypes.bool.def(false),
|
||||||
// update-begin--author:liaozhiyang---date:20231013---for:【QQYUN-5133】JVxeTable 行编辑升级
|
// update-begin--author:liaozhiyang---date:20231013---for:【QQYUN-5133】JVxeTable 行编辑升级
|
||||||
// 横向虚拟滚动配置(不支持展开行)
|
// 横向虚拟滚动配置(不支持展开行)
|
||||||
scrollX: propTypes.object.def(() => ({ enabled: true })),
|
// 【QQYUN-7676】x滚动条滚动时字典变成了id
|
||||||
|
scrollX: propTypes.object.def(() => ({ enabled: false })),
|
||||||
// 纵向虚拟滚动配置(不支持展开行)
|
// 纵向虚拟滚动配置(不支持展开行)
|
||||||
scrollY: propTypes.object.def(() => ({ enabled: true })),
|
scrollY: propTypes.object.def(() => ({ enabled: true })),
|
||||||
// update-end--author:liaozhiyang---date:20231013---for:【QQYUN-5133】JVxeTable 行编辑升级
|
// update-end--author:liaozhiyang---date:20231013---for:【QQYUN-5133】JVxeTable 行编辑升级
|
||||||
|
|
|
@ -206,7 +206,13 @@ export function usePopBiz(ob, tableRef?) {
|
||||||
width: 60,
|
width: 60,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender: function ({ text }) {
|
customRender: function ({ text }) {
|
||||||
return parseInt(text) + 1;
|
// update-begin--author:liaozhiyang---date:20231226---for:【QQYUN-7584】popup有合计时序号列会出现NaN
|
||||||
|
if (text == undefined) {
|
||||||
|
return '';
|
||||||
|
} else {
|
||||||
|
return parseInt(text) + 1;
|
||||||
|
}
|
||||||
|
// update-end--author:liaozhiyang---date:20231226---for:【QQYUN-7584】popup有合计时序号列会出现NaN
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -777,7 +783,7 @@ export function usePopBiz(ob, tableRef?) {
|
||||||
title: '',
|
title: '',
|
||||||
okText: '关闭',
|
okText: '关闭',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
visible: false,
|
open: false,
|
||||||
destroyOnClose: true,
|
destroyOnClose: true,
|
||||||
style: dialogStyle,
|
style: dialogStyle,
|
||||||
// dialogStyle: dialogStyle,
|
// dialogStyle: dialogStyle,
|
||||||
|
@ -791,8 +797,8 @@ export function usePopBiz(ob, tableRef?) {
|
||||||
cancelButtonProps: { style: { display: 'none' } },
|
cancelButtonProps: { style: { display: 'none' } },
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
ok: () => (hrefComponent.value.model.visible = false),
|
ok: () => (hrefComponent.value.model.open = false),
|
||||||
cancel: () => (hrefComponent.value.model.visible = false),
|
cancel: () => (hrefComponent.value.model.open = false),
|
||||||
},
|
},
|
||||||
is: <any>null,
|
is: <any>null,
|
||||||
params: {},
|
params: {},
|
||||||
|
@ -816,7 +822,7 @@ export function usePopBiz(ob, tableRef?) {
|
||||||
} else {
|
} else {
|
||||||
hrefComponent.value.params = {};
|
hrefComponent.value.params = {};
|
||||||
}
|
}
|
||||||
hrefComponent.value.model.visible = true;
|
hrefComponent.value.model.open = true;
|
||||||
hrefComponent.value.model.title = '操作';
|
hrefComponent.value.model.title = '操作';
|
||||||
hrefComponent.value.is = markRaw(defineAsyncComponent(() => importViewsFile(path)));
|
hrefComponent.value.is = markRaw(defineAsyncComponent(() => importViewsFile(path)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,6 +236,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&-dropdown-overlay {
|
&-dropdown-overlay {
|
||||||
|
// update-begin--author:liaozhiyang---date:20231226---for:【QQYUN-7512】顶部账号划过首次弹出时位置会变更一下
|
||||||
|
width: 160px;
|
||||||
|
// update-end--author:liaozhiyang---date:20231226---for:【QQYUN-7512】顶部账号划过首次弹出时位置会变更一下
|
||||||
.ant-dropdown-menu-item {
|
.ant-dropdown-menu-item {
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -488,9 +488,15 @@ export async function userExitChangeLoginTenantId(tenantId){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let loginTenantId = getTenantId();
|
||||||
userStore.setTenant(currentTenantId);
|
userStore.setTenant(currentTenantId);
|
||||||
//切换租户后要刷新首页
|
|
||||||
window.location.reload();
|
//update-begin---author:wangshuai---date:2023-11-07---for:【QQYUN-7005】退租户,判断退出的租户ID与当前租户ID一致,再刷新---
|
||||||
|
//租户为空,说明没有租户了,需要刷新页面。或者当前租户和退出的租户一致则需要刷新浏览器
|
||||||
|
if(!currentTenantId || tenantId == loginTenantId){
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
//update-end---author:wangshuai---date:2023-11-07---for:【QQYUN-7005】退租户,判断退出的租户ID与当前租户ID一致,再刷新---
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue