style:业务申请弹窗修改
Showing
23 changed files
with
120 additions
and
27 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-12 09:55:38 | 4 | * @LastEditTime: 2023-08-17 15:20:29 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class='ywdialog'> | 7 | <div class='ywdialog'> |
8 | <el-table | 8 | <el-table |
9 | v-if="formData.result" | 9 | v-if="formData.result && formData.result.length>0" |
10 | :data="formData.result" | 10 | :data="formData.result" |
11 | height="200"> | 11 | height="200"> |
12 | <el-table-column | 12 | <el-table-column |
... | @@ -18,6 +18,7 @@ | ... | @@ -18,6 +18,7 @@ |
18 | label="状态"> | 18 | label="状态"> |
19 | </el-table-column> | 19 | </el-table-column> |
20 | </el-table> | 20 | </el-table> |
21 | <el-link type="primary" :underline="false" v-else>{{formData.message}}</el-link> | ||
21 | </div> | 22 | </div> |
22 | </template> | 23 | </template> |
23 | <script> | 24 | <script> | ... | ... |
... | @@ -145,7 +145,11 @@ | ... | @@ -145,7 +145,11 @@ |
145 | this.$popupCacel() | 145 | this.$popupCacel() |
146 | 146 | ||
147 | } else { | 147 | } else { |
148 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 148 | if (res.result.length > 0) { |
149 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
150 | } else { | ||
151 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
152 | } | ||
149 | } | 153 | } |
150 | }).catch(() => { | 154 | }).catch(() => { |
151 | this.loading = false | 155 | this.loading = false | ... | ... |
... | @@ -138,7 +138,11 @@ | ... | @@ -138,7 +138,11 @@ |
138 | } | 138 | } |
139 | this.$popupCacel() | 139 | this.$popupCacel() |
140 | } else { | 140 | } else { |
141 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 141 | if (res.result && res.result.length > 0) { |
142 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
143 | } else { | ||
144 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
145 | } | ||
142 | } | 146 | } |
143 | }).catch(() => { | 147 | }).catch(() => { |
144 | this.loading = false | 148 | this.loading = false | ... | ... |
... | @@ -258,7 +258,11 @@ | ... | @@ -258,7 +258,11 @@ |
258 | } | 258 | } |
259 | this.$popupCacel() | 259 | this.$popupCacel() |
260 | } else { | 260 | } else { |
261 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 261 | if (res.result.length > 0) { |
262 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
263 | } else { | ||
264 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
265 | } | ||
262 | } | 266 | } |
263 | }).catch(() => { | 267 | }).catch(() => { |
264 | this.loading = false | 268 | this.loading = false |
... | @@ -279,7 +283,11 @@ | ... | @@ -279,7 +283,11 @@ |
279 | store.dispatch('user/refreshPage', true); | 283 | store.dispatch('user/refreshPage', true); |
280 | this.$popupCacel() | 284 | this.$popupCacel() |
281 | } else { | 285 | } else { |
282 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 286 | if (res.result.length > 0) { |
287 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
288 | } else { | ||
289 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
290 | } | ||
283 | } | 291 | } |
284 | }).catch(() => { | 292 | }).catch(() => { |
285 | this.loading = false | 293 | this.loading = false | ... | ... |
... | @@ -120,7 +120,11 @@ | ... | @@ -120,7 +120,11 @@ |
120 | } | 120 | } |
121 | this.$popupCacel() | 121 | this.$popupCacel() |
122 | } else { | 122 | } else { |
123 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 123 | if (res.result && res.result.length > 0) { |
124 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
125 | } else { | ||
126 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
127 | } | ||
124 | } | 128 | } |
125 | }).catch(() => { | 129 | }).catch(() => { |
126 | this.loading = false | 130 | this.loading = false | ... | ... |
... | @@ -121,7 +121,11 @@ | ... | @@ -121,7 +121,11 @@ |
121 | } | 121 | } |
122 | this.$popupCacel() | 122 | this.$popupCacel() |
123 | } else { | 123 | } else { |
124 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 124 | if (res.result && res.result.length > 0) { |
125 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
126 | } else { | ||
127 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
128 | } | ||
125 | } | 129 | } |
126 | }).catch(() => { | 130 | }).catch(() => { |
127 | this.loading = false | 131 | this.loading = false | ... | ... |
... | @@ -145,7 +145,11 @@ | ... | @@ -145,7 +145,11 @@ |
145 | } | 145 | } |
146 | this.$popupCacel() | 146 | this.$popupCacel() |
147 | } else { | 147 | } else { |
148 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 148 | if (res.result && res.result.length > 0) { |
149 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
150 | } else { | ||
151 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
152 | } | ||
149 | } | 153 | } |
150 | }).catch(() => { | 154 | }).catch(() => { |
151 | this.loading = false | 155 | this.loading = false | ... | ... |
... | @@ -182,7 +182,11 @@ | ... | @@ -182,7 +182,11 @@ |
182 | } | 182 | } |
183 | this.$popupCacel() | 183 | this.$popupCacel() |
184 | } else { | 184 | } else { |
185 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 185 | if (res.result && res.result.length > 0) { |
186 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
187 | } else { | ||
188 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
189 | } | ||
186 | } | 190 | } |
187 | }).catch(() => { | 191 | }).catch(() => { |
188 | this.loading = false | 192 | this.loading = false | ... | ... |
... | @@ -126,7 +126,11 @@ | ... | @@ -126,7 +126,11 @@ |
126 | } | 126 | } |
127 | this.$popupCacel() | 127 | this.$popupCacel() |
128 | } else { | 128 | } else { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 129 | if (res.result && res.result.length > 0) { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
131 | } else { | ||
132 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
133 | } | ||
130 | } | 134 | } |
131 | }).catch(() => { | 135 | }).catch(() => { |
132 | this.loading = false | 136 | this.loading = false | ... | ... |
... | @@ -125,7 +125,11 @@ | ... | @@ -125,7 +125,11 @@ |
125 | } | 125 | } |
126 | this.$popupCacel() | 126 | this.$popupCacel() |
127 | } else { | 127 | } else { |
128 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 128 | if (res.result && res.result.length > 0) { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
130 | } else { | ||
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
132 | } | ||
129 | } | 133 | } |
130 | }).catch(() => { | 134 | }).catch(() => { |
131 | this.loading = false | 135 | this.loading = false | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-02 09:56:33 | 4 | * @LastEditTime: 2023-08-17 15:20:56 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -134,7 +134,11 @@ | ... | @@ -134,7 +134,11 @@ |
134 | } | 134 | } |
135 | this.$popupCacel() | 135 | this.$popupCacel() |
136 | } else { | 136 | } else { |
137 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 137 | if (res.result && res.result.length > 0) { |
138 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
139 | } else { | ||
140 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
141 | } | ||
138 | } | 142 | } |
139 | }).catch(() => { | 143 | }).catch(() => { |
140 | this.loading = false | 144 | this.loading = false | ... | ... |
... | @@ -254,7 +254,11 @@ | ... | @@ -254,7 +254,11 @@ |
254 | } | 254 | } |
255 | this.$popupCacel() | 255 | this.$popupCacel() |
256 | } else { | 256 | } else { |
257 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 257 | if (res.result && res.result.length > 0) { |
258 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
259 | } else { | ||
260 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
261 | } | ||
258 | } | 262 | } |
259 | }).catch(() => { | 263 | }).catch(() => { |
260 | this.loading = false | 264 | this.loading = false | ... | ... |
... | @@ -127,7 +127,11 @@ | ... | @@ -127,7 +127,11 @@ |
127 | } | 127 | } |
128 | this.$popupCacel() | 128 | this.$popupCacel() |
129 | } else { | 129 | } else { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 130 | if (res.result && res.result.length > 0) { |
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
132 | } else { | ||
133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
134 | } | ||
131 | } | 135 | } |
132 | }).catch(() => { | 136 | }).catch(() => { |
133 | this.loading = false | 137 | this.loading = false | ... | ... |
... | @@ -127,7 +127,11 @@ | ... | @@ -127,7 +127,11 @@ |
127 | } | 127 | } |
128 | this.$popupCacel() | 128 | this.$popupCacel() |
129 | } else { | 129 | } else { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 130 | if (res.result && res.result.length > 0) { |
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
132 | } else { | ||
133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
134 | } | ||
131 | } | 135 | } |
132 | }).catch(() => { | 136 | }).catch(() => { |
133 | this.loading = false | 137 | this.loading = false | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-02 09:59:18 | 4 | * @LastEditTime: 2023-08-17 15:09:55 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -127,7 +127,11 @@ | ... | @@ -127,7 +127,11 @@ |
127 | } | 127 | } |
128 | this.$popupCacel() | 128 | this.$popupCacel() |
129 | } else { | 129 | } else { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 130 | if (res.result && res.result.length > 0) { |
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
132 | } else { | ||
133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
134 | } | ||
131 | } | 135 | } |
132 | }).catch(() => { | 136 | }).catch(() => { |
133 | this.loading = false | 137 | this.loading = false | ... | ... |
... | @@ -127,7 +127,11 @@ | ... | @@ -127,7 +127,11 @@ |
127 | } | 127 | } |
128 | this.$popupCacel() | 128 | this.$popupCacel() |
129 | } else { | 129 | } else { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 130 | if (res.result && res.result.length > 0) { |
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
132 | } else { | ||
133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
134 | } | ||
131 | } | 135 | } |
132 | }).catch(() => { | 136 | }).catch(() => { |
133 | this.loading = false | 137 | this.loading = false | ... | ... |
... | @@ -134,7 +134,11 @@ | ... | @@ -134,7 +134,11 @@ |
134 | } | 134 | } |
135 | this.$popupCacel() | 135 | this.$popupCacel() |
136 | } else { | 136 | } else { |
137 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 137 | if (res.result && res.result.length > 0) { |
138 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
139 | } else { | ||
140 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
141 | } | ||
138 | } | 142 | } |
139 | }).catch(() => { | 143 | }).catch(() => { |
140 | this.loading = false | 144 | this.loading = false | ... | ... |
... | @@ -125,7 +125,11 @@ | ... | @@ -125,7 +125,11 @@ |
125 | this.$popupCacel() | 125 | this.$popupCacel() |
126 | } | 126 | } |
127 | } else { | 127 | } else { |
128 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 128 | if (res.result && res.result.length > 0) { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
130 | } else { | ||
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
132 | } | ||
129 | } | 133 | } |
130 | }).catch(() => { | 134 | }).catch(() => { |
131 | this.loading = false | 135 | this.loading = false | ... | ... |
... | @@ -123,7 +123,11 @@ | ... | @@ -123,7 +123,11 @@ |
123 | } | 123 | } |
124 | this.$popupCacel() | 124 | this.$popupCacel() |
125 | } else { | 125 | } else { |
126 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 126 | if (res.result && res.result.length > 0) { |
127 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
128 | } else { | ||
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
130 | } | ||
127 | } | 131 | } |
128 | }).catch(() => { | 132 | }).catch(() => { |
129 | this.loading = false | 133 | this.loading = false | ... | ... |
... | @@ -125,7 +125,11 @@ | ... | @@ -125,7 +125,11 @@ |
125 | } | 125 | } |
126 | this.$popupCacel() | 126 | this.$popupCacel() |
127 | } else { | 127 | } else { |
128 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 128 | if (res.result && res.result.length > 0) { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
130 | } else { | ||
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
132 | } | ||
129 | } | 133 | } |
130 | }).catch(() => { | 134 | }).catch(() => { |
131 | this.loading = false | 135 | this.loading = false | ... | ... |
... | @@ -125,7 +125,11 @@ | ... | @@ -125,7 +125,11 @@ |
125 | this.$popupCacel() | 125 | this.$popupCacel() |
126 | } | 126 | } |
127 | } else { | 127 | } else { |
128 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 128 | if (res.result && res.result.length > 0) { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
130 | } else { | ||
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
132 | } | ||
129 | } | 133 | } |
130 | }).catch(() => { | 134 | }).catch(() => { |
131 | this.loading = false | 135 | this.loading = false | ... | ... |
... | @@ -126,7 +126,11 @@ | ... | @@ -126,7 +126,11 @@ |
126 | } | 126 | } |
127 | this.$popupCacel() | 127 | this.$popupCacel() |
128 | } else { | 128 | } else { |
129 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 129 | if (res.result && res.result.length > 0) { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
131 | } else { | ||
132 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
133 | } | ||
130 | } | 134 | } |
131 | }).catch(() => { | 135 | }).catch(() => { |
132 | this.loading = false | 136 | this.loading = false | ... | ... |
... | @@ -127,7 +127,11 @@ | ... | @@ -127,7 +127,11 @@ |
127 | } | 127 | } |
128 | this.$popupCacel() | 128 | this.$popupCacel() |
129 | } else { | 129 | } else { |
130 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message, result: res.result }, '36%', true) | 130 | if (res.result && res.result.length > 0) { |
131 | ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true) | ||
132 | } else { | ||
133 | ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true) | ||
134 | } | ||
131 | } | 135 | } |
132 | }).catch(() => { | 136 | }).catch(() => { |
133 | this.loading = false | 137 | this.loading = false | ... | ... |
-
Please register or sign in to post a comment