mali-applet-ui 1.1.61 → 1.1.63
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) {
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
<script>
|
|
69
69
|
import globalStore from '../../../config/store'
|
|
70
70
|
import MaliUtils from '../../../utils'
|
|
71
|
+
import XEUtils from 'xe-utils'
|
|
71
72
|
|
|
72
73
|
function normalizeChooseAndUploadFileRes (res, fileType) {
|
|
73
74
|
res.tempFiles.forEach((item) => {
|
|
@@ -238,8 +239,8 @@ export default {
|
|
|
238
239
|
return !!this.form
|
|
239
240
|
},
|
|
240
241
|
isFromReadonly () {
|
|
241
|
-
if (this.readonly) {
|
|
242
|
-
return
|
|
242
|
+
if (XEUtils.isBoolean(this.readonly)) {
|
|
243
|
+
return this.readonly
|
|
243
244
|
}
|
|
244
245
|
return this.form ? this.form.readonly : false
|
|
245
246
|
},
|