fix: bug#10232
This commit is contained in:
parent
81590a0af3
commit
03436802b9
|
@ -5180,7 +5180,7 @@
|
||||||
"node_modules/jetlinks-ui-components": {
|
"node_modules/jetlinks-ui-components": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz",
|
"resolved": "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz",
|
||||||
"integrity": "sha512-u1jqTyBWHB+b/NOKimucxNMYxet6g9Hi/I30T1VNWGq+x/Gf2zjz8dJoxjUcLW+9t/yjG6opWUE8Z8NWQRp3Eg==",
|
"integrity": "sha512-zrMe/4PjtWNCQtlP6kNLA7hVyQ7ftPSgivQZp8TGcpbUMOU/IYyCLQ0+VoWcqEopTSt1zEzEazodR4EjEzv7pQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "^9.12.0",
|
"@vueuse/core": "^9.12.0",
|
||||||
"ant-design-vue": "^3.2.15",
|
"ant-design-vue": "^3.2.15",
|
||||||
|
@ -8343,6 +8343,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/debug/node_modules/ms": {
|
"node_modules/npm/node_modules/debug/node_modules/ms": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
@ -9913,6 +9915,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/request/node_modules/form-data": {
|
"node_modules/npm/node_modules/request/node_modules/form-data": {
|
||||||
"version": "2.3.3",
|
"version": "2.3.3",
|
||||||
|
"resolved": "https://registry.jetlinks.cn/form-data/-/form-data-2.3.3.tgz",
|
||||||
|
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -9926,6 +9930,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/request/node_modules/tough-cookie": {
|
"node_modules/npm/node_modules/request/node_modules/tough-cookie": {
|
||||||
"version": "2.5.0",
|
"version": "2.5.0",
|
||||||
|
"resolved": "https://registry.jetlinks.cn/tough-cookie/-/tough-cookie-2.5.0.tgz",
|
||||||
|
"integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -10156,6 +10162,8 @@
|
||||||
},
|
},
|
||||||
"node_modules/npm/node_modules/string-width/node_modules/strip-ansi": {
|
"node_modules/npm/node_modules/string-width/node_modules/strip-ansi": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==",
|
||||||
"inBundle": true,
|
"inBundle": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -17272,7 +17280,7 @@
|
||||||
"jetlinks-ui-components": {
|
"jetlinks-ui-components": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz",
|
"resolved": "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz",
|
||||||
"integrity": "sha512-u1jqTyBWHB+b/NOKimucxNMYxet6g9Hi/I30T1VNWGq+x/Gf2zjz8dJoxjUcLW+9t/yjG6opWUE8Z8NWQRp3Eg==",
|
"integrity": "sha512-zrMe/4PjtWNCQtlP6kNLA7hVyQ7ftPSgivQZp8TGcpbUMOU/IYyCLQ0+VoWcqEopTSt1zEzEazodR4EjEzv7pQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@vueuse/core": "^9.12.0",
|
"@vueuse/core": "^9.12.0",
|
||||||
"ant-design-vue": "^3.2.15",
|
"ant-design-vue": "^3.2.15",
|
||||||
|
@ -19672,6 +19680,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
"bundled": true
|
"bundled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20833,6 +20843,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"form-data": {
|
"form-data": {
|
||||||
"version": "2.3.3",
|
"version": "2.3.3",
|
||||||
|
"resolved": "https://registry.jetlinks.cn/form-data/-/form-data-2.3.3.tgz",
|
||||||
|
"integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
|
@ -20842,6 +20854,8 @@
|
||||||
},
|
},
|
||||||
"tough-cookie": {
|
"tough-cookie": {
|
||||||
"version": "2.5.0",
|
"version": "2.5.0",
|
||||||
|
"resolved": "https://registry.jetlinks.cn/tough-cookie/-/tough-cookie-2.5.0.tgz",
|
||||||
|
"integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"psl": "^1.1.28",
|
"psl": "^1.1.28",
|
||||||
|
@ -20994,6 +21008,8 @@
|
||||||
},
|
},
|
||||||
"strip-ansi": {
|
"strip-ansi": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-regex": "^3.0.0"
|
"ansi-regex": "^3.0.0"
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
|
<!-- 通知记录 -->
|
||||||
<template>
|
<template>
|
||||||
<j-modal v-model:visible="_vis" title="通知记录" :footer="null" width="70%">
|
<j-modal v-model:visible="_vis" title="通知记录" :footer="null" width="70%">
|
||||||
<pro-search
|
<pro-search type="simple" :columns="columns" @search="handleSearch" />
|
||||||
type="simple"
|
|
||||||
:columns="columns"
|
|
||||||
@search="handleSearch"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<JProTable
|
<JProTable
|
||||||
ref="instanceRef"
|
ref="logRef"
|
||||||
|
model="table"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:request="(e:any) => configApi.getHistory(e, data.id)"
|
:request="(e:any) => configApi.getHistory(e, data.id)"
|
||||||
:defaultParams="{
|
:defaultParams="{
|
||||||
|
pageSize: 5,
|
||||||
sorts: [{ name: 'notifyTime', order: 'desc' }],
|
sorts: [{ name: 'notifyTime', order: 'desc' }],
|
||||||
terms: [{ column: 'notifyType$IN', value: data.type }],
|
terms: [{ column: 'notifyType$IN', value: data.type }],
|
||||||
}"
|
}"
|
||||||
:params="params"
|
:params="params"
|
||||||
model="table"
|
:pagination="{
|
||||||
|
pageSizeOptions: ['5', '10', '20', '50', '100'],
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template #notifyTime="slotProps">
|
<template #notifyTime="slotProps">
|
||||||
{{ moment(slotProps.notifyTime).format('YYYY-MM-DD HH:mm:ss') }}
|
{{ moment(slotProps.notifyTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
|
@ -127,9 +128,7 @@ const params = ref<Record<string, any>>({});
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
const handleSearch = (e: any) => {
|
const handleSearch = (e: any) => {
|
||||||
// console.log('handleSearch e:', e);
|
|
||||||
params.value = e;
|
params.value = e;
|
||||||
// console.log('params.value: ', params.value);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,5 +168,3 @@ const handleDetail = (e: any) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped></style>
|
|
||||||
|
|
|
@ -1,21 +1,22 @@
|
||||||
|
<!-- 通知记录 -->
|
||||||
<template>
|
<template>
|
||||||
<j-modal v-model:visible="_vis" title="通知记录" :footer="null" width="70%">
|
<j-modal v-model:visible="_vis" title="通知记录" :footer="null" width="70%">
|
||||||
<pro-search
|
<pro-search type="simple" :columns="columns" @search="handleSearch" />
|
||||||
type="simple"
|
|
||||||
:columns="columns"
|
|
||||||
@search="handleSearch"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<JProTable
|
<JProTable
|
||||||
ref="instanceRef"
|
ref="logRef"
|
||||||
|
model="table"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:request="(e:any) => templateApi.getHistory(e, data.id)"
|
:request="(e:any) => templateApi.getHistory(e, data.id)"
|
||||||
:defaultParams="{
|
:defaultParams="{
|
||||||
|
pageSize: 5,
|
||||||
sorts: [{ name: 'notifyTime', order: 'desc' }],
|
sorts: [{ name: 'notifyTime', order: 'desc' }],
|
||||||
terms: [{ column: 'notifyType$IN', value: data.type }],
|
terms: [{ column: 'notifyType$IN', value: data.type }],
|
||||||
}"
|
}"
|
||||||
:params="params"
|
:params="params"
|
||||||
model="table"
|
:pagination="{
|
||||||
|
pageSizeOptions: ['5', '10', '20', '50', '100'],
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<template #notifyTime="slotProps">
|
<template #notifyTime="slotProps">
|
||||||
{{ moment(slotProps.notifyTime).format('YYYY-MM-DD HH:mm:ss') }}
|
{{ moment(slotProps.notifyTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
|
@ -127,9 +128,7 @@ const params = ref<Record<string, any>>({});
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
const handleSearch = (e: any) => {
|
const handleSearch = (e: any) => {
|
||||||
// console.log('handleSearch e:', e);
|
|
||||||
params.value = e;
|
params.value = e;
|
||||||
// console.log('params.value: ', params.value);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,5 +168,3 @@ const handleDetail = (e: any) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped></style>
|
|
||||||
|
|
|
@ -3860,7 +3860,7 @@
|
||||||
"version" "0.0.3"
|
"version" "0.0.3"
|
||||||
|
|
||||||
"jetlinks-ui-components@^1.0.5":
|
"jetlinks-ui-components@^1.0.5":
|
||||||
"integrity" "sha512-u1jqTyBWHB+b/NOKimucxNMYxet6g9Hi/I30T1VNWGq+x/Gf2zjz8dJoxjUcLW+9t/yjG6opWUE8Z8NWQRp3Eg=="
|
"integrity" "sha512-zrMe/4PjtWNCQtlP6kNLA7hVyQ7ftPSgivQZp8TGcpbUMOU/IYyCLQ0+VoWcqEopTSt1zEzEazodR4EjEzv7pQ=="
|
||||||
"resolved" "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz"
|
"resolved" "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz"
|
||||||
"version" "1.0.5"
|
"version" "1.0.5"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue