2506ad54
wesley88
2
|
1
|
<template>
|
2bb042d7
wesley88
1
|
2
3
|
<div style="background-color:#f7f7f7;padding:10px 10px;" >
<div class="zhuti boxqw" v-if="onaction == '1'">
|
2506ad54
wesley88
2
|
4
5
|
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商资源监测</span> <span style="padding:0 5px;">></span> <span
|
0c5d2ce8
wesley88
1
|
6
|
style="color:#000000e6">资源发布审核</span></div>
|
2506ad54
wesley88
2
|
7
8
9
10
|
</div>
<!-- 线上 -->
<div>
<!-- 搜索 -->
|
9b392fc6
wesley88
1
|
11
|
<!-- <div class="formSearch">
|
a182f238
wesley88
1
|
12
13
14
15
16
17
|
<el-form :inline="true">
<el-form-item label="资源名称" prop="name">
<el-input v-model="name" placeholder="请输入" maxlength="50"></el-input>
</el-form-item>
<el-form-item label="策略名称" prop="clName">
<el-input v-model="clName" placeholder="请输入" maxlength="50"></el-input>
|
2506ad54
wesley88
2
|
18
|
</el-form-item>
|
a182f238
wesley88
1
|
19
|
<el-form-item label="审核状态" prop="publishStatus">
|
9b392fc6
wesley88
1
|
20
|
<el-select v-model="publishStatus" placeholder="请选择" style="width: 168px;margin-right: 15px">
|
a182f238
wesley88
1
|
21
|
<el-option label="待审核" value="3"></el-option>
|
2506ad54
wesley88
2
|
22
23
24
25
26
27
28
29
30
31
32
|
</el-select>
</el-form-item>
</el-form>
<div>
<el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
</el-button>
<el-button @click="resetting" class="buttonHover"
style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
</el-button>
</div>
|
9b392fc6
wesley88
1
|
33
|
</div> -->
|
a182f238
wesley88
1
|
34
|
<div style="margin-bottom: 20px;">
|
2506ad54
wesley88
2
|
35
36
37
|
<div style="display: flex;font-size: 14px">
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
</div>
|
4e955529
杨鑫
'1'
|
38
|
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''">
|
2506ad54
wesley88
2
|
39
40
|
广告位</div>
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地
|
4e955529
杨鑫
'1'
|
41
|
</div>
|
2506ad54
wesley88
2
|
42
43
44
|
</div>
</div>
<!-- 表格 -->
|
2bb042d7
wesley88
1
|
45
|
<el-table v-if="ontype=='1' && ishow" :span-method="tableSpanMethod" :data="tableData"
|
2506ad54
wesley88
2
|
46
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
0c5d2ce8
wesley88
1
|
47
|
<el-table-column label="商铺名称" prop="shopName" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
48
|
<template slot-scope="scope">
|
0c5d2ce8
wesley88
1
|
49
|
{{scope.row.cereBasicInformationShop.shopName}}
|
2506ad54
wesley88
2
|
50
51
|
</template>
</el-table-column>
|
2506ad54
wesley88
2
|
52
|
<el-table-column prop="detailedLocation" label="详细地址" show-overflow-tooltip>
|
0c5d2ce8
wesley88
1
|
53
54
55
|
<template slot-scope="scope">
{{scope.row.cereBasicInformationShop.detailedLocation}}
</template>
|
2506ad54
wesley88
2
|
56
|
</el-table-column>
|
9b392fc6
wesley88
1
|
57
|
<el-table-column label="商铺类型" prop="shopType" show-overflow-tooltip>
|
0c5d2ce8
wesley88
1
|
58
|
<template slot-scope="scope">
|
9b392fc6
wesley88
1
|
59
60
61
|
<div class="duiqi">
{{scope.row.cereBasicInformationShop.shopType=='1'?'移动铺位':scope.row.cereBasicInformationShop.shopType=='2'?'固定铺位':'无'}}
</div>
|
0c5d2ce8
wesley88
1
|
62
63
64
65
66
67
|
</template>
</el-table-column>
<el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopinfo.policyName}}
</template>
|
2506ad54
wesley88
2
|
68
|
</el-table-column>
|
0c5d2ce8
wesley88
1
|
69
70
71
72
|
<el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
</template>
|
2506ad54
wesley88
2
|
73
|
</el-table-column>
|
eb438c24
wesley88
1
|
74
|
<!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
|
0c5d2ce8
wesley88
1
|
75
76
77
|
<template slot-scope="scope">
{{scope.row.shopinfo.payDay}}
</template>
|
eb438c24
wesley88
1
|
78
|
</el-table-column> -->
|
2506ad54
wesley88
2
|
79
80
|
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
|
ad5052c5
wesley88
1
|
81
|
{{scope.row.cereBasicInformationShop.publishStatus=='0'?'空置中':scope.row.cereBasicInformationShop.publishStatus=='1'?'待审核':scope.row.cereBasicInformationShop.publishStatus=='2'?'已发布':scope.row.cereBasicInformationShop.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
|
2506ad54
wesley88
2
|
82
83
|
</template>
</el-table-column>
|
9b392fc6
wesley88
1
|
84
|
<el-table-column label="操作" fixed="right" prop="sh">
|
2506ad54
wesley88
2
|
85
|
<template slot-scope="scope">
|
98bc35a2
wesley88
1
|
86
|
<div @click="details(scope.row.cereBasicInformationShop,'1')" class="tableBtn greens">查看</div>
|
9b392fc6
wesley88
1
|
87
88
|
<div v-if="scope.row.cereBasicInformationShop.publishStatus=='1'"
@click="details(scope.row.cereBasicInformationShop,'2')" class="tableBtn greens">审核</div>
|
2506ad54
wesley88
2
|
89
90
91
|
</template>
</el-table-column>
</el-table>
|
2bb042d7
wesley88
1
|
92
|
<el-table v-if="ontype=='2' && ishow" :span-method="tableSpanMethod" :data="tableData"
|
2506ad54
wesley88
2
|
93
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
a182f238
wesley88
1
|
94
|
<el-table-column label="广告位名称" prop="advertisingName" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
95
|
<template slot-scope="scope">
|
a182f238
wesley88
1
|
96
|
{{scope.row.cereAdvertisingInformation.advertisingName}}
|
2506ad54
wesley88
2
|
97
98
|
</template>
</el-table-column>
|
a182f238
wesley88
1
|
99
100
101
102
|
<el-table-column prop="advertisingType" label="广告位类型" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.cereAdvertisingInformation.advertisingType}}
</template>
|
2506ad54
wesley88
2
|
103
|
</el-table-column>
|
a182f238
wesley88
1
|
104
105
106
107
|
<el-table-column label="所属端" prop="affiliation" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.cereAdvertisingInformation.affiliation}}
</template>
|
2506ad54
wesley88
2
|
108
|
</el-table-column>
|
a182f238
wesley88
1
|
109
110
111
112
|
<el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopinfo.policyName}}
</template>
|
2506ad54
wesley88
2
|
113
|
</el-table-column>
|
a182f238
wesley88
1
|
114
|
<el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
115
|
<template slot-scope="scope">
|
a182f238
wesley88
1
|
116
|
{{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
|
2506ad54
wesley88
2
|
117
|
</template>
|
a182f238
wesley88
1
|
118
|
</el-table-column>
|
eb438c24
wesley88
1
|
119
|
<!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
120
|
<template slot-scope="scope">
|
a182f238
wesley88
1
|
121
|
{{scope.row.shopinfo.payDay}}
|
2506ad54
wesley88
2
|
122
|
</template>
|
eb438c24
wesley88
1
|
123
|
</el-table-column> -->
|
a182f238
wesley88
1
|
124
125
|
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
|
ad5052c5
wesley88
1
|
126
|
{{scope.row.cereAdvertisingInformation.publishStatus=='0'?'空置中':scope.row.cereAdvertisingInformation.publishStatus=='1'?'待审核':scope.row.cereAdvertisingInformation.publishStatus=='2'?'已发布':scope.row.cereAdvertisingInformation.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
|
a182f238
wesley88
1
|
127
|
</template>
|
2506ad54
wesley88
2
|
128
|
</el-table-column>
|
9b392fc6
wesley88
1
|
129
|
<el-table-column label="操作" fixed="right" prop="sh">
|
2506ad54
wesley88
2
|
130
|
<template slot-scope="scope">
|
9b392fc6
wesley88
1
|
131
132
133
|
<div @click="details(scope.row.cereAdvertisingInformation,'1')" class="tableBtn greens">查看</div>
<div v-if="scope.row.cereAdvertisingInformation.publishStatus=='1'"
@click="details(scope.row.cereAdvertisingInformation,'2')" class="tableBtn greens">审核</div>
|
2506ad54
wesley88
2
|
134
135
136
|
</template>
</el-table-column>
</el-table>
|
2bb042d7
wesley88
1
|
137
|
<el-table v-if="ontype=='3' && ishow" :span-method="tableSpanMethod" :data="tableData"
|
2506ad54
wesley88
2
|
138
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
a182f238
wesley88
1
|
139
|
<el-table-column label="场地名称" prop="venueName" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
140
|
<template slot-scope="scope">
|
a182f238
wesley88
1
|
141
|
{{scope.row.cereBasicInformationVenue.venueName}}
|
2506ad54
wesley88
2
|
142
143
|
</template>
</el-table-column>
|
a182f238
wesley88
1
|
144
145
146
147
|
<el-table-column prop="venueType" label="场地类型" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.cereBasicInformationVenue.venueType}}
</template>
|
2506ad54
wesley88
2
|
148
|
</el-table-column>
|
c3f8e431
wesley88
1
|
149
|
<el-table-column label="实际使用面积" prop="actualArea" show-overflow-tooltip>
|
a182f238
wesley88
1
|
150
|
<template slot-scope="scope">
|
c3f8e431
wesley88
1
|
151
|
{{scope.row.cereBasicInformationVenue.actualArea}}
|
a182f238
wesley88
1
|
152
|
</template>
|
2506ad54
wesley88
2
|
153
|
</el-table-column>
|
a182f238
wesley88
1
|
154
155
156
157
|
<el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopinfo.policyName}}
</template>
|
2506ad54
wesley88
2
|
158
|
</el-table-column>
|
a182f238
wesley88
1
|
159
160
161
162
|
<el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
</template>
|
2506ad54
wesley88
2
|
163
|
</el-table-column>
|
eb438c24
wesley88
1
|
164
|
<!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
|
a182f238
wesley88
1
|
165
166
167
|
<template slot-scope="scope">
{{scope.row.shopinfo.payDay}}
</template>
|
eb438c24
wesley88
1
|
168
|
</el-table-column> -->
|
a182f238
wesley88
1
|
169
|
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
|
2506ad54
wesley88
2
|
170
|
<template slot-scope="scope">
|
ad5052c5
wesley88
1
|
171
|
{{scope.row.cereBasicInformationVenue.publishStatus=='0'?'空置中':scope.row.cereBasicInformationVenue.publishStatus=='1'?'待审核':scope.row.cereBasicInformationVenue.publishStatus=='2'?'已发布':scope.row.cereBasicInformationVenue.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
|
2506ad54
wesley88
2
|
172
173
|
</template>
</el-table-column>
|
9b392fc6
wesley88
1
|
174
|
<el-table-column label="操作" fixed="right" prop="sh">
|
2506ad54
wesley88
2
|
175
|
<template slot-scope="scope">
|
9b392fc6
wesley88
1
|
176
177
178
|
<div @click="details(scope.row.cereBasicInformationVenue,'1')" class="tableBtn greens">查看</div>
<div v-if="scope.row.cereBasicInformationVenue.publishStatus=='1'"
@click="details(scope.row.cereBasicInformationVenue,'2')" class="tableBtn greens">审核</div>
|
2506ad54
wesley88
2
|
179
180
181
|
</template>
</el-table-column>
</el-table>
|
9b392fc6
wesley88
1
|
182
|
<div v-if="false" style="display: flex;justify-content: space-between;" class="bom">
|
2506ad54
wesley88
2
|
183
|
<div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
|
9b392fc6
wesley88
1
|
184
|
<!-- <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
|
2506ad54
wesley88
2
|
185
186
|
background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
|
9b392fc6
wesley88
1
|
187
|
</el-pagination> -->
|
2506ad54
wesley88
2
|
188
189
190
191
192
193
194
195
196
197
198
199
200
|
</div>
</div>
</div>
<div class="zhuti" v-if="onaction == '2'">
<div style="height:58px;line-height:58px;">
|
0c5d2ce8
wesley88
1
|
201
202
203
204
|
<div style="color:#0006">
<span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">新增</span>
</div>
|
2506ad54
wesley88
2
|
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
</div>
<div style="margin: 20px 0;">
<div style="display: flex;font-size: 14px">
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
</div>
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''">
广告位</div>
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地
</div>
</div>
</div>
<div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;">
<add @removeonaction="removeonaction"></add>
</div>
<div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;">
<addmap @removeonaction="removeonaction" :leixing="leixing"></addmap>
</div>
<div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;">
<addcd @removeonaction="removeonaction"></addcd>
</div>
</div>
<div class="zhuti" v-if="onaction == '3'">
<div style="height:58px;line-height:58px;">
|
0c5d2ce8
wesley88
1
|
228
229
230
231
|
<div style="color:#0006">
<span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">查看</span>
</div>
|
2506ad54
wesley88
2
|
232
233
|
</div>
<div v-if="ontype == '1'">
|
98bc35a2
wesley88
1
|
234
|
<resourceCommodity :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity>
|
2506ad54
wesley88
2
|
235
236
|
</div>
<div v-if="ontype == '2'">
|
98bc35a2
wesley88
1
|
237
|
<chakanmap :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></chakanmap>
|
2506ad54
wesley88
2
|
238
239
|
</div>
<div v-if="ontype == '3'">
|
98bc35a2
wesley88
1
|
240
|
<chakancd :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd>
|
2506ad54
wesley88
2
|
241
242
243
244
|
</div>
</div>
<div class="zhuti" v-if="onaction == '4'">
<div style="height:58px;line-height:58px;">
|
0c5d2ce8
wesley88
1
|
245
246
247
248
|
<div style="color:#0006">
<span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">{{contractChangeReason}}</span>
</div>
|
2506ad54
wesley88
2
|
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
</div>
<div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;">
<add :info="detailsinfo" @removeonaction="removeonaction"></add>
</div>
<div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;">
<addmap :info="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></addmap>
</div>
<div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;">
<addcd :info="detailsinfo" @removeonaction="removeonaction"></addcd>
</div>
</div>
<el-dialog :visible.sync="addcl" style="padding: 0px;" width="65%" append-to-body center
:close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
<cl @minSev="minSev" @mingClose="mingClose"></cl>
</el-dialog>
</div>
</template>
<script>
import {
|
0c5d2ce8
wesley88
1
|
271
272
|
cereResourceStrategy,
getResourceStrategy
|
2506ad54
wesley88
2
|
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
} from '@/api/newly.js'
import {
ceGetAll
} from '@/api/sam.js'
import * as information from '@/api/information';
import * as map1 from '@/api/map1';
import {
likeGet,
} from '@/api/map1'
import {
getAlls,
changAlls
} from '@/api/information';
import add from '@/components/add/addinformation'
import resourceCommodity from '@/components/resourceCommodity/index'
import MapContainer from "@/components/MapContainer/MapContainer"
import addmap from '@/components/add/addmap'
import addcd from '@/components/add/addcd'
import chakanmap from '@/components/chakan/map'
import chakancd from '@/components/chakan/cd'
|
0c5d2ce8
wesley88
1
|
293
|
import cl from '@/components/change/cl.vue'
|
2506ad54
wesley88
2
|
294
295
296
297
298
299
|
import {
on
} from 'screenfull';
export default {
data() {
return {
|
2bb042d7
wesley88
1
|
300
|
ishow:true,
|
9b392fc6
wesley88
1
|
301
302
303
304
|
issp: '1',
publishStatus: '',
clName: '',
name: '',
|
2506ad54
wesley88
2
|
305
306
307
308
309
310
311
312
313
314
315
316
|
oninfo: {},
celueData: [],
clData: [],
multipleSelection: [],
addcl: false,
leixing: true,
//传地图数据
parentMessage: [],
ontype: '1',
contractChangeReason: '',
detailsinfo: {},
pagequery: {
|
9b392fc6
wesley88
1
|
317
|
publishStatus: '1',
|
2506ad54
wesley88
2
|
318
319
|
pageNumber: 0,
pageSize: 10,
|
2506ad54
wesley88
2
|
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
|
},
tableData: [],
total: 0,
onaction: '1',
formInline: {},
pageindex: {
pageNumber: 1,
pageSize: 10,
},
}
},
components: {
cl,
chakancd,
addcd,
addmap,
chakanmap,
MapContainer,
add,
resourceCommodity,
},
created() {
this.getAll()
},
methods: {
|
9b392fc6
wesley88
1
|
345
346
347
348
349
350
351
|
/**
* 表格行合并逻辑
*/
tableSpanMethod({ row, column, rowIndex }) {
if (["shopName", "detailedLocation", "shopType", "publishStatus", "sh","advertisingName","advertisingType","affiliation","venueName","venueType","actualUsableArea"].includes(column.property)) {
// 判断 num 是否相同,合并行
const num = row.num;
|
60cd6339
杨鑫
'最新'
|
352
353
354
355
356
357
|
const typeid = row.typeid;
const startRowIndex = this.findStartRowIndex(rowIndex, num,typeid);
return startRowIndex === rowIndex
? { rowspan: num, colspan: 1 }
|
9b392fc6
wesley88
1
|
358
359
360
361
362
363
|
: { rowspan: 0, colspan: 0 };
}
},
/**
* 查找当前行的 num 对应的起始行索引
*/
|
60cd6339
杨鑫
'最新'
|
364
|
findStartRowIndex(rowIndex, num,typeid) {
|
9b392fc6
wesley88
1
|
365
366
|
let startRowIndex = rowIndex;
for (let i = rowIndex - 1; i >= 0; i--) {
|
60cd6339
杨鑫
'最新'
|
367
|
if (this.tableData[i].num === num && this.tableData[i].typeid === typeid) {
|
9b392fc6
wesley88
1
|
368
|
startRowIndex = i;
|
0c5d2ce8
wesley88
1
|
369
|
} else {
|
9b392fc6
wesley88
1
|
370
|
break;
|
0c5d2ce8
wesley88
1
|
371
|
}
|
0c5d2ce8
wesley88
1
|
372
|
}
|
9b392fc6
wesley88
1
|
373
|
return startRowIndex;
|
0c5d2ce8
wesley88
1
|
374
|
},
|
2506ad54
wesley88
2
|
375
376
377
378
379
380
381
382
383
|
minSev(e) {
this.multipleSelection = e
console.error(this.multipleSelection)
let ids = []
for (let index = 0; index < this.multipleSelection.length; index++) {
ids.push(this.multipleSelection[index].id)
}
console.error(this.oninfo)
let c1 = {
|
0c5d2ce8
wesley88
1
|
384
|
resourcesId: this.oncetype + this.oninfo.id,
|
2506ad54
wesley88
2
|
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
|
rentalPoliciesIds: ids,
// resources:this.oninfo
// rentalPoliciesId: 28,
// resourcesId: "sp65"
}
console.error(c1)
cereResourceStrategy(c1).then(res => {
if (res.code == 200) {
this.addcl = false
this.$message({
message: '绑定成功',
type: 'success'
})
} else {
this.$message({
message: '绑定失败',
type: 'error'
})
}
})
},
mingClose() {
this.multipleSelection = []
this.addcl = false
},
|
0c5d2ce8
wesley88
1
|
410
|
async opencl(row, e) {
|
2506ad54
wesley88
2
|
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
|
this.oncetype = e
this.oninfo = row
this.multipleSelection = []
this.addcl = true
},
handleSelectionChange(val) {
this.multipleSelection = val
},
chenge(e) {
this.ontype = e
this.pagequery.pageNumber = 0
this.getAll()
},
gettime() {
// 获取当前时间
let currentTime = new Date();
// 获取年份
let year = currentTime.getFullYear();
// 获取月份(注意月份是从0开始计数的,所以需要加1)
let month = currentTime.getMonth() + 1;
// 获取日期
let day = currentTime.getDate();
// 获取小时
let hours = currentTime.getHours();
// 获取分钟
let minutes = currentTime.getMinutes();
// 获取秒数
let seconds = currentTime.getSeconds();
// 获取毫秒数
let milliseconds = currentTime.getMilliseconds();
// 格式化时间为 YYYY-MM-DD
let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
// 格式化时间为 HH:MM:SS
let formattedTime =
`${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
// 格式化时间为 YYYY-MM-DD HH:MM:SS
let formattedDateTime = `${formattedDate} ${formattedTime}`;
return formattedDateTime
},
removeinfozz(row, e, tit) {
let that = this
this.$confirm('确定要' + tit + '吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if (this.ontype == '1') {
information.editList({
...row,
publishStatus: e
}).then(res => {
console.error(res)
if (res.code == 200) {
this.$message({
message: tit + '成功',
type: 'success'
})
this.removeonaction('1')
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
} else if (this.ontype == '2') {
map1.editList({
...row,
publishStatus: e
}).then(res => {
console.error(res)
if (res.code == 200) {
this.$message({
message: tit + '成功',
type: 'success'
})
this.removeonaction('1')
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
} else if (this.ontype == '3') {
information.changedit({
...row,
publishStatus: e
}).then(res => {
console.error(res)
if (res.code == 200) {
this.$message({
message: tit + '成功',
type: 'success'
})
this.removeonaction('1')
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
}
})
},
|
9b392fc6
wesley88
1
|
529
|
details(row, e) {
|
98bc35a2
wesley88
1
|
530
|
this.issp = e
|
2506ad54
wesley88
2
|
531
532
533
534
535
536
537
538
539
|
this.detailsinfo = row
this.onaction = '3'
},
removeinfo(row, e) {
this.contractChangeReason = e
this.detailsinfo = row
this.onaction = '4'
},
async getAll() {
|
2bb042d7
wesley88
1
|
540
541
542
543
544
545
|
this.ishow = false
const loading = this.$loading({
target: document.querySelector('.boxqw'),
fullscreen: true
})
|
9b392fc6
wesley88
1
|
546
547
|
this.tableData = []
let list = []
|
2506ad54
wesley88
2
|
548
|
if (this.ontype == '1') {
|
0c5d2ce8
wesley88
1
|
549
550
|
const res = await getResourceStrategy({
...this.pagequery,
|
a182f238
wesley88
1
|
551
|
resourcesId: 'sp',
|
9b392fc6
wesley88
1
|
552
553
|
shopName: this.name,
publishStatus: '1'
|
0c5d2ce8
wesley88
1
|
554
555
|
})
let c1 = []
|
548bfd9e
wesley88
1
|
556
557
|
for (let index = 0; index < res.data.length; index++) {
const element = res.data[index];
|
0c5d2ce8
wesley88
1
|
558
|
if (element.cereBasicInformationShop.id) {
|
0c5d2ce8
wesley88
1
|
559
|
for (let i = 0; i < element.cereRentalPolicies.length; i++) {
|
d64cd58f
wesley88
上传验收小程序
|
560
|
var element1 = element.cereRentalPolicies[i];
|
9b392fc6
wesley88
1
|
561
|
|
d64cd58f
wesley88
上传验收小程序
|
562
563
564
|
var obj = {
cereBasicInformationShop: element.cereBasicInformationShop,
num: element.cereRentalPolicies.length,
|
60cd6339
杨鑫
'最新'
|
565
|
shopinfo: element1,
|
2bb042d7
wesley88
1
|
566
|
typeid:'sp'+element.cereBasicInformationShop.id,
|
d64cd58f
wesley88
上传验收小程序
|
567
568
|
};
c1.push(obj);
|
0c5d2ce8
wesley88
1
|
569
|
}
|
0c5d2ce8
wesley88
1
|
570
571
|
}
}
|
9b392fc6
wesley88
1
|
572
573
|
list = c1
// 已审核
|
4dac8c0b
wesley88
1
|
574
575
576
577
578
579
|
// const res1 = await getResourceStrategy({
// ...this.pagequery,
// resourcesId: 'sp',
// shopName: this.name,
// publishStatus: '2',
// })
|
9b392fc6
wesley88
1
|
580
|
let c2 = []
|
4dac8c0b
wesley88
1
|
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
|
// for (let index = 0; index < res1.data.length; index++) {
// const element = res1.data[index];
// if (element.cereBasicInformationShop.id) {
// for (let i = 0; i < element.cereRentalPolicies.length; i++) {
// var element1 = element.cereRentalPolicies[i];
// var obj = {
// cereBasicInformationShop: element.cereBasicInformationShop,
// num: element.cereRentalPolicies.length,
// shopinfo: element1,
// typeid:'sp'+element.cereBasicInformationShop.id
// };
// c2.push(obj);
// }
// }
// }
|
9b392fc6
wesley88
1
|
597
598
599
|
list = [...list, ...c2]
this.tableData = list
console.log(this.tableData);
|
2506ad54
wesley88
2
|
600
|
} else if (this.ontype == '2') {
|
0c5d2ce8
wesley88
1
|
601
602
|
const res = await getResourceStrategy({
...this.pagequery,
|
a182f238
wesley88
1
|
603
|
resourcesId: 'gg',
|
9b392fc6
wesley88
1
|
604
605
|
advertisingName: this.name,
publishStatus: '1'
|
0c5d2ce8
wesley88
1
|
606
|
})
|
a182f238
wesley88
1
|
607
608
609
610
611
612
|
let c1 = []
for (let index = 0; index < res.data.length; index++) {
const element = res.data[index];
if (element.cereAdvertisingInformation.id) {
for (let i = 0; i < element.cereRentalPolicies.length; i++) {
var element1 = element.cereRentalPolicies[i];
|
9b392fc6
wesley88
1
|
613
|
|
a182f238
wesley88
1
|
614
615
616
|
var obj = {
cereAdvertisingInformation: element.cereAdvertisingInformation,
num: element.cereRentalPolicies.length,
|
60cd6339
杨鑫
'最新'
|
617
618
|
shopinfo: element1,
typeid:'gg'+element.cereAdvertisingInformation.id
|
a182f238
wesley88
1
|
619
620
621
622
623
|
};
c1.push(obj);
}
}
}
|
9b392fc6
wesley88
1
|
624
625
626
|
list = c1
// 已审核
|
4dac8c0b
wesley88
1
|
627
628
629
630
631
632
|
// const res1 = await getResourceStrategy({
// ...this.pagequery,
// resourcesId: 'gg',
// advertisingName: this.name,
// publishStatus: '2',
// })
|
9b392fc6
wesley88
1
|
633
|
let c2 = []
|
4dac8c0b
wesley88
1
|
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
|
// for (let index = 0; index < res1.data.length; index++) {
// const element = res1.data[index];
// if (element.cereAdvertisingInformation.id) {
// for (let i = 0; i < element.cereRentalPolicies.length; i++) {
// var element1 = element.cereRentalPolicies[i];
// var obj = {
// cereAdvertisingInformation: element.cereAdvertisingInformation,
// num: element.cereRentalPolicies.length,
// shopinfo: element1,
// typeid:'gg'+element.cereAdvertisingInformation.id
// };
// c2.push(obj);
// }
// }
// }
|
9b392fc6
wesley88
1
|
650
651
652
|
list = [...list, ...c2]
this.tableData = list
console.log(this.tableData);
|
2506ad54
wesley88
2
|
653
|
} else if (this.ontype == '3') {
|
0c5d2ce8
wesley88
1
|
654
655
|
const res = await getResourceStrategy({
...this.pagequery,
|
a182f238
wesley88
1
|
656
|
resourcesId: 'cd',
|
9b392fc6
wesley88
1
|
657
658
|
venueName:this.name,
publishStatus: '1'
|
0c5d2ce8
wesley88
1
|
659
|
})
|
a182f238
wesley88
1
|
660
661
662
663
664
665
|
let c1 = []
for (let index = 0; index < res.data.length; index++) {
const element = res.data[index];
if (element.cereBasicInformationVenue.id) {
for (let i = 0; i < element.cereRentalPolicies.length; i++) {
var element1 = element.cereRentalPolicies[i];
|
9b392fc6
wesley88
1
|
666
|
|
a182f238
wesley88
1
|
667
668
669
|
var obj = {
cereBasicInformationVenue: element.cereBasicInformationVenue,
num: element.cereRentalPolicies.length,
|
60cd6339
杨鑫
'最新'
|
670
671
|
shopinfo: element1,
typeid:'cd'+element.cereBasicInformationVenue.id
|
a182f238
wesley88
1
|
672
673
674
675
676
|
};
c1.push(obj);
}
}
}
|
9b392fc6
wesley88
1
|
677
678
|
list = c1
// 已审核
|
4dac8c0b
wesley88
1
|
679
680
681
682
683
684
|
// const res1 = await getResourceStrategy({
// ...this.pagequery,
// resourcesId: 'cd',
// venueName:this.name,
// publishStatus: '2'
// })
|
9b392fc6
wesley88
1
|
685
|
let c2 = []
|
4dac8c0b
wesley88
1
|
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
|
// for (let index = 0; index < res1.data.length; index++) {
// const element = res1.data[index];
// if (element.cereBasicInformationVenue.id) {
// for (let i = 0; i < element.cereRentalPolicies.length; i++) {
// var element1 = element.cereRentalPolicies[i];
// var obj = {
// cereBasicInformationVenue: element.cereBasicInformationVenue,
// num: element.cereRentalPolicies.length,
// shopinfo: element1,
// typeid:'cd'+element.cereBasicInformationVenue.id
// };
// c2.push(obj);
// }
// }
// }
|
9b392fc6
wesley88
1
|
702
703
|
list = [...list, ...c2]
this.tableData = list
|
2bb042d7
wesley88
1
|
704
|
|
9b392fc6
wesley88
1
|
705
|
console.log(this.tableData);
|
2506ad54
wesley88
2
|
706
|
}
|
2bb042d7
wesley88
1
|
707
708
709
710
711
|
setTimeout(() => {
this.ishow = true
loading.close();
this.$forceUpdate();
}, 100)
|
2506ad54
wesley88
2
|
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
|
},
removeonaction(e) {
console.error(e)
this.onaction = e
this.pagequery.pageNumber = 0
this.getAll()
},
handleCurrentChange(val) {
this.pagequery.pageNumber = val - 1
this.getAll()
},
handleSizeChange(val) {
this.pagequery.pageSize = val
},
// 查询按钮
async onSubmit() {
this.pagequery.pageNumber = 0
this.getAll()
},
//重置按钮
resetting() {
this.pagequery = {
pageNumber: 0,
pageSize: 10,
dataStatus: '1',
contractName: ''
},
this.getAll()
},
//删除
closemsg(item) {
const h = this.$createElement;
this.$msgbox({
title: '消息',
message: h('p', null, [
h('span', null, '是否删除 '),
]),
showCancelButton: true,
showClose: false,
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'oe-dialog-btn',
beforeClose: (action, instance, done) => {
if (action === 'confirm') {
if (this.ontype == '1') {
information.delList({
id: item.id
}).then(res => {
this.$message({
message: '删除成功',
type: 'success'
})
this.getAll()
done();
})
} else if (this.ontype == '2') {
map1.delList({
id: item.id
}).then(res => {
this.$message({
message: '删除成功',
type: 'success'
})
this.getAll()
done();
})
} else if (this.ontype == '3') {
information.changDel({
id: item.id
}).then(res => {
this.$message({
message: '删除成功',
type: 'success'
})
this.getAll()
done();
})
}
} else {
done();
}
}
})
},
//地图详细
HandMapItem(item) {
console.log(item)
// if (this.activeName == 'first') {
// this.editbgid = item
// this.restype = '商铺'
// this.showBian = true
// if (typeof this.editbgid.mapPunctuation == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapPunctuation)
// }
// } else if (this.activeName == 'second') {
// this.editbgid = item
// this.restype = '广告位'
// this.showBian = true
// if (item.advertisingType == '线上广告位') {
// this.leixing = true
// } else {
// this.leixing = false
// }
// if (typeof this.editbgid.mapMarker == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapMarker)
// }
// } else if (this.activeName == 'third') {
// this.editbgid = item
// this.restype = '场地'
// this.showBian = true
// if (typeof this.editbgid.mapMarker == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapMarker)
// }
// } else if (this.activeName == 'fourth') {
// }
},
}
}
</script>
<style scoped>
.el-table {
/* height: calc(100vh - 330px); */
}
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
}
.chengeXia {
border-bottom: 6px solid #3F9B6A;
padding-bottom: 4px;
color: #3F9B6A;
}
/* /deep/ .el-form-item__content {
line-height: 0;
} */
.tableBtn {
display: inline-block;
margin-right: 10px;
color: #ACACAC;
}
.formSearch {
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
}
.greens {
color: #3F9B6A;
}
/deep/ .el-table__row {
font-size: 14px;
color: #000000e6;
height: 42px;
}
.fenye {
margin-top: 20px;
display: flex;
justify-content: space-between;
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #3F9B6A;
}
.el-col {
border-radius: 4px;
}
.bg-purple-dark {
background: #99a9bf;
}
.bg-purple {
background: #d3dce6;
}
.bg-purple-light {
background: #e5e9f2;
}
.grid-content {
border-radius: 4px;
min-height: 36px;
}
.row-bg {
padding: 10px 0;
background-color: #f9fafc;
}
/deep/ .bg-purple[data-v-0e3fe4ec] {
background: #fff;
height: 50px;
}
/deep/ .bg-purple[data-v-3bebae82] {
background: #fff;
height: 50px;
}
::v-deep .bg-purple {
background: #fff;
height: 50px;
}
/deep/ .el-form--label-top .el-form-item__label {
padding: 0;
}
::v-deep .el-dialog__wrapper {
.el-dialog__header {
background-color: #fff;
}
}
.dialog-footer {
display: flex;
justify-content: flex-end;
border-top: solid rgba(209, 209, 209, 0.2) 2px;
padding-top: 20px;
}
.el-select-dropdown__item.selected {
color: #3F9B6A;
}
::v-deep .el-dialog__title {
color: #000;
}
::v-deep .el-dialog__wrapper {
.dialog_css {
margin-right: 12px;
margin-top: 61px !important;
}
.diaslog_zhong {
margin-left: 222px;
margin-top: 61px !important;
}
}
/deep/ .el-table_1_column_8 .hetong {
color: #7DBB9A;
text-decoration: underline;
}
/deep/ .first-column-bg {
background-color: #FAFAFA !important;
}
.el-table tr {
height: 56px;
}
::v-deep .table3 {
.el-table__empty-block {
display: none;
}
}
::v-deep .textarea {
width: 85%;
.el-textarea__inner {
width: 100%;
}
}
::v-deep .el-button--mini {
padding: 7px 10px;
}
::v-deep .pass_input {
width: 100%;
.el-input__inner {
border: none;
padding: 0;
}
}
::v-deep .pass_select {
width: 100%;
.el-input__inner {
border: none;
padding: 0;
}
.el-icon-arrow-up:before {
content: ''
}
}
/deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
background-color: #fff;
}
</style>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
padding: 0 0 !important;
}
::v-deep .buttonHover:hover {
color: #3f9b6a !important;
border-color: #c5e1d2 !important;
background-color: #ecf5f0 !important;
outline: none;
}
|
0c5d2ce8
wesley88
1
|
1055
1056
|
.el-dialog__header {
|
2506ad54
wesley88
2
|
1057
1058
1059
|
padding: 0 0 !important;
}
</style>
|