<template>
<el-dialog title="标题名" :visible.sync="changOrder" :before-close="handleClose" :close-on-click-modal="false">
<el-form label-width="120px" ref="turntorepairorderform" :model="turntorepairorderform" :rules="rules">
<el-form-item prop="first" label="项目1:">
<el-input v-model="turntorepairorderform.first" ></el-input>
</el-form-item>
<el-form-item prop="second" label="项目2:">
<el-input v-model="turntorepairorderform.second"></el-input>
</el-form-item>
<el-form-item prop="third" label="项目3:">
<el-input v-model="turntorepairorderform.third"></el-input>
</el-form-item>
<el-form-item prop="fouth" label="项目4:">
<el-input v-model="turntorepairorderform.fouth"></el-input>
</el-form-item>
</el-form>
<template slot="footer">
<el-button type="default" @click="handleClose">取消</el-button>
<el-button type="primary" @click="handleSubmit">提交</el-button>
</template>
</el-dialog>
</template>
<script>
import qs from "qs"
export default {
name: "turntorepairorder",
data(){
return{
changOrder: false,
turntorepairorderform:{//绑定表格数据
first:"",
second:"",
third:"",
fouth:""
},
rules:{
first:[
{required: true, message: "项目不能为空", trigger: "blur"}
],
second:[
{required: true, message: "项目不能为空", trigger: "blur"}
],
third:[
{required: true, message: "项目不能为空", trigger: "blur"}
],
fouth:[
{required: true, message: "项目不能为空", trigger: "blur"}
]
}
}
},
methods:{
//页面初始化时加载的事件
init(){
this.changOrder = true;
},
//关闭页面
handleClose() {
this.changOrder = false;
this.$emit("tyonke", this.changOrder);
},
//表单提交
handleSubmit(){
}
},
//监听
watch:{
changOrder(newValue, oldValue) {
this.changOrder = newValue;
}
}
}
</script>
<style scoped>
</style>
评论