vue2-client 1.2.93 → 1.2.94

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 (43) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +5 -0
  4. package/package.json +1 -1
  5. package/src/base-client/all.js +66 -64
  6. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +113 -113
  7. package/src/base-client/components/common/CitySelect/CitySelect.vue +244 -244
  8. package/src/base-client/components/common/CitySelect/index.js +3 -3
  9. package/src/base-client/components/common/CitySelect/index.md +109 -109
  10. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +547 -539
  11. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +773 -773
  12. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  13. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +221 -0
  14. package/src/base-client/components/common/PersonSetting/index.js +3 -0
  15. package/src/base-client/components/common/Upload/index.js +3 -3
  16. package/src/base-client/components/common/XAddForm/XAddForm.vue +345 -345
  17. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
  18. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  19. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  20. package/src/base-client/components/common/XForm/XFormItem.vue +367 -358
  21. package/src/base-client/components/common/XFormTable/XFormTable.vue +507 -489
  22. package/src/base-client/components/iot/DeviceDetailsView/DeviceDetailsView.vue +232 -232
  23. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsCount.vue +678 -678
  24. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsException.vue +57 -57
  25. package/src/base-client/components/iot/DeviceDetailsView/part/DeviceDetailsRead.vue +131 -131
  26. package/src/base-client/components/iot/DeviceTypeDetailsView/DeviceTypeDetailsView.vue +300 -300
  27. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +960 -960
  28. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +532 -532
  29. package/src/base-client/plugins/compatible/LoginServiceOA.js +20 -20
  30. package/src/config/CreateQueryConfig.js +304 -301
  31. package/src/pages/resourceManage/orgListManage.vue +98 -98
  32. package/src/router/async/config.async.js +26 -26
  33. package/src/router/async/router.map.js +60 -60
  34. package/src/router/index.js +27 -27
  35. package/src/services/api/WebmeterAnalysisViewApi.js +24 -24
  36. package/src/services/api/common.js +58 -56
  37. package/src/services/api/index.js +39 -39
  38. package/src/services/api/iot/DeviceDetailsView/DeviceDetailsCountApi.js +18 -18
  39. package/src/services/api/manage.js +16 -16
  40. package/src/services/api/restTools.js +24 -24
  41. package/src/theme/default/style.less +47 -47
  42. package/src/utils/util.js +230 -230
  43. package/vue.config.js +163 -158
@@ -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,26 +1,26 @@
1
- import routerMap from './router.map'
2
- import { parseRoutes } from '@vue2-client/utils/routerUtil'
3
-
4
- // 异步路由配置
5
- const routesConfig = [
6
- 'login',
7
- 'submitTicket',
8
- 'root',
9
- {
10
- router: 'exp404',
11
- path: '*',
12
- name: '404'
13
- },
14
- {
15
- router: 'exp403',
16
- path: '/403',
17
- name: '403'
18
- }
19
- ]
20
-
21
- const options = {
22
- mode: 'history',
23
- routes: parseRoutes(routesConfig, routerMap)
24
- }
25
-
26
- export default options
1
+ import routerMap from './router.map'
2
+ import { parseRoutes } from '@vue2-client/utils/routerUtil'
3
+
4
+ // 异步路由配置
5
+ const routesConfig = [
6
+ 'login',
7
+ 'submitTicket',
8
+ 'root',
9
+ {
10
+ router: 'exp404',
11
+ path: '*',
12
+ name: '404'
13
+ },
14
+ {
15
+ router: 'exp403',
16
+ path: '/403',
17
+ name: '403'
18
+ }
19
+ ]
20
+
21
+ const options = {
22
+ mode: 'history',
23
+ routes: parseRoutes(routesConfig, routerMap)
24
+ }
25
+
26
+ export default options
@@ -1,60 +1,60 @@
1
- // 视图组件
2
- const view = {
3
- tabs: () => import('@vue2-client/layouts/tabs'),
4
- blank: () => import('@vue2-client/layouts/BlankView'),
5
- page: () => import('@vue2-client/layouts/PageView')
6
- }
7
- // 动态路由对象定义
8
- const routerResource = {}
9
- // --------------------------------------基本视图组件--------------------------------------
10
- // 空白视图
11
- routerResource.blank = view.blank
12
- // 单页面视图
13
- routerResource.singlePage = view.blank
14
- // --------------------------------------系统配置--------------------------------------
15
- routerResource.system = view.blank
16
- // 字典管理
17
- routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
18
- // 查询配置管理
19
- routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
20
- // 查询配置生成
21
- routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage.vue')
22
- // 系统问题反馈工单
23
- routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
24
- // --------------------------------------报表组件--------------------------------------
25
- routerResource.reportTable = () => import(/* webpackChunkName: "ReportTableHome" */ '@vue2-client/pages/report/ReportTableHome')
26
- // --------------------------------------资源管理--------------------------------------
27
- routerResource.resourceManageMain = () => import(/* webpackChunkName: "resourceManageMain" */ '@vue2-client/pages/resourceManage/resourceManageMain')
28
-
29
- // 基础路由组件注册
30
- const routerMap = {
31
- login: {
32
- authority: '*',
33
- path: '/login',
34
- component: () => import('@vue2-client/pages/login')
35
- },
36
- root: {
37
- path: '/',
38
- name: '首页',
39
- redirect: '/login',
40
- component: view.tabs
41
- },
42
- exp403: {
43
- authority: '*',
44
- name: 'exp403',
45
- path: '403',
46
- component: () => import('@vue2-client/pages/exception/403')
47
- },
48
- exp404: {
49
- name: 'exp404',
50
- path: '404',
51
- component: () => import('@vue2-client/pages/exception/404')
52
- },
53
- exp500: {
54
- name: 'exp500',
55
- path: '500',
56
- component: () => import('@vue2-client/pages/exception/500')
57
- }
58
- }
59
- Object.assign(routerMap, routerResource)
60
- export default routerMap
1
+ // 视图组件
2
+ const view = {
3
+ tabs: () => import('@vue2-client/layouts/tabs'),
4
+ blank: () => import('@vue2-client/layouts/BlankView'),
5
+ page: () => import('@vue2-client/layouts/PageView')
6
+ }
7
+ // 动态路由对象定义
8
+ const routerResource = {}
9
+ // --------------------------------------基本视图组件--------------------------------------
10
+ // 空白视图
11
+ routerResource.blank = view.blank
12
+ // 单页面视图
13
+ routerResource.singlePage = view.blank
14
+ // --------------------------------------系统配置--------------------------------------
15
+ routerResource.system = view.blank
16
+ // 字典管理
17
+ routerResource.dictionaryManage = () => import(/* webpackChunkName: "dictionary" */ '@vue2-client/pages/system/dictionary')
18
+ // 查询配置管理
19
+ routerResource.queryParamsManage = () => import(/* webpackChunkName: "queryParams" */ '@vue2-client/pages/system/queryParams')
20
+ // 查询配置生成
21
+ routerResource.createQuery = () => import('@vue2-client/pages/CreateQueryPage.vue')
22
+ // 系统问题反馈工单
23
+ routerResource.submitTicket = () => import(/* webpackChunkName: "submitTicket" */ '@vue2-client/pages/system/ticket')
24
+ // --------------------------------------报表组件--------------------------------------
25
+ routerResource.reportTable = () => import(/* webpackChunkName: "ReportTableHome" */ '@vue2-client/pages/report/ReportTableHome')
26
+ // --------------------------------------资源管理--------------------------------------
27
+ routerResource.resourceManageMain = () => import(/* webpackChunkName: "resourceManageMain" */ '@vue2-client/pages/resourceManage/resourceManageMain')
28
+
29
+ // 基础路由组件注册
30
+ const routerMap = {
31
+ login: {
32
+ authority: '*',
33
+ path: '/login',
34
+ component: () => import('@vue2-client/pages/login')
35
+ },
36
+ root: {
37
+ path: '/',
38
+ name: '首页',
39
+ redirect: '/login',
40
+ component: view.tabs
41
+ },
42
+ exp403: {
43
+ authority: '*',
44
+ name: 'exp403',
45
+ path: '403',
46
+ component: () => import('@vue2-client/pages/exception/403')
47
+ },
48
+ exp404: {
49
+ name: 'exp404',
50
+ path: '404',
51
+ component: () => import('@vue2-client/pages/exception/404')
52
+ },
53
+ exp500: {
54
+ name: 'exp500',
55
+ path: '500',
56
+ component: () => import('@vue2-client/pages/exception/500')
57
+ }
58
+ }
59
+ Object.assign(routerMap, routerResource)
60
+ export default routerMap
@@ -1,27 +1,27 @@
1
- import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
-
3
- // 不需要登录拦截的路由配置
4
- const loginIgnore = {
5
- names: ['404', '403'], // 根据路由名称匹配
6
- paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
- /**
8
- * 判断路由是否包含在该配置中
9
- * @param route vue-router 的 route 对象
10
- * @returns {boolean}
11
- */
12
- includes (route) {
13
- return this.names.includes(route.name) || this.paths.includes(route.path)
14
- }
15
- }
16
-
17
- /**
18
- * 初始化路由实例
19
- * @param isAsync 是否异步路由模式
20
- * @returns {RouterOptions}
21
- */
22
- function initRouter (isAsync) {
23
- const options = require('./async/config.async').default
24
- formatRoutes(options.routes)
25
- return options
26
- }
27
- export { loginIgnore, initRouter }
1
+ import { formatRoutes } from '@vue2-client/utils/routerUtil'
2
+
3
+ // 不需要登录拦截的路由配置
4
+ const loginIgnore = {
5
+ names: ['404', '403'], // 根据路由名称匹配
6
+ paths: ['/login', '/submitTicket'], // 根据路由fullPath匹配
7
+ /**
8
+ * 判断路由是否包含在该配置中
9
+ * @param route vue-router 的 route 对象
10
+ * @returns {boolean}
11
+ */
12
+ includes (route) {
13
+ return this.names.includes(route.name) || this.paths.includes(route.path)
14
+ }
15
+ }
16
+
17
+ /**
18
+ * 初始化路由实例
19
+ * @param isAsync 是否异步路由模式
20
+ * @returns {RouterOptions}
21
+ */
22
+ function initRouter (isAsync) {
23
+ const options = require('./async/config.async').default
24
+ formatRoutes(options.routes)
25
+ return options
26
+ }
27
+ export { loginIgnore, initRouter }
@@ -1,24 +1,24 @@
1
- const WebmeterAnalysisViewApi = {
2
- // 查询:指令数统计
3
- instructSumCount: '/webmeterapi/foreignaidInstructSumCountData',
4
- // 查询:抄表数统计
5
- meteReadSumCount: '/webmeterapi/foreignaidMetereadSumCountData',
6
- // 查询:近一周抄表量数据
7
- meteReadDataByWeek: '/webmeterapi/foreignaidMetereadDataByWeekData',
8
- // 查询:在用表具数
9
- usingMeterSumCount: '/webmeterapi/foreignaidUsingMeterSumCountData',
10
- // 查询:近一周在用表具数数据
11
- usingMeterDataByWeek: '/webmeterapi/foreignaidUsingMeterDataByWeekData',
12
- // 查询:指令成功率统计
13
- instructRateOfSuccess: '/webmeterapi/foreignaidInstructRateOfSuccessData',
14
- // 查询:按表厂抄表量统计
15
- handMeterSumCountData: '/webmeterapi/foreignaidHandMeterSumCountData',
16
- // 查询:统计用气量数据
17
- useGasSumCount: '/webmeterapi/foreignaidUseGasSumCountData',
18
- // 查询:按用气性质统计用气量
19
- GasByGasProperties: '/webmeterapi/foreignaidGasByGasProperties',
20
- // 查询:用户在用气量占比
21
- GasInUser: '/webmeterapi/foreignaidGasInUser'
22
- }
23
-
24
- export { WebmeterAnalysisViewApi }
1
+ const WebmeterAnalysisViewApi = {
2
+ // 查询:指令数统计
3
+ instructSumCount: '/webmeterapi/foreignaidInstructSumCountData',
4
+ // 查询:抄表数统计
5
+ meteReadSumCount: '/webmeterapi/foreignaidMetereadSumCountData',
6
+ // 查询:近一周抄表量数据
7
+ meteReadDataByWeek: '/webmeterapi/foreignaidMetereadDataByWeekData',
8
+ // 查询:在用表具数
9
+ usingMeterSumCount: '/webmeterapi/foreignaidUsingMeterSumCountData',
10
+ // 查询:近一周在用表具数数据
11
+ usingMeterDataByWeek: '/webmeterapi/foreignaidUsingMeterDataByWeekData',
12
+ // 查询:指令成功率统计
13
+ instructRateOfSuccess: '/webmeterapi/foreignaidInstructRateOfSuccessData',
14
+ // 查询:按表厂抄表量统计
15
+ handMeterSumCountData: '/webmeterapi/foreignaidHandMeterSumCountData',
16
+ // 查询:统计用气量数据
17
+ useGasSumCount: '/webmeterapi/foreignaidUseGasSumCountData',
18
+ // 查询:按用气性质统计用气量
19
+ GasByGasProperties: '/webmeterapi/foreignaidGasByGasProperties',
20
+ // 查询:用户在用气量占比
21
+ GasInUser: '/webmeterapi/foreignaidGasInUser'
22
+ }
23
+
24
+ export { WebmeterAnalysisViewApi }
@@ -1,56 +1,58 @@
1
- import { METHOD, request } from '@vue2-client/utils/request'
2
- import { indexedDB } from '@vue2-client/utils/indexedDB'
3
-
4
- const commonApi = {
5
- // 获取表格列配置
6
- getColumnsJson: '/webmeterapi/getColumns',
7
- // 通用查询
8
- query: '/webmeterapi/commonQuery',
9
- // 表单通用查询
10
- queryWithResource: '/webmeterapi/commonQueryWithResource',
11
- // 通用新增/修改
12
- addOrModify: '/webmeterapi/commonAddOrModify',
13
- // 通用删除
14
- delete: '/webmeterapi/commonDelete',
15
- // 获取字典键列表
16
- getDictionaryParam: '/webmeterapi/getDictionaryParam'
17
- }
18
-
19
- /**
20
- * 带缓存查询的表格配置文件查询
21
- * @param queryParamsName 配置名称
22
- * @param callback 回调函数
23
- */
24
- export function getColumnsJson (queryParamsName, callback) {
25
- indexedDB.getByWeb(queryParamsName, commonApi.getColumnsJson, { str: queryParamsName }, callback)
26
- }
27
-
28
- /**
29
- * 通用表单查询
30
- */
31
- export function query (parameter) {
32
- return request(commonApi.query, METHOD.POST, parameter)
33
- }
34
-
35
- /**
36
- * 通用表单查询
37
- */
38
- export function queryWithResource (parameter) {
39
- return request(commonApi.queryWithResource, METHOD.POST, parameter)
40
- }
41
-
42
- /**
43
- * 通用新增/修改
44
- */
45
- export function addOrModify (parameter) {
46
- return request(commonApi.addOrModify, METHOD.POST, parameter)
47
- }
48
-
49
- /**
50
- * 通用删除
51
- */
52
- export function remove (parameter) {
53
- return request(commonApi.delete, METHOD.POST, parameter)
54
- }
55
-
56
- export { commonApi }
1
+ import { METHOD, request } from '@vue2-client/utils/request'
2
+ import { indexedDB } from '@vue2-client/utils/indexedDB'
3
+
4
+ const commonApi = {
5
+ // 获取表格列配置
6
+ getColumnsJson: '/webmeterapi/getColumns',
7
+ // 通用查询
8
+ query: '/webmeterapi/commonQuery',
9
+ // 表单通用查询
10
+ queryWithResource: '/webmeterapi/commonQueryWithResource',
11
+ // 通用新增/修改
12
+ addOrModify: '/webmeterapi/commonAddOrModify',
13
+ // 通用删除
14
+ delete: '/webmeterapi/commonDelete',
15
+ // 获取字典键列表
16
+ getDictionaryParam: '/webmeterapi/getDictionaryParam',
17
+ // 获取所有员工及其部门的级联菜单数据
18
+ getEmpTree: '/webmeterapi/getEmpTree',
19
+ }
20
+
21
+ /**
22
+ * 带缓存查询的表格配置文件查询
23
+ * @param queryParamsName 配置名称
24
+ * @param callback 回调函数
25
+ */
26
+ export function getColumnsJson (queryParamsName, callback) {
27
+ indexedDB.getByWeb(queryParamsName, commonApi.getColumnsJson, { str: queryParamsName }, callback)
28
+ }
29
+
30
+ /**
31
+ * 通用表单查询
32
+ */
33
+ export function query (parameter) {
34
+ return request(commonApi.query, METHOD.POST, parameter)
35
+ }
36
+
37
+ /**
38
+ * 通用表单查询
39
+ */
40
+ export function queryWithResource (parameter, api = commonApi.queryWithResource) {
41
+ return request(api, METHOD.POST, parameter)
42
+ }
43
+
44
+ /**
45
+ * 通用新增/修改
46
+ */
47
+ export function addOrModify (parameter, api = commonApi.queryWithResource) {
48
+ return request(api, METHOD.POST, parameter)
49
+ }
50
+
51
+ /**
52
+ * 通用删除
53
+ */
54
+ export function remove (parameter) {
55
+ return request(commonApi.delete, METHOD.POST, parameter)
56
+ }
57
+
58
+ export { commonApi }