Blame view

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