<template>
    <el-dialog title="转试" append-to-body :modelValue="showAgain" @close="closeDialog">
        <el-form :model="againForm" :rules="againRules" label-width="80px">
            <el-form-item label="转试计划" prop="testValue">
                <el-select v-model="againForm.testValue" placeholder="请选择">
                    <el-option v-for="item in optionsList" :key="item.value" :label="item.label" :value="item" />
                </el-select>
            </el-form-item>
            <el-form-item label="备注" prop="memo">
                <el-input type="textarea" placeholder="请输入备注" v-model="againForm.memo"></el-input>
            </el-form-item>
        </el-form>
        <template #footer>
            <span class="dialog-footer">
                <el-button @click="closeDialog">取 消</el-button>
                <el-button type="primary" @click="closeDialog">保 存</el-button>
            </span>
        </template>
    </el-dialog>
</template>

<script>
export default {
    props: {
        showAgain: {
            type: Boolean,
            default: false
        },
    },
    data() {
        return {
            againForm: {},
            againRules: {},
            optionsList: []
        }
    },
    mounted() {

    },
    methods: {
        // 关闭弹窗
        closeDialog() {
            this.$emit('closeDialog');
        },
    }
}
</script>

<style></style>