Blame view

src/views/djbworkflow/djbBook/components/qllxDailog.vue 2.54 KB
xiaomiao committed
1 2 3
<!--
 * @Description:
 * @Autor: renchao
4
 * @LastEditTime: 2023-09-21 09:39:21
xiaomiao committed
5 6
-->
<template>
xiaomiao committed
7 8 9 10 11 12 13
  <el-dialog
    :close-on-click-modal="false"
    title="选择权利类型"
    class="qllxdialog"
    :visible.sync="dialogVisible"
    custom-class="insetDialog"
    append-to-body
14 15 16 17
    width="31%">
    <el-button class="gettypebutton" v-for="(value, key) in qllxlistdata"
      :key="key"
      :label="value" @click="clicksss(key)" plain>{{value}}</el-button>
xiaomiao committed
18 19 20 21 22
    <div class="btn">
      <el-button type="primary" @click="handleSubmit">确定</el-button>
      <el-button type="primary" @click="closeDialog">取消</el-button>
    </div>
  </el-dialog>
xiaomiao committed
23 24 25
</template>

<script>
26 27 28 29 30 31 32 33
  export default {
    data () {
      return {
        dialogVisible: false,
        qllxlistdata: {},
        radio: "",
        qllx: ""
      };
xiaomiao committed
34
    },
xiaomiao committed
35

36 37 38 39 40 41 42 43
    methods: {
      /**
       * @description: closeDialog
       * @author: renchao
       */
      closeDialog () {
        this.dialogVisible = false;
      },
xiaomiao committed
44

45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
      /**
       * @description: clicksss
       * @param {*} el
       * @author: renchao
       */
      clicksss (el) {
        this.qllx = el
      },
      /**
       * @description: handleSubmit
       * @author: renchao
       */
      handleSubmit () {

        if (this.qllx) {
          let qllxobj = {
            qllx: this.qllx,
            bsmQlxx: ""
          };
          this.$parent.addRepairRecord(qllxobj)
        } else {
          this.$message({
xiaomiao committed
67 68 69
            type: "warning",
            message: "请选择权利类型!",
          });
70 71 72
        }
        this.qllx = ""
      },
xiaomiao committed
73
    },
74
  };
xiaomiao committed
75 76
</script>
<style scoped lang="scss">
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
  @import "~@/styles/public.scss";
  .qllxdialog {
    margin-top: 160px;
    /deep/.el-dialog__body {
      margin-top: 10px;
      // height: 100px;
      padding: 20px;
    }
    .gettypebutton {
      cursor: pointer;
      margin-left: 20px;
      width: 45%;
      line-height: 20px;
      background-color: #ebebeb;
      margin-top: 20px;
      padding-left: 20px;
      border-radius: 2px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      border: 1px solid #ebebeb;
      -webkit-transition: all 0.3s;
      transition: all 0.3s;
      color: #000;
    }
    .gettypebutton:hover {
      border: 1px solid #0f93f6;
      color: #0f93f6;
    }
    .gettypebutton:focus {
      background-color: #0f93f6;
      border: 1px solid #0f93f6;
      color: #ebebeb;
    }
    .btn {
      margin-top: 30px;
      text-align: center;
      .el-button {
        margin-top: 10px;
        margin-left: 20px;
      }
    }
xiaomiao committed
118 119
  }
</style>