@qqt-product/system 0.0.1 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/index.es.js +53240 -10634
  2. package/dist/index.umd.js +94 -21
  3. package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +2878 -0
  4. package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +2871 -0
  5. package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +2878 -0
  6. package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +23 -4
  7. package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +9 -4
  8. package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +9 -4
  9. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +2864 -0
  10. package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +2 -3
  11. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +2864 -0
  12. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +2876 -0
  13. package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +29 -14
  14. package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +2 -6
  15. package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +5 -8
  16. package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +9 -4
  17. package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +2872 -0
  18. package/dist/lib/components/QPermissionDataList/src/QPermissionDataList.vue.d.ts +126 -0
  19. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +2864 -0
  20. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +2887 -0
  21. package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +25 -5
  22. package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +7 -0
  23. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +221 -28
  24. package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue.d.ts +45 -0
  25. package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +24 -5
  26. package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +23 -7
  27. package/dist/lib/components/QRoleList/src/useConfigData.d.ts +1 -11
  28. package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +7 -3
  29. package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +15 -35
  30. package/dist/lib/components/QUsageList/src/useConfigData.d.ts +111 -10
  31. package/dist/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue.d.ts +25 -0
  32. package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +9 -10
  33. package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +1209 -0
  34. package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +1 -1
  35. package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +8 -7
  36. package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +2 -3
  37. package/dist/lib/components/index.d.ts +2 -2
  38. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +2863 -0
  39. package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +2872 -0
  40. package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +8 -11
  41. package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +16 -10
  42. package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +2 -9
  43. package/dist/lib/components/loginLogList/src/index.vue.d.ts +2 -8
  44. package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +2 -12
  45. package/dist/lib/components/operateLogList/src/index.vue.d.ts +2 -13
  46. package/dist/style.css +1 -1
  47. package/dist/vite-env.d.ts +13 -13
  48. package/package.json +13 -11
  49. package/src/lib/components/QAccountList/src/QAccountCreate.vue +272 -0
  50. package/src/lib/components/QAccountList/src/QAccountDetail.vue +82 -14
  51. package/src/lib/components/QAccountList/src/QAccountEdit.vue +65 -33
  52. package/src/lib/components/QAccountList/src/QAccountList.vue +532 -530
  53. package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +143 -137
  54. package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +172 -166
  55. package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +123 -124
  56. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +66 -18
  57. package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +151 -122
  58. package/src/lib/components/QI18nList/src/QI18nList.vue +365 -361
  59. package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +103 -94
  60. package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +109 -105
  61. package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -3
  62. package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +218 -221
  63. package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +110 -117
  64. package/src/lib/components/QPermissionDataList/src/form.vue +109 -109
  65. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +1 -1
  66. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +120 -32
  67. package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +189 -163
  68. package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +84 -0
  69. package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -22
  70. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +134 -85
  71. package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +91 -0
  72. package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +276 -263
  73. package/src/lib/components/QRoleList/src/QRoleList.vue +332 -288
  74. package/src/lib/components/QRoleList/src/useConfigData.ts +1 -6
  75. package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +304 -302
  76. package/src/lib/components/QUsageList/src/QUsageList.vue +287 -82
  77. package/src/lib/components/QUsageList/src/useConfigData.ts +147 -13
  78. package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -140
  79. package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +28 -28
  80. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +130 -42
  81. package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +2 -2
  82. package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +2 -2
  83. package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +12 -12
  84. package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +276 -268
  85. package/src/lib/components/QcustomConfigList/src/useConfigData.ts +1 -1
  86. package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +124 -125
  87. package/src/lib/components/index.ts +78 -78
  88. package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +2 -10
  89. package/src/lib/components/integratedNodesList/src/index.vue +130 -136
  90. package/src/lib/components/integratedReportList/src/index.vue +55 -30
  91. package/src/lib/components/integratedReportSearchList/src/index.vue +106 -66
  92. package/src/lib/components/loginAbnormalLogList/src/index.vue +43 -50
  93. package/src/lib/components/loginLogList/src/index.vue +51 -57
  94. package/src/lib/components/loginSupplierLogList/src/index.vue +53 -63
  95. package/src/lib/components/operateLogList/src/index.vue +46 -57
  96. package/src/vite-env.d.ts +13 -13
  97. package/tsconfig.json +24 -24
  98. package/vite.config.ts +1 -1
  99. package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +0 -80
  100. package/dist/lib/components/QCompanyermissionList/src/types.d.ts +0 -44
  101. package/dist/lib/components/integratedReportList/src/index.vue.d.ts +0 -70
  102. package/src/lib/components/QCompanyermissionList/src/editTree.vue +0 -291
  103. package/src/lib/components/QCompanyermissionList/src/form.vue +0 -238
  104. package/src/lib/components/QCompanyermissionList/src/index.vue +0 -309
  105. package/src/lib/components/QCompanyermissionList/src/types.ts +0 -44
@@ -1,94 +1,103 @@
1
- <template>
2
- <div style="height: 100%">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- //JS
9
- import { defineComponent, reactive, toRefs } from 'vue'
10
- //hook
11
- import { useConfigData } from './useConfigData'
12
-
13
- export default defineComponent({
14
- name: 'QImChatGroupList',
15
- props: {
16
- userInfo: {
17
- type: Object,
18
- defalut: () => {
19
- return {}
20
- },
21
- },
22
- },
23
- setup(props) {
24
- //data
25
- const pageData = reactive({
26
- statusConfig: {
27
- show: false,
28
- },
29
- optColumn: {
30
- attrs: {},
31
- extend: {},
32
- optColumnList: [
33
- // { authorityCode: 'template#templateHead:edit', type: 'edit', title: '编辑', click: handleEdit, allow: allowEdit },
34
- // { authorityCode: 'template#templateHead:copyById', type: 'copyById', title: '复制', click: handleCusotmCopy },
35
- // { authorityCode: 'template#templateHead:cancel', type: 'cancel', title: '作废', click: handleCustomCancel, allow: allowCancel },
36
- {
37
- type: 'delete',
38
- title: '删除',
39
- authorityCode: 'i18n#I18n:delete',
40
- action: '/base/systemSet/delete',
41
- // allow: allowDelete,
42
- },
43
- ],
44
- },
45
- buttonConfig: {
46
- attrs: {},
47
- extend: {},
48
- buttons: [
49
- // {label: srmI18n(`${getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns}
50
- ],
51
- },
52
- queryConfig: {
53
- attrs: {},
54
- extend: {},
55
- form: [
56
- {
57
- type: 'input',
58
- label: '群组名称',
59
- fieldName: 'keyWord',
60
- placeholder: '请输入群组名称',
61
- },
62
- {
63
- type: 'select',
64
- label: 'IM群聊单据类型',
65
- fieldName: 'recordType',
66
- dictCode: 'ImRecordType',
67
- placeholder: '请选择单据类型',
68
- },
69
- ],
70
- formState: {
71
- keyWord: '',
72
- recordType: '',
73
- },
74
- },
75
- pagerConfig: {},
76
- })
77
- //data-hook
78
- const { showEditPage, apiUrls } = useConfigData()
79
- const { userInfo } = toRefs(props)
80
- console.log('userInfos', userInfo)
81
- //methods
82
- // function allowDelete() {
83
- // console.log('userInfo.value?.userInfo?.elsAccount', userInfo.value?.userInfo?.elsAccount)
84
- // if (userInfo.value?.userInfo?.elsAccount != '100000') {
85
- // return true
86
- // } else {
87
- // return false
88
- // }
89
- // }
90
- return { showEditPage, apiUrls, pageData }
91
- },
92
- })
93
- </script>
94
- <style scoped></style>
1
+ <template>
2
+ <div style="height: 100%">
3
+ <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
+ </div>
5
+ </template>
6
+
7
+ <script lang="ts">
8
+ //JS
9
+ import { defineComponent, reactive, toRefs, inject } from 'vue'
10
+ //hook
11
+ import { useConfigData } from './useConfigData'
12
+ //ts
13
+ interface layimTS {
14
+ openGruopChat: (parmas: object) => void
15
+ }
16
+
17
+ export default defineComponent({
18
+ name: 'QImChatGroupList',
19
+
20
+ props: {
21
+ userInfo: {
22
+ type: Object,
23
+ defalut: () => {
24
+ return {}
25
+ },
26
+ },
27
+ },
28
+ setup() {
29
+ //inject
30
+ const layIM = inject('Q_APPLICATION_IM') as layimTS
31
+ //data
32
+ const pageData = reactive({
33
+ statusConfig: {
34
+ show: false,
35
+ },
36
+ optionConfig: {
37
+ attrs: {},
38
+ extend: {},
39
+ options: [
40
+ // { authorityCode: 'template#templateHead:edit', type: 'edit', title: '编辑', click: handleEdit, allow: allowEdit },
41
+ // { authorityCode: 'template#templateHead:copyById', type: 'copyById', title: '复制', click: handleCusotmCopy },
42
+ // { authorityCode: 'template#templateHead:cancel', type: 'cancel', title: '作废', click: handleCustomCancel, allow: allowCancel },
43
+ {
44
+ type: 'chat',
45
+ title: '查看',
46
+ click: handleViewChat,
47
+ },
48
+ ],
49
+ },
50
+ buttonConfig: {
51
+ attrs: {},
52
+ extend: {},
53
+ buttons: [
54
+ // {label: srmI18n(`${getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns}
55
+ ],
56
+ },
57
+ queryConfig: {
58
+ attrs: {},
59
+ extend: {},
60
+ form: [
61
+ {
62
+ type: 'input',
63
+ label: '群组名称',
64
+ fieldName: 'keyWord',
65
+ placeholder: '请输入群组名称',
66
+ },
67
+ {
68
+ type: 'select',
69
+ label: 'IM群聊单据类型',
70
+ fieldName: 'recordType',
71
+ dictCode: 'ImRecordType',
72
+ placeholder: '请选择单据类型',
73
+ },
74
+ ],
75
+ },
76
+ pagerConfig: {},
77
+ })
78
+ //data-hook
79
+ const { showEditPage, apiUrls } = useConfigData()
80
+ //methods
81
+ // function allowDelete() {
82
+ // console.log('userInfo.value?.userInfo?.elsAccount', userInfo.value?.userInfo?.elsAccount)
83
+ // if (userInfo.value?.userInfo?.elsAccount != '100000') {
84
+ // return true
85
+ // } else {
86
+ // return false
87
+ // }
88
+ // }
89
+ //methods
90
+ function handleViewChat({ row }) {
91
+ let chatInfo = {
92
+ groupname: row.name,
93
+ avatar: row.avatar || '',
94
+ id: row.id,
95
+ }
96
+ console.log('123123', layIM)
97
+ layIM.openGruopChat(chatInfo)
98
+ }
99
+ return { showEditPage, apiUrls, pageData }
100
+ },
101
+ })
102
+ </script>
103
+ <style scoped></style>
@@ -1,105 +1,109 @@
1
- <template>
2
- <div style="height: 100%">
3
- <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- //JS
9
- import { defineComponent, reactive, inject } from 'vue'
10
- //hook
11
- import { useConfigData } from './useConfigData'
12
- //ts
13
- import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
14
- import { message } from '@qqt-product/ui'
15
- export default defineComponent({
16
- name: 'QMqRecordList',
17
- props: {
18
- userInfo: {
19
- type: Object,
20
- defalut: () => {
21
- return {}
22
- },
23
- },
24
- },
25
- setup() {
26
- //data-hook
27
- const { showEditPage, apiUrls, listLayoutRef } = useConfigData()
28
- const qHttp = inject(INJECT_HTTP) as HttpClient
29
- // const { userInfo } = toRefs(props)
30
- //data
31
- const pageData = reactive({
32
- statusConfig: {
33
- show: false,
34
- },
35
- optColumn: {
36
- attrs: {},
37
- extend: {},
38
- optColumnList: [{ authorityCode: 'mq#mqRecord:retry', type: 'delete', title: '重试 ', click: retry, disabled: allowRetryOpt }],
39
- },
40
- buttonConfig: {
41
- attrs: {},
42
- extend: {},
43
- buttons: [
44
- // {label: this.$srmI18n(`${this.$getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns}
45
- ],
46
- },
47
- queryConfig: {
48
- attrs: {},
49
- extend: {},
50
- form: [
51
- {
52
- type: 'select',
53
- label: '消息分组',
54
- dictCode: 'mqGroup',
55
- fieldName: 'msgGroup',
56
- placeholder: '请选择消息分组',
57
- },
58
- {
59
- type: 'select',
60
- label: '消息状态',
61
- dictCode: 'mqStatus',
62
- fieldName: 'msgStatus',
63
- placeholder: '请选择消息状态',
64
- },
65
- ],
66
- formState: {},
67
- },
68
- pagerConfig: {},
69
- })
70
-
71
- //methods
72
- function allowRetryOpt({ row = {} as MapObjectNoneType }) {
73
- if (row.msgStatus !== '1') {
74
- return false
75
- } else {
76
- return true
77
- }
78
- }
79
-
80
- function retry({ row = {} as MapObjectNoneType }) {
81
- listLayoutRef.value.loading = true
82
- qHttp
83
- .post({
84
- url: apiUrls.value.retry,
85
- params: {
86
- ...row,
87
- },
88
- })
89
- .then((res) => {
90
- if (res.success) {
91
- listLayoutRef.value.fetchListData()
92
- message.success(res.message)
93
- } else {
94
- message.warning(res.message)
95
- }
96
- })
97
- .finally(() => {
98
- listLayoutRef.value.loading = true
99
- })
100
- }
101
- return { showEditPage, apiUrls, pageData, listLayoutRef }
102
- },
103
- })
104
- </script>
105
- <style scoped></style>
1
+ <template>
2
+ <div style="height: 100%">
3
+ <q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
4
+ </div>
5
+ </template>
6
+
7
+ <script lang="ts">
8
+ //JS
9
+ import { defineComponent, reactive, inject } from 'vue'
10
+ //hook
11
+ import { useConfigData } from './useConfigData'
12
+ //ts
13
+ import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
14
+ import { message } from '@qqt-product/ui'
15
+ export default defineComponent({
16
+ name: 'QMqRecordList',
17
+ props: {
18
+ userInfo: {
19
+ type: Object,
20
+ defalut: () => {
21
+ return {}
22
+ },
23
+ },
24
+ },
25
+ setup() {
26
+ //data-hook
27
+ const { showEditPage, apiUrls, listLayoutRef } = useConfigData()
28
+ const qHttp = inject(INJECT_HTTP) as HttpClient
29
+ // const { userInfo } = toRefs(props)
30
+ //data
31
+ const pageData = reactive({
32
+ statusConfig: {
33
+ show: false,
34
+ },
35
+ optionConfig: {
36
+ attrs: {},
37
+ extend: {},
38
+ options: [{ authorityCode: 'mq#mqRecord:retry', type: 'delete', title: '重试 ', click: retry, disabled: allowRetryOpt }],
39
+ },
40
+ buttonConfig: {
41
+ attrs: {},
42
+ extend: {},
43
+ buttons: [
44
+ {
45
+ label: '列自定义',
46
+ icon: {
47
+ type: 'icon-Q-setting',
48
+ },
49
+ type: 'setting',
50
+ },
51
+ // {label: this.$srmI18n(`${this.$getLangAccount()}#i18n_title_listCustom`, '列自定义'), icon: 'setting', clickFn: this.settingColumns}
52
+ ],
53
+ },
54
+ queryConfig: {
55
+ attrs: {},
56
+ extend: {},
57
+ form: [
58
+ {
59
+ type: 'select',
60
+ label: '消息分组',
61
+ dictCode: 'mqGroup',
62
+ fieldName: 'msgGroup',
63
+ placeholder: '请选择消息分组',
64
+ },
65
+ {
66
+ type: 'select',
67
+ label: '消息状态',
68
+ dictCode: 'mqStatus',
69
+ fieldName: 'msgStatus',
70
+ placeholder: '请选择消息状态',
71
+ },
72
+ ],
73
+ },
74
+ pagerConfig: {},
75
+ })
76
+
77
+ //methods
78
+ function allowRetryOpt({ row = {} as MapObjectNoneType }) {
79
+ if (row.msgStatus !== '1' && row.msgStatus !== '0') {
80
+ return false
81
+ } else {
82
+ return true
83
+ }
84
+ }
85
+
86
+ function retry({ row = {} as MapObjectNoneType }) {
87
+ listLayoutRef.value.loading = true
88
+ qHttp
89
+ .post({
90
+ url: apiUrls.value.retry,
91
+ data: row,
92
+ })
93
+ .then((res) => {
94
+ if (res.success) {
95
+ listLayoutRef.value.fetchListData()
96
+ message.success(res.message)
97
+ } else {
98
+ message.warning(res.message)
99
+ }
100
+ })
101
+ .finally(() => {
102
+ listLayoutRef.value.loading = false
103
+ })
104
+ }
105
+ return { showEditPage, apiUrls, pageData, listLayoutRef }
106
+ },
107
+ })
108
+ </script>
109
+ <style scoped></style>
@@ -1,3 +1,3 @@
1
- <template>
2
- <div>auth</div>
3
- </template>
1
+ <template>
2
+ <div>auth</div>
3
+ </template>