diff --git a/bin/app-configure.js b/bin/app-configure.js
index d7f2585..90118e0 100644
--- a/bin/app-configure.js
+++ b/bin/app-configure.js
@@ -157,7 +157,7 @@ AppConfigure.prototype = {
this.create();
- ipc.on('app-configure', function (event, command){
+ ipc.on('app-configure', function (event, command, configure){
switch (command) {
case 'import':
context.import(function (configure){
@@ -185,11 +185,11 @@ AppConfigure.prototype = {
});
});
break;
- case 'add':
- context.save(function (configure){
-
- }, function (configure){
-
+ case 'save':
+ context.save(configure, function (){
+ this.showMessageBox('保存成功!', { type: 'info' });
+ }, function (){
+ this.showMessageBox('保存失败!');
});
break;
}
diff --git a/index.html b/index.html
index 51381f2..fb2a255 100644
--- a/index.html
+++ b/index.html
@@ -54,9 +54,17 @@
-
+
+
+ 项目名称不能为空
+
+
+
+
+ 项目路径不能为空
+
diff --git a/static/css/index.css b/static/css/index.css
index 6ef5af0..7a52c11 100644
--- a/static/css/index.css
+++ b/static/css/index.css
@@ -420,15 +420,22 @@ header [class*=" icon-"] {
.ui-sub-item ul {
padding: 0;
}
-.ui-sub-item .ui-action-bar {
+.ui-sub-item .ui-item-add {
margin: 0;
}
+.ui-sub-item span,
+.ui-item-error span {
+ line-height: 25px;
+ display: inline-block;
+ vertical-align: middle;
+}
.ui-sub-item span {
width: 192px;
- line-height: 25px;
border-bottom: 1px dotted #ccc;
- display: inline-block;
- vertical-align: middle;
+}
+.ui-item-error span {
+ color: #f00;
+ border-bottom: none;
}
.ui-sub-item .icon-trash {
cursor: pointer;
@@ -441,12 +448,12 @@ header [class*=" icon-"] {
text-overflow: ellipsis;
white-space: nowrap;
}
-.ui-sub-item .ui-item-error {
- margin: 10px 0 0;
+.ui-popup-content .ui-item-error,
+.ui-project-configure .ui-item-error {
+ margin: 10px 0;
}
-.ui-item-error span {
- color: #f00;
- border-bottom-color: #f00;
+.ui-sub-item .ui-item-error {
+ margin: 15px 0 -10px;
}
.ui-item-error .icon-expand {
position: absolute;
diff --git a/static/js/app/index.js b/static/js/app/index.js
index d2cb15d..f8aab5a 100644
--- a/static/js/app/index.js
+++ b/static/js/app/index.js
@@ -19,6 +19,11 @@ window.addEventListener('DOMContentLoaded', function (){
data: {
activeIndex: 0,
configure: {}
+ },
+ events: {
+ 'save-configure': function (){
+
+ }
}
});
diff --git a/static/js/components/app-configure/app-configure.html b/static/js/components/app-configure/app-configure.html
index df78f94..2d366c2 100644
--- a/static/js/components/app-configure/app-configure.html
+++ b/static/js/components/app-configure/app-configure.html
@@ -1,5 +1,5 @@
-