mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
da9954a2d5
commit
373ddd4ede
@ -69,4 +69,6 @@
|
||||
<vc:create path="property/roomTree"></vc:create>
|
||||
<vc:create path="frame/viewMenuUser"></vc:create>
|
||||
<vc:create path="frame/viewData"></vc:create>
|
||||
<vc:create path="frame/searchCommunityData"></vc:create>
|
||||
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
<div id="searchCommunityDataModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
<h3 class="m-t-none m-b ">
|
||||
<span>{{searchCommunityDataInfo.title}}</span>
|
||||
</h3>
|
||||
<div class="ibox-content">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" v-for="(val,key,i) in searchCommunityDataInfo.data" :key="i">
|
||||
<div class="form-group" v-if="key != 'undefined'">
|
||||
<label class="col-form-label">{{key}}:</label>
|
||||
<label class="">{{val}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<button type="button" class="btn btn-white float-right" data-dismiss="modal"><span><vc:i18n name="关闭" ></vc:i18n></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -0,0 +1,26 @@
|
||||
(function(vc) {
|
||||
|
||||
vc.extends({
|
||||
data: {
|
||||
searchCommunityDataInfo: {
|
||||
title: '',
|
||||
data: {}
|
||||
},
|
||||
flagOrgName: false
|
||||
},
|
||||
_initMethod: function() {
|
||||
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('searchCommunityData', 'openViewDataModal', function(_param) {
|
||||
$that.searchCommunityDataInfo.title = _param.title;
|
||||
$that.searchCommunityDataInfo.data = _param.data;
|
||||
$('#searchCommunityDataModel').modal('show');
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
})(window.vc);
|
||||
@ -1,4 +1,4 @@
|
||||
<div id="viewDataModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div id="viewDataModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-body">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user