Merge branch 'main' of http://123.132.248.154:10000/HC_YFZX/CaiYuanYiTiHua
commit
2c8af2da8c
|
|
@ -428,14 +428,16 @@
|
|||
}
|
||||
// 存储创建人、创建时间等内容
|
||||
if (createOrModifyList.value.length > 0) {
|
||||
createOrModifyList.value.forEach((item) => {
|
||||
if (!item.componentProps.disabled) {
|
||||
if (item.type == 'createuser' || item.type == 'modifyuser') {
|
||||
query[item.field] = userName;
|
||||
} else if (item.type == 'createtime' || item.type == 'modifytime') {
|
||||
query[item.field] = nowTime.value;
|
||||
createOrModifyList.value.forEach((childTab) => {
|
||||
childTab.forEach(item => {
|
||||
if (!item.componentProps.disabled) {
|
||||
if (item.type == 'createuser' || item.type == 'modifyuser') {
|
||||
query[item.field] = userName;
|
||||
} else if (item.type == 'createtime' || item.type == 'modifytime') {
|
||||
query[item.field] = nowTime.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
return query;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div :class="prefixCls" :style="{ width: `${props.width}px` }">
|
||||
<div :class="prefixCls" style="width: 30%">
|
||||
<a-tabs v-model:activeKey="configActiveName">
|
||||
<a-tab-pane :tab="data.wfNodeName" key="1">
|
||||
<!-- 开始节点 -->
|
||||
|
|
@ -582,6 +582,7 @@
|
|||
|
||||
::v-deep .ant-tabs-content-holder {
|
||||
overflow-y: auto;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<a-row v-if="isTime && show" style="width:100%;margin-bottom:10px;">
|
||||
<a-col flex="100px" style="display: flex;align-items: center;justify-content: right;padding-right: 7px;">{{ props.data.label }}</a-col>
|
||||
<a-col flex="auto">
|
||||
<a-input v-model:value="nowTime" readOnly>
|
||||
<a-input v-model:value="nowTime" readOnly :disabled="disabled">
|
||||
<template #suffix>
|
||||
<FieldTimeOutlined />
|
||||
</template>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
<a-row v-else-if="!isTime && show" style="width:100%;margin-bottom:10px;" >
|
||||
<a-col flex="100px" style="display: flex;align-items: center;justify-content: right;padding-right: 7px;">{{ props.data.label }}</a-col>
|
||||
<a-col flex="auto">
|
||||
<a-input v-model:value="userName" readOnly>
|
||||
<a-input v-model:value="userName" readOnly :disabled="disabled">
|
||||
<template #suffix>
|
||||
<UserOutlined />
|
||||
</template>
|
||||
|
|
@ -28,7 +28,8 @@ import { ref, defineProps, onMounted } from 'vue'
|
|||
import { UserOutlined, FieldTimeOutlined } from '@ant-design/icons-vue';
|
||||
import dayjs from 'dayjs';
|
||||
const props = defineProps(['data', 'createOrModifyData', 'isUpdate', 'isDetail'])
|
||||
const show = props.data.display
|
||||
const show = props.data.display && (Object.keys(props.data).includes('ifShow')? props.data.ifShow: true)
|
||||
const disabled = Object.keys(props.data.componentProps).includes('disabled')? props.data.componentProps.disabled: false
|
||||
const isTime = ['createtime', 'modifytime'].includes(props.data.type)
|
||||
const nowTime = ref(dayjs().format('YYYY-MM-DD HH:mm:ss'))
|
||||
const userName = ref(localStorage.getItem('fireUserLoginName'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue