Compare commits
3 Commits
bce56d87e2
...
8f82cfb262
Author | SHA1 | Date |
---|---|---|
|
8f82cfb262 | |
|
7fd3dc06f3 | |
|
3b0db032c5 |
File diff suppressed because it is too large
Load Diff
|
@ -64,7 +64,7 @@
|
||||||
"unplugin-auto-import": "^0.12.1",
|
"unplugin-auto-import": "^0.12.1",
|
||||||
"unplugin-vue-components": "^0.22.12",
|
"unplugin-vue-components": "^0.22.12",
|
||||||
"v-clipboard3": "^0.1.4",
|
"v-clipboard3": "^0.1.4",
|
||||||
"vite-plugin-monaco-editor": "^1.1.0",
|
"vite-plugin-monaco-editor": "1.1.0",
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
"vue-cropper": "^1.0.9",
|
"vue-cropper": "^1.0.9",
|
||||||
"vue-i18n": "^9.13.1",
|
"vue-i18n": "^9.13.1",
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61,7 +61,21 @@ const processedColumns = computed(() => {
|
||||||
* 提交
|
* 提交
|
||||||
*/
|
*/
|
||||||
const searchSubmit = (data: any) => {
|
const searchSubmit = (data: any) => {
|
||||||
console.log("搜索--------",data)
|
if(data){
|
||||||
|
processedColumns.value.forEach((column: any) => {
|
||||||
|
if (column.search?.type === 'rangePicker') {
|
||||||
|
data = data.flatMap(item => {
|
||||||
|
if (item.column === column.key) {
|
||||||
|
return [
|
||||||
|
{ ...item, termType: "gte", value: item.value[0] },
|
||||||
|
{ ...item, termType: "lte", value: item.value[1] }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
return item;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
data = {
|
data = {
|
||||||
terms:[{
|
terms:[{
|
||||||
terms:data
|
terms:data
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import "./style/variable";
|
@import "./style/variable";
|
||||||
|
|
||||||
@DarkMenuItemColor: #808491 !important;
|
@DarkMenuItemColor: #eee !important;
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: AliRegular;
|
font-family: AliRegular;
|
||||||
|
@ -63,7 +63,7 @@ body {
|
||||||
|
|
||||||
.ant-menu-item {
|
.ant-menu-item {
|
||||||
span{
|
span{
|
||||||
color: rgba(255, 255, 255, 0.55) !important;
|
color: #eee !important;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
|
|
@ -85,7 +85,8 @@ const columns = [
|
||||||
scopedSlots: true,
|
scopedSlots: true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
search: {
|
search: {
|
||||||
type: 'date',
|
type: 'rangePicker',
|
||||||
|
defaultTermType:'in',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,8 +34,7 @@ const change = (e: string) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => props.value, () => {
|
watch(() => props.value, () => {
|
||||||
console.log(props.value);
|
|
||||||
|
|
||||||
myValue.value = props.value?.valueType?.type
|
myValue.value = props.value?.valueType?.type
|
||||||
}, { immediate: true, deep: true})
|
}, { immediate: true, deep: true})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue