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

+ 8 - 0
src/views/inspectionDoneDetail.vue

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