Browse Source

修改完课模板

吴树波 1 week ago
parent
commit
3b8fb0faa8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/course/courseFinishTemp/index.vue

+ 3 - 0
src/views/course/courseFinishTemp/index.vue

@@ -487,6 +487,7 @@ export default {
       },
       },
       // 模板表格数据
       // 模板表格数据
       setting: [],
       setting: [],
+      parentId: "",
       chatSetting: [],
       chatSetting: [],
       // 表单参数
       // 表单参数
       form: {
       form: {
@@ -501,6 +502,7 @@ export default {
   },
   },
   created() {
   created() {
     this.queryParams.parentId = this.$route.params && this.$route.params.parentId;
     this.queryParams.parentId = this.$route.params && this.$route.params.parentId;
+    this.parentId = this.queryParams.parentId;
     getUserList().then(response => {
     getUserList().then(response => {
       this.userList = response.data;
       this.userList = response.data;
       console.log("this.userList", this.userList)
       console.log("this.userList", this.userList)
@@ -730,6 +732,7 @@ export default {
             this.form.isAllCompanyUser = 2;
             this.form.isAllCompanyUser = 2;
           }
           }
           this.form.companyUserIds = this.companyUserIds.toString()
           this.form.companyUserIds = this.companyUserIds.toString()
+          this.form.parentId = this.parentId
 
 
           this.form.setting = JSON.stringify(this.setting)
           this.form.setting = JSON.stringify(this.setting)
           this.form.chatSetting = JSON.stringify(this.chatSetting)
           this.form.chatSetting = JSON.stringify(this.chatSetting)