hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<template>
  <div class='safety_report'>
    <section>
      <p class="h2">社区处理意见:</p>
      <article>
        <textarea
          class="m_inp"
          cols="30"
          rows="10"
          placeholder="请输入"
        ></textarea>
      </article>
    </section>
    <section>
      <p class="h2">承办记录:</p>
      <article>
        <textarea
          class="m_inp"
          cols="30"
          rows="10"
          placeholder="请输入"
        ></textarea>
      </article>
    </section>
    <section>
      <p class="h2">领导意见:</p>
      <article>
        <textarea
          class="m_inp"
          cols="30"
          rows="10"
          placeholder="请输入"
        ></textarea>
      </article>
    </section>
    <section>
      <p class="h2">风险等级:</p>
      <article>
        <el-radio
          :label="i.v"
          v-for="(i,j) in tab"
          :key="j+'-ra'"
          v-model="level"
        >{{i.l}}</el-radio>
      </article>
    </section>
    <section>
      <p class="h2">指派人员:</p>
      <article>
        <ul>
          <li
            v-for="(i,j) in staff"
            :key="j+'-sta'"
          >
            <div class="sel">
              <el-select
                v-model="a"
                size="small"
              ></el-select>
            </div>
            <div class="btn"><button class="m_btn small bgc_tran"><b class="col_primary"><i class="el-icon-plus"></i>增加</b></button></div>
          </li>
        </ul>
      </article>
    </section>
  </div>
</template>
 
<script>
export default {
  props: {
    item: {
      type: Object,
      default: () => {
        return {};
      },
    },
    door: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  components: {},
  data() {
    return {
      tab: ["蓝色预警", "黄色预警", "橙色预警", "红色预警"].map((r, v) => {
        return { l: r, v: v + "" };
      }),
      level: "",
      a: "",
      staff: [0, 0, 0],
    };
  },
  watch: {
    item: {
      handler() {
        this.setItem();
      },
      deep: true,
    },
    door: {
      handler(n) {
        if (n.r) {
          this.sub(n.t);
        }
      },
      deep: true,
    },
  },
  methods: {
    sub(type) {
      this.$store.dispatch("setFixed", {
        event: "del",
        type: type,
        time: Date.now(),
      });
    },
    setItem() {},
  },
  mounted() {
    this.setItem();
  },
};
</script>
<style lang='less' scoped>
.safety_report {
  font-size: 14px;
  section {
    margin-bottom: 20px;
    .h2 {
      margin-bottom: 8px;
    }
    article {
      .m_inp {
        width: 100%;
        max-width: 100%;
        resize: none;
      }
    }
  }
  li {
    display: flex;
    margin-bottom: 8px;
    .sel {
      width: 60%;
    }
    .btn {
    }
  }
}
</style>