parent
71267a0a40
commit
1c72632dda
@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<el-dialog title="批量审核" :visible.sync="showDialog" width="30%" @close="handleDialogClose">
|
||||
<el-form ref="form" :model="form" label-width="120px">
|
||||
<el-form-item label="*审核意见">
|
||||
<el-input v-model="form.adjustComm" placeholder="请输入审核意见"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="showDialog = false">取 消</el-button>
|
||||
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
showDialog: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
selectedRows: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
onSubmit: {
|
||||
type: Function,
|
||||
default: () => { },
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
adjustComm: '',
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
handleDialogClose() {
|
||||
this.form.adjustComm = ''; // 清空输入框内容
|
||||
this.$emit('update:showDialog', false); // 通知父组件更新 showDialog
|
||||
},
|
||||
handleSubmit() {
|
||||
this.onSubmit({
|
||||
adjustComm: this.form.adjustComm,
|
||||
});
|
||||
this.handleDialogClose(); // 关闭弹窗
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue