vue2-client 1.8.253 → 1.8.255
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 +1 -4
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +4 -4
- package/src/base-client/components/common/XForm/XForm.vue +7 -7
- package/src/base-client/components/common/XForm/XFormItem.vue +3 -2
- package/src/utils/util.js +10 -0
- package/vue.config.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.255",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"@antv/data-set": "^0.11.8",
|
|
18
18
|
"@antv/g2plot": "^2.4.31",
|
|
19
19
|
"@vue/babel-preset-jsx": "^1.4.0",
|
|
20
|
-
"amis": "^3.4.3",
|
|
21
20
|
"animate.css": "^4.1.1",
|
|
22
21
|
"ant-design-vue": "^1.7.8",
|
|
23
22
|
"axios": "^0.27.2",
|
|
@@ -41,7 +40,6 @@
|
|
|
41
40
|
"lodash.debounce": "^4",
|
|
42
41
|
"mockjs": "^1.1.0",
|
|
43
42
|
"nprogress": "^0.2.0",
|
|
44
|
-
"qs": "^6.11.2",
|
|
45
43
|
"regenerator-runtime": "^0.14.0",
|
|
46
44
|
"videojs-contrib-hls": "^5.15.0",
|
|
47
45
|
"viser-vue": "^2.4.8",
|
|
@@ -69,7 +67,6 @@
|
|
|
69
67
|
"babel-jest": "^26.6.3",
|
|
70
68
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
71
69
|
"compression-webpack-plugin": "^10.0.0",
|
|
72
|
-
"copy-webpack-plugin": "^11.0.0",
|
|
73
70
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
74
71
|
"deepmerge": "^4.3.1",
|
|
75
72
|
"eslint": "^8.51.0",
|
|
@@ -86,8 +86,8 @@ import { formatDate } from '@vue2-client/utils/util'
|
|
|
86
86
|
import { mapState } from 'vuex'
|
|
87
87
|
import { addOrModify, getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
88
88
|
import lowcodeComponentMixin from '@vue2-client/utils/lowcode/lowcodeComponentMixin'
|
|
89
|
-
import dayjs from 'dayjs'
|
|
90
89
|
import { _IDre15, _IDRe18, REG_EMAIL, REG_LANDLINE, REG_PHONE } from '@vue2-client/utils/reg'
|
|
90
|
+
import moment from 'moment/moment'
|
|
91
91
|
|
|
92
92
|
export default {
|
|
93
93
|
name: 'XAddNativeForm',
|
|
@@ -289,13 +289,13 @@ export default {
|
|
|
289
289
|
let start
|
|
290
290
|
switch (defaultValue) {
|
|
291
291
|
case 'curYear':
|
|
292
|
-
start =
|
|
292
|
+
start = moment().startOf('year').format(format)
|
|
293
293
|
break
|
|
294
294
|
case 'curMonth':
|
|
295
|
-
start =
|
|
295
|
+
start = moment().startOf('month').format(format)
|
|
296
296
|
break
|
|
297
297
|
case 'curDay':
|
|
298
|
-
start =
|
|
298
|
+
start = moment().startOf('day').format(format)
|
|
299
299
|
break
|
|
300
300
|
default:
|
|
301
301
|
return defaultValue
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
</template>
|
|
72
72
|
<script>
|
|
73
73
|
import XFormItem from '@vue2-client/base-client/components/common/XForm/XFormItem'
|
|
74
|
-
import dayjs from 'dayjs'
|
|
75
74
|
import { mapState } from 'vuex'
|
|
75
|
+
import moment from 'moment'
|
|
76
76
|
|
|
77
77
|
export default {
|
|
78
78
|
name: 'XForm',
|
|
@@ -163,16 +163,16 @@ export default {
|
|
|
163
163
|
|
|
164
164
|
switch (defaultValue) {
|
|
165
165
|
case 'curYear':
|
|
166
|
-
start =
|
|
167
|
-
end =
|
|
166
|
+
start = moment().startOf('year').format(format)
|
|
167
|
+
end = moment().endOf('year').format(format)
|
|
168
168
|
break
|
|
169
169
|
case 'curMonth':
|
|
170
|
-
start =
|
|
171
|
-
end =
|
|
170
|
+
start = moment().startOf('month').format(format)
|
|
171
|
+
end = moment().endOf('month').format(format)
|
|
172
172
|
break
|
|
173
173
|
case 'curDay':
|
|
174
|
-
start =
|
|
175
|
-
end =
|
|
174
|
+
start = moment().startOf('day').format(format)
|
|
175
|
+
end = moment().endOf('day').format(format)
|
|
176
176
|
break
|
|
177
177
|
default:
|
|
178
178
|
return defaultValue
|
|
@@ -440,6 +440,7 @@ import PersonSetting from '@vue2-client/base-client/components/common/PersonSett
|
|
|
440
440
|
import AddressSearchCombobox from '@vue2-client/base-client/components/common/AddressSearchCombobox'
|
|
441
441
|
import Upload from '@vue2-client/base-client/components/common/Upload'
|
|
442
442
|
import moment from 'moment'
|
|
443
|
+
import util from '.././../../../utils/util'
|
|
443
444
|
import XTreeSelect from '@vue2-client/base-client/components/common/XForm/XTreeSelect'
|
|
444
445
|
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
445
446
|
import { searchToOption } from '@vue2-client/services/v3Api'
|
|
@@ -596,7 +597,7 @@ export default {
|
|
|
596
597
|
this.debouncedUpdateOptions()
|
|
597
598
|
}
|
|
598
599
|
// 如果有自定义函数变更函数
|
|
599
|
-
if (this.attr.dataChangeFunc
|
|
600
|
+
if (this.attr.dataChangeFunc) {
|
|
600
601
|
this.debouncedDataChangeFunc()
|
|
601
602
|
}
|
|
602
603
|
// 地址搜索框赋值
|
|
@@ -615,7 +616,7 @@ export default {
|
|
|
615
616
|
},
|
|
616
617
|
async dataChangeFunc () {
|
|
617
618
|
if (this.attr.dataChangeFunc) {
|
|
618
|
-
await executeStrFunction(this.attr.
|
|
619
|
+
await executeStrFunction(this.attr.dataChangeFunc, [this.form, this.setForm, this.attr, util])
|
|
619
620
|
}
|
|
620
621
|
},
|
|
621
622
|
init () {
|
package/src/utils/util.js
CHANGED
package/vue.config.js
CHANGED
|
@@ -5,7 +5,7 @@ const { getThemeColors, modifyVars } = require('./src/utils/themeUtil')
|
|
|
5
5
|
const { resolveCss } = require('./src/utils/theme-color-replacer-extend')
|
|
6
6
|
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|
7
7
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
|
8
|
-
const CopyPlugin = require('copy-webpack-plugin')
|
|
8
|
+
// const CopyPlugin = require('copy-webpack-plugin')
|
|
9
9
|
|
|
10
10
|
const productionGzipExtensions = ['js', 'css']
|
|
11
11
|
const isProd = process.env.NODE_ENV === 'production'
|
|
@@ -123,9 +123,9 @@ module.exports = {
|
|
|
123
123
|
}))
|
|
124
124
|
|
|
125
125
|
config.plugins.push(
|
|
126
|
-
new CopyPlugin({
|
|
127
|
-
|
|
128
|
-
})
|
|
126
|
+
// new CopyPlugin({
|
|
127
|
+
// patterns: [{ from: 'node_modules/amis/sdk', to: 'amis/sdk' }],
|
|
128
|
+
// })
|
|
129
129
|
)
|
|
130
130
|
|
|
131
131
|
// 生产环境下将资源压缩成gzip格式
|