Commit 2506ad543a6fb63a2a1d4a5bb17c2d69dc7ad4e1
1 parent
8ff9d258
2
Showing
4 changed files
with
946 additions
and
37 deletions
admin-web-master/.env.development
| ... | ... | @@ -4,7 +4,7 @@ ENV = 'development' |
| 4 | 4 | # base api |
| 5 | 5 | VUE_APP_BASE_API = '/dev-api' |
| 6 | 6 | |
| 7 | - VUE_APP_DOMAIN_PREFIX_1 = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server" | |
| 7 | +# VUE_APP_DOMAIN_PREFIX_1 = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server" | |
| 8 | 8 | # VUE_APP_DOMAIN_PREFIX_1='http://8.130.38.56:9003' |
| 9 | -# VUE_APP_DOMAIN_PREFIX_1='http://172.16.61.124:9003' | |
| 9 | +VUE_APP_DOMAIN_PREFIX_1='http://172.16.61.124:9003' | |
| 10 | 10 | VUE_APP_DOMAIN_PREFIX_2='http://192.168.2.38:9003' | ... | ... |
admin-web-master/.env.production
| ... | ... | @@ -3,8 +3,8 @@ ENV = 'production' |
| 3 | 3 | |
| 4 | 4 | # base api |
| 5 | 5 | VUE_APP_BASE_API = '/prod-api' |
| 6 | - VUE_APP_DOMAIN_PREFIX_1 = "http://zhld.028wlkj.com:49008/cdwlMall/admin-server" | |
| 6 | +# VUE_APP_DOMAIN_PREFIX_1 = "http://zhld.028wlkj.com:49008/cdwlMall/admin-server" | |
| 7 | 7 | # VUE_APP_DOMAIN_PREFIX_1='http://8.130.38.56:9003' |
| 8 | -# VUE_APP_DOMAIN_PREFIX_1='http://172.16.61.124:9003' | |
| 8 | +VUE_APP_DOMAIN_PREFIX_1='http://172.16.61.124:9003' | |
| 9 | 9 | VUE_APP_DOMAIN_PREFIX_2='http://192.168.2.38:9003' |
| 10 | 10 | ... | ... |
admin-web-master/src/views/detect/examine/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div style="background-color:#f7f7f7;padding:10px 10px;"> | |
| 3 | + <div class="zhuti" v-if="onaction == '1'"> | |
| 4 | + <div style="height:58px;line-height:58px;"> | |
| 5 | + <div style="color:#0006"> <span>招商资源监测</span> <span style="padding:0 5px;">></span> <span | |
| 6 | + style="color:#000000e6">资源地图</span></div> | |
| 7 | + </div> | |
| 8 | + <!-- 线上 --> | |
| 9 | + <div> | |
| 10 | + <!-- 搜索 --> | |
| 11 | + <div class="formSearch"> | |
| 12 | + <el-form :inline="true" :model="pagequery"> | |
| 13 | + <!-- <el-form-item label="商铺名称" prop="shopName"> | |
| 14 | + <el-select v-model="pagequery.shopName" placeholder="请选择" style="width: 168px;margin-right: 15px"> | |
| 15 | + <el-option :label="item.shopName" :value="item.shopName" v-for="(item,index) in this.tableData" | |
| 16 | + :key="index" /> | |
| 17 | + </el-select> | |
| 18 | + </el-form-item> --> | |
| 19 | + <el-form-item label="所属区域" prop="belongingRegion"> | |
| 20 | + <el-select v-model="pagequery.belongingRegion" placeholder="请选择" style="width: 168px;margin-right: 15px"> | |
| 21 | + <el-option label="成华区" value="成华区"></el-option> | |
| 22 | + <el-option label="武侯区" value="武侯区"></el-option> | |
| 23 | + <el-option label="锦江区" value="锦江区"></el-option> | |
| 24 | + <el-option label="青羊区" value="青羊区"></el-option> | |
| 25 | + <el-option label="金牛区" value="金牛区"></el-option> | |
| 26 | + <el-option label="双流区" value="双流区"></el-option> | |
| 27 | + <el-option label="郫都区" value="郫都区"></el-option> | |
| 28 | + <el-option label="龙泉驿区" value="龙泉驿区"></el-option> | |
| 29 | + <el-option label="温江区" value="温江区"></el-option> | |
| 30 | + </el-select> | |
| 31 | + </el-form-item> | |
| 32 | + <el-form-item label="建筑形式" prop="architecturalForm"> | |
| 33 | + <el-select v-model="pagequery.architecturalForm" placeholder="请选择" | |
| 34 | + style="width: 168px;margin-right: 15px"> | |
| 35 | + <el-option label="框剪结构" value="框剪结构"></el-option> | |
| 36 | + <el-option label="区域二" value="区域二"></el-option> | |
| 37 | + </el-select> | |
| 38 | + </el-form-item> | |
| 39 | + </el-form> | |
| 40 | + | |
| 41 | + <div> | |
| 42 | + <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询 | |
| 43 | + </el-button> | |
| 44 | + <el-button @click="resetting" class="buttonHover" | |
| 45 | + style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置 | |
| 46 | + </el-button> | |
| 47 | + </div> | |
| 48 | + </div> | |
| 49 | + <div style="margin-bottom: 20px;"> | |
| 50 | + <el-button @click="removeonaction('2')" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;" | |
| 51 | + icon="el-icon-circle-plus-outline">新增</el-button> | |
| 52 | + <!-- <el-button @click="" style="background-color: #3F9B6A;color: #fff">批量导入</el-button> --> | |
| 53 | + </div> | |
| 54 | + <!-- 地图 --> | |
| 55 | + <!-- <div style="display: flex;justify-content: space-between;margin-bottom: 20px;"> | |
| 56 | + <div style="width: 100%;height: 400px; border: 1px solid #3F9B6A;position: relative;"> | |
| 57 | + <MapContainer :message="tableData" @MapItem='HandMapItem' ref="mapComponent"></MapContainer> | |
| 58 | + </div> | |
| 59 | + </div> --> | |
| 60 | + <div style="margin: 20px 0;"> | |
| 61 | + <div style="display: flex;font-size: 14px"> | |
| 62 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺 | |
| 63 | + </div> | |
| 64 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''"> | |
| 65 | + 广告位</div> | |
| 66 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地 | |
| 67 | + </div> | |
| 68 | + </div> | |
| 69 | + </div> | |
| 70 | + <!-- 表格 --> | |
| 71 | + <el-table v-if="ontype=='1'" :data="tableData" | |
| 72 | + :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"> | |
| 73 | + <el-table-column label="序号" min-width="80"> | |
| 74 | + <template slot-scope="scope"> | |
| 75 | + {{scope.$index +1 }} | |
| 76 | + </template> | |
| 77 | + </el-table-column> | |
| 78 | + <el-table-column label="编号" prop="venueNumber" show-overflow-tooltip> | |
| 79 | + </el-table-column> | |
| 80 | + <el-table-column label="门牌号" prop="houseNumber" show-overflow-tooltip> | |
| 81 | + | |
| 82 | + </el-table-column> | |
| 83 | + <el-table-column label="商铺名称" prop="shopName" show-overflow-tooltip> | |
| 84 | + | |
| 85 | + </el-table-column> | |
| 86 | + <el-table-column label="所属区域" prop="belongingRegion" show-overflow-tooltip> | |
| 87 | + </el-table-column> | |
| 88 | + <el-table-column label="建筑形式" prop="architecturalForm" show-overflow-tooltip> | |
| 89 | + </el-table-column> | |
| 90 | + <el-table-column prop="detailedLocation" label="详细地址" show-overflow-tooltip> | |
| 91 | + </el-table-column> | |
| 92 | + <el-table-column label="实际使用面积" prop="actualUsableArea" show-overflow-tooltip> | |
| 93 | + </el-table-column> | |
| 94 | + <el-table-column label="负责人" prop="head" show-overflow-tooltip> | |
| 95 | + </el-table-column> | |
| 96 | + <el-table-column label="租赁到期时间" prop="leaseExpirationDate" show-overflow-tooltip> | |
| 97 | + </el-table-column> | |
| 98 | + <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip> | |
| 99 | + <template slot-scope="scope"> | |
| 100 | + {{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'已发布':scope.row.rentalStatus=='0'?'待租':'已租'}} | |
| 101 | + </template> | |
| 102 | + </el-table-column> | |
| 103 | + <el-table-column label="操作" min-width="250" fixed="right"> | |
| 104 | + <template slot-scope="scope"> | |
| 105 | + <div @click="opencl(scope.row,'sp')" class="tableBtn greens">绑定策略</div> | |
| 106 | + <div @click="details(scope.row)" class="tableBtn greens">查看</div> | |
| 107 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="removeinfo(scope.row,'编辑')">编辑 | |
| 108 | + </div> | |
| 109 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div> | |
| 110 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" | |
| 111 | + @click="removeinfozz(scope.row,'1','发布')">发布</div> | |
| 112 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='1'" | |
| 113 | + @click="removeinfozz(scope.row,'0','下架')">下架</div> | |
| 114 | + </template> | |
| 115 | + </el-table-column> | |
| 116 | + </el-table> | |
| 117 | + <el-table v-if="ontype=='2'" :data="tableData" | |
| 118 | + :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"> | |
| 119 | + <el-table-column label="序号" min-width="100"> | |
| 120 | + <template slot-scope="scope"> | |
| 121 | + {{scope.$index +1}} | |
| 122 | + </template> | |
| 123 | + </el-table-column> | |
| 124 | + <el-table-column label="广告位名称" prop="advertisingName" min-width="200"> | |
| 125 | + </el-table-column> | |
| 126 | + <el-table-column label="广告位类型" prop="advertisingType" min-width="150"> | |
| 127 | + </el-table-column> | |
| 128 | + <!-- <el-table-column label="详细地址" prop="detailedLocation" min-width="200"> | |
| 129 | + </el-table-column> | |
| 130 | + <el-table-column label="设备类型" prop="deviceType" min-width="150"> | |
| 131 | + </el-table-column> | |
| 132 | + <el-table-column label="设备尺寸" prop="equipmentSize" min-width="200"> | |
| 133 | + </el-table-column> | |
| 134 | + <el-table-column label="场地编号" prop="venueNumber" min-width="150"> | |
| 135 | + </el-table-column> | |
| 136 | + <el-table-column label="广告尺寸" prop="dimensions" min-width="200"> | |
| 137 | + </el-table-column> | |
| 138 | + <el-table-column label="广告材质" prop="advertisingMaterial" min-width="150"> | |
| 139 | + </el-table-column> | |
| 140 | + <el-table-column prop="createUser" label="创建人" min-width="120"> | |
| 141 | + </el-table-column> | |
| 142 | + <el-table-column prop="rentalStatus" label="租赁状态" min-width="120"> | |
| 143 | + <template slot-scope="scope"> | |
| 144 | + {{scope.row.rentalStatus == 0?'未租':'已租'}} | |
| 145 | + </template> | |
| 146 | + </el-table-column> --> | |
| 147 | + <el-table-column prop="publishStatus" label="发布状态" min-width="120"> | |
| 148 | + <template slot-scope="scope"> | |
| 149 | + {{scope.row.publishStatus == 0?'待发布':'已提交'}} | |
| 150 | + </template> | |
| 151 | + </el-table-column> | |
| 152 | + <el-table-column prop="leaseExpirationDate" label="租赁到期时间" min-width="200"> | |
| 153 | + </el-table-column> | |
| 154 | + <el-table-column label="操作" min-width="250" fixed="right"> | |
| 155 | + <template slot-scope="scope"> | |
| 156 | + <div @click="details(scope.row)" class="tableBtn greens">查看</div> | |
| 157 | + <div @click="opencl(scope.row,'gg')" class="tableBtn greens">绑定策略</div> | |
| 158 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="removeinfo(scope.row,'编辑')">编辑 | |
| 159 | + </div> | |
| 160 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div> | |
| 161 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" | |
| 162 | + @click="removeinfozz(scope.row,'1','发布')">发布</div> | |
| 163 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='1'" | |
| 164 | + @click="removeinfozz(scope.row,'0','下架')">下架</div> | |
| 165 | + </template> | |
| 166 | + </el-table-column> | |
| 167 | + </el-table> | |
| 168 | + <el-table v-if="ontype=='3'" :data="tableData" | |
| 169 | + :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"> | |
| 170 | + <el-table-column label="序号"> | |
| 171 | + <template slot-scope="scope"> | |
| 172 | + {{scope.$index +1}} | |
| 173 | + </template> | |
| 174 | + </el-table-column> | |
| 175 | + <!-- <el-table-column label="编号" prop="id" v-if="activeName == 'second'"> | |
| 176 | + </el-table-column> --> | |
| 177 | + <el-table-column label="场地名称" prop="venueName"> | |
| 178 | + </el-table-column> | |
| 179 | + <el-table-column label="实际使用面积" prop="actualArea"> | |
| 180 | + </el-table-column> | |
| 181 | + <el-table-column label="场地类型" prop="venueType"> | |
| 182 | + </el-table-column> | |
| 183 | + <el-table-column label="所属区域" prop="district"> | |
| 184 | + </el-table-column> | |
| 185 | + <el-table-column label="详细位置" prop="detailedLocation"> | |
| 186 | + </el-table-column> | |
| 187 | + <!-- <el-table-column label="租赁状态" > | |
| 188 | + </el-table-column> --> | |
| 189 | + <!-- <el-table-column label="状态" > | |
| 190 | + </el-table-column> --> | |
| 191 | + <el-table-column prop="publishStatus" label="发布状态" min-width="120"> | |
| 192 | + <template slot-scope="scope"> | |
| 193 | + {{scope.row.publishStatus == 0?'待发布':'已提交'}} | |
| 194 | + </template> | |
| 195 | + </el-table-column> | |
| 196 | + <el-table-column label="操作" min-width="250" fixed="right"> | |
| 197 | + <template slot-scope="scope"> | |
| 198 | + <div @click="details(scope.row)" class="tableBtn greens">查看</div> | |
| 199 | + <div @click="opencl(scope.row,'cd')" class="tableBtn greens">绑定策略</div> | |
| 200 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="removeinfo(scope.row,'编辑')">编辑 | |
| 201 | + </div> | |
| 202 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div> | |
| 203 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" | |
| 204 | + @click="removeinfozz(scope.row,'1','发布')">发布</div> | |
| 205 | + <div class="tableBtn greens" v-if="scope.row.publishStatus=='1'" | |
| 206 | + @click="removeinfozz(scope.row,'0','下架')">下架</div> | |
| 207 | + </template> | |
| 208 | + </el-table-column> | |
| 209 | + </el-table> | |
| 210 | + <div style="display: flex;justify-content: space-between;" class="bom"> | |
| 211 | + <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div> | |
| 212 | + <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10" | |
| 213 | + background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange" | |
| 214 | + @current-change="handleCurrentChange"> | |
| 215 | + </el-pagination> | |
| 216 | + </div> | |
| 217 | + | |
| 218 | + </div> | |
| 219 | + | |
| 220 | + </div> | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + <div class="zhuti" v-if="onaction == '2'"> | |
| 228 | + <div style="height:58px;line-height:58px;"> | |
| 229 | + <div style="color:#0006"> <span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-' }}</span> <span style="padding:0 5px;">></span> <span | |
| 230 | + style="color:#000000e6">新增</span></div> | |
| 231 | + </div> | |
| 232 | + <div style="margin: 20px 0;"> | |
| 233 | + <div style="display: flex;font-size: 14px"> | |
| 234 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺 | |
| 235 | + </div> | |
| 236 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''"> | |
| 237 | + 广告位</div> | |
| 238 | + <div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地 | |
| 239 | + </div> | |
| 240 | + </div> | |
| 241 | + </div> | |
| 242 | + <div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;"> | |
| 243 | + <add @removeonaction="removeonaction"></add> | |
| 244 | + </div> | |
| 245 | + <div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;"> | |
| 246 | + <addmap @removeonaction="removeonaction" :leixing="leixing"></addmap> | |
| 247 | + </div> | |
| 248 | + <div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;"> | |
| 249 | + <addcd @removeonaction="removeonaction"></addcd> | |
| 250 | + </div> | |
| 251 | + </div> | |
| 252 | + <div class="zhuti" v-if="onaction == '3'"> | |
| 253 | + <div style="height:58px;line-height:58px;"> | |
| 254 | + <div style="color:#0006"> <span>{{ONACTION == '1'?'商铺基本信息':ONACTION == '2'?'广告位基本信息管理':ONACTION == '3'?'场地基本信息管理':'-' }}</span> <span style="padding:0 5px;">></span> <span | |
| 255 | + style="color:#000000e6">查看</span></div> | |
| 256 | + </div> | |
| 257 | + <div v-if="ontype == '1'"> | |
| 258 | + <resourceCommodity :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity> | |
| 259 | + </div> | |
| 260 | + <div v-if="ontype == '2'"> | |
| 261 | + <chakanmap :editbgid="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></chakanmap> | |
| 262 | + </div> | |
| 263 | + <div v-if="ontype == '3'"> | |
| 264 | + <chakancd :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd> | |
| 265 | + </div> | |
| 266 | + </div> | |
| 267 | + <div class="zhuti" v-if="onaction == '4'"> | |
| 268 | + <div style="height:58px;line-height:58px;"> | |
| 269 | + <div style="color:#0006"> <span>{{ONACTION == '1'?'商铺基本信息':ONACTION == '2'?'广告位基本信息管理':ONACTION == '3'?'场地基本信息管理':'-' }}</span> <span style="padding:0 5px;">></span> <span | |
| 270 | + style="color:#000000e6">{{contractChangeReason}}</span></div> | |
| 271 | + </div> | |
| 272 | + <div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;"> | |
| 273 | + <add :info="detailsinfo" @removeonaction="removeonaction"></add> | |
| 274 | + </div> | |
| 275 | + <div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;"> | |
| 276 | + <addmap :info="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></addmap> | |
| 277 | + </div> | |
| 278 | + <div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;"> | |
| 279 | + <addcd :info="detailsinfo" @removeonaction="removeonaction"></addcd> | |
| 280 | + </div> | |
| 281 | + </div> | |
| 282 | + <el-dialog :visible.sync="addcl" style="padding: 0px;" width="65%" append-to-body center | |
| 283 | + :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false"> | |
| 284 | + <cl @minSev="minSev" @mingClose="mingClose"></cl> | |
| 285 | + </el-dialog> | |
| 286 | + </div> | |
| 287 | + | |
| 288 | + | |
| 289 | +</template> | |
| 290 | + | |
| 291 | +<script> | |
| 292 | + import { | |
| 293 | + cereResourceStrategy | |
| 294 | + } from '@/api/newly.js' | |
| 295 | + import { | |
| 296 | + ceGetAll | |
| 297 | + } from '@/api/sam.js' | |
| 298 | + import * as information from '@/api/information'; | |
| 299 | + import * as map1 from '@/api/map1'; | |
| 300 | + import { | |
| 301 | + likeGet, | |
| 302 | + } from '@/api/map1' | |
| 303 | + import { | |
| 304 | + getAlls, | |
| 305 | + changAlls | |
| 306 | + } from '@/api/information'; | |
| 307 | + import add from '@/components/add/addinformation' | |
| 308 | + import resourceCommodity from '@/components/resourceCommodity/index' | |
| 309 | + import MapContainer from "@/components/MapContainer/MapContainer" | |
| 310 | + import addmap from '@/components/add/addmap' | |
| 311 | + import addcd from '@/components/add/addcd' | |
| 312 | + import chakanmap from '@/components/chakan/map' | |
| 313 | + import chakancd from '@/components/chakan/cd' | |
| 314 | + import cl from '@/components/change/cl.vue' | |
| 315 | + import { | |
| 316 | + on | |
| 317 | + } from 'screenfull'; | |
| 318 | + export default { | |
| 319 | + data() { | |
| 320 | + return { | |
| 321 | + oninfo: {}, | |
| 322 | + celueData: [], | |
| 323 | + clData: [], | |
| 324 | + multipleSelection: [], | |
| 325 | + addcl: false, | |
| 326 | + leixing: true, | |
| 327 | + //传地图数据 | |
| 328 | + parentMessage: [], | |
| 329 | + ontype: '1', | |
| 330 | + contractChangeReason: '', | |
| 331 | + detailsinfo: {}, | |
| 332 | + pagequery: { | |
| 333 | + dataStatus: '1', | |
| 334 | + pageNumber: 0, | |
| 335 | + pageSize: 10, | |
| 336 | + contractName: '' | |
| 337 | + }, | |
| 338 | + tableData: [], | |
| 339 | + total: 0, | |
| 340 | + onaction: '1', | |
| 341 | + formInline: {}, | |
| 342 | + pageindex: { | |
| 343 | + pageNumber: 1, | |
| 344 | + pageSize: 10, | |
| 345 | + }, | |
| 346 | + } | |
| 347 | + }, | |
| 348 | + components: { | |
| 349 | + cl, | |
| 350 | + chakancd, | |
| 351 | + addcd, | |
| 352 | + addmap, | |
| 353 | + chakanmap, | |
| 354 | + MapContainer, | |
| 355 | + add, | |
| 356 | + resourceCommodity, | |
| 357 | + }, | |
| 358 | + created() { | |
| 359 | + this.getAll() | |
| 360 | + }, | |
| 361 | + methods: { | |
| 362 | + minSev(e) { | |
| 363 | + this.multipleSelection = e | |
| 364 | + console.error(this.multipleSelection) | |
| 365 | + let ids = [] | |
| 366 | + for (let index = 0; index < this.multipleSelection.length; index++) { | |
| 367 | + ids.push(this.multipleSelection[index].id) | |
| 368 | + } | |
| 369 | + console.error(this.oninfo) | |
| 370 | + let c1 = { | |
| 371 | + resourcesId: this.oncetype+this.oninfo.id, | |
| 372 | + rentalPoliciesIds: ids, | |
| 373 | + // resources:this.oninfo | |
| 374 | + // rentalPoliciesId: 28, | |
| 375 | + // resourcesId: "sp65" | |
| 376 | + } | |
| 377 | + console.error(c1) | |
| 378 | + cereResourceStrategy(c1).then(res => { | |
| 379 | + if (res.code == 200) { | |
| 380 | + this.addcl = false | |
| 381 | + this.$message({ | |
| 382 | + message: '绑定成功', | |
| 383 | + type: 'success' | |
| 384 | + }) | |
| 385 | + } else { | |
| 386 | + this.$message({ | |
| 387 | + message: '绑定失败', | |
| 388 | + type: 'error' | |
| 389 | + }) | |
| 390 | + } | |
| 391 | + }) | |
| 392 | + }, | |
| 393 | + mingClose() { | |
| 394 | + this.multipleSelection = [] | |
| 395 | + this.addcl = false | |
| 396 | + }, | |
| 397 | + async opencl(row,e) { | |
| 398 | + this.oncetype = e | |
| 399 | + this.oninfo = row | |
| 400 | + this.multipleSelection = [] | |
| 401 | + this.addcl = true | |
| 402 | + }, | |
| 403 | + handleSelectionChange(val) { | |
| 404 | + this.multipleSelection = val | |
| 405 | + }, | |
| 406 | + chenge(e) { | |
| 407 | + this.ontype = e | |
| 408 | + this.pagequery.pageNumber = 0 | |
| 409 | + this.getAll() | |
| 410 | + }, | |
| 411 | + gettime() { | |
| 412 | + // 获取当前时间 | |
| 413 | + let currentTime = new Date(); | |
| 414 | + | |
| 415 | + // 获取年份 | |
| 416 | + let year = currentTime.getFullYear(); | |
| 417 | + | |
| 418 | + // 获取月份(注意月份是从0开始计数的,所以需要加1) | |
| 419 | + let month = currentTime.getMonth() + 1; | |
| 420 | + | |
| 421 | + // 获取日期 | |
| 422 | + let day = currentTime.getDate(); | |
| 423 | + | |
| 424 | + // 获取小时 | |
| 425 | + let hours = currentTime.getHours(); | |
| 426 | + | |
| 427 | + // 获取分钟 | |
| 428 | + let minutes = currentTime.getMinutes(); | |
| 429 | + | |
| 430 | + // 获取秒数 | |
| 431 | + let seconds = currentTime.getSeconds(); | |
| 432 | + | |
| 433 | + // 获取毫秒数 | |
| 434 | + let milliseconds = currentTime.getMilliseconds(); | |
| 435 | + | |
| 436 | + // 格式化时间为 YYYY-MM-DD | |
| 437 | + let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`; | |
| 438 | + | |
| 439 | + // 格式化时间为 HH:MM:SS | |
| 440 | + let formattedTime = | |
| 441 | + `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`; | |
| 442 | + | |
| 443 | + // 格式化时间为 YYYY-MM-DD HH:MM:SS | |
| 444 | + let formattedDateTime = `${formattedDate} ${formattedTime}`; | |
| 445 | + return formattedDateTime | |
| 446 | + | |
| 447 | + }, | |
| 448 | + removeinfozz(row, e, tit) { | |
| 449 | + let that = this | |
| 450 | + this.$confirm('确定要' + tit + '吗?', '提示', { | |
| 451 | + confirmButtonText: '确定', | |
| 452 | + cancelButtonText: '取消', | |
| 453 | + type: 'warning' | |
| 454 | + }).then(() => { | |
| 455 | + if (this.ontype == '1') { | |
| 456 | + information.editList({ | |
| 457 | + ...row, | |
| 458 | + publishStatus: e | |
| 459 | + }).then(res => { | |
| 460 | + console.error(res) | |
| 461 | + if (res.code == 200) { | |
| 462 | + this.$message({ | |
| 463 | + message: tit + '成功', | |
| 464 | + type: 'success' | |
| 465 | + }) | |
| 466 | + this.removeonaction('1') | |
| 467 | + } else { | |
| 468 | + this.$message({ | |
| 469 | + message: res.msg, | |
| 470 | + type: 'error' | |
| 471 | + }) | |
| 472 | + } | |
| 473 | + }) | |
| 474 | + } else if (this.ontype == '2') { | |
| 475 | + map1.editList({ | |
| 476 | + ...row, | |
| 477 | + publishStatus: e | |
| 478 | + }).then(res => { | |
| 479 | + console.error(res) | |
| 480 | + if (res.code == 200) { | |
| 481 | + this.$message({ | |
| 482 | + message: tit + '成功', | |
| 483 | + type: 'success' | |
| 484 | + }) | |
| 485 | + this.removeonaction('1') | |
| 486 | + } else { | |
| 487 | + this.$message({ | |
| 488 | + message: res.msg, | |
| 489 | + type: 'error' | |
| 490 | + }) | |
| 491 | + } | |
| 492 | + }) | |
| 493 | + } else if (this.ontype == '3') { | |
| 494 | + information.changedit({ | |
| 495 | + ...row, | |
| 496 | + publishStatus: e | |
| 497 | + }).then(res => { | |
| 498 | + console.error(res) | |
| 499 | + if (res.code == 200) { | |
| 500 | + this.$message({ | |
| 501 | + message: tit + '成功', | |
| 502 | + type: 'success' | |
| 503 | + }) | |
| 504 | + this.removeonaction('1') | |
| 505 | + } else { | |
| 506 | + this.$message({ | |
| 507 | + message: res.msg, | |
| 508 | + type: 'error' | |
| 509 | + }) | |
| 510 | + } | |
| 511 | + }) | |
| 512 | + } | |
| 513 | + | |
| 514 | + }) | |
| 515 | + }, | |
| 516 | + details(row) { | |
| 517 | + this.detailsinfo = row | |
| 518 | + this.onaction = '3' | |
| 519 | + }, | |
| 520 | + removeinfo(row, e) { | |
| 521 | + this.contractChangeReason = e | |
| 522 | + this.detailsinfo = row | |
| 523 | + this.onaction = '4' | |
| 524 | + }, | |
| 525 | + async getAll() { | |
| 526 | + if (this.ontype == '1') { | |
| 527 | + const res = await getAlls(this.pagequery) | |
| 528 | + this.tableData = res.data.content | |
| 529 | + this.total = res.data.totalElements | |
| 530 | + } else if (this.ontype == '2') { | |
| 531 | + const res = await likeGet(this.pagequery) | |
| 532 | + this.tableData = res.data.content | |
| 533 | + this.total = res.data.totalElements | |
| 534 | + } else if (this.ontype == '3') { | |
| 535 | + const res = await changAlls(this.pagequery) | |
| 536 | + this.tableData = res.data.content | |
| 537 | + this.total = res.data.totalElements | |
| 538 | + } | |
| 539 | + | |
| 540 | + }, | |
| 541 | + removeonaction(e) { | |
| 542 | + console.error(e) | |
| 543 | + this.onaction = e | |
| 544 | + this.pagequery.pageNumber = 0 | |
| 545 | + this.getAll() | |
| 546 | + }, | |
| 547 | + handleCurrentChange(val) { | |
| 548 | + this.pagequery.pageNumber = val - 1 | |
| 549 | + this.getAll() | |
| 550 | + }, | |
| 551 | + handleSizeChange(val) { | |
| 552 | + this.pagequery.pageSize = val | |
| 553 | + }, | |
| 554 | + // 查询按钮 | |
| 555 | + async onSubmit() { | |
| 556 | + this.pagequery.pageNumber = 0 | |
| 557 | + this.getAll() | |
| 558 | + }, | |
| 559 | + //重置按钮 | |
| 560 | + resetting() { | |
| 561 | + this.pagequery = { | |
| 562 | + pageNumber: 0, | |
| 563 | + pageSize: 10, | |
| 564 | + dataStatus: '1', | |
| 565 | + contractName: '' | |
| 566 | + }, | |
| 567 | + this.getAll() | |
| 568 | + }, | |
| 569 | + //删除 | |
| 570 | + closemsg(item) { | |
| 571 | + const h = this.$createElement; | |
| 572 | + this.$msgbox({ | |
| 573 | + title: '消息', | |
| 574 | + message: h('p', null, [ | |
| 575 | + h('span', null, '是否删除 '), | |
| 576 | + ]), | |
| 577 | + showCancelButton: true, | |
| 578 | + showClose: false, | |
| 579 | + confirmButtonText: '确定', | |
| 580 | + cancelButtonText: '取消', | |
| 581 | + customClass: 'oe-dialog-btn', | |
| 582 | + beforeClose: (action, instance, done) => { | |
| 583 | + if (action === 'confirm') { | |
| 584 | + if (this.ontype == '1') { | |
| 585 | + information.delList({ | |
| 586 | + id: item.id | |
| 587 | + }).then(res => { | |
| 588 | + this.$message({ | |
| 589 | + message: '删除成功', | |
| 590 | + type: 'success' | |
| 591 | + }) | |
| 592 | + this.getAll() | |
| 593 | + done(); | |
| 594 | + }) | |
| 595 | + } else if (this.ontype == '2') { | |
| 596 | + map1.delList({ | |
| 597 | + id: item.id | |
| 598 | + }).then(res => { | |
| 599 | + this.$message({ | |
| 600 | + message: '删除成功', | |
| 601 | + type: 'success' | |
| 602 | + }) | |
| 603 | + this.getAll() | |
| 604 | + done(); | |
| 605 | + }) | |
| 606 | + } else if (this.ontype == '3') { | |
| 607 | + information.changDel({ | |
| 608 | + id: item.id | |
| 609 | + }).then(res => { | |
| 610 | + this.$message({ | |
| 611 | + message: '删除成功', | |
| 612 | + type: 'success' | |
| 613 | + }) | |
| 614 | + this.getAll() | |
| 615 | + done(); | |
| 616 | + }) | |
| 617 | + } | |
| 618 | + } else { | |
| 619 | + done(); | |
| 620 | + } | |
| 621 | + } | |
| 622 | + }) | |
| 623 | + }, | |
| 624 | + //地图详细 | |
| 625 | + HandMapItem(item) { | |
| 626 | + console.log(item) | |
| 627 | + | |
| 628 | + | |
| 629 | + // if (this.activeName == 'first') { | |
| 630 | + // this.editbgid = item | |
| 631 | + // this.restype = '商铺' | |
| 632 | + | |
| 633 | + // this.showBian = true | |
| 634 | + // if (typeof this.editbgid.mapPunctuation == 'string') { | |
| 635 | + // this.parentMessage = JSON.parse(this.editbgid.mapPunctuation) | |
| 636 | + // } | |
| 637 | + | |
| 638 | + // } else if (this.activeName == 'second') { | |
| 639 | + // this.editbgid = item | |
| 640 | + // this.restype = '广告位' | |
| 641 | + | |
| 642 | + // this.showBian = true | |
| 643 | + // if (item.advertisingType == '线上广告位') { | |
| 644 | + // this.leixing = true | |
| 645 | + // } else { | |
| 646 | + // this.leixing = false | |
| 647 | + // } | |
| 648 | + | |
| 649 | + // if (typeof this.editbgid.mapMarker == 'string') { | |
| 650 | + // this.parentMessage = JSON.parse(this.editbgid.mapMarker) | |
| 651 | + // } | |
| 652 | + // } else if (this.activeName == 'third') { | |
| 653 | + // this.editbgid = item | |
| 654 | + // this.restype = '场地' | |
| 655 | + | |
| 656 | + // this.showBian = true | |
| 657 | + // if (typeof this.editbgid.mapMarker == 'string') { | |
| 658 | + // this.parentMessage = JSON.parse(this.editbgid.mapMarker) | |
| 659 | + // } | |
| 660 | + // } else if (this.activeName == 'fourth') { | |
| 661 | + | |
| 662 | + // } | |
| 663 | + | |
| 664 | + | |
| 665 | + }, | |
| 666 | + } | |
| 667 | + | |
| 668 | + } | |
| 669 | +</script> | |
| 670 | + | |
| 671 | +<style scoped> | |
| 672 | + .el-table { | |
| 673 | + /* height: calc(100vh - 330px); */ | |
| 674 | + } | |
| 675 | + | |
| 676 | + .zhuti { | |
| 677 | + padding: 0 20px 20px 20px; | |
| 678 | + min-height: calc(100vh - 50px - 20px); | |
| 679 | + background-color: #Fff; | |
| 680 | + | |
| 681 | + } | |
| 682 | + | |
| 683 | + .chengeXia { | |
| 684 | + border-bottom: 6px solid #3F9B6A; | |
| 685 | + padding-bottom: 4px; | |
| 686 | + color: #3F9B6A; | |
| 687 | + } | |
| 688 | + | |
| 689 | + /* /deep/ .el-form-item__content { | |
| 690 | + line-height: 0; | |
| 691 | + } */ | |
| 692 | + | |
| 693 | + .tableBtn { | |
| 694 | + display: inline-block; | |
| 695 | + margin-right: 10px; | |
| 696 | + color: #ACACAC; | |
| 697 | + } | |
| 698 | + | |
| 699 | + .formSearch { | |
| 700 | + display: flex; | |
| 701 | + width: 100%; | |
| 702 | + font-size: 14px; | |
| 703 | + justify-content: space-between; | |
| 704 | + } | |
| 705 | + | |
| 706 | + .greens { | |
| 707 | + color: #3F9B6A; | |
| 708 | + } | |
| 709 | + | |
| 710 | + /deep/ .el-table__row { | |
| 711 | + font-size: 14px; | |
| 712 | + color: #000000e6; | |
| 713 | + height: 42px; | |
| 714 | + } | |
| 715 | + | |
| 716 | + .fenye { | |
| 717 | + margin-top: 20px; | |
| 718 | + display: flex; | |
| 719 | + justify-content: space-between; | |
| 720 | + } | |
| 721 | + | |
| 722 | + /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { | |
| 723 | + background-color: #3F9B6A; | |
| 724 | + } | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + .el-col { | |
| 729 | + border-radius: 4px; | |
| 730 | + } | |
| 731 | + | |
| 732 | + .bg-purple-dark { | |
| 733 | + background: #99a9bf; | |
| 734 | + } | |
| 735 | + | |
| 736 | + .bg-purple { | |
| 737 | + background: #d3dce6; | |
| 738 | + } | |
| 739 | + | |
| 740 | + .bg-purple-light { | |
| 741 | + background: #e5e9f2; | |
| 742 | + } | |
| 743 | + | |
| 744 | + .grid-content { | |
| 745 | + border-radius: 4px; | |
| 746 | + min-height: 36px; | |
| 747 | + } | |
| 748 | + | |
| 749 | + .row-bg { | |
| 750 | + padding: 10px 0; | |
| 751 | + background-color: #f9fafc; | |
| 752 | + } | |
| 753 | + | |
| 754 | + /deep/ .bg-purple[data-v-0e3fe4ec] { | |
| 755 | + background: #fff; | |
| 756 | + height: 50px; | |
| 757 | + } | |
| 758 | + | |
| 759 | + /deep/ .bg-purple[data-v-3bebae82] { | |
| 760 | + background: #fff; | |
| 761 | + height: 50px; | |
| 762 | + } | |
| 763 | + | |
| 764 | + ::v-deep .bg-purple { | |
| 765 | + background: #fff; | |
| 766 | + height: 50px; | |
| 767 | + } | |
| 768 | + | |
| 769 | + /deep/ .el-form--label-top .el-form-item__label { | |
| 770 | + padding: 0; | |
| 771 | + } | |
| 772 | + | |
| 773 | + ::v-deep .el-dialog__wrapper { | |
| 774 | + .el-dialog__header { | |
| 775 | + background-color: #fff; | |
| 776 | + } | |
| 777 | + } | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + .dialog-footer { | |
| 782 | + display: flex; | |
| 783 | + justify-content: flex-end; | |
| 784 | + border-top: solid rgba(209, 209, 209, 0.2) 2px; | |
| 785 | + padding-top: 20px; | |
| 786 | + } | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + .el-select-dropdown__item.selected { | |
| 792 | + color: #3F9B6A; | |
| 793 | + } | |
| 794 | + | |
| 795 | + ::v-deep .el-dialog__title { | |
| 796 | + color: #000; | |
| 797 | + } | |
| 798 | + | |
| 799 | + ::v-deep .el-dialog__wrapper { | |
| 800 | + | |
| 801 | + .dialog_css { | |
| 802 | + margin-right: 12px; | |
| 803 | + margin-top: 61px !important; | |
| 804 | + | |
| 805 | + } | |
| 806 | + | |
| 807 | + .diaslog_zhong { | |
| 808 | + margin-left: 222px; | |
| 809 | + margin-top: 61px !important; | |
| 810 | + } | |
| 811 | + | |
| 812 | + } | |
| 813 | + | |
| 814 | + /deep/ .el-table_1_column_8 .hetong { | |
| 815 | + color: #7DBB9A; | |
| 816 | + text-decoration: underline; | |
| 817 | + } | |
| 818 | + | |
| 819 | + /deep/ .first-column-bg { | |
| 820 | + background-color: #FAFAFA !important; | |
| 821 | + } | |
| 822 | + | |
| 823 | + .el-table tr { | |
| 824 | + height: 56px; | |
| 825 | + } | |
| 826 | + | |
| 827 | + ::v-deep .table3 { | |
| 828 | + .el-table__empty-block { | |
| 829 | + display: none; | |
| 830 | + } | |
| 831 | + } | |
| 832 | + | |
| 833 | + ::v-deep .textarea { | |
| 834 | + width: 85%; | |
| 835 | + | |
| 836 | + .el-textarea__inner { | |
| 837 | + width: 100%; | |
| 838 | + } | |
| 839 | + } | |
| 840 | + | |
| 841 | + ::v-deep .el-button--mini { | |
| 842 | + padding: 7px 10px; | |
| 843 | + } | |
| 844 | + | |
| 845 | + ::v-deep .pass_input { | |
| 846 | + width: 100%; | |
| 847 | + | |
| 848 | + .el-input__inner { | |
| 849 | + border: none; | |
| 850 | + padding: 0; | |
| 851 | + } | |
| 852 | + } | |
| 853 | + | |
| 854 | + ::v-deep .pass_select { | |
| 855 | + width: 100%; | |
| 856 | + | |
| 857 | + .el-input__inner { | |
| 858 | + border: none; | |
| 859 | + padding: 0; | |
| 860 | + } | |
| 861 | + | |
| 862 | + .el-icon-arrow-up:before { | |
| 863 | + content: '' | |
| 864 | + } | |
| 865 | + | |
| 866 | + } | |
| 867 | + | |
| 868 | + /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell { | |
| 869 | + background-color: #fff; | |
| 870 | + } | |
| 871 | +</style> | |
| 872 | +<style lang="scss" scoped> | |
| 873 | + ::v-deep .el-dialog__body { | |
| 874 | + padding: 0 0 !important; | |
| 875 | + } | |
| 876 | + | |
| 877 | + ::v-deep .buttonHover:hover { | |
| 878 | + color: #3f9b6a !important; | |
| 879 | + border-color: #c5e1d2 !important; | |
| 880 | + background-color: #ecf5f0 !important; | |
| 881 | + outline: none; | |
| 882 | + } | |
| 883 | + .el-dialog__header{ | |
| 884 | + padding: 0 0 !important; | |
| 885 | + } | |
| 886 | +</style> | ... | ... |
admin-web-master/src/views/detect/information/index.vue
| ... | ... | @@ -92,7 +92,7 @@ |
| 92 | 92 | </div> |
| 93 | 93 | <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div> |
| 94 | 94 | <div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" |
| 95 | - @click="removeinfozz(scope.row,'1','发布')">发布</div> | |
| 95 | + @click="opencl(scope.row,'sp')">发布</div> | |
| 96 | 96 | <div class="tableBtn greens" v-if="scope.row.publishStatus=='1'" |
| 97 | 97 | @click="removeinfozz(scope.row,'0','下架')">下架</div> |
| 98 | 98 | </template> |
| ... | ... | @@ -143,6 +143,10 @@ |
| 143 | 143 | <add :info="detailsinfo" @removeonaction="removeonaction"></add> |
| 144 | 144 | </div> |
| 145 | 145 | </div> |
| 146 | + <el-dialog :visible.sync="addcl" style="padding: 0px;" width="65%" append-to-body center | |
| 147 | + :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false"> | |
| 148 | + <cl @minSev="minSev" @mingClose="mingClose"></cl> | |
| 149 | + </el-dialog> | |
| 146 | 150 | </div> |
| 147 | 151 | |
| 148 | 152 | |
| ... | ... | @@ -164,9 +168,18 @@ |
| 164 | 168 | import { |
| 165 | 169 | cereContractInformation |
| 166 | 170 | } from '../../../api/commodityLease.js' |
| 171 | + import cl from '@/components/change/cl.vue' | |
| 172 | + | |
| 173 | + import { | |
| 174 | + cereResourceStrategy | |
| 175 | + } from '@/api/newly.js' | |
| 167 | 176 | export default { |
| 168 | 177 | data() { |
| 169 | 178 | return { |
| 179 | + oncetype:'', | |
| 180 | + addcl:false, | |
| 181 | + oninfo:{}, | |
| 182 | + multipleSelection:[], | |
| 170 | 183 | contractChangeReason: '', |
| 171 | 184 | detailsinfo: {}, |
| 172 | 185 | pagequery: { |
| ... | ... | @@ -179,42 +192,11 @@ |
| 179 | 192 | total: 0, |
| 180 | 193 | onaction: '1', |
| 181 | 194 | formInline: { |
| 182 | - // 合同类型 | |
| 183 | - contractType: '', | |
| 184 | - // 合同编号 | |
| 185 | - contractNumber: '', | |
| 186 | - // 标段号 | |
| 187 | - sectionNumber: '', | |
| 188 | - // 合同名称 | |
| 189 | - contractName: '', | |
| 190 | - // 押金 | |
| 191 | - earnestMoney: '', | |
| 192 | - // 合同签订日期 | |
| 193 | - contractSigningDate: '', | |
| 194 | - // 合同终止日期 | |
| 195 | - contractTerminationDate: '', | |
| 196 | - // 起租日期 | |
| 197 | - leaseStartDate: '', | |
| 198 | - // 付款周期 | |
| 199 | - paymentCycle: '', | |
| 200 | - // 合同金额(租金) | |
| 201 | - contractAmount: '', | |
| 202 | - // 付款日 | |
| 203 | - paymentDay: '', | |
| 204 | - // 承租人名称 | |
| 205 | - tenantName: '', | |
| 206 | - // 承租人联系电话 | |
| 207 | - tenantTelephone: '', | |
| 208 | - // 承租人银行账号 | |
| 209 | - tenantBankAccount: '', | |
| 210 | - // 关联商家 | |
| 211 | - relatedMerchants: '', | |
| 212 | - // 商铺编号(绑定资源) | |
| 213 | - shopNumber: '' | |
| 214 | 195 | }, |
| 215 | 196 | } |
| 216 | 197 | }, |
| 217 | 198 | components: { |
| 199 | + cl, | |
| 218 | 200 | add, |
| 219 | 201 | resourceCommodity, |
| 220 | 202 | }, |
| ... | ... | @@ -222,6 +204,44 @@ |
| 222 | 204 | this.getAll() |
| 223 | 205 | }, |
| 224 | 206 | methods: { |
| 207 | + minSev(e) { | |
| 208 | + this.multipleSelection = e | |
| 209 | + console.error(this.multipleSelection) | |
| 210 | + let ids = [] | |
| 211 | + for (let index = 0; index < this.multipleSelection.length; index++) { | |
| 212 | + ids.push(this.multipleSelection[index].id) | |
| 213 | + } | |
| 214 | + console.error(this.oninfo) | |
| 215 | + let c1 = { | |
| 216 | + resourcesId: this.oncetype+this.oninfo.id, | |
| 217 | + rentalPoliciesIds: ids, | |
| 218 | + } | |
| 219 | + console.error(c1) | |
| 220 | + cereResourceStrategy(c1).then(res => { | |
| 221 | + if (res.code == 200) { | |
| 222 | + this.addcl = false | |
| 223 | + this.$message({ | |
| 224 | + message: '绑定成功', | |
| 225 | + type: 'success' | |
| 226 | + }) | |
| 227 | + } else { | |
| 228 | + this.$message({ | |
| 229 | + message: '绑定失败', | |
| 230 | + type: 'error' | |
| 231 | + }) | |
| 232 | + } | |
| 233 | + }) | |
| 234 | + }, | |
| 235 | + mingClose() { | |
| 236 | + this.multipleSelection = [] | |
| 237 | + this.addcl = false | |
| 238 | + }, | |
| 239 | + async opencl(row,e) { | |
| 240 | + this.oncetype = e | |
| 241 | + this.oninfo = row | |
| 242 | + this.multipleSelection = [] | |
| 243 | + this.addcl = true | |
| 244 | + }, | |
| 225 | 245 | gettime() { |
| 226 | 246 | // 获取当前时间 |
| 227 | 247 | let currentTime = new Date(); |
| ... | ... | @@ -577,4 +597,7 @@ |
| 577 | 597 | background-color: #ecf5f0 !important; |
| 578 | 598 | outline: none; |
| 579 | 599 | } |
| 600 | + .el-dialog__header{ | |
| 601 | + padding: 0 0 !important; | |
| 602 | + } | |
| 580 | 603 | </style> | ... | ... |