vue2-client 1.7.0 → 1.7.2

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 (128) hide show
  1. package/.env +15 -15
  2. package/CHANGELOG.md +661 -628
  3. package/Components.md +60 -0
  4. package/index.js +31 -30
  5. package/package.json +83 -81
  6. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +316 -316
  7. package/src/base-client/components/common/CitySelect/CitySelect.vue +247 -247
  8. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -667
  9. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +735 -733
  10. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +466 -468
  11. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +510 -508
  12. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +144 -146
  13. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +165 -165
  14. package/src/base-client/components/common/JSONToTree/jsontotree.vue +275 -275
  15. package/src/base-client/components/common/Upload/Upload.vue +168 -168
  16. package/src/base-client/components/common/XAddForm/XAddForm.vue +72 -325
  17. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +369 -279
  18. package/src/base-client/components/common/XAddNativeForm/index.md +107 -17
  19. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  20. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -0
  21. package/src/base-client/components/common/XDataDrawer/index.js +3 -0
  22. package/src/base-client/components/common/XDataDrawer/index.md +41 -0
  23. package/src/base-client/components/common/XForm/XForm.vue +178 -180
  24. package/src/base-client/components/common/XForm/XFormItem.vue +521 -513
  25. package/src/base-client/components/common/XForm/XTreeSelect.vue +184 -184
  26. package/src/base-client/components/common/XFormCol/XFormCol.vue +38 -38
  27. package/src/base-client/components/common/XFormTable/XFormTable.vue +356 -344
  28. package/src/base-client/components/common/XFormTable/index.md +97 -97
  29. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +132 -132
  30. package/src/base-client/components/common/XTable/XTable.vue +519 -506
  31. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +111 -111
  32. package/src/base-client/components/index.js +41 -0
  33. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +231 -231
  34. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  35. package/src/base-client/components/ticket/TicketDetailsView/TicketDetailsView.vue +807 -807
  36. package/src/base-client/components/ticket/TicketDetailsView/index.md +29 -29
  37. package/src/base-client/components/ticket/TicketDetailsView/part/TicketDetailsFlow.vue +260 -260
  38. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  39. package/src/base-client/components/ticket/TicketSubmitSuccessView/index.md +29 -29
  40. package/src/base-client/plugins/AppData.js +76 -76
  41. package/src/base-client/plugins/GetLoginInfoService.js +179 -179
  42. package/src/base-client/plugins/PagedList.js +177 -177
  43. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  44. package/src/base-client/plugins/i18n-extend.js +32 -32
  45. package/src/components/Ellipsis/Ellipsis.vue +65 -65
  46. package/src/components/Ellipsis/index.md +38 -38
  47. package/src/components/NumberInfo/index.md +43 -43
  48. package/src/components/STable/README.md +341 -341
  49. package/src/components/STable/index.js +318 -318
  50. package/src/components/Trend/index.md +45 -45
  51. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  52. package/src/components/checkbox/ImgCheckbox.vue +163 -163
  53. package/src/components/exception/ExceptionPage.vue +70 -70
  54. package/src/components/form/FormRow.vue +52 -52
  55. package/src/components/index.js +36 -36
  56. package/src/components/menu/SideMenu.vue +75 -62
  57. package/src/components/menu/menu.js +273 -273
  58. package/src/components/page/header/index.less +40 -40
  59. package/src/components/setting/Setting.vue +235 -235
  60. package/src/components/table/StandardTable.vue +141 -141
  61. package/src/components/table/advance/ActionColumns.vue +158 -158
  62. package/src/components/table/advance/SearchArea.vue +355 -355
  63. package/src/components/tool/AStepItem.vue +60 -60
  64. package/src/components/tool/AvatarList.vue +68 -68
  65. package/src/components/tool/Drawer.vue +142 -142
  66. package/src/components/tool/TagSelect.vue +83 -83
  67. package/src/components/transition/PageToggleTransition.vue +97 -97
  68. package/src/config/CreateQueryConfig.js +307 -307
  69. package/src/config/default/admin.config.js +18 -18
  70. package/src/config/default/setting.config.js +4 -2
  71. package/src/config/replacer/resolve.config.js +67 -67
  72. package/src/layouts/CommonLayout.vue +42 -42
  73. package/src/layouts/ComponentLayoutOne.vue +47 -47
  74. package/src/layouts/PageLayout.vue +151 -151
  75. package/src/layouts/SinglePageView.vue +116 -116
  76. package/src/layouts/footer/PageFooter.vue +49 -49
  77. package/src/layouts/header/AdminHeader.vue +134 -134
  78. package/src/layouts/header/HeaderAvatar.vue +64 -64
  79. package/src/layouts/header/HeaderNotice.vue +176 -176
  80. package/src/layouts/header/HeaderSearch.vue +67 -67
  81. package/src/layouts/header/InstitutionDetail.vue +181 -181
  82. package/src/layouts/header/index.less +92 -92
  83. package/src/layouts/tabs/TabsHead.vue +190 -190
  84. package/src/layouts/tabs/TabsView.vue +379 -379
  85. package/src/lib.js +1 -0
  86. package/src/mock/goods/index.js +108 -108
  87. package/src/pages/CreateQueryPage.vue +84 -84
  88. package/src/pages/login/Login.vue +369 -369
  89. package/src/pages/report/ReportTable.js +124 -124
  90. package/src/pages/report/ReportTableHome.vue +28 -28
  91. package/src/pages/resourceManage/orgListManage.vue +98 -98
  92. package/src/pages/system/dictionary/index.vue +43 -43
  93. package/src/pages/system/file/index.vue +317 -317
  94. package/src/pages/system/monitor/loginInfor/index.vue +36 -36
  95. package/src/pages/system/monitor/operLog/index.vue +36 -36
  96. package/src/pages/system/settings/index.vue +126 -126
  97. package/src/pages/system/settings/modifyPassword.vue +109 -109
  98. package/src/router/async/config.async.js +28 -28
  99. package/src/router/async/router.map.js +66 -66
  100. package/src/router/guards.js +52 -12
  101. package/src/router/index.js +27 -27
  102. package/src/services/api/DictionaryDetailsViewApi.js +6 -6
  103. package/src/services/api/LogDetailsViewApi.js +10 -10
  104. package/src/services/api/QueryParamsDetailsViewApi.js +6 -6
  105. package/src/services/api/TicketDetailsViewApi.js +34 -34
  106. package/src/services/api/cas.js +79 -79
  107. package/src/services/api/common.js +137 -137
  108. package/src/services/api/commonTempTable.js +10 -10
  109. package/src/services/api/index.js +17 -17
  110. package/src/services/api/logininfor/index.js +6 -6
  111. package/src/services/api/manage.js +8 -8
  112. package/src/services/apiService.js +14 -14
  113. package/src/services/user.js +67 -67
  114. package/src/store/modules/index.js +4 -4
  115. package/src/theme/default/nprogress.less +76 -76
  116. package/src/theme/default/style.less +58 -58
  117. package/src/utils/EncryptUtil.js +53 -53
  118. package/src/utils/colors.js +107 -107
  119. package/src/utils/excel/Blob.js +180 -180
  120. package/src/utils/excel/Export2Excel.js +141 -141
  121. package/src/utils/formatter.js +68 -68
  122. package/src/utils/i18n.js +80 -80
  123. package/src/utils/login.js +138 -0
  124. package/src/utils/map-utils.js +37 -37
  125. package/src/utils/theme-color-replacer-extend.js +91 -91
  126. package/src/utils/themeUtil.js +100 -100
  127. package/src/utils/util.js +230 -230
  128. package/vue.config.js +106 -106
@@ -1,124 +1,124 @@
1
- export default {
2
- name: 'ReportTable',
3
- functional: true,
4
- render (h, content) {
5
- if (!content.props.tableData) {
6
- console.log('没有报表数据')
7
- return
8
- }
9
- console.log('content=>', content)
10
- const html = reportCompute(h, content.props.tableData)
11
- console.log('html=>', html)
12
- // 报表整体高度和宽度
13
- const reportClass = `h-${html.h} w-${html.w}`
14
- return (
15
- <div id='ReportTableHome'>
16
- <div id='reportTable' class={reportClass}>
17
- {html.el}
18
- </div>
19
- </div>
20
- )
21
- }
22
- }
23
- /**
24
- * class类生成
25
- * @param w 宽
26
- * @param h 高
27
- * @param l left
28
- * @param t top
29
- * @returns {string}
30
- */
31
- function generClass ({ w = 1, h = 1, l, t }) {
32
- return `w-${w} h-${h} l-${l} t-${t}`
33
- }
34
- /**
35
- * 判断是否是个Number数据
36
- * @param value
37
- * @returns {boolean}
38
- */
39
- function typeNumber (value) {
40
- return Object.prototype.toString.call(value) === '[object Number]'
41
- }
42
- /**
43
- * 判断是否是个object数据
44
- * @param value
45
- * @returns {boolean}
46
- */
47
- function typeObject (value) {
48
- return Object.prototype.toString.call(value) === '[object Object]'
49
- }
50
- /**
51
- * 判断是否是个Array数据
52
- * @param value
53
- * @returns {boolean}
54
- */
55
- function typeArray (value) {
56
- return Object.prototype.toString.call(value) === '[object Array]'
57
- }
58
- /**
59
- * 一行数据转换html函数
60
- * @param h vue的h
61
- * @param row 一行json数据
62
- * @param left 起始left距离
63
- * @param top 起始top距离
64
- * @returns {{el: Array, h: number}}
65
- */
66
- function rowCompute (h, row, left, top) {
67
- if (typeObject(row)) {
68
- const el = []
69
- const keys = Object.keys(row).filter((res) => res !== 'span')
70
- let heigth = 0
71
- for (const key of keys.values()) {
72
- const value = row[key]['value'] ? row[key]['value'] : row[key]
73
- const style = { l: left, t: top + heigth }
74
- style.w = row[key]['span'] ? row[key]['span'] : 1
75
- const nextL = left + style.w
76
- const nextT = top + heigth
77
- const divObject = rowCompute(h, value, nextL, nextT)
78
- el.push(divObject.el)
79
- style.h = divObject.h ? divObject.h : 1
80
- heigth += style.h
81
- const attrs = { class: generClass(style) + ' title' }
82
- const div = <div {...attrs}>{key === 'value' ? value : key}</div>
83
- el.push(div)
84
- }
85
- return { h: heigth, el: el }
86
- } else if (typeArray(row)) {
87
- const el = []
88
- for (const [i, value] of row.entries()) {
89
- const style = { l: (left + i), t: top, w: 1, h: 1 }
90
- const extraClass = typeNumber(value) ? 'bold' : 'title'
91
- const attrs = { class: generClass(style) + ` ${extraClass}` }
92
- const div = <div {...attrs}>{value}</div>
93
- el.push(div)
94
- }
95
- return { h: 1, el: el }
96
- }
97
- }
98
- /**
99
- * 完整报表数据转换html函数
100
- * @param h vue的h
101
- * @param jsonArr json数组
102
- * @returns {{el: Array, h: number}}
103
- */
104
- function reportCompute (h, jsonArr) {
105
- const html = []
106
- let heigth = 0
107
- let width = 0
108
- for (const [index, row] of jsonArr.entries()) {
109
- const rowHtml = rowCompute(h, row, 0, index)
110
- // 取第一行的宽度作为整个报表的宽度
111
- if (index === 0) {
112
- const reg = /w-\d\s/
113
- for (const vNode of rowHtml.el) {
114
- if (!vNode.data || !vNode.data.class) continue
115
- const c = vNode.data.class
116
- const w = c.match(reg)[0].split('-')[1]
117
- width += (w - 0)
118
- }
119
- }
120
- heigth += rowHtml.h
121
- html.push(rowHtml.el)
122
- }
123
- return { el: html, h: heigth, w: width }
124
- }
1
+ export default {
2
+ name: 'ReportTable',
3
+ functional: true,
4
+ render (h, content) {
5
+ if (!content.props.tableData) {
6
+ console.log('没有报表数据')
7
+ return
8
+ }
9
+ console.log('content=>', content)
10
+ const html = reportCompute(h, content.props.tableData)
11
+ console.log('html=>', html)
12
+ // 报表整体高度和宽度
13
+ const reportClass = `h-${html.h} w-${html.w}`
14
+ return (
15
+ <div id='ReportTableHome'>
16
+ <div id='reportTable' class={reportClass}>
17
+ {html.el}
18
+ </div>
19
+ </div>
20
+ )
21
+ }
22
+ }
23
+ /**
24
+ * class类生成
25
+ * @param w 宽
26
+ * @param h 高
27
+ * @param l left
28
+ * @param t top
29
+ * @returns {string}
30
+ */
31
+ function generClass ({ w = 1, h = 1, l, t }) {
32
+ return `w-${w} h-${h} l-${l} t-${t}`
33
+ }
34
+ /**
35
+ * 判断是否是个Number数据
36
+ * @param value
37
+ * @returns {boolean}
38
+ */
39
+ function typeNumber (value) {
40
+ return Object.prototype.toString.call(value) === '[object Number]'
41
+ }
42
+ /**
43
+ * 判断是否是个object数据
44
+ * @param value
45
+ * @returns {boolean}
46
+ */
47
+ function typeObject (value) {
48
+ return Object.prototype.toString.call(value) === '[object Object]'
49
+ }
50
+ /**
51
+ * 判断是否是个Array数据
52
+ * @param value
53
+ * @returns {boolean}
54
+ */
55
+ function typeArray (value) {
56
+ return Object.prototype.toString.call(value) === '[object Array]'
57
+ }
58
+ /**
59
+ * 一行数据转换html函数
60
+ * @param h vue的h
61
+ * @param row 一行json数据
62
+ * @param left 起始left距离
63
+ * @param top 起始top距离
64
+ * @returns {{el: Array, h: number}}
65
+ */
66
+ function rowCompute (h, row, left, top) {
67
+ if (typeObject(row)) {
68
+ const el = []
69
+ const keys = Object.keys(row).filter((res) => res !== 'span')
70
+ let heigth = 0
71
+ for (const key of keys.values()) {
72
+ const value = row[key]['value'] ? row[key]['value'] : row[key]
73
+ const style = { l: left, t: top + heigth }
74
+ style.w = row[key]['span'] ? row[key]['span'] : 1
75
+ const nextL = left + style.w
76
+ const nextT = top + heigth
77
+ const divObject = rowCompute(h, value, nextL, nextT)
78
+ el.push(divObject.el)
79
+ style.h = divObject.h ? divObject.h : 1
80
+ heigth += style.h
81
+ const attrs = { class: generClass(style) + ' title' }
82
+ const div = <div {...attrs}>{key === 'value' ? value : key}</div>
83
+ el.push(div)
84
+ }
85
+ return { h: heigth, el: el }
86
+ } else if (typeArray(row)) {
87
+ const el = []
88
+ for (const [i, value] of row.entries()) {
89
+ const style = { l: (left + i), t: top, w: 1, h: 1 }
90
+ const extraClass = typeNumber(value) ? 'bold' : 'title'
91
+ const attrs = { class: generClass(style) + ` ${extraClass}` }
92
+ const div = <div {...attrs}>{value}</div>
93
+ el.push(div)
94
+ }
95
+ return { h: 1, el: el }
96
+ }
97
+ }
98
+ /**
99
+ * 完整报表数据转换html函数
100
+ * @param h vue的h
101
+ * @param jsonArr json数组
102
+ * @returns {{el: Array, h: number}}
103
+ */
104
+ function reportCompute (h, jsonArr) {
105
+ const html = []
106
+ let heigth = 0
107
+ let width = 0
108
+ for (const [index, row] of jsonArr.entries()) {
109
+ const rowHtml = rowCompute(h, row, 0, index)
110
+ // 取第一行的宽度作为整个报表的宽度
111
+ if (index === 0) {
112
+ const reg = /w-\d\s/
113
+ for (const vNode of rowHtml.el) {
114
+ if (!vNode.data || !vNode.data.class) continue
115
+ const c = vNode.data.class
116
+ const w = c.match(reg)[0].split('-')[1]
117
+ width += (w - 0)
118
+ }
119
+ }
120
+ heigth += rowHtml.h
121
+ html.push(rowHtml.el)
122
+ }
123
+ return { el: html, h: heigth, w: width }
124
+ }
@@ -1,28 +1,28 @@
1
- <template>
2
- <report-table :tableData="tableData"></report-table>
3
- </template>
4
-
5
- <script>
6
- import { post } from '@vue2-client/services/api'
7
- import ReportTable from '@vue2-client/pages/report/ReportTable'
8
- export default {
9
- name: 'ReportTableHome',
10
- components: { ReportTable },
11
- data () {
12
- return {
13
- tableData: null
14
- }
15
- },
16
- created () {
17
- },
18
- mounted () {
19
- this.getData()
20
- },
21
- methods: {
22
- async getData () {
23
- this.tableData = await post('/api/system/logic/reportTest', {})
24
- console.log('数据=>', JSON.stringify(this.tableData))
25
- }
26
- }
27
- }
28
- </script>
1
+ <template>
2
+ <report-table :tableData="tableData"></report-table>
3
+ </template>
4
+
5
+ <script>
6
+ import { post } from '@vue2-client/services/api'
7
+ import ReportTable from '@vue2-client/pages/report/ReportTable'
8
+ export default {
9
+ name: 'ReportTableHome',
10
+ components: { ReportTable },
11
+ data () {
12
+ return {
13
+ tableData: null
14
+ }
15
+ },
16
+ created () {
17
+ },
18
+ mounted () {
19
+ this.getData()
20
+ },
21
+ methods: {
22
+ async getData () {
23
+ this.tableData = await post('/api/system/logic/reportTest', {})
24
+ console.log('数据=>', JSON.stringify(this.tableData))
25
+ }
26
+ }
27
+ }
28
+ </script>
@@ -1,98 +1,98 @@
1
- <template>
2
- <div id="orgListManage">
3
- <a-card :bordered="false">
4
- <!--<a-row :gutter="48">-->
5
- <!--<a-col>-->
6
- <!--<a-space>-->
7
- <!--<a-button type="primary" @click="addItem" v-if="!buttonState || buttonState.add">-->
8
- <!--<a-icon :style="iconStyle" type="plus"/>新增-->
9
- <!--</a-button>-->
10
- <!--<a-button-->
11
- <!--v-if="!buttonState || buttonState.edit"-->
12
- <!--:loading="editDataLoading"-->
13
- <!--:disabled="!isModify"-->
14
- <!--class="btn-success"-->
15
- <!--type="dashed"-->
16
- <!--@click="editItem">-->
17
- <!--<a-icon :style="iconStyle" type="edit"/>修改-->
18
- <!--</a-button>-->
19
- <!--<a-button :disabled="!isDelete" type="danger" @click="deleteItem" v-if="!buttonState || buttonState.delete">-->
20
- <!--<a-icon :style="iconStyle" type="delete"/>删除-->
21
- <!--</a-button>-->
22
- <!--</a-space>-->
23
- <!--<span :style="{ float: 'right', overflow: 'hidden', marginBottom: '8px' }">-->
24
- <!--<a-button-group>-->
25
- <!--<a-button @click="toggleIsFormShow">-->
26
- <!--<a-icon :style="iconStyle" type="vertical-align-top"/>-->
27
- <!--</a-button>-->
28
- <!--<a-button @click="refresh(true)">-->
29
- <!--<a-icon :style="iconStyle" type="reload" />-->
30
- <!--</a-button>-->
31
- <!--<a-button @click="showDrawer">-->
32
- <!--<a-icon :style="iconStyle" type="table" />-->
33
- <!--</a-button>-->
34
- <!--<a-button @click="exports">-->
35
- <!--<a-icon :style="iconStyle" type="cloud-download"/>-->
36
- <!--</a-button>-->
37
- <!--</a-button-group>-->
38
- <!--</span>-->
39
- <!--</a-col>-->
40
- <!--</a-row>-->
41
- <a-table
42
- :columns="columns"
43
- :data-source="funTree"
44
- :pagination="false"
45
- bordered
46
- rowKey="id"
47
- size="middle">
48
- </a-table>
49
- </a-card>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- import { getOrganization, searchFun } from '@vue2-client/base-client/plugins/GetLoginInfoService'
55
- import { getColumnsJson } from '@vue2-client/services/api'
56
- export default {
57
- // 组织管理
58
- name: 'orgListManage',
59
- data () {
60
- return {
61
- columnsJson: [],
62
- funTree: [],
63
- columns: [
64
- {
65
- title: '组织名称',
66
- dataIndex: 'name'
67
- },
68
- {
69
- title: '排序',
70
- dataIndex: 'position'
71
- },
72
- {
73
- title: '组件目录',
74
- dataIndex: 'f_dir'
75
- },
76
- {
77
- title: '描述',
78
- dataIndex: 'f_description'
79
- }
80
- ]
81
- }
82
- },
83
- created () {
84
- },
85
- async mounted () {
86
- getColumnsJson('orgListManage', (res) => {
87
- this.columnsJson = res
88
- })
89
- const fun = await getOrganization()
90
- this.funTree = searchFun(fun, '组织机构')
91
- },
92
- methods: {
93
- }
94
- }
95
- </script>
96
-
97
- <style lang="less">
98
- </style>
1
+ <template>
2
+ <div id="orgListManage">
3
+ <a-card :bordered="false">
4
+ <!--<a-row :gutter="48">-->
5
+ <!--<a-col>-->
6
+ <!--<a-space>-->
7
+ <!--<a-button type="primary" @click="addItem" v-if="!buttonState || buttonState.add">-->
8
+ <!--<a-icon :style="iconStyle" type="plus"/>新增-->
9
+ <!--</a-button>-->
10
+ <!--<a-button-->
11
+ <!--v-if="!buttonState || buttonState.edit"-->
12
+ <!--:loading="editDataLoading"-->
13
+ <!--:disabled="!isModify"-->
14
+ <!--class="btn-success"-->
15
+ <!--type="dashed"-->
16
+ <!--@click="editItem">-->
17
+ <!--<a-icon :style="iconStyle" type="edit"/>修改-->
18
+ <!--</a-button>-->
19
+ <!--<a-button :disabled="!isDelete" type="danger" @click="deleteItem" v-if="!buttonState || buttonState.delete">-->
20
+ <!--<a-icon :style="iconStyle" type="delete"/>删除-->
21
+ <!--</a-button>-->
22
+ <!--</a-space>-->
23
+ <!--<span :style="{ float: 'right', overflow: 'hidden', marginBottom: '8px' }">-->
24
+ <!--<a-button-group>-->
25
+ <!--<a-button @click="toggleIsFormShow">-->
26
+ <!--<a-icon :style="iconStyle" type="vertical-align-top"/>-->
27
+ <!--</a-button>-->
28
+ <!--<a-button @click="refresh(true)">-->
29
+ <!--<a-icon :style="iconStyle" type="reload" />-->
30
+ <!--</a-button>-->
31
+ <!--<a-button @click="showDrawer">-->
32
+ <!--<a-icon :style="iconStyle" type="table" />-->
33
+ <!--</a-button>-->
34
+ <!--<a-button @click="exports">-->
35
+ <!--<a-icon :style="iconStyle" type="cloud-download"/>-->
36
+ <!--</a-button>-->
37
+ <!--</a-button-group>-->
38
+ <!--</span>-->
39
+ <!--</a-col>-->
40
+ <!--</a-row>-->
41
+ <a-table
42
+ :columns="columns"
43
+ :data-source="funTree"
44
+ :pagination="false"
45
+ bordered
46
+ rowKey="id"
47
+ size="middle">
48
+ </a-table>
49
+ </a-card>
50
+ </div>
51
+ </template>
52
+
53
+ <script>
54
+ import { getOrganization, searchFun } from '@vue2-client/base-client/plugins/GetLoginInfoService'
55
+ import { getColumnsJson } from '@vue2-client/services/api'
56
+ export default {
57
+ // 组织管理
58
+ name: 'orgListManage',
59
+ data () {
60
+ return {
61
+ columnsJson: [],
62
+ funTree: [],
63
+ columns: [
64
+ {
65
+ title: '组织名称',
66
+ dataIndex: 'name'
67
+ },
68
+ {
69
+ title: '排序',
70
+ dataIndex: 'position'
71
+ },
72
+ {
73
+ title: '组件目录',
74
+ dataIndex: 'f_dir'
75
+ },
76
+ {
77
+ title: '描述',
78
+ dataIndex: 'f_description'
79
+ }
80
+ ]
81
+ }
82
+ },
83
+ created () {
84
+ },
85
+ async mounted () {
86
+ getColumnsJson('orgListManage', (res) => {
87
+ this.columnsJson = res
88
+ })
89
+ const fun = await getOrganization()
90
+ this.funTree = searchFun(fun, '组织机构')
91
+ },
92
+ methods: {
93
+ }
94
+ }
95
+ </script>
96
+
97
+ <style lang="less">
98
+ </style>
@@ -1,43 +1,43 @@
1
- <template>
2
- <a-card :bordered="false">
3
- <dictionary-details-view
4
- v-if="selectId"
5
- :id="selectId"
6
- :visible.sync="detailVisible"
7
- />
8
- <x-form-table
9
- :queryParamsName="queryParamsName"
10
- title="字典"
11
- @action="toDetail">
12
- </x-form-table>
13
- </a-card>
14
- </template>
15
-
16
- <script>
17
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
18
- import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
19
-
20
- export default {
21
- name: 'Dictionary',
22
- components: {
23
- XFormTable,
24
- DictionaryDetailsView
25
- },
26
- data () {
27
- return {
28
- // 选中的编号
29
- selectId: undefined,
30
- // 查询配置文件名
31
- queryParamsName: 'crud_dictionary_manage',
32
- // 是否显示详情抽屉
33
- detailVisible: false
34
- }
35
- },
36
- methods: {
37
- toDetail (record, id) {
38
- this.selectId = id + ''
39
- this.detailVisible = true
40
- }
41
- }
42
- }
43
- </script>
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <dictionary-details-view
4
+ v-if="selectId"
5
+ :id="selectId"
6
+ :visible.sync="detailVisible"
7
+ />
8
+ <x-form-table
9
+ :queryParamsName="queryParamsName"
10
+ title="字典"
11
+ @action="toDetail">
12
+ </x-form-table>
13
+ </a-card>
14
+ </template>
15
+
16
+ <script>
17
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
18
+ import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
19
+
20
+ export default {
21
+ name: 'Dictionary',
22
+ components: {
23
+ XFormTable,
24
+ DictionaryDetailsView
25
+ },
26
+ data () {
27
+ return {
28
+ // 选中的编号
29
+ selectId: undefined,
30
+ // 查询配置文件名
31
+ queryParamsName: 'crud_dictionary_manage',
32
+ // 是否显示详情抽屉
33
+ detailVisible: false
34
+ }
35
+ },
36
+ methods: {
37
+ toDetail (record, id) {
38
+ this.selectId = id + ''
39
+ this.detailVisible = true
40
+ }
41
+ }
42
+ }
43
+ </script>