From 56fcd8ebb0a3987efb1dc8d47c59fa46ff573fbd Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 24 Sep 2022 22:39:48 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat=20=E7=94=9F=E6=88=90=E5=99=A8=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=BC=98=E5=8C=96,=20=E5=A2=9E=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/develop/dynamicDataSource.js | 66 +++++++ .../modules/develop/codegen/CodeGenForm.vue | 2 +- .../dynamicsource/DynamicDataSourceEdit.vue | 166 ++++++++++++++++++ .../dynamicsource/DynamicDataSourceList.vue | 121 +++++++++++++ .../modules/notice/template/TemplateEdit.vue | 2 +- 5 files changed, 355 insertions(+), 2 deletions(-) create mode 100644 src/api/develop/dynamicDataSource.js create mode 100644 src/views/modules/develop/dynamicsource/DynamicDataSourceEdit.vue create mode 100644 src/views/modules/develop/dynamicsource/DynamicDataSourceList.vue diff --git a/src/api/develop/dynamicDataSource.js b/src/api/develop/dynamicDataSource.js new file mode 100644 index 0000000..3a3e008 --- /dev/null +++ b/src/api/develop/dynamicDataSource.js @@ -0,0 +1,66 @@ +import { axios } from '@/utils/request' + +/** + * 分页 + */ +export function page (params) { + return axios({ + url: '/dynamic/source/page', + method: 'GET', + params: params + }) +} + +/** + * 查询全部 + */ +export function list () { + return axios({ + url: '/dynamic/source/findAll', + method: 'GET' + }) +} + +/** + * 获取单条 + */ +export function get (id) { + return axios({ + url: '/dynamic/source/findById', + method: 'GET', + params: { id } + }) +} + +/** + * 添加 + */ +export function add (obj) { + return axios({ + url: '/dynamic/source/add', + method: 'POST', + data: obj + }) +} + +/** + * 更新 + */ +export function update (obj) { + return axios({ + url: '/dynamic/source/update', + method: 'POST', + data: obj + }) +} + +/** + * 删除 + */ +export function del (id) { + return axios({ + url: '/dynamic/source/delete', + params: { id }, + method: 'DELETE' + }) +} diff --git a/src/views/modules/develop/codegen/CodeGenForm.vue b/src/views/modules/develop/codegen/CodeGenForm.vue index 6809e24..550a714 100644 --- a/src/views/modules/develop/codegen/CodeGenForm.vue +++ b/src/views/modules/develop/codegen/CodeGenForm.vue @@ -171,7 +171,7 @@ export default { this.form.controllerPack = `${basePack}.controller` this.form.requestPath = `/${module}` - this.form.vueApiPath = `/api/${module}/` + this.form.vueApiPath = `/api/${module}` this.genPackFlag = true }, handleCancel () { diff --git a/src/views/modules/develop/dynamicsource/DynamicDataSourceEdit.vue b/src/views/modules/develop/dynamicsource/DynamicDataSourceEdit.vue new file mode 100644 index 0000000..d3b58e1 --- /dev/null +++ b/src/views/modules/develop/dynamicsource/DynamicDataSourceEdit.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/modules/develop/dynamicsource/DynamicDataSourceList.vue b/src/views/modules/develop/dynamicsource/DynamicDataSourceList.vue new file mode 100644 index 0000000..fe40f72 --- /dev/null +++ b/src/views/modules/develop/dynamicsource/DynamicDataSourceList.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/src/views/modules/notice/template/TemplateEdit.vue b/src/views/modules/notice/template/TemplateEdit.vue index a7a8ca0..1effc24 100644 --- a/src/views/modules/notice/template/TemplateEdit.vue +++ b/src/views/modules/notice/template/TemplateEdit.vue @@ -81,7 +81,7 @@ export default { name: '', date: '', remark: '', - type: 1 + type: 0 }, rules: { code: [ -- Gitee From 44a6a183d446749e38c363fc76c66120f1b9160b Mon Sep 17 00:00:00 2001 From: xxm Date: Sun, 25 Sep 2022 17:11:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style=20=E6=B6=88=E6=81=AF=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=86=85=E5=AE=B9=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NoticeIcon/NoticeIcon.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/NoticeIcon/NoticeIcon.vue b/src/components/NoticeIcon/NoticeIcon.vue index f37f430..2a525dc 100644 --- a/src/components/NoticeIcon/NoticeIcon.vue +++ b/src/components/NoticeIcon/NoticeIcon.vue @@ -16,7 +16,9 @@ @@ -40,9 +42,11 @@ import { countByReceiveNotRead, pageByReceive, read } from '@/api/notice/siteMessage' import { NOTICE_MESSAGE_UPDATE, NOTICE_SHOW_MESSAGE } from '@/assets/code/VueBusCode' +import Ellipsis from '@/components/Ellipsis' export default { name: 'HeaderNotice', + components: { Ellipsis }, data () { return { // 事件标示 -- Gitee From 0bbd1e651dbc775c525413e0e238bbd88a26f24b Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 1 Oct 2022 19:37:56 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix=20=E7=B3=BB=E7=BB=9F=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E7=BB=88=E7=AB=AF=E4=B8=8D=E5=85=81=E8=AE=B8=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/system/client/ClientList.vue | 3 ++- src/views/modules/system/client/LoginTypeList.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/modules/system/client/ClientList.vue b/src/views/modules/system/client/ClientList.vue index 2c70de4..413fca9 100644 --- a/src/views/modules/system/client/ClientList.vue +++ b/src/views/modules/system/client/ClientList.vue @@ -65,10 +65,11 @@ - 删除 + 删除 diff --git a/src/views/modules/system/client/LoginTypeList.vue b/src/views/modules/system/client/LoginTypeList.vue index f5c9e70..a602f71 100644 --- a/src/views/modules/system/client/LoginTypeList.vue +++ b/src/views/modules/system/client/LoginTypeList.vue @@ -72,7 +72,7 @@ -- Gitee