diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index a3135e2..d20f8ee 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -93,3 +93,8 @@ export const getAllUserList = (): Promise => { export const getAllUserListWithHire = (): Promise => { return request.get({ url: '/admin-api/system/user/no/permission/list-all' }) } + +// 获取钉钉id +export const getDDIdByPhone = (params) => { + return request.get({ url: '/admin-api/system/user/getDingTalkUserIdByMobile', params }) +} diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 25f7e92..d44d629 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -74,13 +74,13 @@ export const SystemUserSocialTypeEnum = { type: 20, source: 'dingtalk', img: 'https://s1.ax1x.com/2022/05/22/OzMDRs.png' - }, - WECHAT_ENTERPRISE: { - title: '企业微信', - type: 30, - source: 'wechat_enterprise', - img: 'https://s1.ax1x.com/2022/05/22/OzMrzn.png' } + // WECHAT_ENTERPRISE: { + // title: '企业微信', + // type: 30, + // source: 'wechat_enterprise', + // img: 'https://s1.ax1x.com/2022/05/22/OzMrzn.png' + // } } /** diff --git a/src/views/Basic/Dept/index.vue b/src/views/Basic/Dept/index.vue index 88e4445..0103712 100644 --- a/src/views/Basic/Dept/index.vue +++ b/src/views/Basic/Dept/index.vue @@ -21,7 +21,7 @@ - + - diff --git a/src/views/Basic/WxRobot/Record.vue b/src/views/Basic/WxRobot/Record.vue new file mode 100644 index 0000000..0ea1e19 --- /dev/null +++ b/src/views/Basic/WxRobot/Record.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/src/views/Basic/WxRobot/Setting.vue b/src/views/Basic/WxRobot/Setting.vue new file mode 100644 index 0000000..8cbf408 --- /dev/null +++ b/src/views/Basic/WxRobot/Setting.vue @@ -0,0 +1,81 @@ + + + + + diff --git a/src/views/Basic/WxRobot/index.data.js b/src/views/Basic/WxRobot/index.data.js deleted file mode 100644 index 3f9f58d..0000000 --- a/src/views/Basic/WxRobot/index.data.js +++ /dev/null @@ -1,62 +0,0 @@ -// import { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' - -const statusOptions = [ - { label: '发送成功', value: 1 }, - { label: '发送失败', value: 2 }, - { label: '排队中', value: 3 }, - { label: '微信端卡住', value: 4 } -] - -// CrudSchema:https://doc.iocoder.cn/vue3/crud-schema/ -const crudSchemas = reactive([ - { - label: '发送对象', - field: 'sendUser', - isSearch: true, - isTable: true - }, - { - label: '发送内容', - field: 'content', - isSearch: false, - isTable: true - }, - { - label: '发送状态', - field: 'status', - isSearch: true, - isTable: true, - search: { - component: 'Select', - api: () => statusOptions, - componentProps: { - optionsAlias: { - labelField: 'label', - valueField: 'value' - } - } - } - }, - { - label: '发送时间', - field: 'createTime', - isSearch: true, - isTable: true, - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD' - }, - search: { - component: 'DatePicker', - componentProps: { - type: 'daterange', - format: 'YYYY-MM-DD', - valueFormat: 'YYYY-MM-DD', - startPlaceholder: '发送时间', - endPlaceholder: '发送时间' - } - } - } -]) -export const { allSchemas } = useCrudSchemas(crudSchemas) diff --git a/src/views/Basic/WxRobot/index.vue b/src/views/Basic/WxRobot/index.vue index 38d8eda..5ce2b2f 100644 --- a/src/views/Basic/WxRobot/index.vue +++ b/src/views/Basic/WxRobot/index.vue @@ -1,77 +1,19 @@ - diff --git a/src/views/Profile/Index.vue b/src/views/Profile/Index.vue index 6a31f15..2f78c27 100644 --- a/src/views/Profile/Index.vue +++ b/src/views/Profile/Index.vue @@ -22,16 +22,16 @@ - +