vue2-client 1.10.32-alpha → 1.10.32

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/package.json CHANGED
@@ -1,107 +1,107 @@
1
- {
2
- "name": "vue2-client",
3
- "version": "1.10.32-alpha",
4
- "private": false,
5
- "scripts": {
6
- "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
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",
9
- "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
- "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
- "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
12
- "mac-serve": "vue-cli-service serve --no-eslint --mode his",
13
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
14
- "test:unit": "vue-cli-service test:unit",
15
- "lint": "vue-cli-service lint",
16
- "build:preview": "vue-cli-service build --mode preview",
17
- "lint:nofix": "vue-cli-service lint --no-fix",
18
- "test": "jest"
19
- },
20
- "dependencies": {
21
- "@afwenming123/vue-easy-tree": "^1.0.1",
22
- "@afwenming123/vue-plugin-hiprint": "^0.0.70",
23
- "@amap/amap-jsapi-loader": "^1.0.1",
24
- "@antv/data-set": "^0.11.8",
25
- "@antv/g2plot": "^2.4.31",
26
- "@hufe921/canvas-editor": "^0.9.49",
27
- "@microsoft/fetch-event-source": "^2.0.1",
28
- "@vue/babel-preset-jsx": "^1.4.0",
29
- "animate.css": "^4.1.1",
30
- "ant-design-vue": "^1.7.8",
31
- "axios": "^0.27.2",
32
- "clipboard": "^2.0.11",
33
- "core-js": "^3.33.0",
34
- "crypto-js": "^4.1.1",
35
- "date-fns": "^2.29.3",
36
- "default-passive-events": "^2.0.0",
37
- "dotenv": "^16.3.1",
38
- "echarts": "^5.5.0",
39
- "enquire.js": "^2.1.6",
40
- "file-saver": "^2.0.5",
41
- "highlight.js": "^11.7.0",
42
- "html2canvas": "^1.4.1",
43
- "js-base64": "^3.7.5",
44
- "js-cookie": "^2.2.1",
45
- "jsencrypt": "^3.3.2",
46
- "jspdf": "^2.5.1",
47
- "lodash.clonedeep": "^4.5.0",
48
- "lodash.debounce": "^4",
49
- "lodash.get": "^4.4.2",
50
- "marked": "^4",
51
- "mockjs": "^1.1.0",
52
- "nprogress": "^0.2.0",
53
- "qs": "^6.11.2",
54
- "regenerator-runtime": "^0.14.0",
55
- "videojs-contrib-hls": "^5.15.0",
56
- "viser-vue": "^2.4.8",
57
- "vue": "^2.7.14",
58
- "vue-codemirror": "4.0.6",
59
- "vue-draggable-resizable": "^2",
60
- "vue-i18n": "^8.28.2",
61
- "vue-json-viewer": "^2.2.22",
62
- "vue-router": "^3.6.5",
63
- "vue-video-player": "^5.0.2",
64
- "vue-virtual-scroller": "^1.1.2",
65
- "vuedraggable": "^2.24.3",
66
- "vuex": "^3.6.2",
67
- "xlsx": "0.18.5"
68
- },
69
- "devDependencies": {
70
- "@ant-design/colors": "^7.0.0",
71
- "@babel/core": "^7.22.20",
72
- "@babel/eslint-parser": "^7.22.15",
73
- "@babel/preset-env": "^7.22.20",
74
- "@vue/cli-plugin-babel": "^5.0.8",
75
- "@vue/cli-plugin-eslint": "^5.0.8",
76
- "@vue/cli-service": "^5.0.8",
77
- "@vue/eslint-config-standard": "^8.0.1",
78
- "@vue/test-utils": "^1.3.6",
79
- "babel-jest": "^26.6.3",
80
- "babel-plugin-transform-remove-console": "^6.9.4",
81
- "compression-webpack-plugin": "^10.0.0",
82
- "css-minimizer-webpack-plugin": "^5.0.1",
83
- "deepmerge": "^4.3.1",
84
- "eslint": "^8.51.0",
85
- "eslint-plugin-vue": "^9.17.0",
86
- "fast-deep-equal": "^3.1.3",
87
- "ignore-loader": "^0.1.2",
88
- "jest": "^26.6.3",
89
- "jest-environment-jsdom": "^26.6.2",
90
- "jest-transform-stub": "^2.0.0",
91
- "less-loader": "^6.2.0",
92
- "script-loader": "^0.7.2",
93
- "style-resources-loader": "^1.5.0",
94
- "vue-cli-plugin-style-resources-loader": "^0.1.5",
95
- "vue-jest": "^4.0.1",
96
- "vue-template-compiler": "^2.7.14",
97
- "webpack": "^5.88.2",
98
- "webpack-theme-color-replacer": "^1.4.7",
99
- "whatwg-fetch": "^3.6.19"
100
- },
101
- "browserslist": [
102
- "> 1%",
103
- "last 2 versions",
104
- "not dead",
105
- "not ie 11"
106
- ]
107
- }
1
+ {
2
+ "name": "vue2-client",
3
+ "version": "1.10.32",
4
+ "private": false,
5
+ "scripts": {
6
+ "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
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",
9
+ "serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
10
+ "serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
11
+ "serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
12
+ "mac-serve": "vue-cli-service serve --no-eslint --mode his",
13
+ "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
14
+ "test:unit": "vue-cli-service test:unit",
15
+ "lint": "vue-cli-service lint",
16
+ "build:preview": "vue-cli-service build --mode preview",
17
+ "lint:nofix": "vue-cli-service lint --no-fix",
18
+ "test": "jest"
19
+ },
20
+ "dependencies": {
21
+ "@afwenming123/vue-easy-tree": "^1.0.1",
22
+ "@afwenming123/vue-plugin-hiprint": "^0.0.70",
23
+ "@amap/amap-jsapi-loader": "^1.0.1",
24
+ "@antv/data-set": "^0.11.8",
25
+ "@antv/g2plot": "^2.4.31",
26
+ "@hufe921/canvas-editor": "^0.9.49",
27
+ "@microsoft/fetch-event-source": "^2.0.1",
28
+ "@vue/babel-preset-jsx": "^1.4.0",
29
+ "animate.css": "^4.1.1",
30
+ "ant-design-vue": "^1.7.8",
31
+ "axios": "^0.27.2",
32
+ "clipboard": "^2.0.11",
33
+ "core-js": "^3.33.0",
34
+ "crypto-js": "^4.1.1",
35
+ "date-fns": "^2.29.3",
36
+ "default-passive-events": "^2.0.0",
37
+ "dotenv": "^16.3.1",
38
+ "echarts": "^5.5.0",
39
+ "enquire.js": "^2.1.6",
40
+ "file-saver": "^2.0.5",
41
+ "highlight.js": "^11.7.0",
42
+ "html2canvas": "^1.4.1",
43
+ "js-base64": "^3.7.5",
44
+ "js-cookie": "^2.2.1",
45
+ "jsencrypt": "^3.3.2",
46
+ "jspdf": "^2.5.1",
47
+ "lodash.clonedeep": "^4.5.0",
48
+ "lodash.debounce": "^4",
49
+ "lodash.get": "^4.4.2",
50
+ "marked": "^4",
51
+ "mockjs": "^1.1.0",
52
+ "nprogress": "^0.2.0",
53
+ "qs": "^6.11.2",
54
+ "regenerator-runtime": "^0.14.0",
55
+ "videojs-contrib-hls": "^5.15.0",
56
+ "viser-vue": "^2.4.8",
57
+ "vue": "^2.7.14",
58
+ "vue-codemirror": "4.0.6",
59
+ "vue-draggable-resizable": "^2",
60
+ "vue-i18n": "^8.28.2",
61
+ "vue-json-viewer": "^2.2.22",
62
+ "vue-router": "^3.6.5",
63
+ "vue-video-player": "^5.0.2",
64
+ "vue-virtual-scroller": "^1.1.2",
65
+ "vuedraggable": "^2.24.3",
66
+ "vuex": "^3.6.2",
67
+ "xlsx": "0.18.5"
68
+ },
69
+ "devDependencies": {
70
+ "@ant-design/colors": "^7.0.0",
71
+ "@babel/core": "^7.22.20",
72
+ "@babel/eslint-parser": "^7.22.15",
73
+ "@babel/preset-env": "^7.22.20",
74
+ "@vue/cli-plugin-babel": "^5.0.8",
75
+ "@vue/cli-plugin-eslint": "^5.0.8",
76
+ "@vue/cli-service": "^5.0.8",
77
+ "@vue/eslint-config-standard": "^8.0.1",
78
+ "@vue/test-utils": "^1.3.6",
79
+ "babel-jest": "^26.6.3",
80
+ "babel-plugin-transform-remove-console": "^6.9.4",
81
+ "compression-webpack-plugin": "^10.0.0",
82
+ "css-minimizer-webpack-plugin": "^5.0.1",
83
+ "deepmerge": "^4.3.1",
84
+ "eslint": "^8.51.0",
85
+ "eslint-plugin-vue": "^9.17.0",
86
+ "fast-deep-equal": "^3.1.3",
87
+ "ignore-loader": "^0.1.2",
88
+ "jest": "^26.6.3",
89
+ "jest-environment-jsdom": "^26.6.2",
90
+ "jest-transform-stub": "^2.0.0",
91
+ "less-loader": "^6.2.0",
92
+ "script-loader": "^0.7.2",
93
+ "style-resources-loader": "^1.5.0",
94
+ "vue-cli-plugin-style-resources-loader": "^0.1.5",
95
+ "vue-jest": "^4.0.1",
96
+ "vue-template-compiler": "^2.7.14",
97
+ "webpack": "^5.88.2",
98
+ "webpack-theme-color-replacer": "^1.4.7",
99
+ "whatwg-fetch": "^3.6.19"
100
+ },
101
+ "browserslist": [
102
+ "> 1%",
103
+ "last 2 versions",
104
+ "not dead",
105
+ "not ie 11"
106
+ ]
107
+ }
package/src/App.vue CHANGED
@@ -1,183 +1,196 @@
1
- <template>
2
- <a-config-provider :locale="locale" :get-popup-container="popContainer">
3
- <router-view/>
4
- </a-config-provider>
5
- </template>
6
-
7
- <script>
8
- import { enquireScreen } from '@vue2-client/utils/util'
9
- import { mapState, mapMutations } from 'vuex'
10
- import themeUtil from '@vue2-client/utils/themeUtil'
11
- import { getI18nKey } from '@vue2-client/utils/routerUtil'
12
- import { setSystemVersion } from '@vue2-client/utils/request'
13
- import waterMark from '@vue2-client/utils/waterMark'
14
-
15
- export default {
16
- name: 'App',
17
- data () {
18
- return {
19
- locale: {}
20
- }
21
- },
22
- created () {
23
- this.setHtmlTitle()
24
- this.setLanguage(this.lang)
25
- enquireScreen(isMobile => this.setDevice(isMobile))
26
- },
27
- mounted () {
28
- this.setWeekModeTheme(this.weekMode)
29
- const configStr = localStorage.getItem(process.env.VUE_APP_WEB_CONFIG_KEY)
30
- if (configStr) {
31
- const config = JSON.parse(configStr)
32
- if (config?.$globalProp?.environment === 'dev') {
33
- // 设置水印
34
- waterMark('开发环境')
35
- }
36
- }
37
- // 设置系统版本
38
- setSystemVersion(this.compatible)
39
- // 获取基座应用的信息进行初始化
40
- this.setMicroApp()
41
- },
42
- watch: {
43
- weekMode (val) {
44
- this.setWeekModeTheme(val)
45
- },
46
- lang (val) {
47
- this.setLanguage(val)
48
- this.setHtmlTitle()
49
- },
50
- $route () {
51
- this.setHtmlTitle()
52
- },
53
- 'theme.mode': {
54
- immediate: true,
55
- handler: function (val) {
56
- this.changeThemeMode(val)
57
- }
58
- },
59
- 'theme.color': {
60
- immediate: true,
61
- handler: function (val) {
62
- this.changeThemeColor(val)
63
- }
64
- },
65
- layout: function () {
66
- window.dispatchEvent(new Event('resize'))
67
- }
68
- },
69
- computed: {
70
- ...mapState('setting', ['layout', 'theme', 'weekMode', 'lang', 'compatible'])
71
- },
72
- methods: {
73
- ...mapMutations('setting', ['setDevice']),
74
- changeThemeColor (val) {
75
- if (process.env.NODE_ENV === 'production') {
76
- const closeMessage = this.$message.loading(`您选择了主题色 ${val}, 正在切换...`)
77
- themeUtil.changeThemeColor(val, this.theme.mode).then(closeMessage)
78
- } else {
79
- console.info('为保证构建性能,关闭开发环境下的主题色切换')
80
- }
81
- },
82
- changeThemeMode (val) {
83
- if (process.env.NODE_ENV === 'production') {
84
- const closeMessage = this.$message.loading(`您选择了主题模式 ${val}, 正在切换...`)
85
- themeUtil.changeThemeColor(this.theme.color, val).then(closeMessage)
86
- } else {
87
- console.info('为保证构建性能,关闭开发环境下的主题模式切换')
88
- }
89
- },
90
- setWeekModeTheme (weekMode) {
91
- if (weekMode) {
92
- document.body.classList.add('week-mode')
93
- } else {
94
- document.body.classList.remove('week-mode')
95
- }
96
- },
97
- setMicroApp () {
98
- const that = this
99
- if (window.__MICRO_APP_ENVIRONMENT__) {
100
- const data = window.microApp.getData()
101
- this.setMicroAppTheme(data.themeStore)
102
- window.microApp.addDataListener((_data) => {
103
- that.setMicroAppTheme(_data.themeStore)
104
- })
105
- }
106
- },
107
- setMicroAppTheme (themeStore) {
108
- try {
109
- let themeScheme = 'dark'
110
- if (themeStore && themeStore.themeColor && themeStore.themeScheme) {
111
- if (themeStore.themeScheme === 'dark') {
112
- themeScheme = 'night'
113
- }
114
- themeUtil.changeThemeColor(themeStore.themeColor, themeScheme)
115
- }
116
- } catch (e) {
117
- }
118
- },
119
- setLanguage (lang) {
120
- this.$i18n.locale = lang
121
- switch (lang) {
122
- case 'CN':
123
- this.locale = require('ant-design-vue/es/locale-provider/zh_CN').default
124
- break
125
- case 'HK':
126
- this.locale = require('ant-design-vue/es/locale-provider/zh_TW').default
127
- break
128
- case 'US':
129
- default:
130
- this.locale = require('ant-design-vue/es/locale-provider/en_US').default
131
- break
132
- }
133
- },
134
- setHtmlTitle () {
135
- // 微应用下不设置title
136
- if (window.__MICRO_APP_ENVIRONMENT__) {
137
- return
138
- }
139
- const route = this.$route
140
- const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path)
141
- document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key)
142
- },
143
- popContainer () {
144
- return document.getElementById('popContainer')
145
- }
146
- }
147
- }
148
- </script>
149
-
150
- <style lang="less" scoped>
151
- #id {
152
- }
153
- </style>
154
- <style lang="less">
155
- @import "./font-style/font.css";
156
-
157
- body {
158
- font-family: 'PingFangSC-Regular-woff2', 'Microsoft YaHei UI', serif !important;
159
- }
160
-
161
- .water-mark-wrap {
162
- position: absolute;
163
- width: 100%;
164
- height: 100%;
165
- z-index: 9999;
166
- pointer-events: none;
167
- top: 0;
168
- left: 0;
169
- display: flex;
170
- overflow: hidden;
171
- flex-wrap: wrap;
172
- }
173
-
174
- .water-word {
175
- display: flex;
176
- align-items: center;
177
- justify-content: center;
178
- font-size: 18px;
179
- color: rgba(8, 8, 8, 0.1);
180
- transform: rotate(-45deg);
181
- user-select: none;
182
- }
183
- </style>
1
+ <template>
2
+ <a-config-provider :locale="locale" :get-popup-container="popContainer">
3
+ <router-view/>
4
+ </a-config-provider>
5
+ </template>
6
+
7
+ <script>
8
+ import { enquireScreen } from '@vue2-client/utils/util'
9
+ import { mapState, mapMutations } from 'vuex'
10
+ import themeUtil from '@vue2-client/utils/themeUtil'
11
+ import { getI18nKey } from '@vue2-client/utils/routerUtil'
12
+ import { setSystemVersion } from '@vue2-client/utils/request'
13
+ import waterMark from '@vue2-client/utils/waterMark'
14
+
15
+ export default {
16
+ name: 'App',
17
+ data () {
18
+ return {
19
+ locale: {}
20
+ }
21
+ },
22
+ created () {
23
+ this.setHtmlTitle()
24
+ this.setLanguage(this.lang)
25
+ enquireScreen(isMobile => this.setDevice(isMobile))
26
+ },
27
+ mounted () {
28
+ this.setWeekModeTheme(this.weekMode)
29
+ const configStr = localStorage.getItem(process.env.VUE_APP_WEB_CONFIG_KEY)
30
+ if (configStr) {
31
+ const config = JSON.parse(configStr)
32
+ if (config?.$globalProp?.environment === 'dev') {
33
+ // 设置水印
34
+ waterMark('开发环境')
35
+ }
36
+ }
37
+ // 设置系统版本
38
+ setSystemVersion(this.compatible)
39
+ // 获取基座应用的信息进行初始化
40
+ this.setMicroApp()
41
+ },
42
+ watch: {
43
+ weekMode (val) {
44
+ this.setWeekModeTheme(val)
45
+ },
46
+ lang (val) {
47
+ this.setLanguage(val)
48
+ this.setHtmlTitle()
49
+ },
50
+ $route () {
51
+ this.setHtmlTitle()
52
+ },
53
+ 'theme.mode': {
54
+ immediate: true,
55
+ handler: function (val) {
56
+ this.changeThemeMode(val)
57
+ }
58
+ },
59
+ 'theme.color': {
60
+ immediate: true,
61
+ handler: function (val) {
62
+ this.changeThemeColor(val)
63
+ }
64
+ },
65
+ layout: function () {
66
+ window.dispatchEvent(new Event('resize'))
67
+ }
68
+ },
69
+ computed: {
70
+ ...mapState('setting', ['layout', 'theme', 'weekMode', 'lang', 'compatible'])
71
+ },
72
+ methods: {
73
+ ...mapMutations('setting', ['setDevice']),
74
+ changeThemeColor (val) {
75
+ if (process.env.NODE_ENV === 'production') {
76
+ const closeMessage = this.$message.loading(`您选择了主题色 ${val}, 正在切换...`)
77
+ themeUtil.changeThemeColor(val, this.theme.mode).then(closeMessage)
78
+ } else {
79
+ console.info('为保证构建性能,关闭开发环境下的主题色切换')
80
+ }
81
+ },
82
+ changeThemeMode (val) {
83
+ if (process.env.NODE_ENV === 'production') {
84
+ const closeMessage = this.$message.loading(`您选择了主题模式 ${val}, 正在切换...`)
85
+ themeUtil.changeThemeColor(this.theme.color, val).then(closeMessage)
86
+ } else {
87
+ console.info('为保证构建性能,关闭开发环境下的主题模式切换')
88
+ }
89
+ },
90
+ setWeekModeTheme (weekMode) {
91
+ if (weekMode) {
92
+ document.body.classList.add('week-mode')
93
+ } else {
94
+ document.body.classList.remove('week-mode')
95
+ }
96
+ },
97
+ setMicroApp () {
98
+ let baseApp = '/login'
99
+ let queryData = {}
100
+ const that = this
101
+ if (window.__MICRO_APP_ENVIRONMENT__) {
102
+ const data = window.microApp.getData() // 获取主应用下发的data数据
103
+ if (data.baseroute) {
104
+ baseApp = data.baseroute
105
+ } // 获取主应用下发的data数据
106
+ if (data.queryData) {
107
+ queryData = data.queryData
108
+ }
109
+ this.setMicroAppTheme(data.themeStore)
110
+ window.microApp.addDataListener((_data) => {
111
+ if (_data.baseroute) {
112
+ baseApp = _data.baseroute
113
+ }
114
+ that.setMicroAppTheme(_data.themeStore)
115
+ })
116
+ console.log('microApp', window.microApp)
117
+ this.$router.replace({ path: baseApp, query: queryData })
118
+ }
119
+ },
120
+ setMicroAppTheme (themeStore) {
121
+ try {
122
+ let themeScheme = 'dark'
123
+ if (themeStore && themeStore.themeColor && themeStore.themeScheme) {
124
+ if (themeStore.themeScheme === 'dark') {
125
+ themeScheme = 'night'
126
+ }
127
+ themeUtil.changeThemeColor(themeStore.themeColor, themeScheme)
128
+ }
129
+ } catch (e) {
130
+ }
131
+ },
132
+ setLanguage (lang) {
133
+ this.$i18n.locale = lang
134
+ switch (lang) {
135
+ case 'CN':
136
+ this.locale = require('ant-design-vue/es/locale-provider/zh_CN').default
137
+ break
138
+ case 'HK':
139
+ this.locale = require('ant-design-vue/es/locale-provider/zh_TW').default
140
+ break
141
+ case 'US':
142
+ default:
143
+ this.locale = require('ant-design-vue/es/locale-provider/en_US').default
144
+ break
145
+ }
146
+ },
147
+ setHtmlTitle () {
148
+ // 微应用下不设置title
149
+ if (window.__MICRO_APP_ENVIRONMENT__) {
150
+ return
151
+ }
152
+ const route = this.$route
153
+ const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path)
154
+ document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key)
155
+ },
156
+ popContainer () {
157
+ return document.getElementById('popContainer')
158
+ }
159
+ }
160
+ }
161
+ </script>
162
+
163
+ <style lang="less" scoped>
164
+ #id {
165
+ }
166
+ </style>
167
+ <style lang="less">
168
+ @import "./font-style/font.css";
169
+
170
+ body {
171
+ font-family: 'PingFangSC-Regular-woff2', 'Microsoft YaHei UI', serif !important;
172
+ }
173
+
174
+ .water-mark-wrap {
175
+ position: absolute;
176
+ width: 100%;
177
+ height: 100%;
178
+ z-index: 9999;
179
+ pointer-events: none;
180
+ top: 0;
181
+ left: 0;
182
+ display: flex;
183
+ overflow: hidden;
184
+ flex-wrap: wrap;
185
+ }
186
+
187
+ .water-word {
188
+ display: flex;
189
+ align-items: center;
190
+ justify-content: center;
191
+ font-size: 18px;
192
+ color: rgba(8, 8, 8, 0.1);
193
+ transform: rotate(-45deg);
194
+ user-select: none;
195
+ }
196
+ </style>
@@ -7,7 +7,7 @@ export default {
7
7
  components: { XAddNativeForm },
8
8
  mounted () {
9
9
  const realTableData = [{ tsc_f_contract_id: null, tsc_f_contract_code: '3316370809565024955', tsc_f_createfile_date: '2025-01-13 00:00:00', tsc_f_data: '王翔测试-15358338312: 繁荣南路滨河花园4楼号4单元19楼层1908门牌号' }]
10
- getConfigByNameAsync('ceshiCRUD', 'af-system').then(res => {
10
+ getConfigByNameAsync('signContractForm', 'af-revenue').then(res => {
11
11
  this.$refs.xAddFrom.init(Object.assign(res, {
12
12
  modifyModelData: {
13
13
  data: {
@@ -4,23 +4,22 @@
4
4
  <template v-for="(card, itemIndex) in data">
5
5
  <a-card :key="'card' + itemIndex" class="data-card">
6
6
  <!-- 绑带 -->
7
- <!-- <div class="ribbon" v-for="column in tableColumns" v-if="column.dataIndex === item.key" :key="column.dataIndex">-->
8
- <!-- <template v-if="column.slotType === 'badge'">-->
9
- <!-- <x-badge-->
10
- <!-- :service-name="serviceName"-->
11
- <!-- :env="env"-->
12
- <!-- :dataCard="true"-->
13
- <!-- :badge-key="column.slotKeyMap"-->
14
- <!-- :value="card[item.key]" />-->
15
- <!-- </template>-->
16
- <!-- <template v-else>-->
17
- <!-- <slot :name="column.slots.customRender">{{ card[config.bandage] }}</slot>-->
18
- <!-- </template>-->
19
- <!-- </div>-->
20
- <div
21
- v-if="config && card[config.ribbon]"
22
- class="ribbon"
23
- :style="{ backgroundColor: getRibbonColor(card[config.ribbonColor]) }">
7
+ <!-- <div class="ribbon" v-for="column in tableColumns" v-if="column.dataIndex === item.key" :key="column.dataIndex">-->
8
+ <!-- <template v-if="column.slotType === 'badge'">-->
9
+ <!-- <x-badge-->
10
+ <!-- :service-name="serviceName"-->
11
+ <!-- :env="env"-->
12
+ <!-- :dataCard="true"-->
13
+ <!-- :badge-key="column.slotKeyMap"-->
14
+ <!-- :value="card[item.key]" />-->
15
+ <!-- </template>-->
16
+ <!-- <template v-else>-->
17
+ <!-- <slot :name="column.slots.customRender">{{ card[config.bandage] }}</slot>-->
18
+ <!-- </template>-->
19
+ <!-- </div>-->
20
+ <div v-if="config && card[config.ribbon]"
21
+ class="ribbon"
22
+ :style="{ backgroundColor: getRibbonColor(card[config.ribbonColor]) }">
24
23
  {{ card[config.ribbon] }}
25
24
  </div>
26
25
  <!-- 自定义标题 -->