diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue index b71e080..f7b262f 100644 --- a/src/views/system/tool/autograph/autograph.vue +++ b/src/views/system/tool/autograph/autograph.vue @@ -1,10 +1,88 @@ - - - diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue index b71e080..f7b262f 100644 --- a/src/views/system/tool/autograph/autograph.vue +++ b/src/views/system/tool/autograph/autograph.vue @@ -1,10 +1,88 @@ - - - diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue index 30cd9d5..c364465 100644 --- a/src/views/system/tool/certificate/certificate.vue +++ b/src/views/system/tool/certificate/certificate.vue @@ -1,12 +1,88 @@ - - + + diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue index b71e080..f7b262f 100644 --- a/src/views/system/tool/autograph/autograph.vue +++ b/src/views/system/tool/autograph/autograph.vue @@ -1,10 +1,88 @@ - - - diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue index 30cd9d5..c364465 100644 --- a/src/views/system/tool/certificate/certificate.vue +++ b/src/views/system/tool/certificate/certificate.vue @@ -1,12 +1,88 @@ - - + + diff --git a/src/views/system/tool/document/document.vue b/src/views/system/tool/document/document.vue index 12ae700..bd5cb95 100644 --- a/src/views/system/tool/document/document.vue +++ b/src/views/system/tool/document/document.vue @@ -1,10 +1,88 @@ - - - - diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue index b71e080..f7b262f 100644 --- a/src/views/system/tool/autograph/autograph.vue +++ b/src/views/system/tool/autograph/autograph.vue @@ -1,10 +1,88 @@ - - - diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue index 30cd9d5..c364465 100644 --- a/src/views/system/tool/certificate/certificate.vue +++ b/src/views/system/tool/certificate/certificate.vue @@ -1,12 +1,88 @@ - - + + diff --git a/src/views/system/tool/document/document.vue b/src/views/system/tool/document/document.vue index 12ae700..bd5cb95 100644 --- a/src/views/system/tool/document/document.vue +++ b/src/views/system/tool/document/document.vue @@ -1,10 +1,88 @@ - - - - diff --git a/src/views/system/tool/signature/signature.vue b/src/views/system/tool/signature/signature.vue index 4ca1c56..0045732 100644 --- a/src/views/system/tool/signature/signature.vue +++ b/src/views/system/tool/signature/signature.vue @@ -1,10 +1,96 @@ - - - diff --git a/src/api/system/notice.ts b/src/api/system/notice.ts new file mode 100644 index 0000000..dec43d1 --- /dev/null +++ b/src/api/system/notice.ts @@ -0,0 +1,22 @@ +/* + * 通知公告接口 +*/ +import request from '../index' +const prefix = 'system' + +// 获取公告列表/详情 +export function getNoticeeApi(params: object) { + return request({ + url: `${prefix}/notice/listPage`, + method: 'get', + params, + }) +} +// 通知公告新建 +export function addNoticeApi(data: object) { + return request({ + url: `${prefix}/notice/add`, + method: 'post', + data, + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index dac3b84..a40fb7d 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -1,5 +1,5 @@ import request from '../index' -import qs from 'qs' +// import qs from 'qs' const prefix = 'sys/' // 修改密码 export function changePwd(data: { oldPwd: string; newPwd: string }) { @@ -63,8 +63,8 @@ url: 'sys/mgr/roleAssign', method: 'post', data: { - userId: userId, - roleIds: ids + userId, + roleIds: ids, }, // paramsSerializer: (params) => qs.stringify(params, { indices: false }) }) diff --git a/src/views/system/notice/note.list.vue b/src/views/system/notice/note.list.vue index 30cd9d5..61dd8e9 100644 --- a/src/views/system/notice/note.list.vue +++ b/src/views/system/notice/note.list.vue @@ -1,12 +1,153 @@ - - + + diff --git a/src/views/system/notice/noteAdd.vue b/src/views/system/notice/noteAdd.vue new file mode 100644 index 0000000..d37a9bb --- /dev/null +++ b/src/views/system/notice/noteAdd.vue @@ -0,0 +1,67 @@ + + + + + + diff --git a/src/views/system/notice/table.header.vue b/src/views/system/notice/table.header.vue new file mode 100644 index 0000000..e65bccd --- /dev/null +++ b/src/views/system/notice/table.header.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue index b71e080..f7b262f 100644 --- a/src/views/system/tool/autograph/autograph.vue +++ b/src/views/system/tool/autograph/autograph.vue @@ -1,10 +1,88 @@ - - - diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue index 30cd9d5..c364465 100644 --- a/src/views/system/tool/certificate/certificate.vue +++ b/src/views/system/tool/certificate/certificate.vue @@ -1,12 +1,88 @@ - - + + diff --git a/src/views/system/tool/document/document.vue b/src/views/system/tool/document/document.vue index 12ae700..bd5cb95 100644 --- a/src/views/system/tool/document/document.vue +++ b/src/views/system/tool/document/document.vue @@ -1,10 +1,88 @@ - - - - diff --git a/src/views/system/tool/signature/signature.vue b/src/views/system/tool/signature/signature.vue index 4ca1c56..0045732 100644 --- a/src/views/system/tool/signature/signature.vue +++ b/src/views/system/tool/signature/signature.vue @@ -1,10 +1,96 @@ - - - diff --git a/src/views/system/user/select.tree.vue b/src/views/system/user/select.tree.vue index 07eabd3..efbac4a 100644 --- a/src/views/system/user/select.tree.vue +++ b/src/views/system/user/select.tree.vue @@ -49,12 +49,17 @@ currentNodeLabel: '', }) const treeSelect = ref(null) + const blur = ref() const nodeClick = (data: TreeNodeData, node: TreeNode) => { select.currentNodeKey = data.id select.currentNodeLabel = data.label || data.name - select.value = data.id; - (treeSelect.value as any).blur() - emit('update:modelValue', select.value) + select.value = data.id + emit('update:modelValue', select.value); + // 关闭下拉框 + (treeSelect.value as any).handleClose() + nextTick(() => { + (treeSelect.value as any).handleClose() + }) } // 筛选方法 const treeV2: any = ref(null) @@ -114,12 +119,16 @@