Browse Source

。。。

ljb 7 months ago
parent
commit
df337919b2

+ 12 - 12
src/views/basic-resource/comp-basic-info/technician-roster.vue

@@ -136,20 +136,20 @@ export default window.$crudCommon({
       this.getList(this.page);
 
 
-      this.option.column.forEach(item => {
-        if (item.prop == 'hireDate') {
-          let lastMonthEndDate = moment(newVal).subtract(1, 'months').endOf('months').format('YYYY-MM-DD'); // 上个月最后一天
-          let monthEndDate = moment(newVal).endOf('months').format('YYYY-MM-DD'); // 当前月最后一天
-          item.defaultValue = monthEndDate;
-          item.pickerOptions = {
-            disabledDate(time) {
+      // this.option.column.forEach(item => {
+      //   if (item.prop == 'hireDate') {
+      //     let lastMonthEndDate = moment(newVal).subtract(1, 'months').endOf('months').format('YYYY-MM-DD'); // 上个月最后一天
+      //     let monthEndDate = moment(newVal).endOf('months').format('YYYY-MM-DD'); // 当前月最后一天
+      //     item.defaultValue = monthEndDate;
+      //     item.pickerOptions = {
+      //       disabledDate(time) {
               
 
-              return time.getTime() < new Date(lastMonthEndDate).getTime() || time.getTime() > new Date(monthEndDate).getTime();
-            }
-          };
-        }
-      });
+      //         return time.getTime() < new Date(lastMonthEndDate).getTime() || time.getTime() > new Date(monthEndDate).getTime();
+      //       }
+      //     };
+      //   }
+      // });
     },
   },
   computed: {

+ 3 - 3
src/views/project-manage/components/apply-form.vue

@@ -364,7 +364,7 @@ export default {
             type: "upload",
             multiple: true,
             span: 24,
-            disabled: this.isEdit,
+            // disabled: this.isEdit,
             dataType: "object",
             propsHttp: {
               url: "link",
@@ -394,7 +394,7 @@ export default {
               res: "data",
             },
             action: '/api/kd-resource/oss/endpoint/put-file',
-            disabled: this.isEdit,
+            // disabled: this.isEdit,
             uploadPreview: (file, column, done) => {
               downloadFileByUrl(file.url, file.name);
               return;
@@ -411,7 +411,7 @@ export default {
             multiple: true,
             span: 24,
             action: '/api/kd-resource/oss/endpoint/put-file',
-            disabled: this.isEdit,
+            // disabled: this.isEdit,
             uploadPreview: (file, column, done) => {
               downloadFileByUrl(file.url, file.name);
               return;