Blame view

yanshouban/src/views/detect/map.vue 53.2 KB
6ee6b0b7   杨鑫   '最新'
1
2
3
4
5
6
7
8
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
      <div class="zhuti" v-if="ggXin && detbox">
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>招商资源监测</span> <span style="padding:0 5px;">></span> <span
              style="color:#000000e6">广告位基本信息管理</span></div>
        </div>
        <div style="display: flex;font-size: 14px">
ab818baa   杨鑫   '1'
9
          <div style="margin-right: 4px;cursor: pointer;" @click="chenge(1)" :class="leixing?'chengeXia':''">线上</div>
6ee6b0b7   杨鑫   '最新'
10
          ({{xsNum}}个广告位)
ab818baa   杨鑫   '1'
11
12
          <div style="margin-left: 20px;margin-right: 4px;cursor: pointer;" @click="chenge(2)"
            :class="leixing?'':'chengeXia'">实体</div>({{xxNum}}个广告位)
6ee6b0b7   杨鑫   '最新'
13
14
15
16
17
18
        </div>
        <!-- 线上 -->
        <div>
          <!-- 搜索 -->
          <div class="formSearch">
            <el-form :inline="true" :model="formSel">
ab818baa   杨鑫   '1'
19
20
              <el-form-item label="所属端" prop="affiliation" v-if="leixing">
                <el-select v-model="formSel.affiliation" placeholder="请选择" style="width: 168px;margin-right: 15px">
6ee6b0b7   杨鑫   '最新'
21
22
23
24
                  <el-option label="游客小程序" value="游客小程序" />
                  <el-option label="商家客户端" value="商家客户端" />
                </el-select>
              </el-form-item>
ab818baa   杨鑫   '1'
25
              <el-form-item label="设备类型" prop="deviceType" v-if="leixing == false">
b12ba7ef   杨鑫   '最新'
26
27
28
                <el-input v-model="formSel.deviceType" placeholder="请输入" style="width: 168px;margin-right: 15px"
                  maxlength="200"></el-input>
  
6ee6b0b7   杨鑫   '最新'
29
              </el-form-item>
ab818baa   杨鑫   '1'
30
31
  
              <!-- <el-form-item label="创建时间" prop="createDate">
6ee6b0b7   杨鑫   '最新'
32
33
34
35
36
                <el-select v-model="formSel.createDate" placeholder="请选择"
                  style="width: 168px;margin-right: 15px">
                  <el-option label="2024.3.1" value="2024.3.1" />
                  <el-option label="2024.3.16" value="2024.3.16" />
                </el-select>
ab818baa   杨鑫   '1'
37
              </el-form-item> -->
6ee6b0b7   杨鑫   '最新'
38
  
6ee6b0b7   杨鑫   '最新'
39
40
            </el-form>
            <div>
ab818baa   杨鑫   '1'
41
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">查询
6ee6b0b7   杨鑫   '最新'
42
              </el-button>
ab818baa   杨鑫   '1'
43
              <el-button @click="resetting" class="buttonHover"
6ee6b0b7   杨鑫   '最新'
44
45
46
47
48
                style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">重置
              </el-button>
            </div>
          </div>
          <div style="margin-bottom:20px;">
ab818baa   杨鑫   '1'
49
50
            <el-button @click="addbuss" style="background-color: #3F9B6A;color: #fff;padding:8px 15px;"
              icon="el-icon-circle-plus-outline">新增
6ee6b0b7   杨鑫   '最新'
51
52
53
54
55
            </el-button>
          </div>
          <!-- 表格 -->
  
          <el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
ab818baa   杨鑫   '1'
56
57
58
59
60
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}" tooltip-effect="dark custom-tooltip-effect">
            <el-table-column label="序号" min-width="80">
              <template slot-scope="scope">
                {{scope.$index +1 }}
              </template>
6ee6b0b7   杨鑫   '最新'
61
            </el-table-column>
ab818baa   杨鑫   '1'
62
            <el-table-column label="广告位名称" prop="advertisingName" min-width="150" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
63
            </el-table-column>
ab818baa   杨鑫   '1'
64
            <el-table-column label="广告位类型" prop="advertisingType" min-width="120" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
65
            </el-table-column>
ab818baa   杨鑫   '1'
66
            <el-table-column label="所属端" prop="affiliation" min-width="120" v-if="leixing" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
67
            </el-table-column>
ab818baa   杨鑫   '1'
68
            <el-table-column label="详细地址" prop="detailedLocation" min-width="200" v-if="leixing == false" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
69
            </el-table-column>
ab818baa   杨鑫   '1'
70
            <el-table-column label="设备类型" prop="deviceType" min-width="200" v-if="leixing == false" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
71
            </el-table-column>
b12ba7ef   杨鑫   '最新'
72
            <el-table-column label="设备大小" prop="equipmentSize" min-width="200" v-if="leixing == false">
6ee6b0b7   杨鑫   '最新'
73
            </el-table-column>
b12ba7ef   杨鑫   '最新'
74
            <el-table-column label="广告位编号" prop="advertisingSpaceNumber" min-width="120" v-if="leixing == false" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
75
            </el-table-column>
ab818baa   杨鑫   '1'
76
            <el-table-column label="轮播顺序" prop="rotationOrder" min-width="80" v-if="leixing">
6ee6b0b7   杨鑫   '最新'
77
78
79
80
  
            </el-table-column>
            <el-table-column label="广告尺寸" prop="dimensions" min-width="200" v-if="leixing == false">
            </el-table-column>
ab818baa   杨鑫   '1'
81
            <el-table-column label="广告材质" prop="advertisingMaterial" min-width="120" v-if="leixing == false">
6ee6b0b7   杨鑫   '最新'
82
            </el-table-column>
ab818baa   杨鑫   '1'
83
            <el-table-column label="可上传大小" prop="size" min-width="120" v-if="leixing">
6ee6b0b7   杨鑫   '最新'
84
85
86
87
88
89
90
91
92
  
            </el-table-column>
            <el-table-column label="上传格式" prop="uploadFormat" min-width="150" v-if="leixing">
            </el-table-column>
            <!-- <el-table-column prop="createUser" label="创建人" min-width="120">
            </el-table-column> -->
            <el-table-column prop="rentalStatus" label="租赁状态" min-width="120">
              <template slot-scope="scope">
                {{scope.row.rentalStatus=='0'?'待租':'已租'}}
ab818baa   杨鑫   '1'
93
              </template>
6ee6b0b7   杨鑫   '最新'
94
95
96
97
            </el-table-column>
            <el-table-column prop="publishStatus" label="发布状态" min-width="120">
              <template slot-scope="scope">
                {{scope.row.rentalStatus=='0'?'待发布':scope.row.rentalStatus=='1'?'待审核':'已审核'}}
ab818baa   杨鑫   '1'
98
              </template>
6ee6b0b7   杨鑫   '最新'
99
            </el-table-column>
ab818baa   杨鑫   '1'
100
            <el-table-column prop="leaseExpirationDate" label="租赁到期时间" min-width="150" show-overflow-tooltip>
6ee6b0b7   杨鑫   '最新'
101
102
            </el-table-column>
  
ab818baa   杨鑫   '1'
103
            <el-table-column label="操作" min-width="160" fixed="right">
6ee6b0b7   杨鑫   '最新'
104
              <template slot-scope="scope">
ab818baa   杨鑫   '1'
105
106
                <div @click="handleEditForm(scope.row)" class="tableBtn greens">查看</div>
                <div class="tableBtn greens" @click="bianjilist(scope.row)">编辑</div>
6ee6b0b7   杨鑫   '最新'
107
108
109
110
111
                <div @click="handleDelete(scope.row)" class="tableBtn greens">删除</div>
              </template>
            </el-table-column>
          </el-table>
          <div class="fenye">
ab818baa   杨鑫   '1'
112
113
114
            <el-pagination :hide-on-single-page='flag' background small :current-page="currentPage"
              :page-sizes="[10, 20, 50, 100]" layout="prev,pager, next,total" :total="total"
              @size-change="handleSizeChange" @current-change="handleCurrentChange" />
6ee6b0b7   杨鑫   '最新'
115
116
          </div>
        </div>
ab818baa   杨鑫   '1'
117
118
119
120
121
122
      </div>
      <!-- 新增 ····························-->
      <div class="zhuti" v-if="ggXin == false">
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>广告位基本信息管理</span> <span style="padding:0 5px;">></span> <span
              style="color:#000000e6">新增</span></div>
6ee6b0b7   杨鑫   '最新'
123
        </div>
ab818baa   杨鑫   '1'
124
125
126
        <div style="margin-top: 30px;">
          <div class="titles">
            基础信息
6ee6b0b7   杨鑫   '最新'
127
          </div>
6ee6b0b7   杨鑫   '最新'
128
  
ab818baa   杨鑫   '1'
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
          <div style="padding: 20px;">
            <el-form :model="formInline" :rules="leixing?rules:rulesSt" ref="formInline" label-width="100px"
              class="demo-ruleForm">
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="广告位名称" prop="advertisingName">
                    <el-input v-model="formInline.advertisingName" placeholder="请输入" style="margin-top:5px;"
                      maxlength="50"></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="广告位编号" prop="advertisingSpaceNumber">
                    <el-input v-model="formInline.advertisingSpaceNumber" disabled placeholder="将根据类型自动为资源编号"
                      style="margin-top:5px;"></el-input>
                  </el-form-item>
                </el-col>
  
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="广告位类型" prop="advertisingType">
                    <el-select v-model="formInline.advertisingType" placeholder="请选择" style="margin-top:5px;width: 100%;">
                      <el-option label="线上广告位" value="线上广告位" v-if='leixing'></el-option>
                      <el-option label="实体广告位" value="实体广告位" v-else></el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
157
                  <el-form-item label="所属端" prop="affiliation" v-if='leixing'>
ab818baa   杨鑫   '1'
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
                    <el-select v-model="formInline.affiliation" placeholder="请选择" style="margin-top:5px;width: 100%;">
                      <el-option label="游客小程序" value="游客小程序"></el-option>
                      <el-option label="商家客户端" value="商家客户端"></el-option>
                    </el-select>
                  </el-form-item>
                  <el-form-item label="详细位置" prop="detailedLocation" v-if='leixing == false'>
                    <el-input v-model="formInline.detailedLocation" placeholder="请输入" style="margin-top:5px;"
                      maxlength="200"></el-input>
                    </el-select>
                  </el-form-item>
                </el-col>
  
              </el-row>
              <el-row :gutter="20">
                <el-col :span="24">
                  <el-form-item label="地图标点" prop="mapPunctuation" v-if='leixing == false'>
                    <div style="width: 100%;height: 300px;">
6ee6b0b7   杨鑫   '最新'
175
176
                      <map-mark :sendChildDate="getChildDate"></map-mark>
                    </div>
ab818baa   杨鑫   '1'
177
178
179
180
181
182
183
184
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="轮播顺序" prop="rotationOrder" v-if='leixing'>
                    <el-select v-model="formInline.rotationOrder" placeholder="请选择" style="margin-top:5px;width: 100%;">
                      <el-option label="1" value="1"></el-option>
6ee6b0b7   杨鑫   '最新'
185
186
                      <el-option label="2" value="2"></el-option>
                    </el-select>
ab818baa   杨鑫   '1'
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="广告尺寸" prop="dimensions" v-if='leixing'>
                    <el-input v-model="formInline.dimensions" disabled placeholder="宽:300px 长:400px"
                      style="margin-top:5px;"></el-input>
  
                  </el-form-item>
                </el-col>
  
              </el-row>
  
  
  
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="可上传大小" prop="size" v-if='leixing'>
                    <el-input v-model="formInline.size" disabled placeholder="100kb" style="margin-top:5px;"></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="上传格式" prop="uploadFormat" v-if='leixing'>
                    <el-input v-model="formInline.uploadFormat" disabled placeholder="JPG、PNG、MP4"
                      style="margin-top:5px;"></el-input>
                  </el-form-item>
                </el-col>
  
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="可上传大小" prop="size" v-if='leixing'>
                    <el-input v-model="formInline.size" disabled placeholder="100kb" style="margin-top:5px;"></el-input>
                  </el-form-item>
                  <el-form-item label="设备类型" prop="deviceType" v-if='leixing == false'>
                    <div style="display: flex;justify-content: space-between;">
b12ba7ef   杨鑫   '最新'
222
223
                      <el-input v-model="formInline.deviceType" placeholder="请输入" style="margin-top:5px;"
                        maxlength="200"></el-input>
ab818baa   杨鑫   '1'
224
225
226
227
228
                    </div>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="设备大小" prop="equipmentSize" v-if='leixing == false'>
b12ba7ef   杨鑫   '最新'
229
230
231
                    <el-input v-model="formInline.equipmentSize"  placeholder="请输入"   style="margin-top:5px;"
                      maxlength="200"></el-input>
                    <!-- <div style="display: flex;">
ab818baa   杨鑫   '1'
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
                      <div>
                        <span style="font-size: 14px;">长:</span>
                        <el-select v-model="formInline.equipmentSizeH" placeholder="请选择"
                          style="margin-top:5px;width: 90px;margin: 0 5px 0 0;">
                          <el-option label="10" value="10"></el-option>
                          <el-option label="20" value="20"></el-option>
                        </el-select>
                        <span style="font-size: 14px;margin-right:5px;">mm</span>
                      </div>
                      <div>
                        <span style="font-size: 14px;">宽:</span>
                        <el-select v-model="formInline.equipmentSizeK" placeholder="请选择"
                          style="margin-top:5px;width: 90px;margin: 0 5px 0 0;">
                          <el-option label="10" value="10"></el-option>
                          <el-option label="20" value="20"></el-option>
                        </el-select>
                        <span style="font-size: 14px;margin-right:5px;">mm</span>
                      </div>
                      <div>
                        <span style="font-size: 14px;">高:</span>
                        <el-select v-model="formInline.equipmentSizeG" placeholder="请选择"
                          style="margin-top:5px;width: 90px;margin: 0 5px 0 0;">
                          <el-option label="10" value="10"></el-option>
                          <el-option label="20" value="20"></el-option>
                        </el-select>
                        <span style="font-size: 14px;margin-right:5px;">mm</span>
                      </div>
b12ba7ef   杨鑫   '最新'
259
                    </div> -->
ab818baa   杨鑫   '1'
260
261
262
263
264
265
266
267
                  </el-form-item>
                </el-col>
  
              </el-row>
  
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="广告尺寸" v-if='leixing == false'>
b12ba7ef   杨鑫   '最新'
268
269
270
                    <el-input v-model="formInline.dimensions"  placeholder="请输入"   style="margin-top:5px;"
                      maxlength="200"></el-input>
                    <!-- <div style="display: flex;">
ab818baa   杨鑫   '1'
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
                      <div>
                        <span style="font-size: 14px;">长:</span>
                        <el-select v-model="formInline.dimensionsH" placeholder="请选择"
                          style="margin-top:5px;width: 90px;margin: 0 5px 0 0;">
                          <el-option label="10" value="10"></el-option>
                          <el-option label="20" value="20"></el-option>
                        </el-select>
                        <span style="font-size: 14px;margin-right:5px;">mm</span>
                      </div>
                      <div>
                        <span style="font-size: 14px;">宽:</span>
                        <el-select v-model="formInline.dimensionsK" placeholder="请选择"
                          style="margin-top:5px;width: 90px;margin: 0 5px 0 0;">
                          <el-option label="10" value="10"></el-option>
                          <el-option label="20" value="20"></el-option>
                        </el-select>
                        <span style="font-size: 14px;margin-right:5px;">mm</span>
6ee6b0b7   杨鑫   '最新'
288
                      </div>
b12ba7ef   杨鑫   '最新'
289
                    </div> -->
ab818baa   杨鑫   '1'
290
291
292
293
294
295
                  </el-form-item>
  
                </el-col>
                <el-col :span="12">
                  <el-form-item label="广告材质" prop="advertisingMaterial" v-if='leixing == false'>
                    <div style="display: flex;justify-content: space-between;">
b12ba7ef   杨鑫   '最新'
296
297
298
                      <el-input v-model="formInline.advertisingMaterial"  style="margin-top:5px;" placeholder="请输入"
                        maxlength="200" ></el-input>
                      <!-- <el-select v-model="formInline.advertisingMaterial" placeholder="请选择"
ab818baa   杨鑫   '1'
299
300
301
                        style="margin-top:5px;width: 92%">
                        <el-option label="亚克力" value="亚克力"></el-option>
                        <el-option label="玻璃" value="玻璃"></el-option>
b12ba7ef   杨鑫   '最新'
302
                      </el-select> -->
ab818baa   杨鑫   '1'
303
304
305
306
307
308
309
310
311
312
313
314
                    </div>
                  </el-form-item>
                </el-col>
  
              </el-row>
  
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="位置示意图" prop="locationDiagram">
                    <upimg v-model="formInline.locationDiagram" :limit="3"></upimg>
                  </el-form-item>
                </el-col>
6ee6b0b7   杨鑫   '最新'
315
  
6ee6b0b7   杨鑫   '最新'
316
  
ab818baa   杨鑫   '1'
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
              </el-row>
  
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item>
                    <div style="">
                      <el-button @click="addpush('formInline')"
                        style="background-color: #3F9B6A;color: #fff;">确定</el-button>
                      <el-button @click="colse(1)" class="buttonHover"
                        style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
                    </div>
                  </el-form-item>
                </el-col>
              </el-row>
            </el-form>
6ee6b0b7   杨鑫   '最新'
332
          </div>
ab818baa   杨鑫   '1'
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
        </div>
      </div>
  
      <!-- 查看········································· -->
      <div class="zhuti" v-if='detbox == false'>
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>广告位基本信息管理</span> <span style="padding:0 5px;">></span> <span
              style="color:#000000e6">{{edit?'查看':'编辑'}}</span></div>
        </div>
        <el-tabs v-model="xiangTab">
          <el-tab-pane label="基础信息" name="first">
            <div style="margin-top: 30px;" class="editcss">
              <div class="titles">
                基础信息
              </div>
              <div style="padding: 20px;">
                <el-form :model="editbgid" :rules="leixing?rules:rulesSt" ref="formInline" label-width="100px"
                  class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
353
                      <el-form-item label="广告位名称" prop="advertisingName">
ab818baa   杨鑫   '1'
354
355
356
                        <div v-if="edit" class="duiqi">{{editbgid.advertisingName}}</div>
                        <el-input v-model="editbgid.advertisingName" placeholder="请输入" style="margin-top: 5px;" maxlength="50"
                          v-else></el-input>
6ee6b0b7   杨鑫   '最新'
357
                      </el-form-item>
ab818baa   杨鑫   '1'
358
359
                    </el-col>
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
360
                      <el-form-item label="广告位编号" prop="advertisingSpaceNumber">
ab818baa   杨鑫   '1'
361
                        <div class="duiqi">{{editbgid.advertisingSpaceNumber}}</div>
6ee6b0b7   杨鑫   '最新'
362
                      </el-form-item>
ab818baa   杨鑫   '1'
363
364
365
366
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
367
                      <el-form-item label="广告位类型" prop="advertisingType">
ab818baa   杨鑫   '1'
368
                        <div class="duiqi">{{editbgid.advertisingType}}</div>
6ee6b0b7   杨鑫   '最新'
369
370
                        </el-select>
                      </el-form-item>
ab818baa   杨鑫   '1'
371
372
373
374
375
376
                    </el-col>
                    <el-col :span="12">
                      <el-form-item label="所属端" prop="affiliation" v-if='leixing'>
                        <div class="duiqi" v-if="edit">{{editbgid.affiliation}}</div>
                        <el-select v-model="editbgid.affiliation" placeholder="请选择" style="margin-top:5px;width: 100%;"
                          v-else>
6ee6b0b7   杨鑫   '最新'
377
378
379
380
381
                          <el-option label="游客小程序" value="游客小程序"></el-option>
                          <el-option label="商家客户端" value="商家客户端"></el-option>
                        </el-select>
                      </el-form-item>
                      <el-form-item label="详细位置" prop="detailedLocation" v-if='leixing == false'>
ab818baa   杨鑫   '1'
382
383
384
                        <div class="duiqi" v-if="edit">{{editbgid.detailedLocation}}</div>
                        <el-input v-model="editbgid.detailedLocation" placeholder="请输入" style="margin-top:5px;" v-else
                          maxlength="200"></el-input>
6ee6b0b7   杨鑫   '最新'
385
386
                        </el-select>
                      </el-form-item>
ab818baa   杨鑫   '1'
387
388
389
390
391
                    </el-col>
                  </el-row>
  
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
392
                      <el-form-item label="轮播顺序" prop="rotationOrder" v-if='leixing'>
ab818baa   杨鑫   '1'
393
394
395
                        <div class="duiqi" v-if="edit">{{editbgid.rotationOrder}}</div>
                        <el-select v-model="editbgid.rotationOrder" placeholder="请选择" style="margin-top:5px;width: 100%;"
                          v-else>
6ee6b0b7   杨鑫   '最新'
396
397
398
                          <el-option label="1" value="1"></el-option>
                          <el-option label="2" value="2"></el-option>
                        </el-select>
6ee6b0b7   杨鑫   '最新'
399
  
6ee6b0b7   杨鑫   '最新'
400
                      </el-form-item>
ab818baa   杨鑫   '1'
401
402
                    </el-col>
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
403
                      <el-form-item label="广告尺寸" prop="dimensions" v-if='leixing'>
ab818baa   杨鑫   '1'
404
                        <div class="duiqi">{{editbgid.dimensions}}</div>
6ee6b0b7   杨鑫   '最新'
405
                      </el-form-item>
ab818baa   杨鑫   '1'
406
407
408
409
410
411
412
413
414
415
416
417
418
419
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="地图标点" prop="mapPunctuation" v-if='leixing == false'>
                        <div style="width: 100%;height: 300px;">
                          <MapXian :message="parentMessage" :edit='edit' :sendMap='getChildDate'></MapXian>
                        </div>
                      </el-form-item>
                    </el-col>
                  </el-row>
  
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
420
                      <el-form-item label="可上传大小" prop="size" v-if='leixing'>
ab818baa   杨鑫   '1'
421
                        <div class="duiqi">{{editbgid.size}}</div>
6ee6b0b7   杨鑫   '最新'
422
                      </el-form-item>
ab818baa   杨鑫   '1'
423
424
                    </el-col>
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
425
                      <el-form-item label="上传格式" prop="uploadFormat" v-if='leixing'>
ab818baa   杨鑫   '1'
426
                        <div class="duiqi">{{editbgid.uploadFormat}}</div>
6ee6b0b7   杨鑫   '最新'
427
                      </el-form-item>
ab818baa   杨鑫   '1'
428
429
430
431
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
432
                      <el-form-item label="设备类型" prop="deviceType" v-if='leixing == false'>
ab818baa   杨鑫   '1'
433
                        <div class="duiqi" v-if="edit">{{editbgid.deviceType}}</div>
b12ba7ef   杨鑫   '最新'
434
435
                        <el-input v-model="editbgid.deviceType"  style="margin-top:5px;"
                          maxlength="200" v-else></el-input>
6ee6b0b7   杨鑫   '最新'
436
  
ab818baa   杨鑫   '1'
437
438
439
                      </el-form-item>
                    </el-col>
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
440
                      <el-form-item label="设备大小" prop="equipmentSize" v-if='leixing == false'>
b12ba7ef   杨鑫   '最新'
441
442
443
444
                        <div class="duiqi" v-if="edit">{{editbgid.equipmentSize}}</div>
                        <el-input v-model="editbgid.equipmentSize"  style="margin-top:5px;"
                          maxlength="200" v-else></el-input>
                        <!-- <div style="display: flex;">
ab818baa   杨鑫   '1'
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
                          <div>
                            <span style="font-size: 14px;">长:</span>
                            <el-select v-model="editbgid.equipmentSizeH" placeholder="请选择"
                              style="margin-top:5px;width: 90px;margin: 0 5px 0 0;" :disabled="edit"
                              @change="handleChange('equipmentSizeH', $event)">
                              <el-option label="10" value="10"></el-option>
                              <el-option label="20" value="20"></el-option>
                            </el-select>
                            <span style="font-size: 14px;margin-right:5px;">mm</span>
                          </div>
                          <div>
                            <span style="font-size: 14px;">宽:</span>
                            <el-select v-model="editbgid.equipmentSizeK" placeholder="请选择"
                              style="margin-top:5px;width: 90px;margin: 0 5px 0 0;" :disabled="edit"
                              @change="handleChange('equipmentSizeK', $event)">
                              <el-option label="10" value="10"></el-option>
                              <el-option label="20" value="20"></el-option>
                            </el-select>
                            <span style="font-size: 14px;margin-right:5px;">mm</span>
                          </div>
                          <div>
                            <span style="font-size: 14px;">高:</span>
                            <el-select v-model="editbgid.equipmentSizeG" placeholder="请选择"
                              style="margin-top:5px;width: 90px;margin: 0 5px 0 0;" :disabled="edit"
                              @change="handleChange('equipmentSizeG', $event)">
                              <el-option label="10" value="10"></el-option>
                              <el-option label="20" value="20"></el-option>
                            </el-select>
                            <span style="font-size: 14px;margin-right:5px;">mm</span>
                          </div>
b12ba7ef   杨鑫   '最新'
475
                        </div> -->
ab818baa   杨鑫   '1'
476
  
6ee6b0b7   杨鑫   '最新'
477
                      </el-form-item>
ab818baa   杨鑫   '1'
478
479
480
481
482
483
                    </el-col>
                  </el-row>
  
                  <el-row :gutter="20">
                    <el-col :span="12">
                      <el-form-item label="广告尺寸" v-if='leixing == false'>
b12ba7ef   杨鑫   '最新'
484
485
486
487
                        <div class="duiqi" v-if="edit">{{editbgid.dimensions}}</div>
                        <el-input v-model="editbgid.dimensions"  style="margin-top:5px;"
                          maxlength="200" v-else></el-input>
                        <!-- <div style="display: flex;">
ab818baa   杨鑫   '1'
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
                          <div>
                            <span style="font-size: 14px;">长:</span>
                            <el-select v-model="editbgid.dimensionsH" placeholder="请选择"
                              style="margin-top:5px;width: 90px;margin: 0 5px 0 0;" :disabled="edit"
                              @change="handleChange('dimensionsH', $event)">
                              <el-option label="10" value="10"></el-option>
                              <el-option label="20" value="20"></el-option>
                            </el-select>
                            <span style="font-size: 14px;margin-right:5px;">mm</span>
                          </div>
                          <div>
                            <span style="font-size: 14px;">宽:</span>
                            <el-select v-model="editbgid.dimensionsK" placeholder="请选择"
                              style="margin-top:5px;width: 90px;margin: 0 5px 0 0;" :disabled="edit"
                              @change="handleChange('dimensionsK', $event)">
                              <el-option label="10" value="10"></el-option>
                              <el-option label="20" value="20"></el-option>
                            </el-select>
                            <span style="font-size: 14px;margin-right:5px;">mm</span>
                          </div>
b12ba7ef   杨鑫   '最新'
508
                        </div> -->
6ee6b0b7   杨鑫   '最新'
509
                      </el-form-item>
ab818baa   杨鑫   '1'
510
511
                    </el-col>
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
512
                      <el-form-item label="广告材质" prop="advertisingMaterial" v-if='leixing == false'>
ab818baa   杨鑫   '1'
513
514
                        <div v-if="edit"  class="duiqi">{{editbgid.advertisingMaterial}}</div>
                        <div style="display: flex;justify-content: space-between;" v-else>
b12ba7ef   杨鑫   '最新'
515
516
517
                          <el-input v-model="editbgid.advertisingMaterial"  style="margin-top:5px;"
                            maxlength="200" ></el-input>
                          <!-- <el-select v-model="editbgid.advertisingMaterial" placeholder="请选择"
ab818baa   杨鑫   '1'
518
                            style="margin-top:5px;width: 92%">
6ee6b0b7   杨鑫   '最新'
519
                            <el-option label="亚克力" value="亚克力"></el-option>
ab818baa   杨鑫   '1'
520
                            <el-option label="玻璃" value="玻璃"></el-option>
b12ba7ef   杨鑫   '最新'
521
                          </el-select> -->
6ee6b0b7   杨鑫   '最新'
522
523
                        </div>
                      </el-form-item>
ab818baa   杨鑫   '1'
524
525
526
527
528
                    </el-col>
                  </el-row>
  
                  <el-row :gutter="20">
                    <el-col :span="12">
6ee6b0b7   杨鑫   '最新'
529
530
531
532
                      <el-form-item label="位置示意图" prop="locationDiagram">
                        <upimg v-model="editbgid.locationDiagram" :limit="1" :fileSize="1" v-if="edit==false"></upimg>
                        <img :src="editbgid.locationDiagram" alt="" v-else style="width:140px;height:140px;">
                      </el-form-item>
ab818baa   杨鑫   '1'
533
                    </el-col>
6ee6b0b7   杨鑫   '最新'
534
  
ab818baa   杨鑫   '1'
535
                  </el-row>
6ee6b0b7   杨鑫   '最新'
536
  
6ee6b0b7   杨鑫   '最新'
537
  
6ee6b0b7   杨鑫   '最新'
538
  
ab818baa   杨鑫   '1'
539
540
541
542
                </el-form>
              </div>
            </div>
          </el-tab-pane>
a5801e96   杨鑫   '最新'
543
          <!-- <el-tab-pane label="招商方案信息" name="second" v-if="edit">
ab818baa   杨鑫   '1'
544
545
546
547
548
            <div style="margin-top: 30px;" class="editcss">
              <div class="titles">
                招商方案信息
              </div>
             </div>
a5801e96   杨鑫   '最新'
549
550
          </el-tab-pane> -->
          <el-tab-pane label="历史租赁信息" name="third" v-if="edit">
ab818baa   杨鑫   '1'
551
552
            <div style="margin-top: 30px;" class="editcss">
              <div class="titles">
a5801e96   杨鑫   '最新'
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
                历史租赁信息
              </div>
              <div style="margin:20px 0;">
                <el-table :data="lishiData"
                  :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"   tooltip-effect="dark custom-tooltip-effect">
             <el-table-column label="承租人" min-width="80" prop="tenantName">
  
                               </el-table-column>
                               <el-table-column label="租赁期限" prop="leaseStartDate" min-width="200" show-overflow-tooltip>
                               </el-table-column>
                               <el-table-column label="经营类型" prop="houseNumber" min-width="80" show-overflow-tooltip>
  
                               </el-table-column>
                               <el-table-column label="租金/周期" prop="shopName" min-width="250" show-overflow-tooltip>
             <template slot-scope="scope">
                        {{scope.row.contractAmount}}/{{scope.row.intendedLeaseTerm}}
  
                       </template>
                               </el-table-column>
                               <el-table-column label="当前状态" prop="belongingRegion" min-width="150" show-overflow-tooltip>
                               </el-table-column>
                  <!-- <el-table-column label="操作" min-width="160" fixed="right">
                    <template slot-scope="scope">
                      <div @click="handleEditForm(scope.row)" class="tableBtn greens">查看</div>
                    </template>
                  </el-table-column> -->
                </el-table>
ab818baa   杨鑫   '1'
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
              </div>
             </div>
          </el-tab-pane>
  
  
        </el-tabs>
  <el-row :gutter="20">
         <el-col :span="12">
           <div style="padding-left:160px;">
             <el-button @click="editpush()" style="background-color: #3F9B6A;color: #fff;"
               v-if="!edit">确定</el-button>
                 <el-button @click="colse(2)" class="buttonHover"
                                  style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
           </div>
         </el-col>
6ee6b0b7   杨鑫   '最新'
595
  
ab818baa   杨鑫   '1'
596
       </el-row>
6ee6b0b7   杨鑫   '最新'
597
      </div>
ab818baa   杨鑫   '1'
598
599
  
    </div>
6ee6b0b7   杨鑫   '最新'
600
601
602
603
604
605
606
607
608
609
610
611
  </template>
  
  <script>
    import {
      async
    } from 'q'
    import axios from 'axios'
    import {
      getAlls,
      addList,
      delList,
      likeGet,
a5801e96   杨鑫   '最新'
612
613
      editList,
      zulxin
6ee6b0b7   杨鑫   '最新'
614
615
616
617
618
619
620
    } from '../../api/map1'
    import MapMark from "@/components/MapContainer/MapMark";
    import MapXian from "@/components/MapContainer/MapXian";
    import upimg from "@/components/ImageUpload/index";
    export default {
      data() {
        return {
ab818baa   杨鑫   '1'
621
622
623
624
          xsNum: 0,
          xxNum: 0,
          leixing: true, //切换
          detbox: true, //查看、
6ee6b0b7   杨鑫   '最新'
625
626
          edit: true, //编辑
          currentPage: 1,
ab818baa   杨鑫   '1'
627
          total: 0,
6ee6b0b7   杨鑫   '最新'
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
          flag: false,
          pageSize: 10,
          ggXin: true,
          radio: '1',
          rules: {
            advertisingName: [{
              required: true,
              message: '请输入名称',
              trigger: ['blur', 'change']
            }],
            advertisingType: [{
              required: true,
              message: '请选择类型',
              trigger: ['blur', 'change']
            }],
            affiliation: [{
              required: true,
              message: '请选择所属端',
              trigger: ['blur', 'change']
            }],
            rotationOrder: [{
              required: true,
              message: '请选择轮播顺序',
              trigger: ['blur', 'change']
            }],
  
          },
          rulesSt: {
            advertisingName: [{
              required: true,
              message: '请输入名称',
              trigger: ['blur', 'change']
            }],
            advertisingType: [{
              required: true,
              message: '请选择类型',
              trigger: ['blur', 'change']
            }],
            position: [{
              required: true,
              message: '请输入详细位置',
              trigger: ['blur', 'change']
            }],
            dimensionsH: [{
              required: true,
              message: '请选择广告尺寸',
              trigger: ['blur', 'change']
            }],
ab818baa   杨鑫   '1'
676
677
678
679
680
681
682
683
684
685
            dimensionsK: [{
              required: true,
              message: '请选择广告尺寸',
              trigger: ['blur', 'change']
            }],
            advertisingMaterial: [{
              required: true,
              message: '请选择材质',
              trigger: ['blur', 'change']
            }],
6ee6b0b7   杨鑫   '最新'
686
687
          },
          editbgid: {
ab818baa   杨鑫   '1'
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
            advertisingName: '', //广告位名称
            advertisingType: '', //广告位类型
            rotationOrder: '', // 轮播顺序
            createUser: '', // 创建人
            affiliation: '', //所属端
            position: '', //详细位置
            dimensions: '', //广告尺寸
            size: '', //广告大小
            uploadFormat: '', //上传类型
            advertisingSpaceStrategy: '', //策略
            advertisingSpaceNumber: '', //广告位编号
            locationDiagram: '', //位置示意图
            mapPunctuation: '', //地图标点
            deviceType: '', //设备类型
            equipmentSize: '', //设备尺寸
            advertisingMaterial: '', //广告材质
            createDate: '', //创建时间
ab818baa   杨鑫   '1'
705
          },
6ee6b0b7   杨鑫   '最新'
706
          formInline: {
ab818baa   杨鑫   '1'
707
            advertisingName: '', //广告位名称
6ee6b0b7   杨鑫   '最新'
708
709
710
711
            advertisingType: '', //广告位类型
            rotationOrder: '', // 轮播顺序
            createUser: '', // 创建人
            affiliation: '', //所属端
ab818baa   杨鑫   '1'
712
            detailedLocation: '', //详细位置
6ee6b0b7   杨鑫   '最新'
713
714
715
716
            dimensions: '', //广告尺寸
            size: '', //广告大小
            uploadFormat: '', //上传类型
            advertisingSpaceStrategy: '', //策略
ab818baa   杨鑫   '1'
717
718
719
720
721
722
723
            advertisingSpaceNumber: '', //广告位编号
            locationDiagram: '', //位置示意图
            mapPunctuation: '', //地图标点
            deviceType: '', //设备类型
            equipmentSize: '', //设备尺寸
            advertisingMaterial: '', //广告材质
            createDate: '', //创建时间
ab818baa   杨鑫   '1'
724
725
            rentalStatus: '0',
            publishStatus: '0'
6ee6b0b7   杨鑫   '最新'
726
727
728
          },
          tableData: [],
          formSel: {
ab818baa   杨鑫   '1'
729
730
731
732
733
734
735
            affiliation: '',
            deviceType: '',
            createUser: '',
            createDate: '',
            pageNumber: 1,
            pageSize: 10,
            advertisingType: ''
6ee6b0b7   杨鑫   '最新'
736
737
738
739
          },
          pageindex: {
            pageNumber: 1,
            pageSize: 10,
ab818baa   杨鑫   '1'
740
            advertisingType: '线上广告位'
6ee6b0b7   杨鑫   '最新'
741
          },
ab818baa   杨鑫   '1'
742
          chengeTatle: 1,
6ee6b0b7   杨鑫   '最新'
743
          //地图标点的经纬度
ab818baa   杨鑫   '1'
744
745
          mapData: {},
          parentMessage: {},
a5801e96   杨鑫   '最新'
746
747
          xiangTab:'first',
          lishiData:[]
ab818baa   杨鑫   '1'
748
  
6ee6b0b7   杨鑫   '最新'
749
750
        }
      },
ab818baa   杨鑫   '1'
751
752
753
754
755
      components: {
        MapMark,
        MapXian,
        upimg
      },
6ee6b0b7   杨鑫   '最新'
756
      watch: { // 监听,当路由发生变化的时候执行
ab818baa   杨鑫   '1'
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
        '$route.query.xin': {
          handler(toPath, fromPath) {
            if (this.$route.query.xin) {
              this.leixing = false
              this.addbuss()
            }
            if (this.$route.query.chakan) {
              this.leixing = false
              this.detbox = false
              this.pageindex.advertisingType = '实体广告位'
              this.handleEditForm(this.$route.query.chakan)
            }
            if (this.$route.query.bian) {
              this.leixing = false
              this.edit = false
              this.detbox = false
              this.pageindex.advertisingType = '实体广告位'
              this.bianjilist(this.$route.query.bian)
            }
  
          },
          deep: true, // 深度监听
          immediate: true, // 第一次初始化渲染就可以监听到
        }
  
      },
6ee6b0b7   杨鑫   '最新'
783
784
      created() {
        // this.getAll()
ab818baa   杨鑫   '1'
785
        likeGet(this.pageindex).then(res => {
6ee6b0b7   杨鑫   '最新'
786
787
          this.tableData = res.data.content
          this.total = res.data.content.length
ab818baa   杨鑫   '1'
788
789
790
791
792
793
794
795
796
797
          this.xsNum = res.data.content.length
        })
        let obj = {
          pageNumber: 1,
          pageSize: 10,
          advertisingType: '实体广告位'
        }
        likeGet(obj).then(res => {
          this.xxNum = res.data.content.length
        })
6ee6b0b7   杨鑫   '最新'
798
799
800
801
802
      },
      computed: {
  
      },
      methods: {
ab818baa   杨鑫   '1'
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
        getTable(val) {
          if (val == 1) {
            console.log(111)
            this.pageindex.advertisingType = '线上广告位'
            this.getAll((this.pageindex))
          } else {
            this.pageindex.advertisingType = '实体广告位'
            this.getAll((this.pageindex))
          }
        },
        chenge(val) {
          this.formSel = {
            affiliation: '',
            deviceType: '',
            createUser: '',
            createDate: '',
            pageNumber: 1,
            pageSize: 10,
            advertisingType: ''
          }
          this.chengeTatle = val
          if (val == 1) {
            this.leixing = true
            this.pageindex.advertisingType = '线上广告位'
            this.getAll((this.pageindex))
          } else {
            this.leixing = false
            this.pageindex.advertisingType = '实体广告位'
            this.getAll((this.pageindex))
6ee6b0b7   杨鑫   '最新'
832
          }
6ee6b0b7   杨鑫   '最新'
833
834
835
836
        },
        async getAll(val) {
          const res = await likeGet(val)
          this.tableData = res.data.content
ab818baa   杨鑫   '1'
837
          if (this.pageindex.advertisingType == '线上广告位') {
a5801e96   杨鑫   '最新'
838
            this.xsNum = res.data.numberOfElements
ab818baa   杨鑫   '1'
839
          } else {
a5801e96   杨鑫   '最新'
840
            this.xxNum = res.data.numberOfElements
6ee6b0b7   杨鑫   '最新'
841
          }
a5801e96   杨鑫   '最新'
842
          this.total = res.data.numberOfElements
6ee6b0b7   杨鑫   '最新'
843
844
  
        },
ab818baa   杨鑫   '1'
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
        //获取当前时间
        updateCurrentTime() {
          const now = new Date();
          const year = now.getFullYear();
          const month = (now.getMonth() + 1).toString().padStart(2, '0');
          const day = now.getDate().toString().padStart(2, '0');
          const hours = now.getHours().toString().padStart(2, '0');
          const minutes = now.getMinutes().toString().padStart(2, '0');
          const seconds = now.getSeconds().toString().padStart(2, '0');
  
          return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
        },
        //获取地图点击的经纬度
        getChildDate(mapData) {
          this.mapData = mapData
        },
        //查看编辑
        bianji() {
          if (this.edit) {
            this.edit = false
          }
        },
        //查看点击
6ee6b0b7   杨鑫   '最新'
868
  
ab818baa   杨鑫   '1'
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
        handleEditForm(item) {
          this.editbgid = {
            advertisingName: '', //广告位名称
            advertisingType: '', //广告位类型
            rotationOrder: '', // 轮播顺序
            createUser: '', // 创建人
            affiliation: '', //所属端
            position: '', //详细位置
            dimensions: '', //广告尺寸
            size: '', //广告大小
            uploadFormat: '', //上传类型
            advertisingSpaceStrategy: '', //策略
            advertisingSpaceNumber: '', //广告位编号
            locationDiagram: '', //位置示意图
            mapPunctuation: '', //地图标点
            deviceType: '', //设备类型
            equipmentSize: '', //设备尺寸
            advertisingMaterial: '', //广告材质
            createDate: '', //创建时间
b12ba7ef   杨鑫   '最新'
888
  
ab818baa   杨鑫   '1'
889
          }
6ee6b0b7   杨鑫   '最新'
890
  
a5801e96   杨鑫   '最新'
891
892
893
894
895
896
897
898
899
900
901
902
903
          zulxin({venueNumber:item.advertisingSpaceNumber}).then(res=>{
            this.lishiData = res.data
             this.lishiData.map(item=>{
                    item.earnestMoney =this.$decrypt(item.earnestMoney)
                    item.contractAmount =this.$decrypt(item.contractAmount)
                    item.lessorName =this.$decrypt(item.lessorName)
                    item.telephone =this.$decrypt(item.telephone)
                    item.bankAccount =this.$decrypt(item.bankAccount)
                    item.tenantName =this.$decrypt(item.tenantName)
                    item.tenantTelephone =this.$decrypt(item.tenantTelephone)
                    item.tenantBankAccount =this.$decrypt(item.tenantBankAccount)
                  })
          })
b12ba7ef   杨鑫   '最新'
904
  
ab818baa   杨鑫   '1'
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
          this.editbgid = item
          // equipmentSizeH
          // equipmentSizeK
          // equipmentSizeG
          // dimensionsH
          // dimensionsK
          // this.editbgid.id = item.id
          // this.editbgid.advertisingName = item.advertisingName
          // this.editbgid.advertisingType = item.advertisingType
          // this.editbgid.rotationOrder = item.rotationOrder
          // this.editbgid.affiliation = item.affiliation
          // this.editbgid.detailedLocation = item.detailedLocation
          // this.editbgid.dimensions = item.dimensions
          // this.editbgid.size = item.size
          // this.editbgid.uploadFormat = item.uploadFormat
          // this.editbgid.deviceType = item.deviceType
          // this.editbgid.advertisingMaterial = item.advertisingMaterial
          // this.editbgid.equipmentSize = item.equipmentSize
          // this.editbgid.locationDiagram = item.locationDiagram
b12ba7ef   杨鑫   '最新'
924
          if (this.leixing == false && typeof item.mapPunctuation == 'string') {
ab818baa   杨鑫   '1'
925
926
927
928
929
930
            this.parentMessage = JSON.parse(item.mapPunctuation)
          }
  
          this.detbox = false
  
        },
b12ba7ef   杨鑫   '最新'
931
        //列编辑
ab818baa   杨鑫   '1'
932
933
934
935
        bianjilist(item) {
  
          this.detbox = false
          this.editbgid = item
b12ba7ef   杨鑫   '最新'
936
937
  
          if (this.leixing == false && typeof item.mapPunctuation == 'string') {
ab818baa   杨鑫   '1'
938
939
            this.parentMessage = JSON.parse(item.mapPunctuation)
          }
b12ba7ef   杨鑫   '最新'
940
941
942
943
          this.$nextTick(() => {
            this.edit = false
  
          })
ab818baa   杨鑫   '1'
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
          // this.editbgid.id = item.id
          // this.editbgid.advertisingName = item.advertisingName
          // this.editbgid.advertisingType = item.advertisingType
          // this.editbgid.rotationOrder = item.rotationOrder
          // this.editbgid.affiliation = item.affiliation
          // this.editbgid.detailedLocation = item.detailedLocation
          // this.editbgid.dimensions = item.dimensions
          // this.editbgid.size = item.size
          // this.editbgid.uploadFormat = item.uploadFormat
          // this.editbgid.deviceType = item.deviceType
          // this.editbgid.advertisingMaterial = item.advertisingMaterial
          // this.editbgid.equipmentSize = item.equipmentSize
        },
        //查看编辑确定
        async editpush() {
          this.editbgid.updateDate = this.updateCurrentTime()
  
          if (this.leixing == false) {
            if(Object.keys(this.mapData).length != 0){
              this.editbgid.mapPunctuation = JSON.stringify(this.mapData)
            }
  
b12ba7ef   杨鑫   '最新'
966
         }
6ee6b0b7   杨鑫   '最新'
967
  
ab818baa   杨鑫   '1'
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
          await editList(this.editbgid)
          this.detbox = true
          if (this.leixing) {
            this.pageindex.advertisingType = '线上广告位'
          } else {
            this.pageindex.advertisingType = '实体广告位'
          }
          this.edit = true
          this.getAll(this.pageindex)
        },
        // 新增确定按钮
        addpush(formName) {
          this.$refs[formName].validate((valid) => {
            if (valid) {
              this.formInline.createDate = this.updateCurrentTime()
              if (this.leixing) {
                this.pageindex.advertisingType = '线上广告位'
                this.formInline.dimensions = '宽:300px 长:400px'
                this.formInline.size = '100kb'
                this.formInline.uploadFormat = 'JPG、PNG、MP4'
              } else {
                this.pageindex.advertisingType = '实体广告位'
                this.formInline.mapPunctuation = JSON.stringify(this.mapData)
ab818baa   杨鑫   '1'
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
              }
              addList(this.formInline).then(res => {
                this.ggXin = true
                this.getAll((this.pageindex))
              })
  
            } else {
              this.$message({
                message: '请填写完整信息',
                type: 'error'
              })
              return false;
            }
          })
        },
6ee6b0b7   杨鑫   '最新'
1006
        //取消
ab818baa   杨鑫   '1'
1007
1008
1009
1010
1011
1012
        colse(val) {
          if (val == 1) {
            this.ggXin = true
          } else if (val == 2) {
            this.detbox = true
            this.edit = true
6ee6b0b7   杨鑫   '最新'
1013
1014
1015
1016
          }
        },
        //删除记录按钮
        handleDelete(val) {
ab818baa   杨鑫   '1'
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
          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) => {
6ee6b0b7   杨鑫   '最新'
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
              if (action === 'confirm') {
                delList({
                  id: val.id
                }).then(res => {
                  this.getTable(this.chengeTatle)
                })
                done();
              } else {
                done();
              }
            }
ab818baa   杨鑫   '1'
1040
          })
6ee6b0b7   杨鑫   '最新'
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
  
          // const res = await delList({id:val.id})
          //  this.getTable(this.chengeTatle)
        },
        handleSizeChange(val) {
          this.pageSize = val
        },
        handleCurrentChange(val) {
          this.currentPage = val
        },
        addbuss(val) {
ab818baa   杨鑫   '1'
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
          this.formInline = {
            advertisingName: '', //广告位名称
            advertisingType: '', //广告位类型
            rotationOrder: '', // 轮播顺序
            createUser: '', // 创建人
            affiliation: '', //所属端
            detailedLocation: '', //详细位置
            dimensions: '', //广告尺寸
            size: '', //广告大小
            uploadFormat: '', //上传类型
            advertisingSpaceStrategy: '', //策略
            advertisingSpaceNumber: '', //广告位编号
            locationDiagram: '', //位置示意图
            mapPunctuation: '', //地图标点
            deviceType: '', //设备类型
            equipmentSize: '', //设备尺寸
            advertisingMaterial: '', //广告材质
            createDate: '', //创建时间
ab818baa   杨鑫   '1'
1070
1071
1072
1073
1074
1075
1076
1077
            rentalStatus: '0',
            publishStatus: '0'
          }
   if(this.leixing){
       this.formInline.advertisingType = '线上广告位'
   }else{
      this.formInline.advertisingType = '实体广告位'
   }
6ee6b0b7   杨鑫   '最新'
1078
1079
1080
1081
1082
1083
1084
          this.ggXin = false
        },
        closeFn() {
          this.ggXin = true
        },
        // 查询按钮
        onSubmit() {
ab818baa   杨鑫   '1'
1085
1086
1087
          if (this.pageindex.advertisingType == '线上广告位') {
            this.formSel.advertisingType = '线上广告位'
            getAlls(this.formSel).then(res => {
a5801e96   杨鑫   '最新'
1088
              this.currentPage = 1
ab818baa   杨鑫   '1'
1089
              this.tableData = res.data.content
a5801e96   杨鑫   '最新'
1090
              this.total = res.data.numberOfElements
ab818baa   杨鑫   '1'
1091
1092
1093
1094
1095
            })
  
          } else {
            this.formSel.advertisingType = '实体广告位'
            getAlls(this.formSel).then(res => {
a5801e96   杨鑫   '最新'
1096
              this.currentPage = 1
ab818baa   杨鑫   '1'
1097
              this.tableData = res.data.content
a5801e96   杨鑫   '最新'
1098
              this.total = res.data.numberOfElements
ab818baa   杨鑫   '1'
1099
1100
            })
          }
a5801e96   杨鑫   '最新'
1101
          console.log(this.currentPage)
ab818baa   杨鑫   '1'
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
          // if(this.formSel.createDate=='' && this.formSel.createUser == '' && this.formSel.affiliation == ''){
          //             console.log(1)
          //             console.log(this.pageindex)
          //                       Object.keys(this.formInline).forEach(key => {
          //                               this.formInline[key] = this.formSel.contacts;
          //                             });
          //                         this.formInline.id = this.formSel.contacts
          //                         this.formInline.pageNumber = 1
          //                         this.formInline.pageSize = 10
          //                         this.formInline.advertisingType = this.pageindex.advertisingType
          //                       likeGet(this.formInline).then(res=>{
          //                           this.tableData = res.data.content
          //                           this.total = res.data.content.length
          //                         })
  
          //           }else{
          //              if(this.formSel.contacts == ''){
          //                likeGet({affiliation:this.formSel.affiliation,createUser:this.formSel.createUser,pageNumber:1,pageSize:10}).then(res=>{
          //                  this.tableData = res.data.content
          //                  this.total = res.data.content.length
          //                  })
          //              }else{
          //                Object.keys(this.formInline).forEach(key => {
          //                        this.formInline[key] = this.formSel.contacts;
          //                      });
          //                      console.log(this.formInline)
          //                  this.formInline.id = this.formSel.contacts
          //                   this.formInline.affiliation=this.formSel.affiliation
          //                   this.formInline.createUser=this.formSel.createUser
          //                   this.formInline.advertisingType = this.pageindex.advertisingType
          //                   this.formInline.pageNumber = 1
          //                   this.formInline.pageSize = 10
          //                likeGet(this.formInline).then(res=>{
          //                   console.log(res.data)
          //                  this.tableData = res.data.content
          //                  this.total = res.data.content.length
          //                  })
          //              }
          //           }
6ee6b0b7   杨鑫   '最新'
1141
1142
1143
  
        },
        //重置按钮
ab818baa   杨鑫   '1'
1144
1145
1146
1147
1148
1149
1150
1151
1152
        resetting() {
          this.formSel = {
            affiliation: '',
            deviceType: '',
            createUser: '',
            createDate: '',
            pageNumber: 1,
            pageSize: 10,
            advertisingType: ''
6ee6b0b7   杨鑫   '最新'
1153
1154
1155
          }
          this.getTable(this.chengeTatle)
        },
ab818baa   杨鑫   '1'
1156
1157
1158
1159
1160
        handleChange(field, value) {
          console.log(field, value)
          this.$set(this.editbgid, field, value);
          this.$forceUpdate(); // 强制组件重新渲染
        }
6ee6b0b7   杨鑫   '最新'
1161
1162
1163
1164
1165
1166
1167
      }
    }
  </script>
  
  <style scoped>
    .zhuti {
      padding: 0 20px 20px 20px;
ab818baa   杨鑫   '1'
1168
      min-height: calc(100vh - 50px - 20px);
6ee6b0b7   杨鑫   '最新'
1169
1170
      background-color: #Fff;
    }
ab818baa   杨鑫   '1'
1171
1172
1173
1174
1175
  
    .chengeXia {
      border-bottom: 6px solid #3F9B6A;
      padding-bottom: 4px;
      color: #3F9B6A;
6ee6b0b7   杨鑫   '最新'
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
    }
  
    /deep/ .el-form-item__content {
      line-height: 0;
    }
  
    .tableBtn {
      display: inline-block;
      margin-right: 10px;
      cursor: pointer;
    }
  
    .formSearch {
ab818baa   杨鑫   '1'
1189
      margin-top: 20px;
6ee6b0b7   杨鑫   '最新'
1190
1191
1192
1193
1194
1195
1196
1197
1198
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
    }
  
    .greens {
      color: #3F9B6A;
    }
ab818baa   杨鑫   '1'
1199
  
6ee6b0b7   杨鑫   '最新'
1200
    .fenye {
ab818baa   杨鑫   '1'
1201
1202
1203
1204
      margin-top: 20px;
      display: flex;
      justify-content: flex-end;
      position: relative;
6ee6b0b7   杨鑫   '最新'
1205
1206
1207
1208
1209
1210
    }
  
    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #3F9B6A;
    }
  
ab818baa   杨鑫   '1'
1211
  /*  .el-row {
6ee6b0b7   杨鑫   '最新'
1212
1213
1214
1215
1216
      margin-bottom: 20px;
  
      &:last-child {
        margin-bottom: 0;
      }
ab818baa   杨鑫   '1'
1217
    } */
6ee6b0b7   杨鑫   '最新'
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
  
    .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;
    }
ab818baa   杨鑫   '1'
1249
1250
  
    /deep/ .bg-purple[data-v-3bebae82] {
6ee6b0b7   杨鑫   '最新'
1251
1252
1253
1254
      background: #fff;
      height: 50px;
    }
  
ab818baa   杨鑫   '1'
1255
    ::v-deep .bg-purple {
6ee6b0b7   杨鑫   '最新'
1256
1257
1258
      background: #fff;
      height: 50px;
    }
ab818baa   杨鑫   '1'
1259
  
6ee6b0b7   杨鑫   '最新'
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
    /deep/ .el-form--label-top .el-form-item__label {
      padding: 0;
    }
  
    .device-form .el-form-item__label::after {
      content: "*";
      color: #1A1A1A;
      margin-left: 5px;
      font-size: 16px;
    }
  
    /deep/.el-form-item__content label:nth-child(1) .is-checked+.el-radio__label {
      color: #757575 !important;
    }
  
    /deep/.el-form-item__content label:nth-child(1) .is-checked .el-radio__inner {
      border-color: #757575 !important;
      background: #757575 !important;
    }
  
    ::v-deep .el-dialog__wrapper {
      .el-dialog__header {
        background-color: #fff;
  
        .el-dialog__title {
          font-size: 24px;
          color: #000;
        }
      }
    }
ab818baa   杨鑫   '1'
1290
1291
1292
1293
1294
  
    ::v-deep .el-input__inner:focus {
      border: #3F9B6A 1px solid;
    }
  
6ee6b0b7   杨鑫   '最新'
1295
1296
1297
1298
1299
1300
    .dialog-footer {
      display: flex;
      justify-content: flex-end;
      border-top: solid rgba(209, 209, 209, 0.2) 2px;
      padding-top: 20px;
    }
ab818baa   杨鑫   '1'
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
  
    ::v-deep .el-input__inner:focus {
      border: #3F9B6A 1px solid;
    }
  
    ::v-deep .el-input__inner:hover {
      border: #3F9B6A 1px solid;
    }
  
    ::v-deep .el-select .el-input.is-focus .el-input__inner {
      border-color: #3F9B6A
    }
  
    .el-select-dropdown__item.selected {
6ee6b0b7   杨鑫   '最新'
1315
      color: #3F9B6A;
ab818baa   杨鑫   '1'
1316
    }
6ee6b0b7   杨鑫   '最新'
1317
  
ab818baa   杨鑫   '1'
1318
    .el-pagination__sizes .el-input .el-input__inner:hover {
6ee6b0b7   杨鑫   '最新'
1319
      border-color: #3F9B6A;
ab818baa   杨鑫   '1'
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
    }
  
    .titles {
      font-size: 16px;
      position: relative;
      padding-left: 14px;
      font-weight: 600;
    }
  
    .titles::before {
      content: '';
      width: 4px;
      height: 16px;
      background-color: #3F9B6A;
6ee6b0b7   杨鑫   '最新'
1334
      position: absolute;
ab818baa   杨鑫   '1'
1335
      top: 1px;
6ee6b0b7   杨鑫   '最新'
1336
      left: 0;
ab818baa   杨鑫   '1'
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
      border-radius: 5px;
    }
  
    ::v-deep .editcss {
      .el-form-item__label {
        color: #AEAEAE;
      }
    }
    .duiqi {
      line-height: 40px;
    }
    ::v-deep .el-tabs__item.is-active {
      color: #3F9B6A;
      opacity: 1;
    }
  
    /deep/ .el-tabs__nav-wrap::after {
      background-color: #fff;
    }
  
    ::v-deep .el-tabs__item:hover {
      color: #3F9B6A;
      cursor: pointer;
      opacity: 1;
    }
  
    /deep/ .el-tabs__active-bar {
      background-color: #389865;
    }
  
6ee6b0b7   杨鑫   '最新'
1367
1368
1369
1370
  </style>
  <style lang="scss" scoped>
    ::v-deep .bian_css {
      .el-dialog__header {
ab818baa   杨鑫   '1'
1371
1372
1373
1374
1375
        padding: 10px 20px 20px 20px;
      }
  
      .el-dialog__body {
        padding: 5px;
6ee6b0b7   杨鑫   '最新'
1376
      }
6ee6b0b7   杨鑫   '最新'
1377
1378
    }
  
ab818baa   杨鑫   '1'
1379
1380
1381
1382
    ::v-deep .xinFrom {
      .el-input--mini .el-input__inner {
        height: 36px;
        line-height: 36px;
6ee6b0b7   杨鑫   '最新'
1383
      }
ab818baa   杨鑫   '1'
1384
1385
1386
1387
  
      .el-range-editor--mini.el-input__inner {
        height: 36px;
        width: 100%;
6ee6b0b7   杨鑫   '最新'
1388
1389
      }
    }
ab818baa   杨鑫   '1'
1390
1391
1392
  
    ::v-deep .buttonHover:hover {
      color: #3f9b6a !important;
6ee6b0b7   杨鑫   '最新'
1393
1394
1395
1396
      border-color: #c5e1d2 !important;
      background-color: #ecf5f0 !important;
      outline: none;
    }
ab818baa   杨鑫   '1'
1397
1398
  
    ::v-deep .el-pagination__total {
6ee6b0b7   杨鑫   '最新'
1399
1400
1401
      position: absolute;
      left: 10px;
    }
6ee6b0b7   杨鑫   '最新'
1402
  </style>