优化 前段代码

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