Browse Source

木易华康-课程管理课程编辑关联公司新增全选

Long 1 tuần trước cách đây
mục cha
commit
be999d054a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/views/course/userCourse/index.vue

+ 5 - 0
src/views/course/userCourse/index.vue

@@ -272,6 +272,7 @@
               :value="dict.dictValue"
             />
           </el-select>
+          <el-button style="margin-left: 10px" type="text" size="small" @click="selectAllCompany">全选</el-button>
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -848,6 +849,10 @@ export default {
       this.queryParams.isShow = this.activeName
       this.handleQuery();
     },
+    /** 全选公司 */
+    selectAllCompany() {
+      this.companyIds = this.companyOptions.map(item => item.dictValue)
+    },
     // 多选框选中数据
     handleSelectionChange(selection) {
       this.ids = selection.map(item => item.courseId)