mali-applet-ui 1.1.60 → 1.1.62
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/index.js
CHANGED
|
@@ -43,14 +43,15 @@ function getEnvName (mode) {
|
|
|
43
43
|
|
|
44
44
|
function getPlatformName (platform) {
|
|
45
45
|
const maps = {
|
|
46
|
+
default: '',
|
|
46
47
|
'mp-weixin': '微信',
|
|
47
48
|
'mp-qiwei': '企微',
|
|
48
49
|
'mp-dingtalk': '钉钉'
|
|
49
50
|
}
|
|
50
|
-
return maps[platform] || platform
|
|
51
|
+
return hasEmptyConf(platform) ? '' : (maps[platform] || platform)
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
function getSubModuleName (
|
|
54
|
+
function getSubModuleName (me) {
|
|
54
55
|
const maps = {
|
|
55
56
|
default: '',
|
|
56
57
|
labour: '码里劳务',
|
|
@@ -59,18 +60,20 @@ function getSubModuleName (module) {
|
|
|
59
60
|
design: '码里设计',
|
|
60
61
|
jicai: '码里集采'
|
|
61
62
|
}
|
|
62
|
-
return `${maps[
|
|
63
|
+
return `${hasEmptyConf(me) ? '' : (maps[me] || me)}`
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
function getCustomName (custom) {
|
|
66
67
|
const maps = {
|
|
68
|
+
default: '',
|
|
67
69
|
hengkun: '恒坤劳务',
|
|
68
70
|
beizhuang: '北装装饰',
|
|
69
71
|
zhongjian1: '中建一局',
|
|
70
72
|
guowenchuang: '国文创',
|
|
71
|
-
rongdu: '融都建设'
|
|
73
|
+
rongdu: '融都建设',
|
|
74
|
+
jinzhimeixue: '金指美学'
|
|
72
75
|
}
|
|
73
|
-
return `${maps[custom] ||
|
|
76
|
+
return `${hasEmptyConf(custom) ? '' : (maps[custom] || custom)}`
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
function parseEnvFile (dirPath, name) {
|
|
@@ -137,7 +140,8 @@ function initEnvScript (rootPath, confs) {
|
|
|
137
140
|
uni_mpqiwei_upload: 'npm run run_before && node script/run-build && vue-cli-service uni-build && node script/run-upload',
|
|
138
141
|
uni_mpqiwei_build: 'npm run run_before && vue-cli-service uni-build',
|
|
139
142
|
run_before: 'node script/run-before',
|
|
140
|
-
clear: 'gulp clear_temp'
|
|
143
|
+
clear: 'gulp clear_temp',
|
|
144
|
+
'generate:api': 'npx ts-codegen && eslint --fix --ext .js,.ts src/api'
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
console.log('\n正在检查配置')
|
|
@@ -176,10 +176,12 @@ export default {
|
|
|
176
176
|
const selection = []
|
|
177
177
|
const labels = []
|
|
178
178
|
this.selectIndexs.slice(0, this.countLevel).forEach((valIndex, colIndex) => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
if (valIndex !== null) {
|
|
180
|
+
const item = this.pickerDataMaps[colIndex][valIndex]
|
|
181
|
+
selection.push(item || null)
|
|
182
|
+
value.push(item ? item[this.optValueField] : null)
|
|
183
|
+
labels.push(item ? item[this.optLabelField] : '')
|
|
184
|
+
}
|
|
183
185
|
})
|
|
184
186
|
this.$emit('input', value)
|
|
185
187
|
this.$emit('change', { value, labels, selection })
|