crabatool 1.0.417 → 1.0.419
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 -1
- package/tool/client.js +4 -0
- package/tool/compress.js +7 -1
package/package.json
CHANGED
package/tool/client.js
CHANGED
|
@@ -88,8 +88,12 @@
|
|
|
88
88
|
$app.gspxCacheList = {}; // 重置缓存
|
|
89
89
|
$app.closeLoadingForm();
|
|
90
90
|
$app.closeAlert();
|
|
91
|
+
$app.closeModals();
|
|
91
92
|
|
|
92
93
|
var activeForm = mainPanel.get_activeForm();
|
|
94
|
+
if (!activeForm) {
|
|
95
|
+
activeForm = $app.getMainForm();
|
|
96
|
+
}
|
|
93
97
|
if (!activeForm._firstAction) {
|
|
94
98
|
var action = activeForm._firstAction = activeForm.get_action();
|
|
95
99
|
action._parentAction = action.get_parent(); // 弹窗是动态获取的没有手动关联过
|
package/tool/compress.js
CHANGED
|
@@ -56,22 +56,28 @@ function updateCrabaVersion() {
|
|
|
56
56
|
|
|
57
57
|
var crabaJs = path.join(_tempJsPath, 'craba.min.js');
|
|
58
58
|
var content = fs.readFileSync(crabaJs);
|
|
59
|
+
console.log('crabaVersion:', pkg.version);
|
|
59
60
|
if (content.indexOf('var crabaVersion =') < 0) {
|
|
60
61
|
var vString = '\r\nvar crabaVersion = "' + pkg.version + '";var crabaDate = "' + pkg.updateTime + '";console.log("版本:" + crabaVersion + " 日期:" + crabaDate);';
|
|
61
62
|
content = content + vString;
|
|
62
63
|
fs.writeFileSync(crabaJs, content, 'utf8');
|
|
64
|
+
} else {
|
|
65
|
+
console.log('crabaVersion:', 0);
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
function updateAgencyVersion() {
|
|
67
70
|
var pkg = utils.readPackage(_pkgPath);
|
|
68
|
-
|
|
69
71
|
crabaJs = path.join(_tempJsPath, 'agency.js');
|
|
72
|
+
console.log('更新agencyVersion', crabaJs);
|
|
70
73
|
content = fs.readFileSync(crabaJs);
|
|
71
74
|
if (content.indexOf('var agencyVersion=') < 0) {
|
|
72
75
|
vString = '\r\nvar agencyVersion="' + pkg.version + '";';
|
|
73
76
|
content = content + vString;
|
|
74
77
|
fs.writeFileSync(crabaJs, content, 'utf8');
|
|
78
|
+
console.log('agencyVersion:', pkg.version);
|
|
79
|
+
} else {
|
|
80
|
+
console.log('agencyVersion', 0);
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
|