From f5986a355fda8d5df98fe01127bcd7f490f7cdf5 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期五, 19 四月 2019 17:24:55 +0800
Subject: [PATCH] 开始开发房屋管理
---
WebService/src/main/resources/views/room.html | 33 +++++++++++
WebService/src/main/resources/components/room/room.js | 46 +++++++++++++++
WebService/src/main/resources/components/room/room.html | 74 ++++++++++++++++++++++++
3 files changed, 153 insertions(+), 0 deletions(-)
diff --git a/WebService/src/main/resources/components/room/room.html b/WebService/src/main/resources/components/room/room.html
new file mode 100644
index 0000000..ec21f8b
--- /dev/null
+++ b/WebService/src/main/resources/components/room/room.html
@@ -0,0 +1,74 @@
+<div id="component" class="wrapper wrapper-content animated fadeInRight ecommerce">
+ <div class="row">
+ <div class="col-lg-12">
+ <div class="ibox">
+ <div class="ibox-title">
+ <h5>鎴垮眿淇℃伅</h5>
+ <div class="ibox-tools" style="top:10px;">
+ <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddRoomModal()">
+ <i class="glyphicon glyphicon-plus"></i>
+ 娣诲姞鎴垮眿
+ </button>
+ </div>
+ </div>
+ <div class="ibox-content">
+
+ <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
+ <thead>
+ <tr>
+ <th>鎴垮眿ID</th>
+ <th data-hide="phone">鍚嶇О</th>
+ <th data-hide="phone">鑱旂郴鏂瑰紡</th>
+ <th data-hide="phone">鍦板潃</th>
+ <th data-hide="phone">鍦版爣</th>
+ <th data-hide="phone,tablet" >鍩庡競缂栫爜</th>
+ <th data-hide="phone">鐘舵��</th>
+ <th class="text-right">鎿嶄綔</th>
+
+ </tr>
+ </thead>
+ <tbody>
+ <tr v-for="room in roomInfo.roomDataInfo">
+ <td>
+ {{room.communityId}}
+ </td>
+ <td>
+ {{room.name}}
+ </td>
+ <td>
+ {{room.tel}}
+ </td>
+ <td>
+ {{room.address}}
+ </td>
+ <td>
+ {{room.nearbyLandmarks}}
+ </td>
+ <td>
+ {{room.cityCode}}
+ </td>
+ <td>
+ {{room.statusCd}}
+ </td>
+ <td class="text-right">
+ <div class="btn-group">
+ <button class="btn-white btn btn-xs" v-on:click="_openDelRoomModel(room)">鍒犻櫎</button>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td colspan="7">
+ <ul class="pagination float-right"></ul>
+ </td>
+ </tr>
+ </tfoot>
+ </table>
+
+ </div>
+ </div>
+ </div>
+ </div>
+
+</div>
\ No newline at end of file
diff --git a/WebService/src/main/resources/components/room/room.js b/WebService/src/main/resources/components/room/room.js
new file mode 100644
index 0000000..94a532c
--- /dev/null
+++ b/WebService/src/main/resources/components/room/room.js
@@ -0,0 +1,46 @@
+/**
+ 鍏ラ┗灏忓尯
+**/
+(function(vc){
+ vc.extends({
+ data:{
+ roomInfo:{
+ roomDataInfo:[],
+ }
+ },
+ _initMethod:function(){
+ vc.component.listRoom();
+ },
+ _initEvent:function(){
+ vc.on('room','listRoom',function(_param){
+ vc.component.listRoom();
+ });
+ },
+ methods:{
+ listRoom:function(){
+ var param = {
+ params:{
+ msg:this.message
+ }
+
+ }
+ //鍙戦�乬et璇锋眰
+ vc.http.get('room',
+ 'listRoom',
+ param,
+ function(json,res){
+ vc.component.roomInfo.roomDataInfo=JSON.parse(json);
+ },function(errInfo,error){
+ console.log('璇锋眰澶辫触澶勭悊');
+ }
+ );
+ },
+ _openAddRoomModal:function(){
+ //vc.emit('storeEnterCommunity','openStoreEnterCommunity',{});
+ },
+ _openDelRoomModel:function(_community){
+ //vc.emit('storeExitCommunity','openStoreExitCommunityModal',_community);
+ }
+ }
+ });
+})(window.vc);
\ No newline at end of file
diff --git a/WebService/src/main/resources/views/room.html b/WebService/src/main/resources/views/room.html
new file mode 100644
index 0000000..9c072b3
--- /dev/null
+++ b/WebService/src/main/resources/views/room.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:th="http://www.thymeleaf.org"
+ xmlns:vc="http://www.thymeleaf.org">
+<head>
+ <meta charset="UTF-8"/>
+ <title>鎴垮眿绠$悊|java110</title>
+ <vc:create name="commonTop"></vc:create>
+</head>
+<body>
+<vc:create name="loading"></vc:create>
+<div id="wrapper">
+ <vc:create name="menu"></vc:create>
+
+
+ <div id="page-wrapper" class="gray-bg dashbard-1">
+ <div class="row border-bottom">
+ <vc:create name="nav"></vc:create>
+ </div>
+ <!-- id="component" -->
+ <div class="wrapper wrapper-content animated fadeInRight">
+ <vc:create name="room"></vc:create>
+ </div>
+
+ <vc:create name="copyright"></vc:create>
+
+ </div>
+</div>
+
+<vc:create name="commonBottom"></vc:create>
+</body>
+</html>
\ No newline at end of file
--
Gitblit v1.8.0