feat(bjlp):引入批量室号
Showing
2 changed files
with
19 additions
and
0 deletions
... | @@ -93,3 +93,13 @@ export function updatePlc(data) { | ... | @@ -93,3 +93,13 @@ export function updatePlc(data) { |
93 | }) | 93 | }) |
94 | } | 94 | } |
95 | 95 | ||
96 | /** | ||
97 | * 批量修改室号 | ||
98 | */ | ||
99 | export function updateSh(data) { | ||
100 | return request({ | ||
101 | url: '/system/qjH/batchSh', | ||
102 | method: 'put', | ||
103 | data: data | ||
104 | }) | ||
105 | } | ... | ... |
... | @@ -92,6 +92,8 @@ | ... | @@ -92,6 +92,8 @@ |
92 | </template> | 92 | </template> |
93 | 93 | ||
94 | <script> | 94 | <script> |
95 | import {updateSh} from './../../api/zrz' | ||
96 | import {Message} from 'element-ui' | ||
95 | export default { | 97 | export default { |
96 | name: "plSh", | 98 | name: "plSh", |
97 | props: { | 99 | props: { |
... | @@ -152,6 +154,13 @@ | ... | @@ -152,6 +154,13 @@ |
152 | save: function () { | 154 | save: function () { |
153 | this.plshData['bsms'] = this.bsms | 155 | this.plshData['bsms'] = this.bsms |
154 | console.log(this.plshData) | 156 | console.log(this.plshData) |
157 | updateSh(this.plshData).then(res=>{ | ||
158 | if (res.success){ | ||
159 | this.close(); | ||
160 | } else { | ||
161 | Message.error(res.message) | ||
162 | } | ||
163 | }) | ||
155 | }, | 164 | }, |
156 | cancel: function () { | 165 | cancel: function () { |
157 | this.close() | 166 | this.close() | ... | ... |
-
Please register or sign in to post a comment