<template>
  <div>
    <!-- 选择仲裁方式页面 -->
    <el-dialog
      title="审核仲裁方式"
      :visible="showchoosetrialmethod"
      width="500px"
      @close="cancel"
      :destroy-on-close="true"
    >
      <el-descriptions>
        <el-descriptions-item label="当前仲裁方式：">
          <el-tag size="small">{{
            choosetrialmethodata.arbitratMethodName
          }}</el-tag>
        </el-descriptions-item>
      </el-descriptions>

      <!-- <div class="radiobox">
        <el-radio-group v-model="radio">
          <el-radio :label="0">拒绝开庭方式</el-radio>
          <el-radio :label="1">同意开庭方式</el-radio>
        </el-radio-group>
      </div> -->

      <!-- <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm" class="endbutton"
          ><span>提 交</span></el-button
        >
        <el-button @click="cancel" class="endbutton1"
          ><span> 取 消</span></el-button
        >
      </div> -->
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm(1)" class="endbutton"
          ><span>同 意</span></el-button
        >
        <el-button class="endbutton1" @click="submitForm(0)"
          ><span>拒 绝</span></el-button
        >
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { arbitrateMethod } from "@/api/caseManagement/caseManagement.js";
export default {
  name: "showchoosetrialmethodDialog",
  props: ["showchoosetrialmethod", "choosetrialmethodata", "queryParams"],
  data() {
    return {};
  },
  methods: {
    // 审核仲裁方式 arbitrateMethod
    submitForm(val) {
      let paramsdata = {
        opinion: val,
      };
      let id = {
        id: this.choosetrialmethodata.id,
      };
      arbitrateMethod(paramsdata,id)
        .then((res) => {
          this.$modal.msgSuccess("提交成功");
          this.cancel();
          this.$emit("getcaseApply", this.queryParams);
        })
        .catch((err) => {});
    },
    cancel() {
      this.$emit("cancelshowchoosetrialMethod");
    },
  },
};
</script>

<style lang="scss" scoped>
.radiobox {
  margin-left: 5%;
}
::v-deep .el-dialog {
  width: 800px;
  background: #ffffff;
  border-radius: 20px;
}
.endbutton {
  width: 124px;
  height: 37px;
  background: #0072ff;
  border-radius: 19px;
  span {
    width: 32px;
    height: 15px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #ffffff;
    // line-height: 48px;
  }
}
.endbutton1 {
  width: 124px;
  height: 37px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 19px;
  span {
    width: 31px;
    height: 13px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #959595;
  }
}
</style>