xuqiang 4 лет назад
Родитель
Сommit
6e99df8e22
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/main/vue/src/views/performance/PerformanceEdit.vue

+ 7 - 1
src/main/vue/src/views/performance/PerformanceEdit.vue

@@ -140,7 +140,7 @@ export default {
             this.$http
                 .get('performance/backGet/' + this.$route.query.id)
                 .then(res => {
-                    console.log(res);
+                    // console.log(res);
                     this.formData = res;
                     if (res.programmeNum > 0) {
                         this.edit = true;
@@ -156,6 +156,7 @@ export default {
                             { body: 'json' }
                         )
                         .then(res => {
+                            // console.log(res);
                             this.schedules = res.content.map(item => {
                                 return {
                                     content: item.content,
@@ -248,6 +249,8 @@ export default {
                         address: item.address,
                         date: item.data[0],
                         endDate: item.data[1],
+                        id: item.id,
+                        del: item.del,
                         performanceId: this.performanceId
                     };
                 });
@@ -274,6 +277,7 @@ export default {
                 .post('/performance/save', data, { body: 'json' })
                 .then(res => {
                     this.saving = false;
+                    console.log(111);
                     this.performanceId = res.id;
                     this.$nextTick(() => {
                         this.$http.post('/performanceSchedule/batchSave', {
@@ -319,10 +323,12 @@ export default {
             });
         },
         onDeleteOtherForm(info, index) {
+            console.log(info.id);
             this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'warning' })
                 .then(() => {
                     const schedules = [...this.schedules];
                     if (info.id) {
+                        console.log(info.id);
                         info.del = true;
                         schedules[index] = info;
                     } else {