vue2-client 1.9.12 → 1.9.14

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.
package/.env.revenue ADDED
@@ -0,0 +1,19 @@
1
+ VUE_APP_PUBLIC_PATH=/
2
+ VUE_APP_NAME=Admin
3
+ VUE_APP_ROUTES_KEY=admin.routes
4
+ VUE_APP_PERMISSIONS_KEY=admin.permissions
5
+ VUE_APP_ROLES_KEY=admin.roles
6
+ VUE_APP_USER_KEY=admin.user
7
+ VUE_APP_LOGIN_KEY=admin.login
8
+ VUE_APP_SETTING_KEY=admin.setting
9
+ VUE_APP_TBAS_KEY=admin.tabs
10
+ VUE_APP_TBAS_TITLES_KEY=admin.tabs.titles
11
+ VUE_APP_DICTIONARY_KEY=admin.dictionary
12
+ VUE_APP_BADGE_KEY=admin.badge
13
+ VUE_APP_SINGLEVALUE_KEY=admin.singlevalue
14
+ VUE_APP_DIVISIONSOHCHINA=admin.divisionsohchina
15
+ VUE_APP_WEB_CONFIG_KEY=admin.webconfig
16
+ VUE_APP_API_BASE_URL=http://123.60.214.109:8405
17
+ VUE_APP_SYSTEM_NAME=af-revenue
18
+ VUE_APP_LOGIN_VERSION=V4
19
+
@@ -22,11 +22,11 @@
22
22
  * entity.delete(实体名称 string,id Object)
23
23
  * entity.getById(表名 string, 主键值 Object) -> 根据主键查询数据 返回找到的 JSONObject
24
24
  - CommonTools 常用工具类
25
- * CommonTools.getUUID() 获取一个UUID 字符串
26
- * CommonTools.add(Obejct,Object) 加法运算
27
- * CommonTools.sub(Obejct,Object) 减法运算
28
- * CommonTools.mul(Obejct,Object) 乘法运算
29
- * CommonTools.div(Obejct,Object) 除法运算
25
+ * commonTools.getUUID() 获取一个UUID 字符串
26
+ * commonTools.add(Obejct,Object) 加法运算
27
+ * commonTools.sub(Obejct,Object) 减法运算
28
+ * commonTools.mul(Obejct,Object) 乘法运算
29
+ * commonTools.div(Obejct,Object) 除法运算
30
30
  - redis,用于操作redis
31
31
  * redis.set(redis键, 值) -> 往redis存入数据
32
32
  * redis.get(redis键) -> 从redis获取数据
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.9.12",
3
+ "version": "1.9.14",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
7
7
  "serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
8
+ "serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
8
9
  "mac-serve": "vue-cli-service serve --no-eslint --mode mac",
9
10
  "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
10
11
  "test:unit": "vue-cli-service test:unit",
@@ -19,7 +20,7 @@
19
20
  "@antv/g2plot": "^2.4.31",
20
21
  "@hufe921/canvas-editor": "^0.9.49",
21
22
  "@vue/babel-preset-jsx": "^1.4.0",
22
- "@wchbrad/vue-easy-tree": "^1.0.12",
23
+ "@afwenming123/vue-easy-tree": "^1.0.1",
23
24
  "animate.css": "^4.1.1",
24
25
  "ant-design-vue": "^1.7.8",
25
26
  "axios": "^0.27.2",
@@ -43,8 +44,6 @@
43
44
  "lodash.get": "^4.4.2",
44
45
  "mockjs": "^1.1.0",
45
46
  "nprogress": "^0.2.0",
46
- "node-sass": "^9.0.0",
47
- "sass-loader": "^16.0.1",
48
47
  "qs": "^6.11.2",
49
48
  "regenerator-runtime": "^0.14.0",
50
49
  "videojs-contrib-hls": "^5.15.0",
@@ -151,9 +151,9 @@ export default {
151
151
  treeDatas[name] = values
152
152
  }
153
153
  // 移除默认的表单项,将组织好后的表单项合并进表单
154
- // this.form[this.model] = undefined
155
- // Object.assign(this.form, treeDatas)
156
- this.$emit('onChange', treeDatas)
154
+ this.form[this.model] = undefined
155
+ Object.assign(this.form, treeDatas)
156
+ // this.$emit('onChange', treeDatas)
157
157
  } else {
158
158
  // 从单一数据源组成的树可以直接赋值
159
159
  // this.form[this.model] = value
@@ -3,6 +3,7 @@
3
3
  <x-form-table
4
4
  title="示例表单查询"
5
5
  :queryParamsName="queryParamsName"
6
+ :x-tree-config-name="xTreeConfigName"
6
7
  :fixedAddForm="fixedAddForm"
7
8
  service-name="af-revenue"
8
9
  @action="action"
@@ -34,8 +35,10 @@ export default {
34
35
  },
35
36
  data () {
36
37
  return {
37
- // 查询配置名称
38
- queryParamsName: 'UserFilesListCRUD',
38
+ // 查询配置文件名
39
+ queryParamsName: 'address_management',
40
+ // 查询配置左侧tree
41
+ xTreeConfigName: 'addressType',
39
42
  // 新增表单固定值
40
43
  fixedAddForm: {},
41
44
  // 是否显示详情抽屉
@@ -85,11 +85,10 @@
85
85
  </template>
86
86
 
87
87
  <script>
88
- // https://github.com/wchbrad/vue-easy-tree
89
- // https://github.com/wchbrad/vue-easy-tree/blob/main/README.zh-CN.md
90
- import VueEasyTree from '@wchbrad/vue-easy-tree'
88
+ // https://github.com/Junior125306/vue-easy-tree
89
+ import VueEasyTree from '@afwenming123/vue-easy-tree'
91
90
  // 样式文件,可以根据需要自定义样式或主题
92
- import '@wchbrad/vue-easy-tree/src/assets/index.scss'
91
+ import '@afwenming123/vue-easy-tree/src/assets/index.min.css'
93
92
  import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
94
93
  import { mapState } from 'vuex'
95
94
  import { executeStrFunction } from '@vue2-client/utils/runEvalFunction'
@@ -83,8 +83,8 @@ routerResource.example = {
83
83
  {
84
84
  path: 'default',
85
85
  name: '示例页面',
86
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
87
- component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
86
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
87
+ // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
88
88
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
89
89
  meta: {
90
90
  // 菜单中不显示