05c554ad by weimo934

feat(bjlp):引入批量室号

1 parent 5c795645
......@@ -93,3 +93,13 @@ export function updatePlc(data) {
})
}
/**
* 批量修改室号
*/
export function updateSh(data) {
return request({
url: '/system/qjH/batchSh',
method: 'put',
data: data
})
}
......
......@@ -92,6 +92,8 @@
</template>
<script>
import {updateSh} from './../../api/zrz'
import {Message} from 'element-ui'
export default {
name: "plSh",
props: {
......@@ -152,6 +154,13 @@
save: function () {
this.plshData['bsms'] = this.bsms
console.log(this.plshData)
updateSh(this.plshData).then(res=>{
if (res.success){
this.close();
} else {
Message.error(res.message)
}
})
},
cancel: function () {
this.close()
......