seimin 3 年之前
父節點
當前提交
7e6f1c20fc
共有 2 個文件被更改,包括 19 次插入3 次删除
  1. 11 3
      src/views/InspectionDetail.vue
  2. 8 0
      src/views/inspectionDoneDetail.vue

+ 11 - 3
src/views/InspectionDetail.vue

@@ -98,6 +98,7 @@ import { GL } from "./../http/http";
98
 export default {
98
 export default {
99
   data() {
99
   data() {
100
     return {
100
     return {
101
+      toast:null,
101
       action: {
102
       action: {
102
         target:
103
         target:
103
           this.$host + "/service/common/common/uploadAttachment/inspection/",
104
           this.$host + "/service/common/common/uploadAttachment/inspection/",
@@ -118,12 +119,12 @@ export default {
118
         sdCheckEnable4: true,
119
         sdCheckEnable4: true,
119
         sdCheckEnable5: true,
120
         sdCheckEnable5: true,
120
         sdCheckEnable6: true,
121
         sdCheckEnable6: true,
121
-        sdCheckEnable7: true,
122
+        sdCheckEnable7: false,
122
         sdCheckEnable8: true,
123
         sdCheckEnable8: true,
123
         sdCheckEnable9: true,
124
         sdCheckEnable9: true,
124
         sdCheckEnable10: true,
125
         sdCheckEnable10: true,
125
-        sdCheckEnable11: true,
126
-        sdCheckEnable12: true,
126
+        sdCheckEnable11: false,
127
+        sdCheckEnable12: false,
127
         descriptionTextarea: "",
128
         descriptionTextarea: "",
128
         inspectionProcessActual: {}
129
         inspectionProcessActual: {}
129
       },
130
       },
@@ -205,6 +206,12 @@ export default {
205
     // 获取项目异常状态
206
     // 获取项目异常状态
206
     getItems() {
207
     getItems() {
207
       var that = this;
208
       var that = this;
209
+      that.toast = that.$createToast({
210
+        time: 0,
211
+        mask: true,
212
+        txt: "正在加载中",
213
+      });
214
+      that.toast.show();
208
       that.$http
215
       that.$http
209
         .get(
216
         .get(
210
           "/service/form/renderForm/inspection_LinHu_confirm/" +
217
           "/service/form/renderForm/inspection_LinHu_confirm/" +
@@ -216,6 +223,7 @@ export default {
216
           {}
223
           {}
217
         )
224
         )
218
         .then(function(res) {
225
         .then(function(res) {
226
+          that.toast.hide();
219
           console.log(res.data);
227
           console.log(res.data);
220
           that.model = res.data.model;
228
           that.model = res.data.model;
221
           var fields = res.data.fields;
229
           var fields = res.data.fields;

+ 8 - 0
src/views/inspectionDoneDetail.vue

@@ -97,6 +97,7 @@
97
 export default {
97
 export default {
98
   data() {
98
   data() {
99
     return {
99
     return {
100
+      toast:null,
100
       imgs: [], //图片
101
       imgs: [], //图片
101
       loginUser: JSON.parse(localStorage.getItem("loginUser")),
102
       loginUser: JSON.parse(localStorage.getItem("loginUser")),
102
       valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
103
       valConfig: JSON.parse(localStorage.getItem("valConfig")) - 0, //报修主体
@@ -129,6 +130,12 @@ export default {
129
     // 获取项目异常状态
130
     // 获取项目异常状态
130
     getItems() {
131
     getItems() {
131
       var that = this;
132
       var that = this;
133
+      that.toast = that.$createToast({
134
+        time: 0,
135
+        mask: true,
136
+        txt: "正在加载中",
137
+      });
138
+      that.toast.show();
132
       that.$http
139
       that.$http
133
         .get(
140
         .get(
134
           "/service/form/renderForm/inspection_LinHu_detail/" +
141
           "/service/form/renderForm/inspection_LinHu_detail/" +
@@ -140,6 +147,7 @@ export default {
140
           {}
147
           {}
141
         )
148
         )
142
         .then(function(res) {
149
         .then(function(res) {
150
+          that.toast.hide();
143
           console.log(res.data);
151
           console.log(res.data);
144
           that.model = res.data.model;
152
           that.model = res.data.model;
145
           var fields = res.data.fields;
153
           var fields = res.data.fields;