
<template>
<div>
    <my-dialog title="提示" ref="liebiaoDialog"  @close="importClose" class="taskDialogBox" width="40%">
      <el-row>
        <el-col :span="21">
          <el-form :model="dialogruleForm" :rules="dialogruleFormrules" ref="eldialogruleForm" label-width="100px">
            <el-form-item label="关停原因:" prop="bfyy">
              <el-input v-model="dialogruleForm.bfyy" placeholder="请输入关停原因"></el-input>
            </el-form-item>
            <el-form-item class="newTask-form-item">
              <el-button @click="resetForm('eldialogruleForm')">取消</el-button>
              <el-button type="primary" @click="submitForm('eldialogruleForm')">确定</el-button>
            </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="6"></el-col>
      </el-row>
    </my-dialog>
</div>
</template>

<script>
import myDialog from "@/views/components/myDialog/index.vue"


export default {
  components:{
    myDialog
  },
  name: 'baofei',
  data () {
    return {
        dialogruleForm:{
        bfyy:""
      },
      dialogruleFormrules:{
        bfyy: [
          { required: true, message: '请输入', trigger: 'blur' },
        ],
      },
    }
  },
  created () { },
  mounted () { },
  props:['ruleForm', 'assetTaskzc'],
  methods: {
    importClose(){},
    resetForm() {
      this.dialogruleForm = {
        bfyy:""
      }
      this.$refs.liebiaoDialog.close()

    },
    open(){
      this.$refs.liebiaoDialog.open()

    },
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          this.ruleForm.isbf = 2
          this.ruleForm.bfyy = this.dialogruleForm.bfyy
          this.$emit("assetTaskzc",this.ruleForm)
        } else {
          console.log('error submit!!');
          return false;
        }
      });

    },
   },

  computed: {}
}
</script>
<style scoped lang='scss'>

</style>
