Blame view

admin-web-master/src/views/scheme/sam.vue 19.4 KB
3f535f30   杨鑫   '初始'
1
2
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
90d96766   wesley88   1
3
      <div class="zhuti" v-if="onaction == '1'">
3f535f30   杨鑫   '初始'
4
5
6
7
8
9
10
11
12
13
14
15
        <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>
          <!-- 搜索 -->
          <div class="formSearch">
            <div class="demo-input-suffix">
              <div style="width:68px;height:36px;line-height:32px;">策略名称</div>
              <el-input placeholder="请输入" v-model="formSel.policyName" style="width:168px;margin-right: 15px">
              </el-input>
              <div style="width:68px;height:36px;line-height:32px;">适用资源</div>
bdbe3660   wesley88   1
16
              <el-select v-model="formSel.applicableResources" placeholder="请选择" style="width: 168px;margin-right: 15px">
3f535f30   杨鑫   '初始'
17
18
19
20
                <el-option label="商铺" value="商铺" />
                <el-option label="场地" value="场地" />
                <el-option label="广告位" value="广告位" />
              </el-select>
90d96766   wesley88   1
21
              <!-- <div style="width:68px;height:36px;line-height:32px;">租期</div>
3f535f30   杨鑫   '初始'
22
23
24
              <el-date-picker  style="width:168px;margin-right: 15px" v-model="plan_Time" value-format="yyyy-MM-dd HH:mm:ss"
                type="datetimerange" range-separator="-" start-placeholder="" end-placeholder=""   prefix-icon="none">
              </el-date-picker> -->
bdbe3660   wesley88   1
25
  
4394f7f2   杨鑫   '策略'
26
  
3f535f30   杨鑫   '初始'
27
              <div style="width:68px;height:36px;line-height:32px;">是否出租</div>
90d96766   wesley88   1
28
              <el-select v-model="formSel.isRental" placeholder="请选择" style="width:168px;margin-right: 15px">
4394f7f2   杨鑫   '策略'
29
                <el-option label="自营" value="0" />
3f535f30   杨鑫   '初始'
30
31
                <el-option label="是" value="1" />
              </el-select>
bdbe3660   wesley88   1
32
33
              <div style="width:68px;height:36px;line-height:32px;">经营类型</div>
              <el-input placeholder="请输入" v-model="formSel.businessType" style="width:168px;margin-right: 15px" />
4394f7f2   杨鑫   '策略'
34
  
3f535f30   杨鑫   '初始'
35
36
            </div>
            <div>
90d96766   wesley88   1
37
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
3f535f30   杨鑫   '初始'
38
39
40
41
42
43
44
              </el-button>
              <el-button @click="resetting" class="buttonHover"
                style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">重置
              </el-button>
            </div>
          </div>
          <div style="margin:20px 0;">
90d96766   wesley88   1
45
            <el-button icon="el-icon-circle-plus-outline"  @click="removeonaction('2')"
3f535f30   杨鑫   '初始'
46
47
48
49
50
              style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">新增</el-button>
          </div>
  
          <!-- 表格 -->
          <el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
90d96766   wesley88   1
51
52
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
            <el-table-column label="序号" min-width="100">
3f535f30   杨鑫   '初始'
53
54
              <template slot-scope="scope">
                {{scope.$index +1}}
90d96766   wesley88   1
55
              </template>
3f535f30   杨鑫   '初始'
56
            </el-table-column>
90d96766   wesley88   1
57
            <el-table-column label="策略名称" prop="policyName" min-width="200">
3f535f30   杨鑫   '初始'
58
            </el-table-column>
90d96766   wesley88   1
59
            <el-table-column label="适用资源" prop="applicableResources" min-width="100">
3f535f30   杨鑫   '初始'
60
            </el-table-column>
7ab02d9a   杨鑫   问卷完成,最新
61
            <el-table-column label="经营类型" prop="businessType" min-width="100">
02c2ca01   杨鑫   最新2
62
63
64
65
  <template slot-scope="scope">
  			    <span v-if="scope.row.businessType!=''">{{scope.row.businessType}}</span>
                    <span v-else>-</span>
  			  </template>
3f535f30   杨鑫   '初始'
66
            </el-table-column>
02c2ca01   杨鑫   最新2
67
            <el-table-column label="租金价格(元)" prop="rentalPrice" min-width="150">
3c4666ce   杨鑫   '最新'
68
  			  <template slot-scope="scope">
2210df30   wesley88   1
69
  			    <span v-if="scope.row.rentalPrice!=''">{{scope.row.rentalPrice}}元/m²</span>
02c2ca01   杨鑫   最新2
70
                    <span v-else>-</span>
3c4666ce   杨鑫   '最新'
71
  			  </template>
3f535f30   杨鑫   '初始'
72
            </el-table-column>
90d96766   wesley88   1
73
            <el-table-column label="租期" prop="leaseTerm" min-width="100">
02c2ca01   杨鑫   最新2
74
75
76
77
  			  <template slot-scope="scope">
  			  			    <span v-if="scope.row.leaseTerm!=''">{{scope.row.leaseTerm}}</span>
  			                    <span v-else>-</span>
  			  			  </template>
3f535f30   杨鑫   '初始'
78
            </el-table-column>
90d96766   wesley88   1
79
            <el-table-column label="是否出租" prop="isRental" min-width="100">
3f535f30   杨鑫   '初始'
80
              <template slot-scope="scope">
4394f7f2   杨鑫   '策略'
81
                {{scope.row.isRental == '0'?'自营':'是'}}
90d96766   wesley88   1
82
              </template>
3f535f30   杨鑫   '初始'
83
            </el-table-column>
7ab02d9a   杨鑫   问卷完成,最新
84
  
4394f7f2   杨鑫   '策略'
85
  
90d96766   wesley88   1
86
            <el-table-column label="操作" min-width="200">
3f535f30   杨鑫   '初始'
87
              <template slot-scope="scope">
bdbe3660   wesley88   1
88
                <div @click="details(scope.row)" class="tableBtn greens">查看</div>
90d96766   wesley88   1
89
                <div @click="removeinfo(scope.row)" class="tableBtn greens">编辑</div>
c3f8e431   wesley88   1
90
                <!-- <div @click="handleDelete(scope.row)" class="tableBtn greens">删除</div> -->
3f535f30   杨鑫   '初始'
91
92
93
              </template>
            </el-table-column>
          </el-table>
90d96766   wesley88   1
94
95
96
97
98
99
          <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="pageindex.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="pageindex.pageSize"
              background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange">
            </el-pagination>
3f535f30   杨鑫   '初始'
100
101
102
          </div>
        </div>
      </div>
90d96766   wesley88   1
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
      <div class="zhuti" v-if="onaction == '2'">
        <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="padding: 20px 20px 20px 0;">
          <addsam @removeonaction="removeonaction"></addsam>
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '3'">
        <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>
          <sam :editbgid="detailsinfo" @removeonaction="removeonaction"></sam>
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '4'">
        <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="padding: 20px 20px 20px 0;">
          <addsam :info="detailsinfo" @removeonaction="removeonaction"></addsam>
        </div>
      </div>
3f535f30   杨鑫   '初始'
132
      <!-- 详情编辑页 -->
90d96766   wesley88   1
133
134
      <el-dialog :title="xiangqing==1?'详情页':'编辑页'" :visible.sync="xiang" custom-class='bian_css' style="padding: 0;"
        width="65%" center :close-on-click-modal="false" :show-close="false">
3f535f30   杨鑫   '初始'
135
        <div style="padding:20px">
90d96766   wesley88   1
136
          <el-form :model="secondData" ref="ruleForm" label-width="80px">
3f535f30   杨鑫   '初始'
137
            <el-form-item label="策略名称" prop="policyName">
90d96766   wesley88   1
138
139
              <el-input v-model="secondData.policyName" style="width: 87%;margin-right: 15px"
                :disabled="xiangqing==1?true:false"></el-input>
3f535f30   杨鑫   '初始'
140
141
142
            </el-form-item>
            <el-form-item label="适用资源" prop="applicableResources">
              <el-radio-group v-model="secondData.applicableResources" :disabled="xiangqing==1?true:false">
90d96766   wesley88   1
143
144
145
                <el-radio label="商铺" value="商铺">商铺</el-radio>
                <el-radio label="场地" value="场地">场地</el-radio>
                <el-radio label="广告位" value="广告位">广告位</el-radio>
3f535f30   杨鑫   '初始'
146
147
148
149
              </el-radio-group>
            </el-form-item>
            <el-form-item label="策略模板" prop="policyTemplate">
              <el-select v-model="secondData.policyTemplate" style="width: 87%;margin-right: 15px" disabled>
eaa0f084   杨鑫   '1111'
150
                <el-option :label="item.policyName" :value="item.id" v-for="(item,index) in modelData" />
3f535f30   杨鑫   '初始'
151
152
153
154
155
              </el-select>
            </el-form-item>
            <el-row>
              <el-col :span="12">
                <el-form-item label="是否出租" prop="isRental">
90d96766   wesley88   1
156
157
                  <el-select v-model="secondData.isRental" style="width: 72%;margin-right: 15px"
                    :disabled="xiangqing==1?true:false">
3f535f30   杨鑫   '初始'
158
159
160
161
162
163
                    <el-option label="否" value="0" />
                    <el-option label="是" value="1" />
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
4394f7f2   杨鑫   '策略'
164
                <el-form-item label="经营类型" prop="businessType" v-if="secondData.applicableResources == '商铺'">
90d96766   wesley88   1
165
166
                  <el-input v-model="secondData.businessType" placeholder="请输入" style="width:  72%;margin-right: 15px"
                    maxlength="50" :disabled="xiangqing==1?true:false"></el-input>
3f535f30   杨鑫   '初始'
167
168
169
170
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
4394f7f2   杨鑫   '策略'
171
  
3f535f30   杨鑫   '初始'
172
173
              <el-col :span="12">
                <el-form-item label="租金价格" prop="rentalPrice">
90d96766   wesley88   1
174
175
                  <el-input v-model="secondData.rentalPrice" style="width: 72%;margin-right: 15px;"
                    :disabled="xiangqing==1?true:false">
3f535f30   杨鑫   '初始'
176
177
178
179
180
181
182
                    <template slot="suffix"><span
                        style="position: absolute;top: 19px;right: 1px;width: 50px;">元/m<sup>2</sup></span></template>
                    <!-- <i slot="suffix" class="el-input__icon el-icon-date"></i> -->
                  </el-input>
  
                </el-form-item>
              </el-col>
3f535f30   杨鑫   '初始'
183
              <el-col :span="12">
4394f7f2   杨鑫   '策略'
184
                <el-form-item label="付款周期" prop="leaseTerm">
90d96766   wesley88   1
185
186
                  <el-select v-model="secondData.leaseTerm" placeholder="请选择" style="width: 72%;margin-right: 15px"
                    :disabled="xiangqing==1?true:false">
4394f7f2   杨鑫   '策略'
187
188
189
190
191
                    <el-option label="日" value="日" />
                    <el-option label="月" value="月" />
                    <el-option label="季" value="季" />
                    <el-option label="年" value="年" />
                  </el-select>
3f535f30   杨鑫   '初始'
192
193
                </el-form-item>
              </el-col>
4394f7f2   杨鑫   '策略'
194
195
196
            </el-row>
  
            <el-row>
3f535f30   杨鑫   '初始'
197
198
199
              <el-col :span="12">
                <el-form-item label="租赁时段" prop="leaseDate">
                  <el-date-picker v-model="leaseDate" value-format="yyyy-MM-dd" type="daterange" range-separator="至"
90d96766   wesley88   1
200
201
                    start-placeholder="开始日期" end-placeholder="结束日期" style="width: 72%;"
                    :disabled="xiangqing==1?true:false">
3f535f30   杨鑫   '初始'
202
203
204
                  </el-date-picker>
                </el-form-item>
              </el-col>
3f535f30   杨鑫   '初始'
205
206
              <el-col :span="12">
                <el-form-item label="免租条件" prop="rentFreeCondition">
90d96766   wesley88   1
207
208
                  <el-input v-model="secondData.rentFreeCondition" style="width: 72%;"
                    :disabled="xiangqing==1?true:false"></el-input>
3f535f30   杨鑫   '初始'
209
210
                </el-form-item>
              </el-col>
4394f7f2   杨鑫   '策略'
211
212
213
  
            </el-row>
            <el-row>
3f535f30   杨鑫   '初始'
214
215
              <el-col :span="12">
                <el-form-item label="免租期" prop="rentFreePeriod">
3f535f30   杨鑫   '初始'
216
  
90d96766   wesley88   1
217
218
                  <el-select v-model="secondData.rentFreePeriod" placeholder="请选择" style="width: 72%;margin-right: 15px"
                    :disabled="xiangqing==1?true:false">
4394f7f2   杨鑫   '策略'
219
220
                    <el-option :label="item" :value="item" v-for="item in 31" />
                  </el-select>
3f535f30   杨鑫   '初始'
221
222
                </el-form-item>
              </el-col>
3f535f30   杨鑫   '初始'
223
              <el-col :span="12">
4394f7f2   杨鑫   '策略'
224
                <el-form-item label="付款日" prop="payDay">
90d96766   wesley88   1
225
226
                  <el-select v-model="secondData.payDay" placeholder="请选择" style="width: 72%;margin-right: 15px"
                    :disabled="xiangqing==1?true:false">
4394f7f2   杨鑫   '策略'
227
228
                    <el-option :label="item" :value="item" v-for="item in 31" />
                  </el-select>
3f535f30   杨鑫   '初始'
229
230
                </el-form-item>
              </el-col>
4394f7f2   杨鑫   '策略'
231
            </el-row>
90d96766   wesley88   1
232
233
234
235
236
237
            <el-row>
              <el-col :span="24">
                <div style="display: flex;align-items: baseline;" v-if="xiangqing==1">
                  <div style="height:20px; padding: 0 0 0 12px;color:#000000e6;">优惠政策</div>
                  <div style="padding:20px 10px;width:90%;" v-html="secondData.preferentialPolicy"></div>
                </div>
1ab21b43   杨鑫   '策略'
238
                <el-form-item label="优惠政策" prop="preferentialPolicy" v-else>
90d96766   wesley88   1
239
240
                  <!-- <div style="border: 1px solid #dddfe5;padding:20px;" v-html="secondData.preferentialPolicy" v-if="xiangqing==1"></div> -->
                  <wangEditor v-model="secondData.preferentialPolicy" ref="editor" :height="100"></wangEditor>
4394f7f2   杨鑫   '策略'
241
  
3f535f30   杨鑫   '初始'
242
243
                </el-form-item>
              </el-col>
4394f7f2   杨鑫   '策略'
244
245
246
247
248
  
            </el-row>
            <el-row>
  
              <el-col :span="24">
90d96766   wesley88   1
249
250
251
                <div style="display: flex;align-items: baseline;" v-if="xiangqing==1">
                  <div style="height:20px; padding: 0 0 0 12px;color:#000000e6;">其他说明</div>
                  <div style="padding:20px 10px;width:90%;" v-html="secondData.otherDescription"></div>
1ab21b43   杨鑫   '策略'
252
253
                </div>
                <el-form-item label="其他说明" prop="otherDescription" v-else>
90d96766   wesley88   1
254
255
                  <!-- <div style="border: 1px solid #dddfe5;padding:20px;" v-html="secondData.otherDescription" v-if="xiangqing==1"></div> -->
                  <wangEditor v-model="secondData.otherDescription" ref="editor" :height="100"></wangEditor>
4394f7f2   杨鑫   '策略'
256
257
258
                </el-form-item>
              </el-col>
  
3f535f30   杨鑫   '初始'
259
260
            </el-row>
          </el-form>
4394f7f2   杨鑫   '策略'
261
          <div style="display: flex;justify-content: flex-end;margin-top:20px;">
3f535f30   杨鑫   '初始'
262
            <el-button @click="closexaing(1)" class="buttonHover"
90d96766   wesley88   1
263
264
265
              style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">取消</el-button>
            <el-button @click="addCheck()" style="background-color: #3F9B6A;color: #fff"
              v-if="xiangqing==2">确定</el-button>
3f535f30   杨鑫   '初始'
266
267
268
269
270
271
  
  
          </div>
        </div>
  
      </el-dialog>
90d96766   wesley88   1
272
      <samXin :xinShow="ggXin" @childClose='childClose'></samXin>
3f535f30   杨鑫   '初始'
273
274
275
276
277
    </div>
  </template>
  
  <script>
    import {
90d96766   wesley88   1
278
279
280
281
      ceGetAll,
      ceAdd,
      ceEdit,
      ceDel,
3f535f30   杨鑫   '初始'
282
    } from '../../api/sam.js'
90d96766   wesley88   1
283
284
    import addsam from "@/components/add/addsam"
     import sam from "@/components/chakan/sam"
3f535f30   杨鑫   '初始'
285
286
    import wangEditor from "@/components/editor/index"
    import upimg from "@/components/ImageUpload/index"
90d96766   wesley88   1
287
    import samXin from "./samXin"
3f535f30   杨鑫   '初始'
288
289
290
291
    import {
      uploadUrl
    } from '@/utils/request'
    export default {
90d96766   wesley88   1
292
293
294
295
296
297
298
      components: {
        wangEditor,
        upimg,
        samXin,
        sam,
        addsam
      },
3f535f30   杨鑫   '初始'
299
300
      data() {
        return {
e75fe4fe   wesley88   2
301
          onaction: '1',
90d96766   wesley88   1
302
          detailsinfo: {},
3f535f30   杨鑫   '初始'
303
          formInline: {},
90d96766   wesley88   1
304
305
          upload: uploadUrl,
          plan_Time: [],
3f535f30   杨鑫   '初始'
306
          formSel: {
90d96766   wesley88   1
307
308
309
310
311
            policyName: '',
            applicableResources: '',
            businessType: '',
            isRental: '',
            isSelfOperated: '',
60cd6339   杨鑫   '最新'
312
            pageNumber: 0,
90d96766   wesley88   1
313
            pageSize: 10,
3f535f30   杨鑫   '初始'
314
315
          },
          secondData: {},
90d96766   wesley88   1
316
317
          xiangqing: 0,
          xiang: false,
3f535f30   杨鑫   '初始'
318
          currentPage: 1,
ab818baa   杨鑫   '1'
319
          total: 0,
3f535f30   杨鑫   '初始'
320
321
322
323
324
          flag: false,
          pageSize: 10,
          ggXin: false,
          tableData: [],
          pageindex: {
ad921312   wesley88   1
325
            pageNumber: 0,
3f535f30   杨鑫   '初始'
326
            pageSize: 10,
90d96766   wesley88   1
327
            isTemplate: '1'
3f535f30   杨鑫   '初始'
328
          },
eaa0f084   杨鑫   '1111'
329
          Modelpageindex: {
60cd6339   杨鑫   '最新'
330
            pageNumber: 0,
eaa0f084   杨鑫   '1111'
331
            pageSize: 10,
90d96766   wesley88   1
332
            isTemplate: '0'
eaa0f084   杨鑫   '1111'
333
          },
3f535f30   杨鑫   '初始'
334
          fileList: [],
90d96766   wesley88   1
335
336
337
          paymentDate: [],
          leaseDate: [],
          modelData: []
3f535f30   杨鑫   '初始'
338
339
340
341
342
343
344
345
        }
      },
  
      created() {
  
  
      },
      mounted() {
90d96766   wesley88   1
346
        this.getAll()
3f535f30   杨鑫   '初始'
347
348
349
      },
  
      methods: {
bdbe3660   wesley88   1
350
351
352
353
        details(row) {
          this.detailsinfo = row
          this.onaction = '3'
        },
90d96766   wesley88   1
354
355
356
357
358
359
360
361
362
363
364
        removeinfo(row) {
          this.detailsinfo = row
          this.onaction = '4'
        },
  
        removeonaction(e) {
          console.error(e)
          this.onaction = e
          this.pageindex.pageNumber = 0
          this.getAll()
        },
3f535f30   杨鑫   '初始'
365
366
367
        //查询全数据
        async getAll() {
          const res = await ceGetAll(this.pageindex)
3f535f30   杨鑫   '初始'
368
          this.tableData = res.data.content
90d96766   wesley88   1
369
370
371
          this.total = res.data.totalElements
          const ce = await ceGetAll(this.Modelpageindex)
          this.modelData = ce.data.content
3f535f30   杨鑫   '初始'
372
373
374
        },
  
        //删除记录按钮
90d96766   wesley88   1
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
        handleDelete(val) {
          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') {
                ceDel({
                  id: val.id
                }).then(res => {
                  this.getAll()
7ab02d9a   杨鑫   问卷完成,最新
393
                  done();
90d96766   wesley88   1
394
395
396
                })
              } else {
                done();
7ab02d9a   杨鑫   问卷完成,最新
397
              }
90d96766   wesley88   1
398
399
            }
          })
7ab02d9a   杨鑫   问卷完成,最新
400
  
3f535f30   杨鑫   '初始'
401
402
403
        },
        //查询
        async onSubmit() {
90d96766   wesley88   1
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
          if (this.plan_Time.length != 0) {
            this.formSel.leaseStartDate = this.plan_Time[0]
            this.formSel.leaseEndDate = this.plan_Time[1]
          }
          this.formSel.isTemplate = '1'
          const {
            createUser,
            createDate,
            ...rest
          } = this.formSel
  
          // 将剩余的字段存储到this.zhong对象中
          this.formSel = rest
  
          const res = await ceGetAll(this.formSel)
          this.tableData = res.data.content
          this.total = res.data.content.length
3f535f30   杨鑫   '初始'
421
422
423
        },
  
        //详情点击
90d96766   wesley88   1
424
425
        handleEditForm(item, val) {
          this.secondData = item
3f535f30   杨鑫   '初始'
426
427
428
          this.xiangqing = val
          this.xiang = true
          this.paymentDate[0] = item.paymentStartDate
90d96766   wesley88   1
429
          this.paymentDate[1] = item.paymentEndDate
3f535f30   杨鑫   '初始'
430
          this.leaseDate[0] = item.leaseStartDate
90d96766   wesley88   1
431
          this.leaseDate[1] = item.leaseEndDate
3f535f30   杨鑫   '初始'
432
433
434
        },
  
        handleCurrentChange(val) {
90d96766   wesley88   1
435
436
          this.pageindex.pageNumber = val - 1
          this.getAll()
3f535f30   杨鑫   '初始'
437
438
        },
        handleSizeChange(val) {
90d96766   wesley88   1
439
440
441
          this.pageindex.pageSize = val
          this.pageindex.pageNumber = 0
          this.getAll()
3f535f30   杨鑫   '初始'
442
443
444
445
        },
        closeFn() {
          this.ggXin = false
        },
90d96766   wesley88   1
446
        closexaing(val) {
eaa0f084   杨鑫   '1111'
447
  
3f535f30   杨鑫   '初始'
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
          this.xiang = false
        },
        handleClick() {
  
        },
        //上传
  
        handlePreview(file) {
          console.log(file);
        },
        handleRemove(file, fileList) {
          console.log(file, fileList);
        },
        //重置按钮
        resetting() {
          this.formSel = {
  
90d96766   wesley88   1
465
466
467
468
469
              policyName: '',
              applicableResources: '',
              businessType: '',
              isRental: '',
              isSelfOperated: '',
60cd6339   杨鑫   '最新'
470
              pageNumber: 0,
3f535f30   杨鑫   '初始'
471
472
473
474
475
476
477
478
479
480
481
              pageSize: 10,
  
  
            },
            this.getAll()
  
        },
        childClose(msg) {
          this.ggXin = msg
          this.getAll()
        },
90d96766   wesley88   1
482
483
        addbuss() {
          this.ggXin = true
3f535f30   杨鑫   '初始'
484
485
        },
        // 编辑确定
90d96766   wesley88   1
486
487
488
489
490
491
492
493
494
        async addCheck() {
          if (this.leaseDate.length != 0) {
            this.secondData.leaseStartDate = this.leaseDate[0]
            this.secondData.leaseEndDate = this.leaseDate[1]
          }
          if (this.paymentDate.length != 0) {
            this.secondData.paymentStartDate = this.paymentDate[0]
            this.secondData.paymentEndDate = this.paymentDate[1]
          }
3f535f30   杨鑫   '初始'
495
          await ceEdit(this.secondData)
90d96766   wesley88   1
496
497
          this.xiang = false
          this.getAll()
3f535f30   杨鑫   '初始'
498
499
500
501
        },
      }
    }
  </script>
3f535f30   杨鑫   '初始'
502
  
90d96766   wesley88   1
503
  <style scoped>
3f535f30   杨鑫   '初始'
504
505
506
507
508
509
    .zhuti {
      padding: 0 20px 20px 20px;
      min-height: calc(100vh - 50px - 20px);
      background-color: #Fff;
  
    }
90d96766   wesley88   1
510
511
512
    .chengeXia {
      border-bottom: 6px solid #3F9B6A;
      padding-bottom: 4px;
3f535f30   杨鑫   '初始'
513
514
515
516
      color: #3F9B6A;
    }
  
  
90d96766   wesley88   1
517
    .formSearch {
3f535f30   杨鑫   '初始'
518
      display: flex;
90d96766   wesley88   1
519
520
521
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
3f535f30   杨鑫   '初始'
522
    }
90d96766   wesley88   1
523
524
    .greens {
      color: #3F9B6A;
3f535f30   杨鑫   '初始'
525
    }
3f535f30   杨鑫   '初始'
526
527
528
529
530
    .bg-purple-dark {
      background: #99a9bf;
    }
  
    .bg-purple {
90d96766   wesley88   1
531
      background: #d3dce6;
3f535f30   杨鑫   '初始'
532
533
534
535
536
    }
  
    .bg-purple-light {
      background: #e5e9f2;
    }
3f535f30   杨鑫   '初始'
537
538
539
540
541
    .grid-content {
      border-radius: 4px;
      min-height: 36px;
    }
  
3f535f30   杨鑫   '初始'
542
543
  </style>
  <style lang="scss" scoped>
90d96766   wesley88   1
544
545
    ::v-deep .el-dialog__body {
      padding: 0 0 !important;
3f535f30   杨鑫   '初始'
546
    }
90d96766   wesley88   1
547
548
549
    .el-dialog__header{
      padding: 0;
      display: none;
3f535f30   杨鑫   '初始'
550
    }
60cd6339   杨鑫   '最新'
551
  </style>