vue2-client 1.2.100 → 1.2.103

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 (31) hide show
  1. package/.env +15 -15
  2. package/.eslintrc.js +82 -82
  3. package/CHANGELOG.md +249 -245
  4. package/package.json +92 -92
  5. package/src/base-client/all.js +66 -66
  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 -547
  11. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +778 -778
  12. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +310 -310
  13. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +210 -210
  14. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  15. package/src/base-client/components/common/Upload/Upload.vue +157 -157
  16. package/src/base-client/components/common/Upload/index.js +3 -3
  17. package/src/base-client/components/common/XAddForm/XAddForm.vue +349 -349
  18. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +322 -322
  19. package/src/base-client/components/common/XForm/XForm.vue +268 -268
  20. package/src/base-client/components/common/XForm/XFormItem.vue +371 -371
  21. package/src/base-client/components/common/XFormTable/XFormTable.vue +507 -507
  22. package/src/base-client/components/iot/WebmeterAnalysisView/WebmeterAnalysisView.vue +960 -960
  23. package/src/config/CreateQueryConfig.js +307 -307
  24. package/src/layouts/header/HeaderNotice.vue +199 -164
  25. package/src/layouts/header/InstitutionDetail.vue +177 -177
  26. package/src/router/async/router.map.js +60 -60
  27. package/src/services/api/WebmeterAnalysisViewApi.js +24 -24
  28. package/src/services/api/common.js +58 -58
  29. package/src/services/api/manage.js +16 -16
  30. package/src/services/api/restTools.js +24 -24
  31. package/vue.config.js +163 -163
@@ -1,177 +1,177 @@
1
- <template>
2
- <div>
3
- <h2 style="text-align: center">{{ institutionData.f_title }}</h2>
4
- <p>简述: {{ institutionData.f_sketch }}</p>
5
- <p>生效时间: {{ format(institutionData.f_effective_date) }}</p>
6
- <div v-if="showDocument" class="content">
7
- <iframe :src="institutionDocUrl" width="100%" height="100%" frameborder="0"></iframe>
8
- </div>
9
- <!-- 其他附件 -->
10
- <div class="other-file">
11
- <div class="title">其他附件</div>
12
- <div v-for="file in otherFiles" :key="file.id">
13
- <a class="file-item">
14
- <span class="file-action" @click="handlePreviewDoc(file.url)">
15
- <a-icon type="link" />{{ file.name }}
16
- </span>
17
- <span class="file-action" @click="handlePreviewDoc(file.url)">
18
- <a-icon type="eye" />预览
19
- </span>
20
- <a class="file-action" @click="handlePreDowDoc(file)" target="_blank"><a-icon type="download" />下载</a>
21
- </a>
22
- </div>
23
- </div>
24
- <!-- 其他附件预览 -->
25
- <a-modal v-model="previewDocVisible" :footer="null" :dialog-style="{ top: '20px' }" width="97%" :z-index="1001">
26
- <div class="preview-doc-container">
27
- <a-spin size="large" :spinning="previewDocLoading" />
28
- <iframe
29
- v-show="!previewDocLoading"
30
- :src="previewDocUrl"
31
- width="100%"
32
- height="100%"
33
- frameborder="0"
34
- @load="previewDocLoading = false" />
35
- </div>
36
- </a-modal>
37
- <a-button type="primary" @click="confirm_institution">确认</a-button>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import { Base64 } from 'js-base64'
43
- import { post } from '@vue2-client/services/api/restTools'
44
- import { formatDate } from '@vue2-client/utils/util'
45
-
46
- export default {
47
- name: 'InstitutionDetail',
48
- props: {
49
- institutionId: {
50
- type: Number,
51
- default: undefined
52
- },
53
- affirmInstitution: {
54
- type: Number,
55
- default: undefined
56
- }
57
- },
58
- data () {
59
- return {
60
- institutionDocUrl: undefined,
61
- showDocument: false,
62
- otherFiles: [],
63
- institutionData: {},
64
- previewDocVisible: false,
65
- previewDocUrl: undefined,
66
- previewDocLoading: false
67
- }
68
- },
69
- watch: {
70
- institutionId () {
71
- this.getDetailData()
72
- }
73
- },
74
- mounted () {
75
- this.getDetailData()
76
- },
77
- methods: {
78
- // 获取详情数据
79
- getDetailData () {
80
- if (!this.institutionId) {
81
- return
82
- }
83
- const otherFiles = []
84
- post('/webmeterapi/getInstitutionDetail', {
85
- id: this.institutionId
86
- }).then(res => {
87
- res.files.forEach(item => {
88
- if (item.use_type === '制度文件') {
89
- const institutionDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + item.url))
90
- this.institutionDocUrl = institutionDocUrl
91
- this.showDocument = true
92
- } else {
93
- otherFiles.push(item)
94
- }
95
- })
96
- this.institutionData = res.institution
97
- this.otherFiles = otherFiles
98
- })
99
- },
100
- format (dateStr) {
101
- return formatDate(dateStr, 'yyyy-MM-dd')
102
- },
103
- // 其他附件预览
104
- handlePreviewDoc (url) {
105
- const previewDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + url))
106
- if (this.previewDocUrl != previewDocUrl) {
107
- this.previewDocLoading = true
108
- this.previewDocUrl = previewDocUrl
109
- }
110
- this.previewDocVisible = true
111
- },
112
- // 下载文档
113
- handlePreDowDoc (file) {
114
- const a = document.createElement('a')
115
- a.href = file.url
116
- a.download = file.name
117
- a.click()
118
- },
119
- confirm_institution () {
120
- post('/webmeterapi/affirmInstitution', {
121
- data: {
122
- tobe: [
123
- {
124
- id: this.affirmInstitution,
125
- f_affirm_type: '系统确认'
126
- }
127
- ]
128
- }
129
- }).then(res => {
130
- this.$message.success('确认成功')
131
- this.$emit('get_to_be_confirmed')
132
- })
133
- },
134
- }
135
- }
136
- // 文档预览服务 API
137
- const previewDocService = 'http://123.60.214.109:8012/onlinePreview?url='
138
- // 文件服务器地址
139
- const fileServer = 'http://123.60.214.109:8406'
140
- </script>
141
-
142
- <style lang="less" scoped>
143
- .content {
144
- height: 80vh;
145
- img {
146
- max-width: 100%;
147
- }
148
- }
149
- .other-file {
150
- margin: 16px 0;
151
- .title {
152
- margin-bottom: 6px;
153
- }
154
- }
155
- .file-item {
156
- .file-action {
157
- padding: 3px 4px;
158
- color: #1890ff;
159
- &:hover {
160
- background: #e6f7ff;
161
- }
162
- }
163
- .anticon {
164
- margin-right: 3px;
165
- }
166
- }
167
- .file-list-title {
168
- color: rgba(0, 0, 0, 0.85);
169
- font-weight: bold;
170
- font-size: 16px;
171
- margin-bottom: 8px;
172
- }
173
- .preview-doc-container {
174
- height: calc(100vh - 92px);
175
- padding-top: 20px;
176
- }
177
- </style>
1
+ <template>
2
+ <div>
3
+ <h2 style="text-align: center">{{ institutionData.f_title }}</h2>
4
+ <p>简述: {{ institutionData.f_sketch }}</p>
5
+ <p>生效时间: {{ format(institutionData.f_effective_date) }}</p>
6
+ <div v-if="showDocument" class="content">
7
+ <iframe :src="institutionDocUrl" width="100%" height="100%" frameborder="0"></iframe>
8
+ </div>
9
+ <!-- 其他附件 -->
10
+ <div class="other-file">
11
+ <div class="title">其他附件</div>
12
+ <div v-for="file in otherFiles" :key="file.id">
13
+ <a class="file-item">
14
+ <span class="file-action" @click="handlePreviewDoc(file.url)">
15
+ <a-icon type="link" />{{ file.name }}
16
+ </span>
17
+ <span class="file-action" @click="handlePreviewDoc(file.url)">
18
+ <a-icon type="eye" />预览
19
+ </span>
20
+ <a class="file-action" @click="handlePreDowDoc(file)" target="_blank"><a-icon type="download" />下载</a>
21
+ </a>
22
+ </div>
23
+ </div>
24
+ <!-- 其他附件预览 -->
25
+ <a-modal v-model="previewDocVisible" :footer="null" :dialog-style="{ top: '20px' }" width="97%" :z-index="1001">
26
+ <div class="preview-doc-container">
27
+ <a-spin size="large" :spinning="previewDocLoading" />
28
+ <iframe
29
+ v-show="!previewDocLoading"
30
+ :src="previewDocUrl"
31
+ width="100%"
32
+ height="100%"
33
+ frameborder="0"
34
+ @load="previewDocLoading = false" />
35
+ </div>
36
+ </a-modal>
37
+ <a-button type="primary" @click="confirm_institution">确认</a-button>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ import { Base64 } from 'js-base64'
43
+ import { post } from '@vue2-client/services/api/restTools'
44
+ import { formatDate } from '@vue2-client/utils/util'
45
+
46
+ export default {
47
+ name: 'InstitutionDetail',
48
+ props: {
49
+ institutionId: {
50
+ type: Number,
51
+ default: undefined
52
+ },
53
+ affirmInstitution: {
54
+ type: Number,
55
+ default: undefined
56
+ }
57
+ },
58
+ data () {
59
+ return {
60
+ institutionDocUrl: undefined,
61
+ showDocument: false,
62
+ otherFiles: [],
63
+ institutionData: {},
64
+ previewDocVisible: false,
65
+ previewDocUrl: undefined,
66
+ previewDocLoading: false
67
+ }
68
+ },
69
+ watch: {
70
+ institutionId () {
71
+ this.getDetailData()
72
+ }
73
+ },
74
+ mounted () {
75
+ this.getDetailData()
76
+ },
77
+ methods: {
78
+ // 获取详情数据
79
+ getDetailData () {
80
+ if (!this.institutionId) {
81
+ return
82
+ }
83
+ const otherFiles = []
84
+ post('/webmeterapi/getInstitutionDetail', {
85
+ id: this.institutionId
86
+ }).then(res => {
87
+ res.files.forEach(item => {
88
+ if (item.use_type === '制度文件') {
89
+ const institutionDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + item.url))
90
+ this.institutionDocUrl = institutionDocUrl
91
+ this.showDocument = true
92
+ } else {
93
+ otherFiles.push(item)
94
+ }
95
+ })
96
+ this.institutionData = res.institution
97
+ this.otherFiles = otherFiles
98
+ })
99
+ },
100
+ format (dateStr) {
101
+ return formatDate(dateStr, 'yyyy-MM-dd')
102
+ },
103
+ // 其他附件预览
104
+ handlePreviewDoc (url) {
105
+ const previewDocUrl = previewDocService + encodeURIComponent(Base64.encode(fileServer + url))
106
+ if (this.previewDocUrl != previewDocUrl) {
107
+ this.previewDocLoading = true
108
+ this.previewDocUrl = previewDocUrl
109
+ }
110
+ this.previewDocVisible = true
111
+ },
112
+ // 下载文档
113
+ handlePreDowDoc (file) {
114
+ const a = document.createElement('a')
115
+ a.href = file.url
116
+ a.download = file.name
117
+ a.click()
118
+ },
119
+ confirm_institution () {
120
+ post('/webmeterapi/affirmInstitution', {
121
+ data: {
122
+ tobe: [
123
+ {
124
+ id: this.affirmInstitution,
125
+ f_affirm_type: '系统确认'
126
+ }
127
+ ]
128
+ }
129
+ }).then(res => {
130
+ this.$message.success('确认成功')
131
+ this.$emit('get_to_be_confirmed')
132
+ })
133
+ },
134
+ }
135
+ }
136
+ // 文档预览服务 API
137
+ const previewDocService = 'http://123.60.214.109:8012/onlinePreview?url='
138
+ // 文件服务器地址
139
+ const fileServer = 'http://123.60.214.109:8406'
140
+ </script>
141
+
142
+ <style lang="less" scoped>
143
+ .content {
144
+ height: 80vh;
145
+ img {
146
+ max-width: 100%;
147
+ }
148
+ }
149
+ .other-file {
150
+ margin: 16px 0;
151
+ .title {
152
+ margin-bottom: 6px;
153
+ }
154
+ }
155
+ .file-item {
156
+ .file-action {
157
+ padding: 3px 4px;
158
+ color: #1890ff;
159
+ &:hover {
160
+ background: #e6f7ff;
161
+ }
162
+ }
163
+ .anticon {
164
+ margin-right: 3px;
165
+ }
166
+ }
167
+ .file-list-title {
168
+ color: rgba(0, 0, 0, 0.85);
169
+ font-weight: bold;
170
+ font-size: 16px;
171
+ margin-bottom: 8px;
172
+ }
173
+ .preview-doc-container {
174
+ height: calc(100vh - 92px);
175
+ padding-top: 20px;
176
+ }
177
+ </style>
@@ -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,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,58 +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
- 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 }
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.addOrModify) {
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 }