bug修复
This commit is contained in:
@ -65,11 +65,14 @@
|
|||||||
>
|
>
|
||||||
<plus-outlined v-if="listType == 'picture-card'" />
|
<plus-outlined v-if="listType == 'picture-card'" />
|
||||||
<div :style="style" v-else>
|
<div :style="style" v-else>
|
||||||
<a-button :loading="loading" :disabled="loading" v-if="!disabled">
|
<UploadOutlined v-if="!isShowBtnIcon" style="font-size: 18px;" />
|
||||||
<upload-outlined />
|
<template v-else>
|
||||||
{{ btnTip || '点击上传' }}
|
<a-button :loading="loading" :disabled="loading" v-if="!disabled">
|
||||||
</a-button>
|
<upload-outlined />
|
||||||
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()" style="color: red; margin-top: 8px">
|
{{btnTip || '上传'}}
|
||||||
|
</a-button>
|
||||||
|
</template>
|
||||||
|
<div v-if="VITE_GLOB_UPLOAD_ALERT_TIP?.trim()&& isShowTip" style="color: red; margin-top: 8px">
|
||||||
{{ VITE_GLOB_UPLOAD_ALERT_TIP }}
|
{{ VITE_GLOB_UPLOAD_ALERT_TIP }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -173,6 +176,14 @@
|
|||||||
dataDelete: { // 是否调接口删除
|
dataDelete: { // 是否调接口删除
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
isShowTip: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
isShowBtnIcon: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -340,6 +351,7 @@
|
|||||||
};
|
};
|
||||||
function handleClick() {
|
function handleClick() {
|
||||||
list.value = [];
|
list.value = [];
|
||||||
|
emit('click');
|
||||||
}
|
}
|
||||||
const handleRemove = async (info) => {
|
const handleRemove = async (info) => {
|
||||||
const id = info.response ? info.response.data.id : info.id;
|
const id = info.response ? info.response.data.id : info.id;
|
||||||
|
|||||||
@ -223,8 +223,8 @@
|
|||||||
|
|
||||||
const viewOpen = ref(false);
|
const viewOpen = ref(false);
|
||||||
const viewData = ref({});
|
const viewData = ref({});
|
||||||
function handleView(record, num) {
|
function handleView(record) {
|
||||||
viewData.value = {...record, typeId: num};
|
viewData.value = {...record};
|
||||||
viewOpen.value = true;
|
viewOpen.value = true;
|
||||||
}
|
}
|
||||||
function handleViewClose() {
|
function handleViewClose() {
|
||||||
@ -385,7 +385,7 @@
|
|||||||
await setSystemNoticeRead([ids]);
|
await setSystemNoticeRead([ids]);
|
||||||
} else {
|
} else {
|
||||||
await setOaRead([ids]);
|
await setOaRead([ids]);
|
||||||
handleView(record, num)
|
handleView(record)
|
||||||
}
|
}
|
||||||
if (listData.value[num - 1].unreadNum > 0) listData.value[num - 1].unreadNum -= 1;
|
if (listData.value[num - 1].unreadNum > 0) listData.value[num - 1].unreadNum -= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,7 +63,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '编号',
|
title: '编号',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '签报类型',
|
title: '签报类型',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '缓级',
|
title: '缓级',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '拟稿人',
|
title: '拟稿人',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '拟稿人所属部门',
|
title: '拟稿人所属部门',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '拟稿日期',
|
title: '拟稿日期',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '审批状态',
|
title: '审批状态',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex" class="cusFormStyle bankStyle">
|
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex" class="bankStyle">
|
||||||
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
||||||
|
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
@ -373,7 +373,7 @@ const logPath = ref('/mdm/bank/datalog');
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.cusFormStyle .cusSearchForm .advanceRow> div:nth-of-type(3){
|
.bankStyle .cusSearchForm .advanceRow> div:nth-of-type(3){
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.bankStyle .w-full .advanceRow> div:nth-of-type(4){
|
.bankStyle .w-full .advanceRow> div:nth-of-type(4){
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex cusFormStyle GradeSystem">
|
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex GradeSystem">
|
||||||
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
||||||
|
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
@ -360,7 +360,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.cusFormStyle .cusSearchForm .advanceRow> div:nth-of-type(3){
|
.GradeSystem .cusSearchForm .advanceRow> div:nth-of-type(3){
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.GradeSystem .w-full .advanceRow> div:nth-of-type(4){
|
.GradeSystem .w-full .advanceRow> div:nth-of-type(4){
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '评价分数',
|
title: '评价分数',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '评价日期',
|
title: '评价日期',
|
||||||
componentType: 'date',
|
componentType: 'date',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '审批状态',
|
title: '审批状态',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -60,7 +60,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '评价分数',
|
title: '评价分数',
|
||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -68,7 +68,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '评价日期',
|
title: '评价日期',
|
||||||
componentType: 'time',
|
componentType: 'time',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ export const columns: BasicColumn[] = [
|
|||||||
title: '审批状态',
|
title: '审批状态',
|
||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 100,
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -10,6 +10,8 @@ import { getChildLanes } from './../util/LaneUtil';
|
|||||||
|
|
||||||
import { getTranslate } from './../util/TranslateUtil';
|
import { getTranslate } from './../util/TranslateUtil';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
|
import { storeToRefs } from 'pinia';
|
||||||
|
import { useBpmnStore } from '/@bpmn/store/bpmn';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
export default function ContextPadProvider(
|
export default function ContextPadProvider(
|
||||||
this: any,
|
this: any,
|
||||||
@ -216,6 +218,16 @@ ContextPadProvider.prototype.getContextPadEntries = function (element: {
|
|||||||
if (isAny(businessObject, ['bpmn:Lane', 'bpmn:Participant'])) {
|
if (isAny(businessObject, ['bpmn:Lane', 'bpmn:Participant'])) {
|
||||||
}
|
}
|
||||||
if (is(businessObject, 'bpmn:FlowNode')) {
|
if (is(businessObject, 'bpmn:FlowNode')) {
|
||||||
|
const store = useBpmnStore();
|
||||||
|
const { info } = storeToRefs(store);
|
||||||
|
let isSecond = false
|
||||||
|
let num = 0
|
||||||
|
info.value.forEach((v) => {
|
||||||
|
num++
|
||||||
|
if (num==2&& v.id==element.id) {
|
||||||
|
isSecond = true
|
||||||
|
}
|
||||||
|
})
|
||||||
if (is(businessObject, 'bpmn:EventBasedGateway')) {
|
if (is(businessObject, 'bpmn:EventBasedGateway')) {
|
||||||
} else if (
|
} else if (
|
||||||
isEventType(businessObject, 'bpmn:BoundaryEvent', 'bpmn:CompensateEventDefinition')
|
isEventType(businessObject, 'bpmn:BoundaryEvent', 'bpmn:CompensateEventDefinition')
|
||||||
@ -267,7 +279,7 @@ ContextPadProvider.prototype.getContextPadEntries = function (element: {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
delete: {
|
delete: {
|
||||||
group: is(element, 'bpmn:StartEvent') ? 'none' : 'event2',
|
group: is(element, 'bpmn:StartEvent') || isSecond ? 'none' : 'event2',
|
||||||
className: 'bpmn-icon-trash',
|
className: 'bpmn-icon-trash',
|
||||||
title: getTranslate(t('删除')),
|
title: getTranslate(t('删除')),
|
||||||
action: {
|
action: {
|
||||||
|
|||||||
Reference in New Issue
Block a user