董国庆
2025-05-23 d82e210c6de4163d5a528f385b5582d8822cb69f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
<template>
  <el-dialog
    :visible.sync="visible"
    width="600px"
    title="菌种报告评定"
    class="choice-method-dialog"
    :close-on-click-modal="false"
    @close="handleClose"
  >
    <div class="choice-method-content">
      <div class="choice-method-title">请选择评定标准:</div>
      <div class="choice-method-btns">
        <div
          class="choice-btn"
          :class="{ active: selected === 'innovate' }"
          @click="selected = 'innovate'"
        >
          创新型课题评定标准
        </div>
        <div
          class="choice-btn"
          :class="{ active: selected === 'regular' }"
          @click="selected = 'regular'"
        >
          规程型课题评定标准
        </div>
      </div>
      <div class="choice-method-footer">
        <el-button type="primary" :disabled="!selected" @click="handleNext">下一步</el-button>
      </div>
    </div>
  </el-dialog>
</template>
 
<script>
export default {
  name: "ChoiceMethodDialog",
  props: {
    visible: Boolean
  },
  data() {
    return {
      selected: null
    };
  },
  methods: {
    handleClose() {
      this.$emit("close");
    },
    handleNext() {
      this.$emit("next", this.selected);
    }
  }
};
</script>
 
<style scoped lang="less">
.choice-method-dialog {
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #e4e7ed;
  }
}
.choice-method-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  justify-content: center;
}
.choice-method-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 32px;
  color: #222;
}
.choice-method-btns {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  .choice-btn {
    width: 260px;
    height: 120px;
    background: #04796b;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s;
    &.active, &:hover {
    
    background: linear-gradient(to bottom, #0ACBCA 0%, #049C9A 100%);
 
      opacity: 1;
      box-shadow: 0 0 12px 0 rgba(0,150,136,0.18);
    }
  }
}
.choice-method-footer {
  display: flex;
  justify-content: center;
  width: 100%;
  .el-button {
    width: 220px;
    height: 48px;
    font-size: 20px;
    border-radius: 8px;
  }
}
</style>