parent
bb9a88835b
commit
5d756c931d
5 changed files with 96 additions and 26 deletions
@ -0,0 +1,55 @@ |
||||
<template> |
||||
<el-dialog title="生产监控" append-to-body :modelValue="openShow" width="30%" @close="closeDialog" fullscreen> |
||||
<template #footer> |
||||
<span class="dialog-footer"> |
||||
<el-button @click="closeDialog">取 消</el-button> |
||||
<el-button type="primary" @click="submit">确 定</el-button> |
||||
</span> |
||||
</template> |
||||
</el-dialog> |
||||
</template> |
||||
<script> |
||||
import { updateProcess } from '../../api/flowManagement/index'; |
||||
export default { |
||||
props: { |
||||
showDialog: { |
||||
type: Boolean, |
||||
default: false, |
||||
}, |
||||
}, |
||||
data() { |
||||
return { |
||||
openShow: false, |
||||
}; |
||||
}, |
||||
mounted() { |
||||
this.openShow = this.showDialog; |
||||
}, |
||||
methods: { |
||||
closeDialog() { |
||||
this.openShow = false; |
||||
this.$emit('closeDialog'); |
||||
}, |
||||
submit() { |
||||
this.$refs.form.validate(async valid => { |
||||
if (valid) { |
||||
let params = { |
||||
id: this.$route.query.id, |
||||
approvalStatus: '', |
||||
|
||||
// status: this.option.column[0].value, |
||||
// reason: this.option.column[1].value, |
||||
}; |
||||
updateProcess(params).then(res => { |
||||
if (res.code == 200) { |
||||
this.$message.success('操作成功'); |
||||
this.closeDialog(); |
||||
} |
||||
}); |
||||
} |
||||
}); |
||||
}, |
||||
}, |
||||
}; |
||||
</script> |
||||
<style lang="scss" scoped></style> |
||||
Loading…
Reference in new issue