格式修改

This commit is contained in:
wuhongjian 2022-10-20 16:20:40 +08:00
parent 5deb9a3826
commit a7ecd774c2
1 changed files with 61 additions and 62 deletions

View File

@ -1,7 +1,7 @@
<!-- <!--
* @Author: hisense.guoyue * @Author: hisense.guoyue
* @LastEditors: hisense.guoyue * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-09-21 10:37:29 * @LastEditTime: 2022-10-20 16:19:48
* @Description: 设备审批 * @Description: 设备审批
--> -->
<template> <template>
@ -78,7 +78,7 @@ import mixinViewModule from '@/mixins/view-module'
import processModule from '@/mixins/process-module' import processModule from '@/mixins/process-module'
export default { export default {
mixins: [mixinViewModule, processModule], mixins: [mixinViewModule, processModule],
data() { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/deviceApply/auditPage', getDataListURL: '/deviceApply/auditPage',
@ -104,22 +104,22 @@ export default {
} }
}, },
methods: { methods: {
taskHandle(row) { taskHandle (row) {
this.form.auditViem = ''; this.form.auditViem = ''
this.rowData = row; this.rowData = row
this.centerDialogVisible = true this.centerDialogVisible = true
}, },
through(state) { through (state) {
// 2- 3- // 2- 3-
this.handlePut(state) this.handlePut(state)
}, },
handlePut(state) { handlePut (state) {
this.$http.put(`/deviceApply`, { this.$http.put('/deviceApply', {
...this.rowData, ...this.rowData,
state: state, state: state,
...this.form ...this.form
}).then(({ data: res }) => { }).then(({ data: res }) => {
console.log('res------------>', res); console.log('res------------>', res)
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
@ -133,10 +133,10 @@ export default {
} }
}) })
}).catch((err) => { }).catch((err) => {
console.log('err------------>', err); console.log('err------------>', err)
}) })
} }
}, }
} }
</script> </script>
<style scoped> <style scoped>
@ -154,4 +154,3 @@ export default {
width: 400px; width: 400px;
} }
</style> </style>