Browse Source

增加会议发布/删除/结束会议功能,调整缓存bug

lyn7568 4 years ago
parent
commit
97224f91db

+ 50 - 3
src/components/meetingbox/index.vue

@ -11,9 +11,22 @@
11 11
        <div class="bottom clearfix">
12 12
          <time class="time">{{this.list.address}}</time>
13 13
          <p class="time">举办时间:{{this.list.startTime}}</p>
14
          <el-button type="text" class="button" v-if="this.list.isCheck===0">发布</el-button>
15
          <el-button type="text" class="button" v-if="this.list.isCheck===1">会议结束</el-button>
16
          <el-button type="text" class="button" v-if="this.list.isCheck===2">会议结束</el-button>
14
          <el-button
15
            type="text"
16
            class="button"
17
            v-if="this.list.isCheck===0"
18
            @click="status"
19
            style="margin-right:50px"
20
          >发布</el-button>
21
          <el-button type="text" class="button" v-if="this.list.isCheck===1" @click="status">结束会议</el-button>
22
          <el-button
23
            type="text"
24
            class="button"
25
            v-if="this.list.isCheck===0||this.list.isCheck===2"
26
            style="color:red"
27
            @click="delMeeting"
28
          >删除</el-button>
29
          <!-- <el-button type="text" class="button" @click="handClick" style="margin-right:150px">传值</el-button> -->
17 30
        </div>
18 31
      </div>
19 32
    </el-card>
@ -55,6 +68,40 @@ export default {
55 68
      } else {
56 69
        this.image = this.httpimage;
57 70
      }
71
    },
72
    //修改状态
73
    status() {
74
      this.$http({
75
        url: this.$http.adornUrl("/admin/meeting/status"),
76
        method: "post",
77
        data: {
78
          id: this.list.id,
79
          status: this.list.isCheck === 0 ? 1 : 2
80
        }
81
      }).then(({ data }) => {
82
        if (data) {
83
          this.$emit("statusMeeting");
84
        } else {
85
          window.console.log(data);
86
        }
87
      });
88
    },
89
    //删除
90
    delMeeting() {
91
      let arr = [];
92
      arr[0] = this.list.id;
93
      this.$http({
94
        url: this.$http.adornUrl("/admin/meeting/delete"),
95
        method: "post",
96
        data: this.$http.adornData(arr, false)
97
      })
98
        .then(res => {
99
          window.console.log(res);
100
          this.$emit("statusMeeting");
101
        })
102
        .catch(err => {
103
          window.console.log(err);
104
        });
58 105
    }
59 106
  },
60 107
  watch: {}

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

@ -1,6 +1,6 @@
1 1
2 2
<template>
3
  <div class="mod-config">
3
  <div class="mod-config" v-loading="dataListLoading">
4 4
    <el-row>
5 5
      <el-col :span="6">
6 6
        <div class="grid-content bg-purple-light">
@ -18,7 +18,14 @@
18 18
          <h2>未发布中的会议</h2>
19 19
        </div>
20 20
      </el-col>
21
      <meeting-box v-for="item in unpublished" :key="item.id" :list="item" style="margin-top:10px;"></meeting-box>
21
22
      <meeting-box
23
        v-for="item in unpublished"
24
        :key="item.id"
25
        :list="item"
26
        style="margin-top:10px;"
27
        @statusMeeting="childrenStatus"
28
      ></meeting-box>
22 29
    </el-row>
23 30
    <el-row>
24 31
      <el-col :span="24">
@ -28,7 +35,13 @@
28 35
      </el-col>
29 36
    </el-row>
30 37
    <el-row>
31
      <meeting-box v-for="item in release" :key="item.id" :list="item" style="margin-top:20px;"></meeting-box>
38
      <meeting-box
39
        v-for="item in release"
40
        :key="item.id"
41
        :list="item"
42
        style="margin-top:20px;"
43
        @statusMeeting="childrenStatus"
44
      ></meeting-box>
32 45
    </el-row>
33 46
    <el-row>
34 47
      <el-col :span="24">
@ -38,10 +51,21 @@
38 51
      </el-col>
39 52
    </el-row>
40 53
    <el-row>
41
      <meeting-box v-for="item in delRelease" :key="item.id" :list="item" style="margin-top:20px;"></meeting-box>
54
      <meeting-box
55
        v-for="item in delRelease"
56
        :key="item.id"
57
        :list="item"
58
        style="margin-top:20px;"
59
        @statusMeeting="childrenStatus"
60
      ></meeting-box>
42 61
    </el-row>
43 62
    <!-- 弹窗, 新增 / 修改 -->
44
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
63
    <add-or-update
64
      v-if="addOrUpdateVisible"
65
      ref="addOrUpdate"
66
      @refreshDataList="getDataList"
67
      :key="timer"
68
    ></add-or-update>
45 69
  </div>
46 70
</template>
47 71
@ -65,7 +89,8 @@ export default {
65 89
      dataListSelections: [],
66 90
      addOrUpdateVisible: false,
67 91
      meetingId: "",
68
      reFresh: true
92
      reFresh: true,
93
      timer: "" //重新加载子组件
69 94
    };
70 95
  },
71 96
  components: {
@ -92,7 +117,7 @@ export default {
92 117
        })
93 118
      }).then(({ data }) => {
94 119
        if (data && data.code === 0) {
95
          window.console.log(data)
120
          window.console.log(data);
96 121
          this.dataList = data.list;
97 122
          this.getHandleDataList(data.list);
98 123
        } else {
@ -138,6 +163,8 @@ export default {
138 163
    },
139 164
    // 新增 / 修改
140 165
    addOrUpdateHandle(id) {
166
      //重新加载子组件
167
      this.timer = new Date().getTime();
141 168
      this.addOrUpdateVisible = true;
142 169
      this.$nextTick(() => {
143 170
        this.$refs.addOrUpdate.init(id);
@ -183,6 +210,13 @@ export default {
183 210
    getMeetingListId(data) {
184 211
      this.meetingId = data;
185 212
      console.log(this.meetingId);
213
    },
214
    //接受组件修改状态 刷新视图
215
    childrenStatus(msg) {
216
      this.unpublished = [];
217
      this.release = [];
218
      this.delRelease = [];
219
      this.getDataList();
186 220
    }
187 221
  }
188 222
};

+ 2 - 2
src/views/common/login.vue

@ -3,8 +3,8 @@
3 3
    <div class="site-content__wrapper">
4 4
      <div class="site-content">
5 5
        <div class="brand-info">
6
          <h2 class="brand-info__text">renren-fast-vue</h2>
7
          <p class="brand-info__intro">renren-fast-vue基于vue、element-ui构建开发,实现renren-fast后台管理前端功能,提供一套更优的前端解决方案。</p>
6
          <h2 class="brand-info__text">科袖会议管理系统</h2>
7
          <p class="brand-info__intro">提供一套更优的会议管理解决方案。</p>
8 8
        </div>
9 9
        <div class="login-main">
10 10
          <h3 class="login-title">管理员登录</h3>

+ 125 - 159
src/views/modules/admin/adminmenu.vue

@ -6,8 +6,17 @@
6 6
      </el-form-item>
7 7
      <el-form-item>
8 8
        <el-button @click="getDataList()">查询</el-button>
9
        <el-button v-if="isAuth('admin:adminmenu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
10
        <el-button v-if="isAuth('admin:adminmenu:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
9
        <el-button
10
          v-if="isAuth('admin:adminmenu:save')"
11
          type="primary"
12
          @click="addOrUpdateHandle()"
13
        >新增</el-button>
14
        <el-button
15
          v-if="isAuth('admin:adminmenu:delete')"
16
          type="danger"
17
          @click="deleteHandle()"
18
          :disabled="dataListSelections.length <= 0"
19
        >批量删除</el-button>
11 20
      </el-form-item>
12 21
    </el-form>
13 22
    <el-table
@ -15,79 +24,30 @@
15 24
      border
16 25
      v-loading="dataListLoading"
17 26
      @selection-change="selectionChangeHandle"
18
      style="width: 100%;">
19
      <el-table-column
20
        type="selection"
21
        header-align="center"
22
        align="center"
23
        width="50">
24
      </el-table-column>
25
      <el-table-column
26
        prop="menuId"
27
        header-align="center"
28
        align="center"
29
        label="">
30
      </el-table-column>
31
      <el-table-column
32
        prop="parentId"
33
        header-align="center"
34
        align="center"
35
        label="父菜单ID,一级菜单为0">
36
      </el-table-column>
37
      <el-table-column
38
        prop="name"
39
        header-align="center"
40
        align="center"
41
        label="菜单名称">
42
      </el-table-column>
43
      <el-table-column
44
        prop="url"
45
        header-align="center"
46
        align="center"
47
        label="菜单URL">
48
      </el-table-column>
27
      style="width: 100%;"
28
    >
29
      <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
30
      <el-table-column prop="menuId" header-align="center" align="center" label></el-table-column>
31
      <el-table-column prop="parentId" header-align="center" align="center" label="父菜单ID,一级菜单为0"></el-table-column>
32
      <el-table-column prop="name" header-align="center" align="center" label="菜单名称"></el-table-column>
33
      <el-table-column prop="url" header-align="center" align="center" label="菜单URL"></el-table-column>
49 34
      <el-table-column
50 35
        prop="perms"
51 36
        header-align="center"
52 37
        align="center"
53
        label="授权(多个用逗号分隔,如:user:list,user:create)">
54
      </el-table-column>
38
        label="授权(多个用逗号分隔,如:user:list,user:create)权(多个用逗号分隔,如:user:list,user:create)"
39
      ></el-table-column>
55 40
      <el-table-column
56 41
        prop="type"
57 42
        header-align="center"
58 43
        align="center"
59
        label="类型   0:目录   1:菜单   2:按钮">
60
      </el-table-column>
61
      <el-table-column
62
        prop="icon"
63
        header-align="center"
64
        align="center"
65
        label="菜单图标">
66
      </el-table-column>
67
      <el-table-column
68
        prop="orderNum"
69
        header-align="center"
70
        align="center"
71
        label="排序">
72
      </el-table-column>
73
      <el-table-column
74
        prop="me"
75
        header-align="center"
76
        align="center"
77
        label="会议目录">
78
      </el-table-column>
79
      <el-table-column
80
        prop="isTab"
81
        header-align="center"
82
        align="center"
83
        label="tab">
84
      </el-table-column>
85
      <el-table-column
86
        fixed="right"
87
        header-align="center"
88
        align="center"
89
        width="150"
90
        label="操作">
44
        label="类型   0:目录   1:菜单   2:按钮"
45
      ></el-table-column>
46
      <el-table-column prop="icon" header-align="center" align="center" label="菜单图标"></el-table-column>
47
      <el-table-column prop="orderNum" header-align="center" align="center" label="排序"></el-table-column>
48
      <el-table-column prop="me" header-align="center" align="center" label="会议目录"></el-table-column>
49
      <el-table-column prop="isTab" header-align="center" align="center" label="tab"></el-table-column>
50
      <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
91 51
        <template slot-scope="scope">
92 52
          <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.menuId)">修改</el-button>
93 53
          <el-button type="text" size="small" @click="deleteHandle(scope.row.menuId)">删除</el-button>
@ -101,111 +61,117 @@
101 61
      :page-sizes="[10, 20, 50, 100]"
102 62
      :page-size="pageSize"
103 63
      :total="totalPage"
104
      layout="total, sizes, prev, pager, next, jumper">
105
    </el-pagination>
64
      layout="total, sizes, prev, pager, next, jumper"
65
    ></el-pagination>
106 66
    <!-- 弹窗, 新增 / 修改 -->
107 67
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
108 68
  </div>
109 69
</template>
110 70
111 71
<script>
112
  import AddOrUpdate from './adminmenu-add-or-update'
113
  export default {
114
    data () {
115
      return {
116
        dataForm: {
117
          key: ''
118
        },
119
        dataList: [],
120
        pageIndex: 1,
121
        pageSize: 10,
122
        totalPage: 0,
123
        dataListLoading: false,
124
        dataListSelections: [],
125
        addOrUpdateVisible: false
126
      }
72
import AddOrUpdate from "./adminmenu-add-or-update";
73
export default {
74
  data() {
75
    return {
76
      dataForm: {
77
        key: ""
78
      },
79
      dataList: [],
80
      pageIndex: 1,
81
      pageSize: 10,
82
      totalPage: 0,
83
      dataListLoading: false,
84
      dataListSelections: [],
85
      addOrUpdateVisible: false
86
    };
87
  },
88
  components: {
89
    AddOrUpdate
90
  },
91
  activated() {
92
    this.getDataList();
93
  },
94
  methods: {
95
    // 获取数据列表
96
    getDataList() {
97
      this.dataListLoading = true;
98
      this.$http({
99
        url: this.$http.adornUrl("/admin/adminmenu/list"),
100
        method: "get",
101
        params: this.$http.adornParams({
102
          page: this.pageIndex,
103
          limit: this.pageSize,
104
          key: this.dataForm.key
105
        })
106
      }).then(({ data }) => {
107
        if (data && data.code === 0) {
108
          this.dataList = data.page.list;
109
          this.totalPage = data.page.totalCount;
110
        } else {
111
          this.dataList = [];
112
          this.totalPage = 0;
113
        }
114
        this.dataListLoading = false;
115
      });
116
    },
117
    // 每页数
118
    sizeChangeHandle(val) {
119
      this.pageSize = val;
120
      this.pageIndex = 1;
121
      this.getDataList();
122
    },
123
    // 当前页
124
    currentChangeHandle(val) {
125
      this.pageIndex = val;
126
      this.getDataList();
127 127
    },
128
    components: {
129
      AddOrUpdate
128
    // 多选
129
    selectionChangeHandle(val) {
130
      this.dataListSelections = val;
130 131
    },
131
    activated () {
132
      this.getDataList()
132
    // 新增 / 修改
133
    addOrUpdateHandle(id) {
134
      this.addOrUpdateVisible = true;
135
      this.$nextTick(() => {
136
        this.$refs.addOrUpdate.init(id);
137
      });
133 138
    },
134
    methods: {
135
      // 获取数据列表
136
      getDataList () {
137
        this.dataListLoading = true
139
    // 删除
140
    deleteHandle(id) {
141
      var ids = id
142
        ? [id]
143
        : this.dataListSelections.map(item => {
144
            return item.menuId;
145
          });
146
      this.$confirm(
147
        `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,
148
        "提示",
149
        {
150
          confirmButtonText: "确定",
151
          cancelButtonText: "取消",
152
          type: "warning"
153
        }
154
      ).then(() => {
138 155
        this.$http({
139
          url: this.$http.adornUrl('/admin/adminmenu/list'),
140
          method: 'get',
141
          params: this.$http.adornParams({
142
            'page': this.pageIndex,
143
            'limit': this.pageSize,
144
            'key': this.dataForm.key
145
          })
146
        }).then(({data}) => {
156
          url: this.$http.adornUrl("/admin/adminmenu/delete"),
157
          method: "post",
158
          data: this.$http.adornData(ids, false)
159
        }).then(({ data }) => {
147 160
          if (data && data.code === 0) {
148
            this.dataList = data.page.list
149
            this.totalPage = data.page.totalCount
161
            this.$message({
162
              message: "操作成功",
163
              type: "success",
164
              duration: 1500,
165
              onClose: () => {
166
                this.getDataList();
167
              }
168
            });
150 169
          } else {
151
            this.dataList = []
152
            this.totalPage = 0
170
            this.$message.error(data.msg);
153 171
          }
154
          this.dataListLoading = false
155
        })
156
      },
157
      // 每页数
158
      sizeChangeHandle (val) {
159
        this.pageSize = val
160
        this.pageIndex = 1
161
        this.getDataList()
162
      },
163
      // 当前页
164
      currentChangeHandle (val) {
165
        this.pageIndex = val
166
        this.getDataList()
167
      },
168
      // 多选
169
      selectionChangeHandle (val) {
170
        this.dataListSelections = val
171
      },
172
      // 新增 / 修改
173
      addOrUpdateHandle (id) {
174
        this.addOrUpdateVisible = true
175
        this.$nextTick(() => {
176
          this.$refs.addOrUpdate.init(id)
177
        })
178
      },
179
      // 删除
180
      deleteHandle (id) {
181
        var ids = id ? [id] : this.dataListSelections.map(item => {
182
          return item.menuId
183
        })
184
        this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
185
          confirmButtonText: '确定',
186
          cancelButtonText: '取消',
187
          type: 'warning'
188
        }).then(() => {
189
          this.$http({
190
            url: this.$http.adornUrl('/admin/adminmenu/delete'),
191
            method: 'post',
192
            data: this.$http.adornData(ids, false)
193
          }).then(({data}) => {
194
            if (data && data.code === 0) {
195
              this.$message({
196
                message: '操作成功',
197
                type: 'success',
198
                duration: 1500,
199
                onClose: () => {
200
                  this.getDataList()
201
                }
202
              })
203
            } else {
204
              this.$message.error(data.msg)
205
            }
206
          })
207
        })
208
      }
172
        });
173
      });
209 174
    }
210 175
  }
176
};
211 177
</script>

+ 3 - 3
src/views/modules/admin/attenders.vue

@ -59,7 +59,7 @@
59 59
            type="success"
60 60
            @click="changeStatus(scope.row.id, 'intention', 0)"
61 61
          >是</el-button>
62
          <el-button v-else @click="changeStatus(scope.row.id, 'intention', 1)" >否</el-button>
62
          <el-button v-else @click="changeStatus(scope.row.id, 'intention', 1)">否</el-button>
63 63
        </template>
64 64
      </el-table-column>
65 65
      <el-table-column prop="room" header-align="center" align="center" label="住宿要求">
@ -69,7 +69,7 @@
69 69
            type="success"
70 70
            @click="changeStatus(scope.row.id, 'room', 0)"
71 71
          >是</el-button>
72
          <el-button v-else @click="changeStatus(scope.row.id, 'room', 1)" >否</el-button>
72
          <el-button v-else @click="changeStatus(scope.row.id, 'room', 1)">否</el-button>
73 73
        </template>
74 74
      </el-table-column>
75 75
      <el-table-column prop="transfer" header-align="center" align="center" label="接送要求">
@ -79,7 +79,7 @@
79 79
            type="success"
80 80
            @click="changeStatus(scope.row.id, 'transfer', 0)"
81 81
          >是</el-button>
82
          <el-button v-else @click="changeStatus(scope.row.id, 'transfer', 1) " >否</el-button>
82
          <el-button v-else @click="changeStatus(scope.row.id, 'transfer', 1) ">否</el-button>
83 83
        </template>
84 84
      </el-table-column>
85 85
      <el-table-column prop="transfer" header-align="center" align="center" label="用户类型"></el-table-column>

+ 10 - 34
src/views/modules/admin/lecture-add-or-update.vue

@ -11,19 +11,8 @@
11 11
      @keyup.enter.native="dataFormSubmit()"
12 12
      label-width="100px"
13 13
    >
14
      <!-- <el-form-item label="会议id" prop="meetingId">
15
        <el-input v-model="dataForm.meetingId" placeholder="会议id"></el-input>
16
      </el-form-item>-->
17 14
      <el-form-item label="参会人员" prop="attendersId">
18
        <!-- <el-select v-model="dataForm.attendersId" filterable placeholder="请选择">
19
          <el-option
20
            v-for="item in options"
21
            :key="item.value"
22
            :label="item.label"
23
            :value="item.value"
24
          ></el-option>
25
        </el-select>-->
26
        <el-select
15
        <!-- <el-select
27 16
          v-model="dataForm.attendersId"
28 17
          filterable
29 18
          remote
@ -38,8 +27,15 @@
38 27
            :label="item.label"
39 28
            :value="item.value"
40 29
          ></el-option>
30
        </el-select>-->
31
        <el-select v-model="dataForm.attendersId" filterable placeholder="请选择">
32
          <el-option
33
            v-for="item in meetingList"
34
            :key="item.id"
35
            :label="item.name"
36
            :value="item.id"
37
          ></el-option>
41 38
        </el-select>
42
43 39
        <!-- <el-input v-model="dataForm.attendersId" placeholder="演讲人id"></el-input> -->
44 40
      </el-form-item>
45 41
      <el-form-item label="题目" prop="topic">
@ -113,9 +109,7 @@ export default {
113 109
        ]
114 110
      },
115 111
      options: [],
116
      loading: false,
117 112
      meetingId: 0,
118
      list: [],
119 113
      meetingList: []
120 114
    };
121 115
  },
@ -146,7 +140,7 @@ export default {
146 140
              this.dataForm.summary = data.lecture.summary;
147 141
              !this.dataForm.id
148 142
                ? this.dataForm.attendersId
149
                : this.dataForm.attendersId = "";
143
                : (this.dataForm.attendersId = "");
150 144
            }
151 145
          });
152 146
        }
@ -190,7 +184,6 @@ export default {
190 184
    },
191 185
    // 通过姓名模糊查询参会人员id
192 186
    getAttendersIdByname(name = "") {
193
      this.loading = true;
194 187
      this.$http({
195 188
        url: this.$http.adornUrl(`/admin/attenders/selectbyname`),
196 189
        method: "get",
@ -200,26 +193,9 @@ export default {
200 193
        })
201 194
      }).then(({ data }) => {
202 195
        if (data && data.code === 0) {
203
          this.loading = false;
204 196
          this.meetingList = data.list;
205
          this.list = this.meetingList.map(item => {
206
            return { value: `${item.id}`, label: `${item.name}` };
207
          });
208 197
        }
209 198
      });
210
    },
211
    remoteMethod(query) {
212
      if (query !== "") {
213
        this.loading = true;
214
        setTimeout(() => {
215
          this.loading = false;
216
          this.options = this.list.filter(item => {
217
            return item.label.toLowerCase().indexOf(query.toLowerCase()) > -1;
218
          });
219
        }, 300);
220
      } else {
221
        this.options = [];
222
      }
223 199
    }
224 200
  }
225 201
};

+ 1 - 1
src/views/modules/admin/lecture.vue

@ -67,7 +67,7 @@ export default {
67 67
        key: ""
68 68
      },
69 69
      dataList: [],
70
      pageIndex: 1,
70
      pageIndex: 0,
71 71
      pageSize: 10,
72 72
      totalPage: 0,
73 73
      dataListLoading: false,

+ 4 - 12
src/views/modules/admin/meeting-add-or-update.vue

@ -361,10 +361,10 @@ export default {
361 361
            })
362 362
          }).then(({ data }) => {
363 363
            if (data && data.code === 0) {
364
              this.subjects = "";
365
              this.titlePictureList = "";
366
              this.industry = "";
367
              this.typesofattender = "";
364
              this.subjects = [];
365
              this.titlePictureList = [];
366
              this.industry = [];
367
              this.typesofattender = [];
368 368
              this.$message({
369 369
                message: "操作成功",
370 370
                type: "success",
@ -388,14 +388,6 @@ export default {
388 388
    successHandle(response, file) {
389 389
      if (response && response.code === 0) {
390 390
        this.titlePictureList.push(response.picname);
391
        // window.console.log(this.titlePictureList.join());
392
        // if (response) {
393
        //   this.dataForm.titlePicture = response.thumb;
394
        //   // this.showimg = "http://121.42.53.174:9008/static" + response.thumb;
395
        // } else {
396
        //   // this.showimg = "http://121.42.53.174:9008/static" + response.picname;
397
        //   this.dialogVisible = true;
398
        // }
399 391
      } else {
400 392
        this.$message.error(response.msg);
401 393
      }

+ 6 - 4
src/views/modules/admin/meeting.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <div class="ll-content">
2
  <div class="ll-content" v-loading="loading">
3 3
    <h1>{{meetingData.nameCn}}</h1>
4 4
    <div class="box">
5 5
      <img :src="imageNull" class="bgMeeting" />
@ -31,7 +31,8 @@ export default {
31 31
      meetingData: {},
32 32
      subjectsList: [],
33 33
      industries: [],
34
      image: ""
34
      image: "",
35
      loading: false
35 36
    };
36 37
  },
37 38
  components: {},
@ -53,6 +54,7 @@ export default {
53 54
  },
54 55
  methods: {
55 56
    getMeeting() {
57
      this.loading = true;
56 58
      this.id = this.$route.params.id;
57 59
      if (this.id) {
58 60
        this.$http({
@ -61,12 +63,12 @@ export default {
61 63
          params: this.$http.adornParams()
62 64
        }).then(res => {
63 65
          if (res.data && res.data.code === 0) {
64
            window.console.log(res.data);
66
            window.console.log(res.data.meeting);
65 67
            this.meetingData = res.data.meeting;
66 68
            this.industries = res.data.meeting.industries.split(",");
67 69
            this.image = res.data.meeting.titlePicture;
68 70
            this.subjectsList = res.data.meeting.subjects.split(",");
69
            
71
            this.loading = false;
70 72
          }
71 73
        });
72 74
      }

+ 5 - 2
src/views/modules/admin/typesoffee.vue

@ -1,5 +1,5 @@
1 1
<template>
2
  <div class="typesoffeeContent">
2
  <div class="typesoffeeContent" v-loading="loading">
3 3
    <el-form>
4 4
      <el-form-item label="注册费用信息"></el-form-item>
5 5
      <el-form-item>
@ -76,7 +76,8 @@ export default {
76 76
        account: ""
77 77
      },
78 78
      moneyaccount: {}, //注册类型返回数据
79
      show: true
79
      show: true,
80
      loading: false
80 81
    };
81 82
  },
82 83
  components: {},
@ -167,6 +168,7 @@ export default {
167 168
    },
168 169
    //提交对公收款账户信息
169 170
    pushMoneyaccount() {
171
      this.loading = true;
170 172
      this.$http({
171 173
        url: this.$http.adornUrl("/admin/moneyaccount/addorupdate"),
172 174
        method: "post",
@ -202,6 +204,7 @@ export default {
202 204
      }).then(({ data }) => {
203 205
        if (data && data.code === 0) {
204 206
          this.moneyaccount = data.moneyAccount;
207
          this.loading = false;
205 208
        }
206 209
      });
207 210
    }

BIN
static/img/favicon.ico


BIN
static/img/huiyiim.jpg