3.7.0大版本发布(修复几个bug)

pull/186/merge
JEECG 2024-06-12 19:46:12 +08:00
parent 8170a7d123
commit 24e9b93779
12 changed files with 1890 additions and 1304 deletions

View File

@ -72,8 +72,8 @@
"vue-router": "^4.3.0",
"vue-types": "^5.1.1",
"vuedraggable": "^4.1.0",
"vxe-table": "4.6.14",
"vxe-table-plugin-antd": "4.0.5",
"vxe-table": "4.6.17",
"vxe-table-plugin-antd": "4.0.7",
"xe-utils": "3.5.26",
"xss": "^1.0.14"
},

File diff suppressed because it is too large Load Diff

View File

@ -94,13 +94,13 @@
:deep(.ant-input-affix-wrapper),
:deep(.ant-picker),
:deep(.ant-input-number) {
color: rgba(51, 51, 51, 0.25) !important;
color: #606266 !important;
}
:deep(.ant-select) {
color: rgba(51, 51, 51, 0.25) !important;
color: #606266 !important;
}
:deep(.ant-select-selection-item-content),:deep(.ant-select-selection-item),:deep(input) {
color: rgba(51, 51, 51, 0.25) !important;
color: #606266 !important;
}
:deep(.ant-radio-wrapper),
@ -110,7 +110,7 @@
}
:deep(.ant-radio-wrapper .ant-radio-inner:after),
:deep(.ant-checkbox-checked .ant-checkbox-inner) {
background-color: rgba(51, 51, 51, 0.25);
color: #606266 !important;
}
:deep(.ant-radio-inner),
:deep(.ant-checkbox-inner) {
@ -142,7 +142,7 @@
:deep(.ant-picker),
:deep(.ant-input-number) {
color: rgba(255, 255, 255, 0.25) !important;
background-color: rgba(255, 255, 255, 0.08) !important;
//background-color: rgba(255, 255, 255, 0.08) !important;
}
:deep(.ant-select) {
color: rgba(255, 255, 255, 0.25) !important;

View File

@ -25,7 +25,7 @@
//
saveCode: propTypes.oneOf(['province', 'city', 'region', 'all']).def('all'),
},
emits: ['options-change', 'change'],
emits: ['options-change', 'change', 'update:value'],
setup(props, { emit, refs }) {
const emitData = ref<any[]>([]);
const attrs = useAttrs();
@ -49,7 +49,13 @@
* 监听value变化
*/
watchEffect(() => {
props.value && initValue();
// update-begin--author:liaozhiyang---date:20240612--forTV360X-1223
if (props.value) {
initValue();
} else {
cascaderValue.value = [];
}
// update-end--author:liaozhiyang---date:20240612---forTV360X-1223
});
/**
@ -62,7 +68,11 @@
const arr = value.split(',');
cascaderValue.value = transform(arr);
} else if (isArray(value)) {
cascaderValue.value = transform(value);
if (value.length) {
cascaderValue.value = transform(value);
} else {
cascaderValue.value = [];
}
}
// update-end--author:liaozhiyang---date:20240607---forTV360X-501
}
@ -89,18 +99,24 @@
}
function handleChange(arr, ...args) {
// update-begin--author:liaozhiyang---date:20240607---forTV360X-501
let result: any = [];
if (props.saveCode === 'region') {
//
result = [arr[arr.length - 1]];
} else if (props.saveCode === 'city') {
result = [arr[1]];
} else if (props.saveCode === 'province') {
result = [arr[0]];
if (arr?.length) {
let result: any = [];
if (props.saveCode === 'region') {
//
result = [arr[arr.length - 1]];
} else if (props.saveCode === 'city') {
result = [arr[1]];
} else if (props.saveCode === 'province') {
result = [arr[0]];
} else {
result = arr;
}
emit('change', result);
emit('update:value', result);
} else {
result = arr;
emit('change', arr);
emit('update:value', arr);
}
emit('change', result);
// update-end--author:liaozhiyang---date:20240607---forTV360X-501
// emitData.value = args;
//update-begin-author:taoyan date:2022-6-27 for: VUEN-1424vue3jvxeerp

View File

@ -63,6 +63,11 @@
* 监听组件值
*/
watchEffect(() => {
// update-begin--author:liaozhiyang---date:20240611---forTV360X-576JSelectDept
//update-begin-author:liusq---date:2024-06-03--for: [TV360X-840]
tempSave = [];
//update-end-author:liusq---date:2024-06-03--for:[TV360X-840]
// update-end--author:liaozhiyang---date:20240611---forTV360X-576JSelectDept
props.value && initValue();
});

View File

@ -87,6 +87,11 @@
* 监听组件值
*/
watchEffect(() => {
// update-begin--author:liaozhiyang---date:20240611---forTV360X-576
//update-begin-author:liusq---date:2024-06-03--for: [TV360X-840]
tempSave = [];
//update-end-author:liusq---date:2024-06-03--for:[TV360X-840]
// update-end--author:liaozhiyang---date:20240611---forTV360X-576
props.value && initValue();
//
if (!props.value) {
@ -119,9 +124,6 @@
*/
function handleOpen() {
tag.value = true;
//update-begin-author:liusq---date:2024-06-03--for: [TV360X-840]
tempSave = [];
//update-end-author:liusq---date:2024-06-03--for:[TV360X-840]
openModal(true, {
isUpdate: false,
});

View File

@ -39,7 +39,7 @@
</template>
<a-upload
v-if="cellProps.allDisable"
v-if="!cellProps.disabledTable"
v-show="!hasFile"
name="file"
:data="{ isup: 1 }"

View File

@ -17,7 +17,7 @@
</a-tooltip>
</div>
</template>
<div class="j-vxe-image-upload" v-if="cellProps.allDisable">
<div class="j-vxe-image-upload" v-if="!cellProps.disabledTable">
<a-upload
:accept="acceptFileType"
name="file"

View File

@ -53,23 +53,33 @@
};
//
const init = () => {
const priming = () => {
dataSource.value = {
active: 1002,
usingContext: true,
history: [{ uuid: 1002, title: '新建聊天', isEdit: false }],
chat: [{ uuid: 1002, data: [] }],
};
};
defHttp
.get({ url: configUrl.get })
.then((res) => {
const { content } = res;
if (content) {
dataSource.value = JSON.parse(content);
const json = JSON.parse(content);
if (json.history?.length) {
dataSource.value = json;
} else {
priming();
}
} else {
dataSource.value = {
active: 1002,
usingContext: true,
history: [{ uuid: 1002, title: '新建聊天', isEdit: false }],
chat: [{ uuid: 1002, data: [] }],
};
priming();
}
!unwatch01 && execute();
})
.catch(() => {});
.catch(() => {
priming();
});
};
const save = (content) => {
defHttp.post({ url: configUrl.save, params: { content: JSON.stringify(content) } }, { isTransformResponse: false });

View File

@ -34,7 +34,7 @@
</a-input>
</template>
<a-upload
v-if="cellProps.allDisable"
v-if="!cellProps.disabledTable"
v-show="!hasFile"
name="file"
:data="{ isup: 1 }"

View File

@ -179,25 +179,30 @@ html[data-theme='dark'] .ant-input-affix-wrapper-textarea-with-clear-btn {
// update-begin--author:liaozhiyang---date:20240605---for【TV360X-189】统一只读样式
html[data-theme='light'] {
.ant-select.ant-select-disabled {
.ant-select-selection-item {
color: rgba(51, 51, 51, 0.25) !important;
.ant-select-selection-item-content {
color: rgba(51, 51, 51, 0.25);
.ant-form:not(.jeecg-form-detail-effect) {
.ant-select.ant-select-disabled {
.ant-select-selection-item {
color: rgba(51, 51, 51, 0.25) !important;
// color: rgba(51, 51, 51, 0.25);
.ant-select-selection-item-content {
color: rgba(51, 51, 51, 0.25);
}
}
}
}
.ant-input-number.ant-input-number-disabled {
.ant-input-number-input {
color: rgba(51, 51, 51, 0.25);
.ant-input-number.ant-input-number-disabled {
.ant-input-number-input {
color: rgba(51, 51, 51, 0.25);
}
}
}
}
html[data-theme='dark'] {
.ant-input-number.ant-input-number-disabled {
.ant-input-number-input {
color:rgba(255, 255, 255, 0.25);
.ant-form:not(.jeecg-form-detail-effect) {
.ant-input-number.ant-input-number-disabled {
.ant-input-number-input {
color:rgba(255, 255, 255, 0.25);
}
}
}
}

View File

@ -134,6 +134,12 @@ img, video {
html[data-theme='light'] {
.jeecg-form-detail-effect {
*:not(.ant-select-selection-placeholder){
color: #606266!important;
}
.ant-row label {
color: #797c81 !important;
}
.ant-select-selector,
.ant-btn,
.ant-input,
@ -142,6 +148,7 @@ html[data-theme='light'] {
.ant-input-number {
// border: none !important;
// color: rgba(51, 51, 51, 0.25) !important;
color: #606266!important;
background-color: #f9f9fa !important;
}
@ -149,12 +156,22 @@ html[data-theme='light'] {
.anticon {
pointer-events: none;
cursor: text;
color: rgba(51, 51, 51, 0.25);
color: #606266!important;
&:hover {
background: transparent;
}
}
.ant-select.ant-select-disabled .ant-select-selection-item .ant-select-selection-item-content {
color: #606266!important;
}
.ant-select-selection-item {
color: #606266!important;
}
:where(.css-dev-only-do-not-override-dvamda).ant-picker .ant-picker-input >input-disabled, :where(.css-dev-only-do-not-override-dvamda).ant-picker .ant-picker-input >input[disabled] {
color: #606266!important;
}
.ant-select-selection-item {
border-color: #eee !important;
background-color: transparent !important;
@ -163,11 +180,31 @@ html[data-theme='light'] {
}
html[data-theme='dark'] {
.jeecg-form-detail-effect {
* {
color: #606266;
}
.ant-upload-text-icon, a {
color:rgba(255, 255, 255, 0.25) ;
}
}
.ant-select-selector,
.ant-btn,
.ant-input,
.ant-input-affix-wrapper,
.ant-picker,
.ant-input-number {
background-color: transparent !important;
}
.ant-select-selection-item {
background-color: transparent !important;
}
// 暗黑模式下输入框等icon隐藏
.ant-picker-suffix,.ant-select-arrow {
content:" ";
display: none;
}
}
.jeecg-form-detail-effect {
.ant-select-selector,
@ -195,8 +232,13 @@ html[data-theme='dark'] {
input {
border: none !important;
}
input, textarea {
user-select: auto;
cursor: text !important;
}
.JSelectDept,
.JselectUser {
.JselectUser,
.JSelectPosition {
> div {
> .ant-row {
.left {