From 035539b4e23f36b10dfba16fec01f26d3c629e29 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 08 五月 2019 23:42:25 +0800
Subject: [PATCH] 房屋管理开发完成

---
 WebService/src/main/resources/components/test/vue_test.js |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/WebService/src/main/resources/components/test/vue_test.js b/WebService/src/main/resources/components/test/vue_test.js
index 1b51d7f..e30bb3f 100644
--- a/WebService/src/main/resources/components/test/vue_test.js
+++ b/WebService/src/main/resources/components/test/vue_test.js
@@ -1,29 +1,29 @@
-(function(){
+(function(vc){
     var vm = new Vue({
-        el:'#vueTest',
-        data:{
-            message:"浣犲ソ瀛︽枃",
-            version:""
-        },
-        mounted:function(){
-            this.getVersion();
-        },
-        methods:{
-            getVersion:function(){
-                var param = {
-                    msg:this.message
-                }
-                //鍙戦�乬et璇锋眰
-                this.$http.post('/callComponent/vue_test/getTestVersion',
-                param,
-                {
-                    emulateJSON:true
-                }).then(function(res){
-                    this.version = res.bodyText;
-                },function(){
-                    console.log('璇锋眰澶辫触澶勭悊');
-                });
-            }
-        }
-    });
-})();
\ No newline at end of file
+               el:'#vueTest',
+               data:{
+                   message:"浣犲ソ瀛︽枃",
+                   version:""
+               },
+               mounted:function(){
+                   this.getVersion();
+               },
+               methods:{
+                   getVersion:function(){
+                       var param = {
+                           msg:this.message
+                       }
+                       //鍙戦�乬et璇锋眰
+                       vc.http.get('vue_test',
+                                       'getTestVersion',
+                                       param,
+                                       function(json){
+                                           vm.version = json;
+                                       },function(){
+                                           console.log('璇锋眰澶辫触澶勭悊');
+                                       }
+                                   );
+                   }
+               }
+           });
+})(window.vc);
\ No newline at end of file

--
Gitblit v1.8.0