From fa0b23dd73d57f3460e878fa9d990ec7440baae9 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 26 二月 2020 12:50:01 +0800
Subject: [PATCH] 优化查询房屋信息
---
WebService/src/main/resources/components/servicePackage/service-binding/serviceBinding.js | 103 +++++++++++++++++++++++++++------------------------
1 files changed, 55 insertions(+), 48 deletions(-)
diff --git a/WebService/src/main/resources/components/servicePackage/service-binding/serviceBinding.js b/WebService/src/main/resources/components/servicePackage/service-binding/serviceBinding.js
index 230cc75..4ecd944 100644
--- a/WebService/src/main/resources/components/servicePackage/service-binding/serviceBinding.js
+++ b/WebService/src/main/resources/components/servicePackage/service-binding/serviceBinding.js
@@ -1,86 +1,93 @@
/**
- 鍏ラ┗灏忓尯
-**/
-(function(vc){
- var DEFAULT_PAGE = 1;
- var DEFAULT_ROWS = 10;
+ 鍏ラ┗灏忓尯
+ **/
+(function (vc) {
vc.extends({
- data:{
- serviceBindingInfo:{
- $step:{},
- index:0,
- infos:[]
+ data: {
+ serviceBindingInfo: {
+ $step: {},
+ index: 0,
+ infos: []
}
},
- _initMethod:function(){
+ _initMethod: function () {
vc.component._initStep();
},
- _initEvent:function(){
- vc.on("serviceBinding", "notify", function(_info){
+ _initEvent: function () {
+ vc.on("serviceBinding", "notify", function (_info) {
vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index] = _info;
});
},
- methods:{
- _initStep:function(){
+ methods: {
+ _initStep: function () {
vc.component.serviceBindingInfo.$step = $("#step");
vc.component.serviceBindingInfo.$step.step({
index: 0,
time: 500,
- title: ["閫夋嫨搴旂敤", "閫夋嫨鏈嶅姟", "纭缁戝畾"]
+ title: ["閫夋嫨搴旂敤", "閫夋嫨鏈嶅姟", "鎵╁睍淇℃伅"]
});
vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex();
},
- _prevStep:function(){
+ _prevStep: function () {
vc.component.serviceBindingInfo.$step.prevStep();
vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex();
- vc.emit('viewAppInfo', 'onIndex', vc.component.serviceBindingInfo.index);
- vc.emit('viewServiceInfo', 'onIndex', vc.component.serviceBindingInfo.index);
+ vc.emit('viewAppInfo', 'onIndex', vc.component.serviceBindingInfo.index);
+ vc.emit('viewServiceInfo', 'onIndex', vc.component.serviceBindingInfo.index);
+ vc.emit('addRouteView', 'onIndex', vc.component.serviceBindingInfo.index);
+
},
- _nextStep:function(){
+ _nextStep: function () {
var _currentData = vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index];
- if( _currentData == null || _currentData == undefined){
- vc.message("璇烽�夋嫨鐩稿叧淇℃伅");
- return ;
+ if (_currentData == null || _currentData == undefined) {
+ vc.message("璇烽�夋嫨鎴栧~鍐欏繀閫変俊鎭�");
+ return;
}
vc.component.serviceBindingInfo.$step.nextStep();
vc.component.serviceBindingInfo.index = vc.component.serviceBindingInfo.$step.getIndex();
vc.emit('viewAppInfo', 'onIndex', vc.component.serviceBindingInfo.index);
vc.emit('viewServiceInfo', 'onIndex', vc.component.serviceBindingInfo.index);
+ vc.emit('addRouteView', 'onIndex', vc.component.serviceBindingInfo.index);
+
},
- _finishStep:function(){
+ _finishStep: function () {
-
- var param = {
- data:vc.component.serviceBindingInfo.infos
+ var _currentData = vc.component.serviceBindingInfo.infos[vc.component.serviceBindingInfo.index];
+ if (_currentData == null || _currentData == undefined) {
+ vc.message("璇烽�夋嫨鎴栧~鍐欏繀閫変俊鎭�");
+ return;
}
- vc.http.post(
- 'serviceBinding',
- 'binding',
- JSON.stringify(param),
- {
- emulateJSON:true
- },
- function(json,res){
- if(res.status == 200){
- vc.message('澶勭悊鎴愬姛',true);
- var _jInfo = JSON.parse(json);
- //鍏抽棴model
- vc.jumpToPage("/flow/serviceFlow?" + vc.objToGetParam(_jInfo));
- return ;
- }
- vc.message(json);
- },
- function(errInfo,error){
- console.log('璇锋眰澶辫触澶勭悊');
+ var param = {
+ data: vc.component.serviceBindingInfo.infos
+ }
- vc.message(errInfo);
+ vc.http.post(
+ 'serviceBinding',
+ 'binding',
+ JSON.stringify(param),
+ {
+ emulateJSON: true
+ },
+ function (json, res) {
+ if (res.status == 200) {
+
+ vc.message('澶勭悊鎴愬姛', true);
+ //鍏抽棴model
+ vc.jumpToPage("/flow/serviceRegisterFlow?" + vc.objToGetParam(JSON.parse(json)));
+ return;
+ }
+ vc.message(json);
+ },
+ function (errInfo, error) {
+ console.log('璇锋眰澶辫触澶勭悊');
+
+ vc.message(errInfo);
});
}
}
});
-})(window.vc);
+})(window.vc);
\ No newline at end of file
--
Gitblit v1.8.0