彭宇 2 лет назад
Родитель
Сommit
15be3094ab
2 измененных файлов с 8 добавлено и 27 удалено
  1. 2 12
      src/views/event.vue
  2. 6 15
      src/views/forest.vue

+ 2 - 12
src/views/event.vue

@@ -526,18 +526,7 @@
 				showZt: true,
 				zt: null,
 				fireReport: false,
-				optionsProcessed: [{
-						value: 'bj',
-						label: '办结'
-					}, {
-						value: 'zy',
-						label: '支援'
-					},
-					{
-						value: 'gd',
-						label: '归档'
-					}
-				],
+				optionsProcessed: [],
 				// 弹出层 基本信息
 				information: [{
 						name: '标题',
@@ -983,6 +972,7 @@
 				that.listEventPic = [];
 				that.url = '';
 				getForest(id).then(response => {
+          this.optionsProcessed=[{value: 'bj',label: '办结' }, {value: 'zy',label: '支援'},{value: 'gd',label: '归档'}]
 					let data = response.data
 					if (data.eventStatus != 'event_event_status_1') {
 						this.aniu = false

+ 6 - 15
src/views/forest.vue

@@ -608,19 +608,9 @@
 				showZt: true,
 				zt: null,
 				fireReport: false,
-				optionsProcessed: [{
-						value: 'bj',
-						label: '办结'
-					}, {
-						value: 'zy',
-						label: '支援'
-					},
-					{
-						value: 'gd',
-						label: '归档'
-					}
-				],
-				forestFarm: [{
+				optionsProcessed: [],
+				forestFarm: [
+				  {
 						name: '双辽市',
 						id: '',
 						child: [{
@@ -652,7 +642,8 @@
 					}
 				],
 				// 弹出层 基本信息
-				information: [{
+				information: [
+				  {
 						name: '标题',
 						id: '',
 						content: '某某某某某发现疑似火情'
@@ -1297,11 +1288,11 @@
 				that.url = '';
 				that.id = id;
 				getForest(id).then(response => {
+          this.optionsProcessed=[{value: 'bj',label: '办结' }, {value: 'zy',label: '支援'},{value: 'gd',label: '归档'}]
 					let data = response.data
 					if (data.eventStatus != 'event_event_status_1') {
 						this.aniu = false
 					}
-
 					if (data.eventStatus == 'event_event_status_6') {
 						this.optionsProcessed.splice(1, 2)
 						this.zt = 3