guhongwei 4 年 前
コミット
7a53139535

+ 1 - 0
src/layout/enterprise/appointment.vue

@@ -112,6 +112,7 @@ export default {
     async submitBtn() {
       this.form.user_id = this.user.uid;
       this.form.user_name = this.user.name;
+      this.form.role = this.user.role;
       this.form.buyer = '0';
       const res = await this.applyCreate({ id: this.dock_id, ...this.form });
       if (res.errcode === 0) {

+ 1 - 0
src/views/hall/liveApply.vue

@@ -83,6 +83,7 @@ export default {
       data.user_id = this.user.uid;
       if (data.user_id) {
         data.user_name = this.user.name;
+        data.role = this.user.role;
         let dock_id = this.$route.query.id;
         data.goodsList = [this.productInfo(this.form.goodsList)];
         const res = await this.applyCreate({ id: dock_id, ...data });

+ 1 - 0
src/views/userCenter/dockInfo/part/nextLive.vue

@@ -130,6 +130,7 @@ export default {
     async submitBtn() {
       this.applyForm.user_id = this.user.uid;
       this.applyForm.user_name = this.user.name;
+      this.applyForm.role = this.user.role;
       const res = await this.applyCreate({ id: this.dock_id, ...this.applyForm });
       if (res.errcode === 0) {
         this.$message({