Parcourir la source

教育培训代码提交

jingyuanchao il y a 2 ans
Parent
commit
2e5b9f8fde

+ 0 - 1
src/api/core/edu/plan.js

@@ -54,7 +54,6 @@ export function listPlanRole(query) {
 
 //获取教育培训计划角色列表
 export function roleList(query) {
-  console.log("queryquery",query)
   return request({
     url: '/system/role/all',
     method: 'get',

+ 1 - 1
src/views/core/edu/plan/index.vue

@@ -494,7 +494,7 @@ export default {
         execTimes: null,
         planStatus: null,
         execOrgType: null,
-        planExecOrgIdList: [],
+        planExecOrgIdList: null,
         startDate: null,
         endDate: null,
         buildTaskNow: null,

+ 3 - 5
src/views/core/materials/index.vue

@@ -306,11 +306,9 @@ export default {
     },
     getFileList() {
       //循环获取this.$refs.upload.fileList中的name和url,放到 this.form.fileList中去
-      let fileList = [];
-      for (let i = 0; i < this.$refs.upload.fileList.length; i++) {
-        fileList.push({name: this.$refs.upload.fileList[i].name, url: this.$refs.upload.fileList[i].url})
-      }
-      this.fileList = JSON.stringify(fileList);
+      this.form.fileList = this.$refs.upload.fileList.map(file => {
+        return JSON.stringify({ name: file.name, url: file.url });
+      });
     },
     checkCanEditOrDel(row) {
       return row.createId == this.$store.getters.userId && row.isOpen == 0;