优化 前段代码

This commit is contained in:
java110 2022-03-03 18:06:04 +08:00
parent 1ff60838ed
commit e1d10d1030

View File

@ -11,19 +11,16 @@
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2">
<div class="form-group"> <div class="form-group">
<input type="text" placeholder="请输入小区ID" <input type="text" placeholder="请输入小区ID" v-model="communityManageInfo.conditions.communityId" class=" form-control">
v-model="communityManageInfo.conditions.communityId" class=" form-control">
</div> </div>
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<div class="form-group"> <div class="form-group">
<input type="text" placeholder="请输入小区名称" <input type="text" placeholder="请输入小区名称" v-model="communityManageInfo.conditions.name" class=" form-control">
v-model="communityManageInfo.conditions.name" class=" form-control">
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<vc:create path="common/areaSelect" callBackListener="communityManage" <vc:create path="common/areaSelect" callBackListener="communityManage" callBackFunction="notifyArea" namespace="communityManage">
callBackFunction="notifyArea" namespace="communityManage">
</vc:create> </vc:create>
</div> </div>
<div class="col-sm-1"> <div class="col-sm-1">
@ -50,56 +47,52 @@
<div class="ibox-content"> <div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15"> <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead> <thead>
<tr> <tr>
<th class="text-center">小区ID</th> <th class="text-center">小区ID</th>
<th class="text-center">小区名称</th> <th class="text-center">小区名称</th>
<!--<th>小区地址</th>--> <!--<th>小区地址</th>-->
<th width="25%" class="text-center">附近地标</th> <th width="25%" class="text-center">附近地标</th>
<th class="text-center">城市编码</th> <th class="text-center">城市编码</th>
<th v-for="(item,index) in communityManageInfo.listColumns" class="text-center">{{item.specName}}</th> <th v-for="(item,index) in communityManageInfo.listColumns" class="text-center">{{item.specName}}</th>
<th class="text-center">状态</th> <th class="text-center">状态</th>
<th class="text-center">操作</th> <th class="text-center">操作</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="community in communityManageInfo.communitys"> <tr v-for="community in communityManageInfo.communitys">
<td class="text-center">{{community.communityId}}</td> <td class="text-center">{{community.communityId}}</td>
<td class="text-center">{{community.name}}</td> <td class="text-center">{{community.name}}</td>
<!--<td>{{community.address}}</td>--> <!--<td>{{community.address}}</td>-->
<td class="text-center">{{community.nearbyLandmarks}}</td> <td class="text-center">{{community.nearbyLandmarks}}</td>
<td class="text-center">{{community.cityName}}</td> <td class="text-center">{{community.cityName}}</td>
<td v-for="item in community.listValues" class="text-center"> <td v-for="item in community.listValues" class="text-center">
{{item}} {{item}}
</td> </td>
<td class="text-center">{{community.stateName}}</td> <td class="text-center">{{community.stateName}}</td>
<td class="text-center"> <td class="text-center">
<div class="btn-group" <div class="btn-group" v-if="community.state == '1200' && communityManageInfo.storeTypeCd == '800900000001'">
v-if="community.state == '1200' && communityManageInfo.storeTypeCd == '800900000001'"> <button class="btn-white btn btn-xs" v-on:click="_openDeleteCommunityModel(community)">删除
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteCommunityModel(community)">删除
</button> </button>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<button class="btn-white btn btn-xs" <button class="btn-white btn btn-xs" v-bind:disabled="community.state == '1100' && communityManageInfo.storeTypeCd != '800900000001'" v-on:click="_openEditCommunityModel(community)">修改
v-bind:disabled="community.state == '1100' && communityManageInfo.storeTypeCd != '800900000001'"
v-on:click="_openEditCommunityModel(community)">修改
</button> </button>
</div> </div>
<div class="btn-group" <!-- <div class="btn-group"
v-if="community.state != '1000' && communityManageInfo.storeTypeCd == '800900000001'"> v-if="community.state != '1000' && communityManageInfo.storeTypeCd == '800900000001'">
<button class="btn-white btn btn-xs" <button class="btn-white btn btn-xs"
v-on:click="_openRecallCommunityModel(community)">审核撤回 v-on:click="_openRecallCommunityModel(community)">审核撤回
</button> </button>
</div> </div> -->
</td> </td>
</tr> </tr>
</tbody> </tbody>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="7"> <td colspan="7">
<ul class="pagination float-right"></ul> <ul class="pagination float-right"></ul>
</td> </td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
<!-- 分页 --> <!-- 分页 -->
@ -112,4 +105,4 @@
<vc:create path="common/editCommunity"></vc:create> <vc:create path="common/editCommunity"></vc:create>
<vc:create path="common/deleteCommunity"></vc:create> <vc:create path="common/deleteCommunity"></vc:create>
<vc:create path="common/recallAuditFinishCommunity"></vc:create> <vc:create path="common/recallAuditFinishCommunity"></vc:create>
</div> </div>