Blame view

admin-web-master/src/views/advertisement/advertisingReview/advertisingReview.vue 19.5 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
ad921312   wesley88   1
3
      <div class="zhuti" v-if="onaction == '1'">
3f535f30   杨鑫   '初始'
4
5
6
7
        <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>
ad921312   wesley88   1
8
        <!-- 线上 -->
3f535f30   杨鑫   '初始'
9
        <div>
ad921312   wesley88   1
10
          <div style="display: flex;font-size: 14px;" >
cf438595   wesley88   1
11
12
            <div style="margin-right: 4px;cursor: pointer;" @click="chenge(1)" :class="leixing?'chengeXia greens':''">线上({{xsNum || 0}})</div>
            <div style="margin-left: 20px;margin-right: 4px;cursor: pointer;" @click="chenge(2)" :class="leixing?'':'chengeXia greens'">实体({{xxNum || 0}})</div>
ad921312   wesley88   1
13
          </div>
3f535f30   杨鑫   '初始'
14
15
          <!-- 搜索 -->
          <div class="formSearch">
ad921312   wesley88   1
16
            <el-form :inline="true" :model="pagequery" style="margin-top: 15px;">
9b392fc6   wesley88   1
17
18
              <el-form-item label="编号" prop="id">
                <el-input v-model="pagequery.id" placeholder="请输入" style="width: 168px;margin-right: 15px" />
3f535f30   杨鑫   '初始'
19
              </el-form-item>
9b392fc6   wesley88   1
20
              <el-form-item label="所属端" prop="affiliation" v-if="leixing == 1">
ad921312   wesley88   1
21
                <el-select v-model="pagequery.affiliation" placeholder="请选择" style="width: 168px;margin-right: 15px">
9b392fc6   wesley88   1
22
23
                  <el-option label="游客小程序" value="游客小程序"></el-option>
                  <el-option label="商家客户端" value="商家客户端"></el-option>
3f535f30   杨鑫   '初始'
24
25
                </el-select>
              </el-form-item>
9b392fc6   wesley88   1
26
27
              <el-form-item label="申请人" prop="applicant">
                <el-input v-model="pagequery.applicant" placeholder="请输入" style="width: 168px;margin-right: 15px" />
3f535f30   杨鑫   '初始'
28
              </el-form-item>
3f535f30   杨鑫   '初始'
29
            </el-form>
ad921312   wesley88   1
30
  
3f535f30   杨鑫   '初始'
31
            <div>
ad921312   wesley88   1
32
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
3f535f30   杨鑫   '初始'
33
34
              </el-button>
              <el-button @click="resetting" class="buttonHover"
ad921312   wesley88   1
35
                style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
3f535f30   杨鑫   '初始'
36
37
38
              </el-button>
            </div>
          </div>
3f535f30   杨鑫   '初始'
39
          <!-- 表格 -->
ad921312   wesley88   1
40
          <el-table :data="tableData"
3f535f30   杨鑫   '初始'
41
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
ad921312   wesley88   1
42
            <el-table-column label="序号" width="50" prop="id">
3f535f30   杨鑫   '初始'
43
44
45
46
              <template slot-scope="scope">
                {{scope.$index + 1 }}
              </template>
            </el-table-column>
ad921312   wesley88   1
47
            <el-table-column label="编号" prop="id">
3f535f30   杨鑫   '初始'
48
            </el-table-column>
ad921312   wesley88   1
49
            <el-table-column label="所属端"  v-if="leixing == 1">
3f535f30   杨鑫   '初始'
50
              <template slot-scope="scope">
ad921312   wesley88   1
51
                {{scope.row.cereAdvertisingInformation.affiliation}}
3f535f30   杨鑫   '初始'
52
              </template>
3f535f30   杨鑫   '初始'
53
            </el-table-column>
9b392fc6   wesley88   1
54
            <el-table-column label="轮播顺序"  v-if="leixing == 1" >
3f535f30   杨鑫   '初始'
55
56
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.rotationOrder}}
3f535f30   杨鑫   '初始'
57
              </template>
3f535f30   杨鑫   '初始'
58
            </el-table-column>
3f535f30   杨鑫   '初始'
59
  
3f535f30   杨鑫   '初始'
60
  
ad921312   wesley88   1
61
62
            <el-table-column label="申请人" prop="applicant" ></el-table-column>
            <el-table-column label="投放定价" prop="tenant">
3f535f30   杨鑫   '初始'
63
              <template slot-scope="scope">
9b392fc6   wesley88   1
64
                {{scope.row.rotationOrde || '-'}}
3f535f30   杨鑫   '初始'
65
66
              </template>
            </el-table-column>
ad921312   wesley88   1
67
            <el-table-column label="投放时间" prop="scheduleTime" >
3f535f30   杨鑫   '初始'
68
            </el-table-column>
ad921312   wesley88   1
69
            <el-table-column prop="applicationTime" label="提交时间" >
3f535f30   杨鑫   '初始'
70
            </el-table-column>
9b392fc6   wesley88   1
71
            <el-table-column label="状态" prop="auditStatus" width="80">
3f535f30   杨鑫   '初始'
72
              <template slot-scope="scope">
9b392fc6   wesley88   1
73
                {{scope.row.auditStatus =='1'?'待审核':scope.row.auditStatus =='2'?'待签约':scope.row.auditStatus =='3'?'已驳回':scope.row.auditStatus =='4'?'已签约':scope.row.auditStatus =='5'?'已终止':scope.row.auditStatus =='6'?'下架':scope.row.auditStatus =='7'?'已投放':'-'}}
3f535f30   杨鑫   '初始'
74
75
              </template>
            </el-table-column>
ad921312   wesley88   1
76
            <el-table-column label="操作" fixed="right">
3f535f30   杨鑫   '初始'
77
              <template slot-scope="scope">
9b392fc6   wesley88   1
78
79
                <div @click="details(scope.row,'1')" class="tableBtn greens">查看</div>
                <div v-if="scope.row.auditStatus =='1' "  @click="details(scope.row,'2')" class="tableBtn greens">审核</div>
173aa0e0   wesley88   1
80
                <div v-if="scope.row.auditStatus == '2'" @click="openhet(scope.row)" class="tableBtn greens">录入合同</div>
9b392fc6   wesley88   1
81
82
83
84
85
86
                <div @click="removeinfozz(scope.row,'5','终止')" class="tableBtn greens"
                  v-if="(scope.row.auditStatus =='2' || scope.row.auditStatus =='4') && leixing">终止
                </div>
                <div @click="opencl(scope.row,'5','终止')" class="tableBtn greens"
                  v-if="(scope.row.auditStatus =='2' || scope.row.auditStatus =='4') && !leixing">更改状态
                </div>
3f535f30   杨鑫   '初始'
87
88
89
              </template>
            </el-table-column>
          </el-table>
ad921312   wesley88   1
90
91
92
93
94
95
          <div style="display: flex;justify-content: space-between;" class="bom">
            <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
            <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
              background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange">
            </el-pagination>
3f535f30   杨鑫   '初始'
96
97
98
99
          </div>
  
        </div>
  
ad921312   wesley88   1
100
      </div>
3f535f30   杨鑫   '初始'
101
  
3f535f30   杨鑫   '初始'
102
  
3f535f30   杨鑫   '初始'
103
  
3f535f30   杨鑫   '初始'
104
  
3f535f30   杨鑫   '初始'
105
  
3f535f30   杨鑫   '初始'
106
  
ad921312   wesley88   1
107
108
      <div class="zhuti" v-if="onaction == '2'">
        <div style="height:58px;line-height:58px;">
9b392fc6   wesley88   1
109
          <div style="color:#0006"> <span>广告审核</span> <span style="padding:0 5px;">></span> <span
ad921312   wesley88   1
110
111
              style="color:#000000e6">新增</span></div>
        </div>
3f535f30   杨鑫   '初始'
112
  
ad921312   wesley88   1
113
        <div style="padding: 20px 20px 20px 0;">
173aa0e0   wesley88   1
114
          <add :info="formInline" @removeonaction="removeonaction"></add>
ad921312   wesley88   1
115
        </div>
3f535f30   杨鑫   '初始'
116
      </div>
ad921312   wesley88   1
117
118
      <div class="zhuti" v-if="onaction == '3'">
        <div style="height:58px;line-height:58px;">
9b392fc6   wesley88   1
119
          <div style="color:#0006"> <span>广告审核</span> <span style="padding:0 5px;">></span> <span
ad921312   wesley88   1
120
121
122
              style="color:#000000e6">查看</span></div>
        </div>
        <div>
9b392fc6   wesley88   1
123
          <resourceCommodity :issp="issp" :info="detailsinfo" @removeonaction="removeonaction">
ad921312   wesley88   1
124
125
126
127
128
          </resourceCommodity>
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '4'">
        <div style="height:58px;line-height:58px;">
9b392fc6   wesley88   1
129
          <div style="color:#0006"> <span>广告审核</span> <span style="padding:0 5px;">></span> <span
ad921312   wesley88   1
130
131
132
133
134
135
              style="color:#000000e6">{{contractChangeReason}}</span></div>
        </div>
        <div style="padding: 20px 20px 20px 0;">
          <add :info="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></add>
        </div>
      </div>
9b392fc6   wesley88   1
136
      <el-dialog :visible.sync="addcl" title="更改状态" width="65%" append-to-body center :close-on-click-modal="false"
ad921312   wesley88   1
137
        :close-on-press-escape="false" :show-close="false">
9b392fc6   wesley88   1
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
        <el-form :model="oninfo" v-if="oninfo.cereAdvertisingInformation" ref="detailsinfo" label-width="130px" class="demo-ruleForm" style="padding-right: 130px;margin-top: 20px">
          <el-form-item label="广告位名称" prop="advertisingName">
            <el-input disabled v-model="oninfo.cereAdvertisingInformation.advertisingName" placeholder="请输入"  maxlength="50"></el-input>
          </el-form-item>
          <el-form-item label="编号" prop="advertisingSpaceNumber">
            <el-input disabled v-model="oninfo.cereAdvertisingInformation.advertisingSpaceNumber" placeholder="请输入"  maxlength="50"></el-input>
          </el-form-item>
          <el-form-item label="投放时间" prop="scheduleTime">
            <el-input disabled v-model="oninfo.scheduleTime" placeholder="请输入"  maxlength="50"></el-input>
          </el-form-item>
          <el-form-item label="状态" prop="auditStatus">
            <el-input disabled :placeholder="oninfo.auditStatus =='1'?'待审核':oninfo.auditStatus =='2'?'待签约':oninfo.auditStatus =='3'?'已驳回':oninfo.auditStatus =='4'?'已签约':oninfo.auditStatus =='5'?'已终止':oninfo.auditStatus =='6'?'下架':oninfo.auditStatus =='7'?'已投放':'-'"  maxlength="50"></el-input>
          </el-form-item>
          <el-form-item label="状态更改" prop="auditStatus">
            <el-select v-model="auditStatus" placeholder="请选择" style="width: 100%;">
              <el-option label="已投放" value="7"></el-option>
              <el-option label="已终止" value="5"></el-option>
              <el-option label="下架" value="6"></el-option>
            </el-select>
          </el-form-item>
          <el-row :gutter="20">
            <el-col :span="12">
              <el-form-item>
                <div style="margin-top: 20px">
4e955529   杨鑫   '1'
162
                  <el-button @click="changeauditStatus" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
9b392fc6   wesley88   1
163
164
165
166
167
168
169
                  <el-button @click="addcl = false" class="buttonHover"
                    style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
                </div>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
ad921312   wesley88   1
170
      </el-dialog>
3f535f30   杨鑫   '初始'
171
    </div>
3f535f30   杨鑫   '初始'
172
  
ad921312   wesley88   1
173
  
3f535f30   杨鑫   '初始'
174
175
176
177
  </template>
  
  <script>
    import {
3f535f30   杨鑫   '初始'
178
179
180
181
182
183
184
185
186
187
188
      contractGetAll,
      contractDel,
      addList,
      updateList,
      queryById,
      hetongById,
      hetongadd,
      hetongEdit,
      AdvertiserInfoGetAll,
      AdvertiserInfoEdit,
      AdvertiserInfoDel
9b392fc6   wesley88   1
189
190
191
    } from '@/api/advertisement.js'
    import add from '@/components/add/addht.vue'
    import resourceCommodity from '@/components/chakan/ggsh'
3f535f30   杨鑫   '初始'
192
    import {
ad921312   wesley88   1
193
194
195
      cereResourceStrategy,
      editStatus
    } from '@/api/newly.js'
2d926347   wesley88   1
196
197
198
199
200
201
    import {
      getAlls,changAlls
    } from '@/api/information';
    import {
      likeGet,
    } from '@/api/map1'
ad921312   wesley88   1
202
     import cl from '@/components/change/cl.vue'
3f535f30   杨鑫   '初始'
203
204
205
    export default {
      data() {
        return {
9b392fc6   wesley88   1
206
207
          auditStatus:'',
          issp:'1',
ad921312   wesley88   1
208
209
210
211
212
213
214
215
216
217
218
          oncetype: '',
          addcl: false,
          oninfo: {},
          multipleSelection: [],
  
          xsNum: 0,
          xxNum: 0,
          leixing: true,
          contractChangeReason: '',
          detailsinfo: {},
          pagequery: {
9b392fc6   wesley88   1
219
            pageNumber: 0,
3f535f30   杨鑫   '初始'
220
            pageSize: 10,
9b392fc6   wesley88   1
221
222
223
224
            advertisingSpaceType: '线上广告位',
            id:'',
            affiliation:'',
            applicant:'',
3f535f30   杨鑫   '初始'
225
          },
ad921312   wesley88   1
226
227
228
229
          tableData: [],
          total: 0,
          onaction: '1',
          formInline: {},
3f535f30   杨鑫   '初始'
230
231
        }
      },
ad921312   wesley88   1
232
233
234
235
      components: {
        cl,
        add,
        resourceCommodity,
3f535f30   杨鑫   '初始'
236
      },
ad921312   wesley88   1
237
238
      created() {
        this.getAll()
3f535f30   杨鑫   '初始'
239
240
      },
      methods: {
2d926347   wesley88   1
241
        async openhet(row) {
173aa0e0   wesley88   1
242
          this.formInline = row
2d926347   wesley88   1
243
244
245
246
247
248
249
250
251
252
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
280
281
282
                  console.error(row)
                  let list = []
          if(row.cereBasicInformationShop && row.cereBasicInformationShop.id) {
            const res = await getAlls({
              pageNumber: 0,
              pageSize: 10,
              publishStatus:'2',
              id: row.cereBasicInformationShop.id
            })
            list = res.data.content
            
          }
          if(row.cereAdvertisingInformation && row.cereAdvertisingInformation.id) {
            const res = await likeGet({
              pageNumber: 0,
              pageSize: 10,
              publishStatus:'2',
              id: row.cereAdvertisingInformation.id
            })
            list = res.data.content
          }
          if(row.cereBasicInformationVenue && row.cereBasicInformationVenue.id) {
            const res = await changAlls({
              pageNumber: 0,
              pageSize: 10,
              publishStatus:'2',
              id: row.cereBasicInformationVenue.id
            })
            list = res.data.content
          }
          console.error(list)
          if(list.length>0) {
            this.onaction = '2'
          } else {
            this.$message({
              message: '该资源已被租赁',
              type: 'error'
            })
          }
          
173aa0e0   wesley88   1
283
        },
9b392fc6   wesley88   1
284
285
286
287
288
        changeauditStatus() {
          AdvertiserInfoEdit({
              id: this.oninfo.id,
              auditStatus: this.auditStatus
            }).then(res => {
f1b706dd   杨鑫   '最新'
289
            
9b392fc6   wesley88   1
290
291
              if (res.code == 200) {
                this.$message({
f1b706dd   杨鑫   '最新'
292
                  message: '成功',
9b392fc6   wesley88   1
293
294
                  type: 'success'
                })
cfcb44ef   杨鑫   '改bug版'
295
296
                this.addcl = false
                this.getAll()
9b392fc6   wesley88   1
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
              } else {
                this.$message({
                  message: res.msg,
                  type: 'error'
                })
              }
  
            })
        },
        removeinfozz(row, e, tit) {
          let that = this
          this.$confirm('确定要' + tit + '吗?', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          }).then(() => {
            AdvertiserInfoEdit({
              id: row.id,
              auditStatus: e
            }).then(res => {
              console.error(res)
              if (res.code == 200) {
                this.$message({
                  message: tit + '成功',
                  type: 'success'
                })
                this.removeonaction('1')
72e22e26   杨鑫   最新修改
324
  			  
9b392fc6   wesley88   1
325
326
327
328
329
330
331
332
333
334
              } else {
                this.$message({
                  message: res.msg,
                  type: 'error'
                })
              }
  
            })
          })
        },
ad921312   wesley88   1
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
        minSev(e) {
          this.multipleSelection = e
          console.error(this.multipleSelection)
          let ids = []
          for (let index = 0; index < this.multipleSelection.length; index++) {
            ids.push(this.multipleSelection[index].id)
          }
          console.error(this.oninfo)
          let c1 = {
            resourcesId: this.oncetype + this.oninfo.id,
            rentalPoliciesIds: ids,
          }
          console.error(c1)
          cereResourceStrategy(c1).then(res => {
            if (res.code == 200) {
              this.addcl = false
              this.$message({
                message: '绑定成功',
                type: 'success'
              })
              editStatus({
                resourcesId: this.oncetype + this.oninfo.id,
                publishStatus: '3'
              }).then(res => {
                this.onSubmit()
              })
            } else {
              this.$message({
                message: '绑定失败',
                type: 'error'
              })
            }
          })
        },
        mingClose() {
          this.multipleSelection = []
          this.addcl = false
        },
        async opencl(row, e) {
          this.oncetype = e
          this.oninfo = row
          this.multipleSelection = []
          this.addcl = true
3f535f30   杨鑫   '初始'
378
379
        },
        chenge(val) {
3f535f30   杨鑫   '初始'
380
          if (val == 1) {
ad921312   wesley88   1
381
            this.leixing = true
9b392fc6   wesley88   1
382
383
            this.pagequery.advertisingSpaceType = '线上广告位'
            this.getAll()
3f535f30   杨鑫   '初始'
384
          } else {
ad921312   wesley88   1
385
            this.leixing = false
9b392fc6   wesley88   1
386
387
            this.pagequery.advertisingSpaceType = '实体广告位'
            this.getAll()
3f535f30   杨鑫   '初始'
388
          }
3f535f30   杨鑫   '初始'
389
        },
ad921312   wesley88   1
390
391
392
        gettime() {
          // 获取当前时间
          let currentTime = new Date();
3f535f30   杨鑫   '初始'
393
  
ad921312   wesley88   1
394
395
          // 获取年份
          let year = currentTime.getFullYear();
3f535f30   杨鑫   '初始'
396
  
ad921312   wesley88   1
397
398
          // 获取月份(注意月份是从0开始计数的,所以需要加1)
          let month = currentTime.getMonth() + 1;
3f535f30   杨鑫   '初始'
399
  
ad921312   wesley88   1
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
          // 获取日期
          let day = currentTime.getDate();
  
          // 获取小时
          let hours = currentTime.getHours();
  
          // 获取分钟
          let minutes = currentTime.getMinutes();
  
          // 获取秒数
          let seconds = currentTime.getSeconds();
  
          // 获取毫秒数
          let milliseconds = currentTime.getMilliseconds();
  
          // 格式化时间为 YYYY-MM-DD
          let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
  
          // 格式化时间为 HH:MM:SS
          let formattedTime =
            `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
  
          // 格式化时间为 YYYY-MM-DD HH:MM:SS
          let formattedDateTime = `${formattedDate} ${formattedTime}`;
          return formattedDateTime
3f535f30   杨鑫   '初始'
425
426
  
        },
9b392fc6   wesley88   1
427
        details(row,type) {
ad921312   wesley88   1
428
          this.detailsinfo = row
9b392fc6   wesley88   1
429
430
          this.issp = type
          // console.error(this.detailsinfo)
ad921312   wesley88   1
431
          this.onaction = '3'
3f535f30   杨鑫   '初始'
432
        },
ad921312   wesley88   1
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
        removeinfo(row, e) {
          this.contractChangeReason = e
          let dimensions_parts = row.dimensions.split(" ")
          let dimensions = row.equipmentSize.split(" ")
  
          dimensions_parts.forEach(part => {
            if (part.startsWith("长")) {
              row.dimensionsH = part.split(":")[1];
            } else if (part.startsWith("宽")) {
              row.dimensionsK = part.split(":")[1];
            }
          })
          dimensions.forEach(part => {
            if (part.startsWith("长")) {
              row.equipmentSizeH = part.split(":")[1];
            } else if (part.startsWith("宽")) {
              row.equipmentSizeK = part.split(":")[1];
            } else if (part.startsWith("高")) {
              row.equipmentSizeG = part.split(":")[1];
            }
          })
          this.detailsinfo = row
          this.onaction = '4'
        },
        async getAll() {
9b392fc6   wesley88   1
458
          // console.error({...this.pagequery})
ad921312   wesley88   1
459
460
          const res = await AdvertiserInfoGetAll(this.pagequery)
          this.tableData = res.data.content
5ebff886   wesley88   1
461
          this.total = res.data.totalElements || 0
ad921312   wesley88   1
462
          let obj1 = {
9b392fc6   wesley88   1
463
            pageNumber: 0,
ad921312   wesley88   1
464
465
466
467
468
469
470
            pageSize: 10,
            advertisingSpaceType: '线上广告位'
          }
          AdvertiserInfoGetAll(obj1).then(res1 => {
            this.xsNum = res1.data.totalElements
          })
          let obj2 = {
9b392fc6   wesley88   1
471
            pageNumber: 0,
ad921312   wesley88   1
472
473
474
475
476
477
478
479
480
481
482
483
            pageSize: 10,
            advertisingSpaceType: '实体广告位'
          }
          AdvertiserInfoGetAll(obj2).then(res2 => {
            this.xxNum = res2.data.totalElements
          })
        },
        removeonaction(e) {
          console.error(e)
          this.onaction = e
          this.pagequery.pageNumber = 0
          this.getAll()
3f535f30   杨鑫   '初始'
484
485
        },
        handleCurrentChange(val) {
ad921312   wesley88   1
486
487
          this.pagequery.pageNumber = val - 1
          this.getAll()
3f535f30   杨鑫   '初始'
488
        },
ad921312   wesley88   1
489
490
        handleSizeChange(val) {
          this.pagequery.pageSize = val
3f535f30   杨鑫   '初始'
491
492
493
        },
        // 查询按钮
        async onSubmit() {
ad921312   wesley88   1
494
495
          this.pagequery.pageNumber = 0
          this.getAll()
3f535f30   杨鑫   '初始'
496
497
498
        },
        //重置按钮
        resetting() {
ad921312   wesley88   1
499
          this.pagequery = {
9b392fc6   wesley88   1
500
501
502
503
504
505
                pageNumber: 0,
                pageSize: 10,
                advertisingSpaceType: this.pagequery.advertisingSpaceType,
                id:'',
                affiliation:'',
                applicant:'',
ad921312   wesley88   1
506
            },
3f535f30   杨鑫   '初始'
507
            this.getAll()
3f535f30   杨鑫   '初始'
508
        },
ad921312   wesley88   1
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
        //删除
        closemsg(item) {
          const h = this.$createElement;
          this.$msgbox({
            title: '消息',
            message: h('p', null, [
              h('span', null, '是否删除 '),
            ]),
            showCancelButton: true,
            showClose: false,
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            customClass: 'oe-dialog-btn',
            beforeClose: (action, instance, done) => {
              if (action === 'confirm') {
                delList({
                  id: item.id
                }).then(res => {
                  this.$message({
                    message: '删除成功',
                    type: 'success'
                  })
                  this.getAll()
                  done();
                })
              } else {
                done();
              }
            }
          })
3f535f30   杨鑫   '初始'
539
        },
3f535f30   杨鑫   '初始'
540
      }
3f535f30   杨鑫   '初始'
541
  
3f535f30   杨鑫   '初始'
542
543
544
545
546
547
548
549
    }
  </script>
  
  <style scoped>
    .zhuti {
      padding: 0 20px 20px 20px;
      min-height: calc(100vh - 50px - 20px);
      background-color: #Fff;
3f535f30   杨鑫   '初始'
550
  
ad921312   wesley88   1
551
    }
3f535f30   杨鑫   '初始'
552
553
554
555
556
557
    .chengeXia {
      border-bottom: 6px solid #3F9B6A;
      padding-bottom: 4px;
      color: #3F9B6A;
    }
  
3f535f30   杨鑫   '初始'
558
559
  
    .formSearch {
3f535f30   杨鑫   '初始'
560
561
562
563
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
3f535f30   杨鑫   '初始'
564
565
566
567
568
569
570
571
572
573
574
575
576
    }
  
    .bg-purple-dark {
      background: #99a9bf;
    }
  
    .bg-purple {
      background: #d3dce6;
    }
  
    .bg-purple-light {
      background: #e5e9f2;
    }
3f535f30   杨鑫   '初始'
577
578
579
580
581
    .grid-content {
      border-radius: 4px;
      min-height: 36px;
    }
  
3f535f30   杨鑫   '初始'
582
  
3f535f30   杨鑫   '初始'
583
584
  </style>
  <style lang="scss" scoped>
ad921312   wesley88   1
585
586
    ::v-deep .el-dialog__body {
      padding: 0 0 !important;
3f535f30   杨鑫   '初始'
587
588
    }
  
3f535f30   杨鑫   '初始'
589
  
ad921312   wesley88   1
590
591
592
    .el-dialog__header{
      padding: 0;
      display: none;
3f535f30   杨鑫   '初始'
593
    }
cfcb44ef   杨鑫   '改bug版'
594
  </style>