3f535f30
杨鑫
'初始'
|
1
2
|
<template>
<div style="background-color:#f7f7f7;padding:10px 10px;">
|
4373acf5
wesley88
1
|
3
|
<div class="zhuti" v-if="onaction == '1'">
|
3f535f30
杨鑫
'初始'
|
4
5
|
<div style="height:58px;line-height:58px;">
<div style="color:#0006"> <span>招商资源监测</span> <span style="padding:0 5px;">></span> <span
|
4373acf5
wesley88
1
|
6
|
style="color:#000000e6">资源地图</span></div>
|
3f535f30
杨鑫
'初始'
|
7
|
</div>
|
a182f238
wesley88
1
|
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<div class="formSearch">
<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>
<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>
</div>
|
4373acf5
wesley88
1
|
23
|
<!-- 线上 -->
|
3f535f30
杨鑫
'初始'
|
24
|
<div>
|
4373acf5
wesley88
1
|
25
26
27
28
29
|
<div style="margin-bottom: 20px;">
<el-button @click="removeonaction('2')" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
icon="el-icon-circle-plus-outline">新增</el-button>
<!-- <el-button @click="" style="background-color: #3F9B6A;color: #fff">批量导入</el-button> -->
</div>
|
3f535f30
杨鑫
'初始'
|
30
31
|
<!-- 地图 -->
<div style="display: flex;justify-content: space-between;margin-bottom: 20px;">
|
ab818baa
杨鑫
'1'
|
32
|
<div style="width: 100%;height: 400px; border: 1px solid #3F9B6A;position: relative;">
|
a182f238
wesley88
1
|
33
|
<mapchakannew :ontype="ontype" ref="mapchakannewrefs"></mapchakannew>
|
ab818baa
杨鑫
'1'
|
34
|
</div>
|
3f535f30
杨鑫
'初始'
|
35
|
</div>
|
4373acf5
wesley88
1
|
36
37
38
|
<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':''">商铺
|
ab818baa
杨鑫
'1'
|
39
|
</div>
|
4373acf5
wesley88
1
|
40
41
42
|
<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':''">场地
|
ab818baa
杨鑫
'1'
|
43
|
</div>
|
4373acf5
wesley88
1
|
44
45
46
|
</div>
</div>
<!-- 表格 -->
|
9b392fc6
wesley88
1
|
47
|
<el-table v-if="ontype=='1'" :data="tableData"
|
4373acf5
wesley88
1
|
48
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
a182f238
wesley88
1
|
49
|
<el-table-column label="序号" width="50">
|
4373acf5
wesley88
1
|
50
51
52
53
|
<template slot-scope="scope">
{{scope.$index +1 }}
</template>
</el-table-column>
|
a182f238
wesley88
1
|
54
55
56
57
58
|
<el-table-column label="商铺名称" prop="shopName" show-overflow-tooltip></el-table-column>
<el-table-column label="商铺类型" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.shopType=='1'?'移动铺位':scope.row.shopType=='2'?'固定铺位':'无'}}
</template>
|
4373acf5
wesley88
1
|
59
60
61
|
</el-table-column>
<el-table-column label="所属区域" prop="belongingRegion" show-overflow-tooltip>
</el-table-column>
|
9b392fc6
wesley88
1
|
62
|
<el-table-column prop="detailedLocation" width="180" label="详细地址" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
63
|
</el-table-column>
|
9b392fc6
wesley88
1
|
64
|
<el-table-column label="归属部门" prop="belongingDepartment" show-overflow-tooltip>
|
a182f238
wesley88
1
|
65
|
<template slot-scope="scope">
|
9b392fc6
wesley88
1
|
66
|
{{scope.row.belongingDepartment || '无'}}
|
a182f238
wesley88
1
|
67
|
</template>
|
4373acf5
wesley88
1
|
68
69
|
</el-table-column>
<el-table-column label="负责人" prop="head" show-overflow-tooltip>
|
a182f238
wesley88
1
|
70
71
72
|
<template slot-scope="scope">
{{scope.row.head || '无'}}
</template>
|
4373acf5
wesley88
1
|
73
|
</el-table-column>
|
3b97e418
wesley88
1
|
74
|
<el-table-column label="提交时间" prop="createDate"> </el-table-column>
|
4373acf5
wesley88
1
|
75
76
|
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
|
2210df30
wesley88
1
|
77
|
{{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'待审核':scope.row.publishStatus=='2'?'已发布':scope.row.publishStatus=='3'?'不通过':'-'}}
|
4373acf5
wesley88
1
|
78
79
|
</template>
</el-table-column>
|
a182f238
wesley88
1
|
80
|
<el-table-column label="操作" min-width="100" fixed="right">
|
4373acf5
wesley88
1
|
81
|
<template slot-scope="scope">
|
4373acf5
wesley88
1
|
82
|
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
9b392fc6
wesley88
1
|
83
84
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="removeinfo(scope.row,'编辑')">编辑
|
3f535f30
杨鑫
'初始'
|
85
|
</div>
|
9b392fc6
wesley88
1
|
86
87
88
89
90
91
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="closemsg(scope.row)">删除</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="opencl(scope.row,'sp')">发布</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='2'"
@click="removeinfozz(scope.row,'0','下架')">下架</div>
|
4373acf5
wesley88
1
|
92
93
94
|
</template>
</el-table-column>
</el-table>
|
9b392fc6
wesley88
1
|
95
|
<el-table v-if="ontype=='2'" :data="tableData"
|
4373acf5
wesley88
1
|
96
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
a182f238
wesley88
1
|
97
|
<el-table-column label="序号" width="50">
|
4373acf5
wesley88
1
|
98
99
100
101
|
<template slot-scope="scope">
{{scope.$index +1}}
</template>
</el-table-column>
|
9b392fc6
wesley88
1
|
102
|
<el-table-column label="广告位名称" prop="advertisingName" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
103
|
</el-table-column>
|
9b392fc6
wesley88
1
|
104
|
<el-table-column label="广告位类型" prop="advertisingType" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
105
|
</el-table-column>
|
9b392fc6
wesley88
1
|
106
|
<el-table-column label="创建人" prop="createUser"> </el-table-column>
|
3b97e418
wesley88
1
|
107
|
<el-table-column label="提交时间" prop="createDate"> </el-table-column>
|
9b392fc6
wesley88
1
|
108
|
<!-- <el-table-column prop="publishStatus" label="发布状态" >
|
4373acf5
wesley88
1
|
109
|
<template slot-scope="scope">
|
2210df30
wesley88
1
|
110
|
{{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'已发布':scope.row.publishStatus=='2'?'待发布':scope.row.publishStatus=='3'?'待审核':scope.row.publishStatus=='4'?'驳回':'-'}}
|
4373acf5
wesley88
1
|
111
112
|
</template>
</el-table-column>
|
a182f238
wesley88
1
|
113
|
<el-table-column prop="leaseExpirationDate" label="租赁到期时间" >
|
4373acf5
wesley88
1
|
114
|
</el-table-column>
|
d64cd58f
wesley88
上传验收小程序
|
115
|
<el-table-column label="操作" fixed="right">
|
4373acf5
wesley88
1
|
116
117
|
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
4373acf5
wesley88
1
|
118
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="removeinfo(scope.row,'编辑')">编辑
|
ab818baa
杨鑫
'1'
|
119
|
</div>
|
4373acf5
wesley88
1
|
120
121
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'"
|
0c5d2ce8
wesley88
1
|
122
|
@click="opencl(scope.row,'gg')">发布</div>
|
4373acf5
wesley88
1
|
123
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='1'"
|
0c5d2ce8
wesley88
1
|
124
|
@click="removeinfozz(scope.row,'2','下架')">下架</div>
|
4373acf5
wesley88
1
|
125
|
</template>
|
9b392fc6
wesley88
1
|
126
127
128
|
</el-table-column> -->
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
|
2210df30
wesley88
1
|
129
|
{{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'待审核':scope.row.publishStatus=='2'?'已发布':scope.row.publishStatus=='3'?'不通过':'-'}}
|
9b392fc6
wesley88
1
|
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
</template>
</el-table-column>
<el-table-column label="操作" min-width="100" fixed="right">
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="removeinfo(scope.row,'编辑')">编辑
</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="closemsg(scope.row)">删除</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="opencl(scope.row,'gg')">发布</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='2'"
@click="removeinfozz(scope.row,'0','下架')">下架</div>
</template>
|
4373acf5
wesley88
1
|
145
146
|
</el-table-column>
</el-table>
|
9b392fc6
wesley88
1
|
147
|
<el-table v-if="ontype=='3'" :data="tableData"
|
4373acf5
wesley88
1
|
148
|
:header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
|
a182f238
wesley88
1
|
149
|
<el-table-column label="序号" width="50">
|
4373acf5
wesley88
1
|
150
151
152
153
|
<template slot-scope="scope">
{{scope.$index +1}}
</template>
</el-table-column>
|
a182f238
wesley88
1
|
154
|
<el-table-column label="场地名称" prop="venueName" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
155
|
</el-table-column>
|
a182f238
wesley88
1
|
156
|
<el-table-column label="场地类型" prop="venueType" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
157
|
</el-table-column>
|
2210df30
wesley88
1
|
158
|
<el-table-column label="实际使用面积(元/m²)" prop="actualArea" show-overflow-tooltip>
|
0e7a57c2
杨鑫
'最新'
|
159
|
<template slot-scope="scope">
|
2210df30
wesley88
1
|
160
|
{{scope.row.actualArea}}元/m²
|
0e7a57c2
杨鑫
'最新'
|
161
|
</template>
|
4373acf5
wesley88
1
|
162
|
</el-table-column>
|
a182f238
wesley88
1
|
163
|
<el-table-column label="所属区域" prop="district" show-overflow-tooltip>
|
4373acf5
wesley88
1
|
164
|
</el-table-column>
|
1dbc0b2d
wesley88
1
|
165
166
|
<!-- <el-table-column label="详细位置" prop="detailedLocation" show-overflow-tooltip>
</el-table-column> -->
|
9b392fc6
wesley88
1
|
167
|
<!-- <el-table-column prop="publishStatus" label="发布状态">
|
4373acf5
wesley88
1
|
168
|
<template slot-scope="scope">
|
2210df30
wesley88
1
|
169
|
{{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'已发布':scope.row.publishStatus=='2'?'待发布':scope.row.publishStatus=='3'?'待审核':scope.row.publishStatus=='4'?'驳回':'-'}}
|
4373acf5
wesley88
1
|
170
171
|
</template>
</el-table-column>
|
a182f238
wesley88
1
|
172
|
<el-table-column label="操作" fixed="right">
|
4373acf5
wesley88
1
|
173
174
|
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
|
a182f238
wesley88
1
|
175
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="removeinfo(scope.row,'编辑')">编辑
|
ab818baa
杨鑫
'1'
|
176
|
</div>
|
a182f238
wesley88
1
|
177
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="closemsg(scope.row)">删除</div>
|
9b392fc6
wesley88
1
|
178
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0'" @click="opencl(scope.row,'cd')">发布</div>
|
4373acf5
wesley88
1
|
179
|
<div class="tableBtn greens" v-if="scope.row.publishStatus=='1'"
|
a182f238
wesley88
1
|
180
|
@click="removeinfozz(scope.row,'2','下架')">下架</div>
|
4373acf5
wesley88
1
|
181
|
</template>
|
9b392fc6
wesley88
1
|
182
183
184
|
</el-table-column> -->
<el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
<template slot-scope="scope">
|
2210df30
wesley88
1
|
185
|
{{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'待审核':scope.row.publishStatus=='2'?'已发布':scope.row.publishStatus=='3'?'不通过':'-'}}
|
9b392fc6
wesley88
1
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
</template>
</el-table-column>
<el-table-column label="操作" min-width="100" fixed="right">
<template slot-scope="scope">
<div @click="details(scope.row)" class="tableBtn greens">查看</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="removeinfo(scope.row,'编辑')">编辑
</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="closemsg(scope.row)">删除</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='0' || scope.row.publishStatus=='3'"
@click="opencl(scope.row,'cd')">发布</div>
<div class="tableBtn greens" v-if="scope.row.publishStatus=='2'"
@click="removeinfozz(scope.row,'0','下架')">下架</div>
</template>
|
4373acf5
wesley88
1
|
201
202
203
204
205
206
207
208
|
</el-table-column>
</el-table>
<div style="display: flex;justify-content: space-between;" class="bom">
<div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
<el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
|
ab818baa
杨鑫
'1'
|
209
|
</div>
|
ab818baa
杨鑫
'1'
|
210
|
|
ab818baa
杨鑫
'1'
|
211
|
</div>
|
8550d958
杨鑫
'最新'
|
212
|
|
4373acf5
wesley88
1
|
213
|
</div>
|
8550d958
杨鑫
'最新'
|
214
|
|
8550d958
杨鑫
'最新'
|
215
|
|
8550d958
杨鑫
'最新'
|
216
217
|
|
8550d958
杨鑫
'最新'
|
218
219
|
|
4373acf5
wesley88
1
|
220
221
|
<div class="zhuti" v-if="onaction == '2'">
<div style="height:58px;line-height:58px;">
|
9b392fc6
wesley88
1
|
222
223
224
|
<div style="color:#0006">
<span>{{ontype == '1'?'商铺基本信息':ontype == '2'?'广告位基本信息管理':ontype == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">新增</span></div>
|
4373acf5
wesley88
1
|
225
|
</div>
|
a182f238
wesley88
1
|
226
|
<div style="margin: 0 0;">
|
4373acf5
wesley88
1
|
227
228
|
<div style="display: flex;font-size: 14px">
<div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
|
8550d958
杨鑫
'最新'
|
229
|
</div>
|
4373acf5
wesley88
1
|
230
231
232
|
<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':''">场地
|
ab818baa
杨鑫
'1'
|
233
|
</div>
|
4373acf5
wesley88
1
|
234
235
236
237
238
239
|
</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;">
|
a182f238
wesley88
1
|
240
|
<addmap @removeonaction="removeonaction" type="all" :leixing="leixing"></addmap>
|
4373acf5
wesley88
1
|
241
242
243
244
|
</div>
<div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;">
<addcd @removeonaction="removeonaction"></addcd>
</div>
|
ab818baa
杨鑫
'1'
|
245
|
</div>
|
4373acf5
wesley88
1
|
246
247
|
<div class="zhuti" v-if="onaction == '3'">
<div style="height:58px;line-height:58px;">
|
9b392fc6
wesley88
1
|
248
249
250
|
<div style="color:#0006">
<span>{{ontype == '1'?'商铺基本信息':ontype == '2'?'广告位基本信息管理':ontype == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">查看</span></div>
|
4373acf5
wesley88
1
|
251
252
253
254
255
256
257
258
259
260
261
262
263
|
</div>
<div v-if="ontype == '1'">
<resourceCommodity :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity>
</div>
<div v-if="ontype == '2'">
<chakanmap :editbgid="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></chakanmap>
</div>
<div v-if="ontype == '3'">
<chakancd :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd>
</div>
</div>
<div class="zhuti" v-if="onaction == '4'">
<div style="height:58px;line-height:58px;">
|
9b392fc6
wesley88
1
|
264
265
266
|
<div style="color:#0006">
<span>{{ontype == '1'?'商铺基本信息':ontype == '2'?'广告位基本信息管理':ontype == '3'?'场地基本信息管理':'-' }}</span> <span
style="padding:0 5px;">></span> <span style="color:#000000e6">{{contractChangeReason}}</span></div>
|
4373acf5
wesley88
1
|
267
268
269
270
271
272
273
274
275
276
277
|
</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>
|
9b392fc6
wesley88
1
|
278
279
|
<el-dialog :visible.sync="addcl" title="选择策略" width="65%" append-to-body center :close-on-click-modal="false"
:close-on-press-escape="false" :show-close="false">
|
e75fe4fe
wesley88
2
|
280
|
<cl :type="ontype == '1'?'商铺':ontype == '2'?'广告位':ontype == '3'?'场地':'-'" :resourcesId="oncetype+oninfo.id" v-if="addcl" @minSev="minSev" @mingClose="mingClose"></cl>
|
4373acf5
wesley88
1
|
281
|
</el-dialog>
|
3f535f30
杨鑫
'初始'
|
282
|
</div>
|
4373acf5
wesley88
1
|
283
284
|
|
3f535f30
杨鑫
'初始'
|
285
286
287
288
|
</template>
<script>
import {
|
9b392fc6
wesley88
1
|
289
290
291
|
cereResourceStrategy,
editStatus,
cereBusinessOperationadd
|
4373acf5
wesley88
1
|
292
293
294
295
296
297
|
} from '../../api/newly.js'
import {
ceGetAll
} from '../../api/sam.js'
import * as information from '../../api/information';
import * as map1 from '../../api/map1';
|
3f535f30
杨鑫
'初始'
|
298
|
import {
|
4373acf5
wesley88
1
|
299
|
likeGet,
|
3f535f30
杨鑫
'初始'
|
300
|
} from '../../api/map1'
|
4373acf5
wesley88
1
|
301
302
303
304
305
306
|
import {
getAlls,
changAlls
} from '../../api/information';
import add from '../../components/add/addinformation'
import resourceCommodity from '../../components/resourceCommodity/index'
|
3f535f30
杨鑫
'初始'
|
307
|
import MapContainer from "@/components/MapContainer/MapContainer"
|
4373acf5
wesley88
1
|
308
309
310
311
|
import addmap from '../../components/add/addmap'
import addcd from '../../components/add/addcd'
import chakanmap from '../../components/chakan/map'
import chakancd from '../../components/chakan/cd'
|
9b392fc6
wesley88
1
|
312
313
|
import cl from '@/components/change/cl.vue'
import mapchakannew from '@/components/newmap/map'
|
3f535f30
杨鑫
'初始'
|
314
|
export default {
|
3f535f30
杨鑫
'初始'
|
315
316
|
data() {
return {
|
c3bca151
wesley88
1
|
317
|
oncetype:'',
|
9b392fc6
wesley88
1
|
318
|
name: '',
|
4373acf5
wesley88
1
|
319
320
321
322
323
324
325
326
327
328
329
330
|
oninfo: {},
celueData: [],
clData: [],
multipleSelection: [],
addcl: false,
leixing: true,
//传地图数据
parentMessage: [],
ontype: '1',
contractChangeReason: '',
detailsinfo: {},
pagequery: {
|
4373acf5
wesley88
1
|
331
|
pageNumber: 0,
|
3f535f30
杨鑫
'初始'
|
332
|
pageSize: 10,
|
3f535f30
杨鑫
'初始'
|
333
|
},
|
3f535f30
杨鑫
'初始'
|
334
|
tableData: [],
|
4373acf5
wesley88
1
|
335
336
337
|
total: 0,
onaction: '1',
formInline: {},
|
3f535f30
杨鑫
'初始'
|
338
339
340
341
|
pageindex: {
pageNumber: 1,
pageSize: 10,
},
|
3f535f30
杨鑫
'初始'
|
342
|
}
|
3f535f30
杨鑫
'初始'
|
343
|
},
|
ab818baa
杨鑫
'1'
|
344
|
components: {
|
a182f238
wesley88
1
|
345
|
mapchakannew,
|
9d8bcb26
wesley88
2
|
346
|
cl,
|
4373acf5
wesley88
1
|
347
348
349
350
|
chakancd,
addcd,
addmap,
chakanmap,
|
ab818baa
杨鑫
'1'
|
351
|
MapContainer,
|
4373acf5
wesley88
1
|
352
353
|
add,
resourceCommodity,
|
ab818baa
杨鑫
'1'
|
354
|
},
|
4373acf5
wesley88
1
|
355
356
|
created() {
this.getAll()
|
3f535f30
杨鑫
'初始'
|
357
|
},
|
3f535f30
杨鑫
'初始'
|
358
|
methods: {
|
9d8bcb26
wesley88
2
|
359
360
|
minSev(e) {
this.multipleSelection = e
|
4373acf5
wesley88
1
|
361
362
363
364
365
366
367
|
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 = {
|
9b392fc6
wesley88
1
|
368
|
resourcesId: this.oncetype + this.oninfo.id,
|
4373acf5
wesley88
1
|
369
|
rentalPoliciesIds: ids,
|
ab818baa
杨鑫
'1'
|
370
|
}
|
a4aeeb1e
杨鑫
'最新'
|
371
372
373
374
375
376
377
|
if(c1.rentalPoliciesIds.length==0){
this.$message({
message: '请选择策略进行绑定',
type: 'warning'
})
return
}
|
4373acf5
wesley88
1
|
378
379
380
381
382
383
384
385
|
console.error(c1)
cereResourceStrategy(c1).then(res => {
if (res.code == 200) {
this.addcl = false
this.$message({
message: '绑定成功',
type: 'success'
})
|
0c5d2ce8
wesley88
1
|
386
|
editStatus({
|
9b392fc6
wesley88
1
|
387
388
|
resourcesId: this.oncetype + this.oninfo.id,
publishStatus: '1'
|
0c5d2ce8
wesley88
1
|
389
390
391
|
}).then(res => {
this.onSubmit()
})
|
9b392fc6
wesley88
1
|
392
393
394
395
396
397
398
399
|
cereBusinessOperationadd({
type: '发布',
resourceId: this.oncetype + this.oninfo.id,
operator: localStorage.getItem('roleName'),
operationTime: this.gettime()
}).then(res => {
console.error(res)
})
|
4373acf5
wesley88
1
|
400
401
402
403
404
405
406
407
408
409
410
411
|
} else {
this.$message({
message: '绑定失败',
type: 'error'
})
}
})
},
mingClose() {
this.multipleSelection = []
this.addcl = false
},
|
9b392fc6
wesley88
1
|
412
|
async opencl(row, e) {
|
4373acf5
wesley88
1
|
413
414
|
this.oncetype = e
this.oninfo = row
|
9d8bcb26
wesley88
2
|
415
|
this.multipleSelection = []
|
4373acf5
wesley88
1
|
416
|
this.addcl = true
|
3f535f30
杨鑫
'初始'
|
417
|
},
|
4373acf5
wesley88
1
|
418
|
chenge(e) {
|
73ad29f2
wesley88
1
|
419
420
421
422
423
424
425
426
427
|
this.ontype = null
// 延迟一秒执行
setTimeout(() => {
this.ontype = e
this.pagequery.pageNumber = 0
this.getAll()
this.$forceUpdate();
}, 10)
|
4373acf5
wesley88
1
|
428
429
430
431
|
},
gettime() {
// 获取当前时间
let currentTime = new Date();
|
3f535f30
杨鑫
'初始'
|
432
|
|
4373acf5
wesley88
1
|
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
|
// 获取年份
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
|
3f535f30
杨鑫
'初始'
|
464
|
|
ab818baa
杨鑫
'1'
|
465
|
},
|
4373acf5
wesley88
1
|
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
|
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')
|
9b392fc6
wesley88
1
|
485
486
487
488
489
490
491
492
|
cereBusinessOperationadd({
type: tit,
resourceId: 'sp' + row.id,
operator: localStorage.getItem('roleName'),
operationTime: that.gettime()
}).then(res => {
console.error(res)
})
|
4373acf5
wesley88
1
|
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
|
} 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')
|
9b392fc6
wesley88
1
|
512
513
514
515
516
517
518
519
|
cereBusinessOperationadd({
type: tit,
resourceId: 'gg' + row.id,
operator: localStorage.getItem('roleName'),
operationTime: that.gettime()
}).then(res => {
console.error(res)
})
|
4373acf5
wesley88
1
|
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
|
} 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')
|
9b392fc6
wesley88
1
|
539
540
541
542
543
544
545
546
|
cereBusinessOperationadd({
type: tit,
resourceId: 'cd' + row.id,
operator: localStorage.getItem('roleName'),
operationTime: that.gettime()
}).then(res => {
console.error(res)
})
|
4373acf5
wesley88
1
|
547
548
549
550
551
552
553
|
} else {
this.$message({
message: res.msg,
type: 'error'
})
}
})
|
ab818baa
杨鑫
'1'
|
554
|
}
|
4373acf5
wesley88
1
|
555
556
|
})
|
ab818baa
杨鑫
'1'
|
557
|
},
|
4373acf5
wesley88
1
|
558
559
560
561
562
563
564
565
566
567
568
|
details(row) {
this.detailsinfo = row
this.onaction = '3'
},
removeinfo(row, e) {
this.contractChangeReason = e
this.detailsinfo = row
this.onaction = '4'
},
async getAll() {
if (this.ontype == '1') {
|
9b392fc6
wesley88
1
|
569
570
571
572
|
const res = await getAlls({
...this.pagequery,
shopName: this.name
})
|
ab818baa
杨鑫
'1'
|
573
|
this.tableData = res.data.content
|
4373acf5
wesley88
1
|
574
575
|
this.total = res.data.totalElements
} else if (this.ontype == '2') {
|
9b392fc6
wesley88
1
|
576
577
578
579
|
const res = await likeGet({
...this.pagequery,
advertisingName: this.name
})
|
ab818baa
杨鑫
'1'
|
580
|
this.tableData = res.data.content
|
4373acf5
wesley88
1
|
581
582
|
this.total = res.data.totalElements
} else if (this.ontype == '3') {
|
9b392fc6
wesley88
1
|
583
584
585
586
|
const res = await changAlls({
...this.pagequery,
venueName: this.name
})
|
ab818baa
杨鑫
'1'
|
587
|
this.tableData = res.data.content
|
4373acf5
wesley88
1
|
588
|
this.total = res.data.totalElements
|
ab818baa
杨鑫
'1'
|
589
|
}
|
a182f238
wesley88
1
|
590
591
592
|
// console.error(']]]]]]]]]')
// console.error(this.tableData)
this.$refs.mapchakannewrefs.initMap(this.tableData)
|
3f535f30
杨鑫
'初始'
|
593
|
|
4373acf5
wesley88
1
|
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
|
},
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,
|
4373acf5
wesley88
1
|
618
|
},
|
a182f238
wesley88
1
|
619
|
this.name = ''
|
9b392fc6
wesley88
1
|
620
|
this.getAll()
|
4373acf5
wesley88
1
|
621
|
},
|
ab818baa
杨鑫
'1'
|
622
|
//删除
|
4373acf5
wesley88
1
|
623
|
closemsg(item) {
|
ab818baa
杨鑫
'1'
|
624
625
626
627
628
629
630
631
632
633
634
635
636
|
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') {
|
4373acf5
wesley88
1
|
637
638
|
if (this.ontype == '1') {
information.delList({
|
ab818baa
杨鑫
'1'
|
639
640
|
id: item.id
}).then(res => {
|
4373acf5
wesley88
1
|
641
642
643
|
this.$message({
message: '删除成功',
type: 'success'
|
3f535f30
杨鑫
'初始'
|
644
|
})
|
4373acf5
wesley88
1
|
645
646
|
this.getAll()
done();
|
ab818baa
杨鑫
'1'
|
647
|
})
|
4373acf5
wesley88
1
|
648
649
|
} else if (this.ontype == '2') {
map1.delList({
|
ab818baa
杨鑫
'1'
|
650
651
|
id: item.id
}).then(res => {
|
4373acf5
wesley88
1
|
652
653
654
|
this.$message({
message: '删除成功',
type: 'success'
|
3f535f30
杨鑫
'初始'
|
655
|
})
|
4373acf5
wesley88
1
|
656
657
|
this.getAll()
done();
|
ab818baa
杨鑫
'1'
|
658
|
})
|
4373acf5
wesley88
1
|
659
660
|
} else if (this.ontype == '3') {
information.changDel({
|
ab818baa
杨鑫
'1'
|
661
662
|
id: item.id
}).then(res => {
|
4373acf5
wesley88
1
|
663
664
665
|
this.$message({
message: '删除成功',
type: 'success'
|
3f535f30
杨鑫
'初始'
|
666
|
})
|
4373acf5
wesley88
1
|
667
668
|
this.getAll()
done();
|
ab818baa
杨鑫
'1'
|
669
|
})
|
ab818baa
杨鑫
'1'
|
670
|
}
|
ab818baa
杨鑫
'1'
|
671
672
673
674
675
|
} else {
done();
}
}
})
|
3f535f30
杨鑫
'初始'
|
676
677
|
},
//地图详细
|
ab818baa
杨鑫
'1'
|
678
679
680
681
|
HandMapItem(item) {
console.log(item)
|
4373acf5
wesley88
1
|
682
683
684
|
// if (this.activeName == 'first') {
// this.editbgid = item
// this.restype = '商铺'
|
ab818baa
杨鑫
'1'
|
685
|
|
4373acf5
wesley88
1
|
686
687
688
689
|
// this.showBian = true
// if (typeof this.editbgid.mapPunctuation == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapPunctuation)
// }
|
ab818baa
杨鑫
'1'
|
690
|
|
4373acf5
wesley88
1
|
691
692
693
|
// } else if (this.activeName == 'second') {
// this.editbgid = item
// this.restype = '广告位'
|
ab818baa
杨鑫
'1'
|
694
|
|
4373acf5
wesley88
1
|
695
696
697
698
699
700
|
// this.showBian = true
// if (item.advertisingType == '线上广告位') {
// this.leixing = true
// } else {
// this.leixing = false
// }
|
ab818baa
杨鑫
'1'
|
701
|
|
4373acf5
wesley88
1
|
702
703
704
705
706
707
|
// if (typeof this.editbgid.mapMarker == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapMarker)
// }
// } else if (this.activeName == 'third') {
// this.editbgid = item
// this.restype = '场地'
|
ab818baa
杨鑫
'1'
|
708
|
|
4373acf5
wesley88
1
|
709
710
711
712
713
|
// this.showBian = true
// if (typeof this.editbgid.mapMarker == 'string') {
// this.parentMessage = JSON.parse(this.editbgid.mapMarker)
// }
// } else if (this.activeName == 'fourth') {
|
ab818baa
杨鑫
'1'
|
714
|
|
4373acf5
wesley88
1
|
715
|
// }
|
ab818baa
杨鑫
'1'
|
716
717
718
|
},
|
3f535f30
杨鑫
'初始'
|
719
|
}
|
4373acf5
wesley88
1
|
720
|
|
3f535f30
杨鑫
'初始'
|
721
722
|
}
</script>
|
d64cd58f
wesley88
上传验收小程序
|
723
|
<style lang="scss" scoped>
|
a182f238
wesley88
1
|
724
725
726
727
728
729
|
.formSearch {
display: flex;
width: 100%;
font-size: 14px;
justify-content: space-between;
}
|
9b392fc6
wesley88
1
|
730
|
|
3f535f30
杨鑫
'初始'
|
731
732
733
734
735
736
737
|
.zhuti {
padding: 0 20px 20px 20px;
min-height: calc(100vh - 50px - 20px);
background-color: #Fff;
}
|
4373acf5
wesley88
1
|
738
739
740
741
|
.chengeXia {
border-bottom: 6px solid #3F9B6A;
padding-bottom: 4px;
color: #3F9B6A;
|
3f535f30
杨鑫
'初始'
|
742
|
}
|
9b392fc6
wesley88
1
|
743
|
|
3f535f30
杨鑫
'初始'
|
744
745
746
|
.tableBtn {
display: inline-block;
margin-right: 10px;
|
d64cd58f
wesley88
上传验收小程序
|
747
|
cursor: pointer;
|
ab818baa
杨鑫
'1'
|
748
|
}
|
9b392fc6
wesley88
1
|
749
|
|
a182f238
wesley88
1
|
750
751
752
|
::v-deep .el-dialog__body {
padding: 0 0 !important;
}
|
9b392fc6
wesley88
1
|
753
754
|
.el-dialog__header {
|
a182f238
wesley88
1
|
755
756
757
|
padding: 0;
display: none;
}
|
3f535f30
杨鑫
'初始'
|
758
|
</style>
|