1、重构代码将数据处理全部交给 repository 来操作

2、升级支持免 Db启动提供服务
This commit is contained in:
2019-04-26 20:04:52 +08:00
parent 9a38d69eb0
commit ff240dd3ea
17 changed files with 350 additions and 212 deletions

View File

@@ -63,7 +63,7 @@
</div>
<div class="modal-footer">
<button @click="row={}" type="button" class="btn btn-default" data-dismiss="modal">重置</button>
<button @click="loginCheck(row)" type="button" class="btn btn-primary">确定</button>
<button @click="login(row)" type="button" class="btn btn-primary">确定</button>
</div>
</div>
</div>
@@ -142,41 +142,6 @@
})
})
},
/*loginCheck: function ({username, pwd}) {
/!*login({username, pwd}, function (json) {
if (json.code == 0) {
platList().then(res => {
let rows = res.rows
red.showMsg({msg:"请选择业务平台"})
vm.sysPlats = rows;
if (!vm.sysPlat) {
vm.sysPlat = rows[0];
}
red.setData("sysPlats", rows);
setTimeout(function () {
vm.choose = true;
}, 500);
})
} else {
red.showMsg({msg: json.message})
}
});*!/
},*/
/*loadPlats: function () {
var para = {
doc:"sys_plat",
shows: JSON.stringify(["_id", "_key", "field", "token","remark", "status"])
};
red.getJSON("/meta/plat_list", {}, function (json) {
vm.sysPlats = json;
if (!vm.sysPlat) {
vm.sysPlat = json[0];
}
red.setData("sysPlats", json);
});
},*/
goIndex: function () {
if (!this.sysPlat) {
red.showMsg({msg:"请选择选择业务平台", type:"error"});