优化代码

This commit is contained in:
Your Name 2023-04-15 09:59:14 +08:00
parent da9954a2d5
commit 373ddd4ede
4 changed files with 54 additions and 1 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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);

View File

@ -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">