Quellcode durchsuchen

添加创建会议联系人/修改创建会议接口

lyn7568 vor 4 Jahren
Ursprung
Commit
94e80ae7c7

+ 2 - 0
src/components/meetingbox/index.vue

@ -79,6 +79,8 @@ export default {
79 79
          status: this.list.isCheck === 0 ? 1 : 2
80 80
        }
81 81
      }).then(({ data }) => {
82
          window.console.log(data)
83
82 84
        if (data) {
83 85
          this.$emit("statusMeeting");
84 86
        } else {

+ 7 - 4
src/views/common/home.vue

@ -20,7 +20,7 @@
20 20
      </el-col>
21 21
22 22
      <meeting-box
23
        v-for="item in unpublished"
23
        v-for="(item,index) in unpublished"
24 24
        :key="item.id"
25 25
        :list="item"
26 26
        style="margin-top:10px;"
@ -36,7 +36,7 @@
36 36
    </el-row>
37 37
    <el-row>
38 38
      <meeting-box
39
        v-for="item in release"
39
        v-for="(item,index) in release"
40 40
        :key="item.id"
41 41
        :list="item"
42 42
        style="margin-top:20px;"
@ -52,7 +52,7 @@
52 52
    </el-row>
53 53
    <el-row>
54 54
      <meeting-box
55
        v-for="item in delRelease"
55
        v-for="(item,index) in delRelease"
56 56
        :key="item.id"
57 57
        :list="item"
58 58
        style="margin-top:20px;"
@ -106,6 +106,10 @@ export default {
106 106
  methods: {
107 107
    // 获取数据列表
108 108
    getDataList() {
109
       this.unpublished = [];
110
      this.release = [];
111
      this.delRelease = [];
112
109 113
      this.dataListLoading = true;
110 114
      this.$http({
111 115
        url: this.$http.adornUrl("/admin/meeting/list"),
@ -117,7 +121,6 @@ export default {
117 121
        })
118 122
      }).then(({ data }) => {
119 123
        if (data && data.code === 0) {
120
          window.console.log(data);
121 124
          this.dataList = data.list;
122 125
          this.getHandleDataList(data.list);
123 126
        } else {

+ 81 - 62
src/views/modules/admin/meeting-add-or-update.vue

@ -63,7 +63,6 @@
63 63
      </el-form-item>
64 64
65 65
      <el-form-item label="涉及学科" prop="subjects">
66
        <!-- <el-input v-model="dataForm.subjects" placeholder=""></el-input> -->
67 66
        <el-autocomplete
68 67
          v-model="dataForm.subjects"
69 68
          :fetch-suggestions="querySearchAsync"
@ -99,11 +98,37 @@
99 98
      <el-form-item v-if="this.typesofattender.length!==0">
100 99
        <el-tag v-for="(item) in typesofattender" style="margin-right:8px">{{item}}</el-tag>
101 100
      </el-form-item>
101
      <el-form-item label="联系人" prop="serviceEm">
102
        <el-select
103
          v-model="dataForm.contactNames"
104
          filterable
105
          placeholder="请选择"
106
          style="width:220px"
107
          @change="handEmploye"
108
        >
109
          <el-option
110
            v-for="item in employeeList"
111
            :key="item.id"
112
            :label="item.truename"
113
            :value="item.id"
114
          ></el-option>
115
        </el-select>
116
      </el-form-item>
117
      <el-form-item v-if="this.employeePersonId.length!==0">
118
        <el-tag v-for="(item) in employeePerson" :key="item" style="margin-right:8px">{{item}}</el-tag>
119
      </el-form-item>
120
102 121
      <el-form-item label="会议负责人" prop="serviceEmp">
103
        <el-input v-model="dataForm.serviceEmp" placeholder="会议负责人"></el-input>
122
        <el-select v-model="dataForm.serviceIds" filterable placeholder="请选择" style="width:220px">
123
          <el-option
124
            v-for="item in employeeList"
125
            :key="item.id"
126
            :label="item.truename"
127
            :value="item.id"
128
          ></el-option>
129
        </el-select>
104 130
      </el-form-item>
105 131
      <el-form-item label="线上报名开始时间" prop="onlineRegDeadline">
106
        <!-- <el-input v-model="dataForm.onlineRegDeadline" placeholder="线上报名截止时间"></el-input> -->
107 132
        <el-date-picker
108 133
          v-model="dataForm.onlineRegDeadline"
109 134
          type="datetime"
@ -112,7 +137,6 @@
112 137
        ></el-date-picker>
113 138
      </el-form-item>
114 139
      <el-form-item label="现场报名截止时间" prop="onsiteRegDeadline">
115
        <!-- <el-input v-model="dataForm.onsiteRegDeadline" placeholder="现场报名截止时间"></el-input> -->
116 140
        <el-date-picker
117 141
          v-model="dataForm.onsiteRegDeadline"
118 142
          type="datetime"
@ -120,25 +144,8 @@
120 144
          value-format="yyyy-MM-dd HH:mm:ss"
121 145
        ></el-date-picker>
122 146
      </el-form-item>
123
      <el-form-item label="投稿截止时间" prop="subDeadline">
124
        <el-date-picker
125
          v-model="dataForm.subDeadline"
126
          type="datetime"
127
          placeholder="截止时间"
128
          value-format="yyyy-MM-dd HH:mm:ss"
129
        ></el-date-picker>
130
      </el-form-item>
131
      <el-form-item label="投稿范围及要求" prop="subRequirement">
132
        <!-- <el-input v-model="dataForm.subRequirement" placeholder="投稿范围及要求"></el-input> -->
133
        <el-input
134
          type="textarea"
135
          :autosize="{ minRows: 2, maxRows: 4}"
136
          placeholder="请输入内容"
137
          v-model="dataForm.subRequirement"
138
        ></el-input>
139
      </el-form-item>
147
140 148
      <el-form-item label="会议介绍" prop="introduction">
141
        <!-- <el-input v-model="dataForm.introduction" placeholder="会议介绍"></el-input> -->
142 149
        <el-input
143 150
          type="textarea"
144 151
          :autosize="{ minRows: 2, maxRows: 10}"
@ -146,21 +153,6 @@
146 153
          v-model="dataForm.introduction"
147 154
        ></el-input>
148 155
      </el-form-item>
149
      <!-- <el-form-item label="投稿要求id" prop="paperRequireId">
150
        <el-input v-model="dataForm.paperRequireId" placeholder="投稿要求id"></el-input>
151
      </el-form-item>-->
152
      <!-- <el-form-item label="创建时间" prop="createTime">
153
        <el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
154
      </el-form-item>
155
      <el-form-item label="修改时间" prop="modifyTime">
156
        <el-input v-model="dataForm.modifyTime" placeholder="修改时间"></el-input>
157
      </el-form-item>-->
158
      <!-- <el-form-item label="是否通过审核 0:未通过 1:通过" prop="isCheck">
159
        <el-input v-model="dataForm.isCheck" placeholder="是否通过审核 0:未通过 1:通过"></el-input>
160
      </el-form-item>-->
161
      <!-- <el-form-item label="是否被删除 状态  0:正常   1:删除" prop="isDel">
162
        <el-input v-model="dataForm.isDel" placeholder="是否被删除 状态  0:正常   1:删除"></el-input>
163
      </el-form-item>-->
164 156
    </el-form>
165 157
    <span slot="footer" class="dialog-footer">
166 158
      <el-button @click="visible = false">取消</el-button>
@ -177,9 +169,9 @@ export default {
177 169
      imageUrl: "",
178 170
      visible: false,
179 171
      dialogVisible: false,
172
180 173
      dataForm: {
181
        id: 0,
182
        companyId: "",
174
        companyId: 1,
183 175
        nameCn: "",
184 176
        nameEn: "",
185 177
        address: "",
@ -190,16 +182,15 @@ export default {
190 182
        subjects: "",
191 183
        industries: "",
192 184
        attendersType: "",
193
        serviceEmp: "",
185
        serviceName: "",
186
        serviceIds: "",
187
        contactNames: "", // 联系人ids
188
        contactIds: "", // 联系人姓名
194 189
        onlineRegDeadline: "",
195 190
        onsiteRegDeadline: "",
196
        subDeadline: "",
197
        subRequirement: "",
198
        introduction: "",
199
        paperRequireId: "",
200
        createTime: "",
201
        modifyTime: ""
191
        introduction: ""
202 192
      },
193
203 194
      dataRule: {
204 195
        companyId: [
205 196
          { required: true, message: "举办单位id不能为空", trigger: "blur" }
@ -219,16 +210,7 @@ export default {
219 210
        endTime: [
220 211
          { required: true, message: "结束时间不能为空", trigger: "blur" }
221 212
        ],
222
        // titlePicture: [
223
        //   {
224
        //     required: true,
225
        //     message: "会议封面图片地址不能为空",
226
        //     trigger: "blur"
227
        //   }
228
        // ],
229
        serviceEmp: [
230
          { required: true, message: "会议负责人不能为空", trigger: "blur" }
231
        ],
213
232 214
        onlineRegDeadline: [
233 215
          {
234 216
            required: true,
@ -287,13 +269,17 @@ export default {
287 269
      industryRestaurants: [], //行业表信息
288 270
      industry: [], //提交后台行业表
289 271
      typesofattendersRestaurants: [], //参会人员表信息
290
      typesofattender: [] //参会人员提交后台
272
      typesofattender: [], //参会人员提交后台
273
      employeeList: [], //员工表信息
274
      employeePersonId: [],
275
      employeePerson: []
291 276
    };
292 277
  },
293 278
  mounted() {
294 279
    this.getSubject();
295 280
    this.getIndustries();
296 281
    this.getAttendersType();
282
    this.getEmployeeList();
297 283
  },
298 284
  methods: {
299 285
    init(id) {
@ -321,8 +307,6 @@ export default {
321 307
              this.dataForm.serviceEmp = data.meeting.serviceEmp;
322 308
              this.dataForm.onlineRegDeadline = data.meeting.onlineRegDeadline;
323 309
              this.dataForm.onsiteRegDeadline = data.meeting.onsiteRegDeadline;
324
              this.dataForm.subDeadline = data.meeting.subDeadline;
325
              this.dataForm.subRequirement = data.meeting.subRequirement;
326 310
              this.dataForm.introduction = data.meeting.introduction;
327 311
            }
328 312
          });
@ -352,11 +336,11 @@ export default {
352 336
              subjects: this.subjects.join(),
353 337
              industries: this.industry.join(),
354 338
              attendersType: this.typesofattender.join(),
355
              serviceEmp: this.dataForm.serviceEmp,
339
              serviceIds: this.dataForm.serviceIds,
340
              contactNames: this.employeePerson.join(),
341
              contactIds: this.employeePersonId.join(),
356 342
              onlineRegDeadline: this.dataForm.onlineRegDeadline,
357 343
              onsiteRegDeadline: this.dataForm.onsiteRegDeadline,
358
              subDeadline: this.dataForm.subDeadline,
359
              subRequirement: this.dataForm.subRequirement,
360 344
              introduction: this.dataForm.introduction
361 345
            })
362 346
          }).then(({ data }) => {
@ -506,8 +490,43 @@ export default {
506 490
        this.typesofattender.push(this.dataForm.attendersType);
507 491
        this.dataForm.attendersType = "";
508 492
      }
493
    },
494
    //获取员工列表模糊查询
495
    getEmployeeList() {
496
      this.$http({
497
        url: this.$http.adornUrl(`/admin/employee/findAllByTrueName`),
498
        method: "get",
499
        params: this.$http.adornParams({
500
          truename: ""
501
        })
502
      }).then(({ data }) => {
503
        if (data) {
504
          this.employeeList = data;
505
          for (let i of this.employeeList) {
506
            i.value = i.truename;
507
          }
508
        }
509
      });
510
    },
511
    //添加联系人
512
    handEmploye() {
513
      if (this.employeePersonId.length >= 3) {
514
        this.$message.error({
515
          message: "联系人最多添加三个",
516
          type: "danger",
517
          duration: 1500
518
        });
519
      } else {
520
        this.employeePersonId.push(this.dataForm.contactNames);
521
        for (let i = 0; i < this.employeeList.length; i++) {
522
          if (this.dataForm.contactNames === this.employeeList[i].id) {
523
            this.employeePerson.push(this.employeeList[i].truename);
524
          }
525
        }
526
      }
509 527
    }
510 528
  }
529
  
511 530
};
512 531
</script>
513 532
<style lang='scss'>

+ 2 - 1
src/views/modules/admin/meeting.vue

@ -13,7 +13,7 @@
13 13
        <el-form-item label="涉及行业">
14 14
          <el-tag v-for="(item) in industries" :key="item" style="margin-right:10px">{{item}}</el-tag>
15 15
        </el-form-item>
16
        <el-form-item label="会议负责人">{{this.meetingData.serviceEmp}}</el-form-item>
16
        <el-form-item label="会议负责人">{{this.meetingData.serviceName}}</el-form-item>
17 17
        <el-form-item label="会议介绍">
18 18
          <div class="introduction">{{this.meetingData.introduction}}</div>
19 19
        </el-form-item>
@ -62,6 +62,7 @@ export default {
62 62
          method: "get",
63 63
          params: this.$http.adornParams()
64 64
        }).then(res => {
65
          window.console.log(res.data);
65 66
          if (res.data && res.data.code === 0) {
66 67
            this.meetingData = res.data.meeting;
67 68
            this.industries = res.data.meeting.industries.split(",");

+ 29 - 57
src/views/modules/admin/paper.vue

@ -13,7 +13,13 @@
13 13
          @click="deleteHandle()"
14 14
          :disabled="dataListSelections.length <= 0"
15 15
        >批量删除</el-button>
16
        <el-button type="success" @click="addOrVisible=true">添加投稿要求</el-button>
16
      </el-form-item>
17
      <el-form-item>
18
        <el-button
19
          v-if="isAuth('admin:paperrequire:save')"
20
          type="primary"
21
          @click="setPagerRequireHandle()"
22
        >征文要求设置</el-button>
17 23
      </el-form-item>
18 24
    </el-form>
19 25
    <el-table
@ -54,38 +60,15 @@
54 60
    ></el-pagination>
55 61
    <!-- 弹窗, 新增 / 修改 -->
56 62
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
57
    <!-- 弹窗添加投稿要求 -->
58
    <el-dialog title="投稿要求" :visible.sync="addOrVisible">
59
      <el-form label-width="100px">
60
        <el-form-item label="截止时间">
61
          <el-date-picker
62
            size="small"
63
            v-model="paprData.deadline"
64
            type="datetime"
65
            placeholder="开始时间"
66
            value-format="yyyy-MM-dd HH:mm:ss"
67
          ></el-date-picker>
68
        </el-form-item>
69
        <el-form-item label="投稿要求">
70
          <el-input
71
            type="textarea"
72
            :rows="2"
73
            placeholder="请输入内容"
74
            v-model="paprData.content"
75
            :autosize="{ minRows: 10, maxRows: 30}"
76
          ></el-input>
77
        </el-form-item>
78
      </el-form>
79
      <span slot="footer" class="dialog-footer">
80
        <el-button @click="addOrVisible = false">取 消</el-button>
81
        <el-button type="primary" @click="requirements()">确 定</el-button>
82
      </span>
83
    </el-dialog>
63
    <!--  投稿要求弹窗, 新增 / 修改 -->
64
    <set-pager-require v-if="setPagerRequireVisible" ref="SetPagerRequire"></set-pager-require>
84 65
  </div>
85 66
</template>
86 67
87 68
<script>
88 69
import AddOrUpdate from "./paper-add-or-update";
70
import SetPagerRequire from "./paperrequire-add-or-update";
71
89 72
export default {
90 73
  data() {
91 74
    return {
@ -104,15 +87,19 @@ export default {
104 87
      dataListLoading: false,
105 88
      dataListSelections: [],
106 89
      addOrUpdateVisible: false,
107
      addOrVisible: false
90
      addOrVisible: false,
91
      setPagerRequireVisible: false
108 92
    };
109 93
  },
110 94
  components: {
111
    AddOrUpdate
95
    AddOrUpdate,
96
    SetPagerRequire
112 97
  },
113 98
  activated() {
114 99
    this.getDataList();
115 100
  },
101
  created() {
102
  },
116 103
  methods: {
117 104
    // 获取数据列表
118 105
    getDataList() {
@ -128,7 +115,6 @@ export default {
128 115
        })
129 116
      }).then(({ data }) => {
130 117
        if (data && data.code === 0) {
131
          window.console.log(data);
132 118
          this.dataList = data.page.list;
133 119
          this.totalPage = data.page.totalCount;
134 120
        } else {
@ -192,38 +178,24 @@ export default {
192 178
        });
193 179
      });
194 180
    },
195
    requirements() {
196
      //投稿要求
197
      this.$http({
198
        url: this.$http.adornUrl("/admin/moneyaccount/infobymid/:mid"),
199
        method: "post",
200
        data: this.paprData
201
      }).then(res => {
202
        if (res.data && res.data.code === 0) {
203
          this.addOrVisible = false;
204
          (this.paprData.deadline = ""), (this.paprData.content = "");
205
        } else {
206
          this.$message.error(res.data.msg);
207
        }
208
      });
209
    },
181
210 182
    // 导出数据表
211 183
    exportList(res) {
212 184
      if (res && !res.paperurl == "") {
213 185
        const a = document.createElement("a");
214
        a.setAttribute(
215
          "download",
216
          `http://121.42.53.174:9008${res.paperurl}`
217
        );
218
        a.setAttribute(
219
          "href",
220
          `http://121.42.53.174:9008${res.paperurl}`
221
        );
186
        a.setAttribute("download", `http://121.42.53.174:9008${res.paperurl}`);
187
        a.setAttribute("href", `http://121.42.53.174:9008${res.paperurl}`);
222 188
        a.click();
223
      }else{
224
        this.$message.error('未上传投稿文件')
189
      } else {
190
        this.$message.error("未上传投稿文件");
225 191
      }
226
      
192
    },
193
    //设置投稿要求
194
    setPagerRequireHandle() {
195
      this.setPagerRequireVisible = true;
196
      this.$nextTick(() => {
197
        this.$refs.SetPagerRequire.init(this.$route.params.id);
198
      });
227 199
    }
228 200
  }
229 201
};

+ 104 - 95
src/views/modules/admin/paperrequire-add-or-update.vue

@ -1,21 +1,30 @@
1 1
<template>
2
  <el-dialog
3
    :title="!dataForm.id ? '新增' : '修改'"
4
    :close-on-click-modal="false"
5
    :visible.sync="visible">
6
    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
7
    <el-form-item label="截止时间" prop="deadline">
8
      <el-input v-model="dataForm.deadline" placeholder="截止时间"></el-input>
9
    </el-form-item>
10
    <el-form-item label="要求" prop="content">
11
      <el-input v-model="dataForm.content" placeholder="要求"></el-input>
12
    </el-form-item>
13
    <el-form-item label="创建时间" prop="createTime">
14
      <el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
15
    </el-form-item>
16
    <el-form-item label="是否被删除 状态  0:正常   1:删除" prop="isDel">
17
      <el-input v-model="dataForm.isDel" placeholder="是否被删除 状态  0:正常   1:删除"></el-input>
18
    </el-form-item>
2
  <el-dialog title="征文要求设置" :close-on-click-modal="false" :visible.sync="visible">
3
    <el-form
4
      :model="dataForm"
5
      :rules="dataRule"
6
      ref="dataForm"
7
      label-width="80px"
8
      v-loading="loading"
9
    >
10
      <el-form-item label="截止时间" prop="deadline">
11
        <el-date-picker
12
          size="small"
13
          v-model="dataForm.deadline"
14
          type="datetime"
15
          placeholder="开始时间"
16
          value-format="yyyy-MM-dd HH:mm:ss"
17
        ></el-date-picker>
18
      </el-form-item>
19
      <el-form-item label="要求" prop="content">
20
        <el-input
21
          type="textarea"
22
          :rows="2"
23
          placeholder="请输入内容"
24
          v-model="dataForm.content"
25
          :autosize="{ minRows: 10, maxRows: 30}"
26
        ></el-input>
27
      </el-form-item>
19 28
    </el-form>
20 29
    <span slot="footer" class="dialog-footer">
21 30
      <el-button @click="visible = false">取消</el-button>
@ -25,87 +34,87 @@
25 34
</template>
26 35
27 36
<script>
28
  export default {
29
    data () {
30
      return {
31
        visible: false,
32
        dataForm: {
33
          id: 0,
34
          deadline: '',
35
          content: '',
36
          createTime: '',
37
          isDel: ''
38
        },
39
        dataRule: {
40
          deadline: [
41
            { required: true, message: '截止时间不能为空', trigger: 'blur' }
42
          ],
43
          content: [
44
            { required: true, message: '要求不能为空', trigger: 'blur' }
45
          ],
46
          createTime: [
47
            { required: true, message: '创建时间不能为空', trigger: 'blur' }
48
          ],
49
          isDel: [
50
            { required: true, message: '是否被删除 状态  0:正常   1:删除不能为空', trigger: 'blur' }
51
          ]
37
export default {
38
  data() {
39
    return {
40
      visible: false,
41
      dataForm: {
42
        id: 0,
43
        meetingId: 0,
44
        deadline: "",
45
        content: ""
46
      },
47
      dataRule: {
48
        deadline: [
49
          { required: true, message: "截止时间不能为空", trigger: "blur" }
50
        ],
51
        content: [{ required: true, message: "要求不能为空", trigger: "blur" }]
52
      },
53
      loading: true
54
    };
55
  },
56
  methods: {
57
    init(id) {
58
      this.dataForm.id = id || 0;
59
      this.visible = true;
60
      this.$nextTick(() => {
61
        this.$refs["dataForm"].resetFields();
62
        if (id) {
63
          this.$http({
64
            url: this.$http.adornUrl(
65
              `/admin/paperrequire/infobymid/${this.dataForm.id}`
66
            ),
67
            method: "get",
68
            params: this.$http.adornParams()
69
          }).then(({ data }) => {
70
            this.loading = false;
71
            if (data.code === 0 && data.paperRequire !== null) {
72
              this.dataForm.id = data.paperRequire.id;
73
              this.dataForm.meetingId = data.paperRequire.meetingId;
74
              this.dataForm.deadline = data.paperRequire.deadline;
75
              this.dataForm.content = data.paperRequire.content;
76
            } else {
77
              this.dataForm.id = 0;
78
              this.dataForm.meetingId = id;
79
              this.dataForm.deadline = "";
80
              this.dataForm.content = "";
81
            }
82
          });
52 83
        }
53
      }
84
      });
54 85
    },
55
    methods: {
56
      init (id) {
57
        this.dataForm.id = id || 0
58
        this.visible = true
59
        this.$nextTick(() => {
60
          this.$refs['dataForm'].resetFields()
61
          if (this.dataForm.id) {
62
            this.$http({
63
              url: this.$http.adornUrl(`/admin/paperrequire/info/${this.dataForm.id}`),
64
              method: 'get',
65
              params: this.$http.adornParams()
66
            }).then(({data}) => {
67
              if (data && data.code === 0) {
68
                this.dataForm.deadline = data.paperRequire.deadline
69
                this.dataForm.content = data.paperRequire.content
70
                this.dataForm.createTime = data.paperRequire.createTime
71
                this.dataForm.isDel = data.paperRequire.isDel
72
              }
86
    // 表单提交
87
    dataFormSubmit() {
88
      this.$refs["dataForm"].validate(valid => {
89
        if (valid) {
90
          this.$http({
91
            url: this.$http.adornUrl(
92
              `/admin/paperrequire/${!this.dataForm.id ? "save" : "update"}`
93
            ),
94
            method: "post",
95
            data: this.$http.adornData({
96
              id: this.dataForm.id || undefined,
97
              deadline: this.dataForm.deadline,
98
              meetingId: this.dataForm.meetingId,
99
              content: this.dataForm.content
73 100
            })
74
          }
75
        })
76
      },
77
      // 表单提交
78
      dataFormSubmit () {
79
        this.$refs['dataForm'].validate((valid) => {
80
          if (valid) {
81
            this.$http({
82
              url: this.$http.adornUrl(`/admin/paperrequire/${!this.dataForm.id ? 'save' : 'update'}`),
83
              method: 'post',
84
              data: this.$http.adornData({
85
                'id': this.dataForm.id || undefined,
86
                'deadline': this.dataForm.deadline,
87
                'content': this.dataForm.content,
88
                'createTime': this.dataForm.createTime,
89
                'isDel': this.dataForm.isDel
90
              })
91
            }).then(({data}) => {
92
              if (data && data.code === 0) {
93
                this.$message({
94
                  message: '操作成功',
95
                  type: 'success',
96
                  duration: 1500,
97
                  onClose: () => {
98
                    this.visible = false
99
                    this.$emit('refreshDataList')
100
                  }
101
                })
102
              } else {
103
                this.$message.error(data.msg)
104
              }
105
            })
106
          }
107
        })
108
      }
101
          }).then(({ data }) => {
102
            if (data && data.code === 0) {
103
              this.$message({
104
                message: "操作成功",
105
                type: "success",
106
                duration: 1500,
107
                onClose: () => {
108
                  this.visible = false;
109
                }
110
              });
111
            } else {
112
              this.$message.error(data.msg);
113
            }
114
          });
115
        }
116
      });
109 117
    }
110 118
  }
119
};
111 120
</script>