deason 1 vuosi sitten
vanhempi
commit
6cf3ae7b89

+ 1 - 19
src/modules/examwork/view/onlineExamOrgSettings.vue

@@ -459,9 +459,7 @@ export default {
         beginTime: null,
         endTime: null,
         examLimit: "false",
-        properties: {
-          CAN_UPLOAD_ATTACHMENT: "true",
-        },
+        properties: {},
       },
       orgSettingDatetimeRange: [],
       addOrgSettingDialog: false,
@@ -675,19 +673,6 @@ export default {
     back() {
       this.$router.push({ path: "/examwork/examInfo" });
     },
-    getCanUpload(row) {
-      if (row.properties.CAN_UPLOAD_ATTACHMENT === null) {
-        if (Date.now() > row.endTime) {
-          return "不允许";
-        } else {
-          return "允许";
-        }
-      } else {
-        return row.properties.CAN_UPLOAD_ATTACHMENT == "true"
-          ? "允许"
-          : "不允许";
-      }
-    },
     handleCurrentChange(val) {
       this.currentPage = val;
       this.search();
@@ -703,8 +688,6 @@ export default {
       this.orgSetting.orgId = row.orgId;
       this.orgSetting.endTime = row.endTime;
       this.orgSetting.examLimit = row.examLimit ? "true" : "false";
-      this.orgSetting.properties.CAN_UPLOAD_ATTACHMENT =
-        row.properties.CAN_UPLOAD_ATTACHMENT;
       if (row.beginTime && row.endTime) {
         this.orgSettingDatetimeRange = [row.beginTime, row.endTime];
       } else {
@@ -718,7 +701,6 @@ export default {
       this.orgList4InsertOrUpdate = [];
       this.orgSetting.orgId = null;
       this.orgSetting.endTime = null;
-      this.orgSetting.properties.CAN_UPLOAD_ATTACHMENT = "true";
       this.orgSettingDatetimeRange = [];
       this.addOrgSettingDialog = true;
     },

+ 1 - 19
src/modules/examwork/view/onlineHomeworkOrgSettings.vue

@@ -459,9 +459,7 @@ export default {
         beginTime: null,
         endTime: null,
         examLimit: "false",
-        properties: {
-          CAN_UPLOAD_ATTACHMENT: "true",
-        },
+        properties: {},
       },
       orgSettingDatetimeRange: [],
       addOrgSettingDialog: false,
@@ -675,19 +673,6 @@ export default {
     back() {
       this.$router.push({ path: "/examwork/examInfo" });
     },
-    getCanUpload(row) {
-      if (row.properties.CAN_UPLOAD_ATTACHMENT === null) {
-        if (Date.now() > row.endTime) {
-          return "不允许";
-        } else {
-          return "允许";
-        }
-      } else {
-        return row.properties.CAN_UPLOAD_ATTACHMENT == "true"
-          ? "允许"
-          : "不允许";
-      }
-    },
     handleCurrentChange(val) {
       this.currentPage = val;
       this.search();
@@ -703,8 +688,6 @@ export default {
       this.orgSetting.orgId = row.orgId;
       this.orgSetting.endTime = row.endTime;
       this.orgSetting.examLimit = row.examLimit ? "true" : "false";
-      this.orgSetting.properties.CAN_UPLOAD_ATTACHMENT =
-        row.properties.CAN_UPLOAD_ATTACHMENT;
       if (row.beginTime && row.endTime) {
         this.orgSettingDatetimeRange = [row.beginTime, row.endTime];
       } else {
@@ -718,7 +701,6 @@ export default {
       this.orgList4InsertOrUpdate = [];
       this.orgSetting.orgId = null;
       this.orgSetting.endTime = null;
-      this.orgSetting.properties.CAN_UPLOAD_ATTACHMENT = "true";
       this.orgSettingDatetimeRange = [];
       this.addOrgSettingDialog = true;
     },