shj
2022-03-22 d6778e84b3e32c602265f5e72d0eb50fdc0763f5
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<template>
  <div class="app-container">
    <div class="box">
      <div class="box-left">
        <Titlename title="检查项树"></Titlename>
        <div class="box-left-content">
          <el-form ref="form" :model="form" style="font-size: 12px" size="mini">
            <el-row>
              <el-col :span="12">
                <el-form-item size="mini">
                  <el-input
                    v-model="form.name"
                    placeholder="请输入检查项名称"
                  ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="11" :offset="1" style="white-space: nowrap">
                <el-form-item size="mini">
                  <el-button type="primary" class="btns" size="mini">搜索</el-button>
                  <el-button
                    type="primary"
                    style="margin: 0px"
                    class="btns"
                    icon="el-icon-plus"
                    size="mini"
                  ></el-button>
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
          <el-tree
            :data="data"
            :props="defaultProps"
          ></el-tree>
        </div>
      </div>
      <div class="box-right" v-if="show">
      <div class="box-rightXQ" v-for="(item,index) in 6" :key="index">
      <el-row class="box-rightXQ-top">
        <el-col :span="2">
          <p class="titles">标准化要求:</p>
        </el-col>
        <el-col :span="20">
          <p class="titles-type">1.企业应建立识别和获取适用的安全生产法律、法规、标准及其他要求的管理制度,明确责任部门,
                      确定获取渠道、方式和时机,及时识别和获取,定期更新。</p>
        </el-col>
        <el-col :span="2"><p class="btnXG" @click="show=false">修改</p></el-col>
      </el-row>
      <el-row>
        <el-col :span="2"><p class="title">企业达标标准:</p></el-col>
        <el-col :span="9"><p class="title-type">1.企业应建立识别和获取适用的安全生产法律、法规、标准及其他要求的管理制度,明确责任部门,
                      确定获取渠道、方式和时机,及时识别和获取,定期更新。</p></el-col>
         <el-col :span="2" :offset="1"><p class="title">评审方法:</p></el-col>
        <el-col :span="10"><p>1.识别和获取适用的安全生产法律、法规、标准及政府其他要求的制度;
        2.适用的法律法规、.......</p></el-col>
      </el-row>
      </div>
      </div>
      <!-- 修改 -->
        <div class="box-rights" v-if="show==false?true:false">
        <Titlename title="基础信息"></Titlename>
        <el-form ref="form" :model="form" label-width="120px">
          <div style="width:80%;margin:auto">
          <el-row  class="box-right-content" align="top">
            <el-col :span="11" >
              <el-form-item label="A级要素">
                <el-select
                  v-model="formInline.region"
                  :disabled="true"
                  style="width: 100%"
                >
                  <el-option label="区域一" value="shanghai"></el-option>
                  <el-option label="区域二" value="beijing"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="11" :offset="2" style="white-space: nowrap">
              <el-form-item label="B级要素">
                <el-select
                  v-model="formInline.region"
                  :disabled="true"
                  style="width: 100%"
                >
                  <el-option label="区域一" value="shanghai"></el-option>
                  <el-option label="区域二" value="beijing"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="标准化要求">
                <el-input
                 :rows="3"
                  type="textarea"
                  v-model="form.name"
                  placeholder=""
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="企业达标标准">
                <el-input
                  type="textarea"
                  :rows="3"
                  v-model="form.name"
                  placeholder=""
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item label="评审方法">
                <el-input
                  type="textarea"
                  :rows="3"
                  v-model="form.name"
                  placeholder=""
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          </div>
          <Titlename title="评选标准"></Titlename>
          <div style="width:80%;margin:auto">
          <el-row>
            <el-col :span="24">
              <el-form-item label="否决项">
                <el-input
                  type="textarea"
                  :rows="3"
                  v-model="form.name"
                  placeholder=""
                ></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row style="padding: 15px 0">
            <el-col :span="12">
              <span
                style="font-size: 16px; font-weight: bold; line-height: 29px"
                >扣分清单</span
              >
            </el-col>
            <el-col :span="12" style="text-align: right">
              <el-button type="primary" @click="dialogVisible=true" class="btns" size="mini" icon="el-icon-plus"
                >新增</el-button
              >
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-table  border>
                <el-table-column
                  prop="date"
                  align="center"
                  label="序号"
                  width="150"
                >
                </el-table-column>
                <el-table-column
                  prop="name"
                  align="center"
                  label="名称"
                ></el-table-column>
                <el-table-column align="center" label="操作" width="200px">
                  <template slot-scope="scope">
                    <el-button
                      @click="handleClick(scope.row)"
                      type="text"
                      size="small"
                      >编辑</el-button
                    >
                    <el-button type="text" size="small" style="color: red"
                      >删除</el-button
                    >
                  </template>
                </el-table-column>
              </el-table>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="24" style="padding:20px 0;text-align:center">
              <el-button type="primary" class="btns">提交</el-button>
              <el-button @click="btnsQX">取消</el-button>
            </el-col>
          </el-row>
          </div>
        </el-form>
      </div>
      </div>
    
 
<el-dialog
  title="新增扣分项"
  :visible.sync="dialogVisible"
  width="30%"
>
  <el-form ref="form" :model="form" label-width="80px">
     <el-form-item label="名称">
    <el-input v-model="form.name"></el-input>
  </el-form-item>
   <el-form-item label="说明">
    <el-input v-model="form.name" :rows="5" type="textarea"></el-input>
  </el-form-item>
  </el-form>
  <span slot="footer" class="dialog-footer">
    <el-button @click="dialogVisible = false">取 消</el-button>
    <el-button type="primary" class="btns" @click="dialogVisible = false">确 定</el-button>
  </span>
</el-dialog>
 
  </div>
</template>
<script>
import Titlename from "../../components/Titlename/index.vue"
export default {
  components: { Titlename },
  data() {
    return {
      dialogVisible:false,
      show:true,
      form: {
        name: "",
      },
      formInline: {
        user: "",
        region: "",
      },
      data: [
        {
          label: "一级 1",
          children: [
            {
              label: "二级 1-1",
              children: [
                {
                  label: "三级 1-1-1",
                },
              ],
            },
          ],
        },
        {
          label: "一级 2",
          children: [
            {
              label: "二级 2-1",
              children: [
                {
                  label: "三级 2-1-1",
                },
              ],
            },
            {
              label: "二级 2-2",
              children: [
                {
                  label: "三级 2-2-1",
                },
              ],
            },
          ],
        },
        {
          label: "一级 3",
          children: [
            {
              label: "二级 3-1",
              children: [
                {
                  label: "三级 3-1-1",
                },
              ],
            },
            {
              label: "二级 3-2",
              children: [
                {
                  label: "三级 3-2-1",
                },
              ],
            },
          ],
        },
      ],
      defaultProps: {
        children: "children",
        label: "label",
      },
    };
  },
  methods:{
    btnsQX(){
      this.show=true
    }
  }
};
</script>
<style scoped>
.app-container {
  padding: 0px;
}
.box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: rgb(223, 229, 235);
}
.box-left {
  width: 20%;
  min-height: 800px;
  background-color: white;
  border-radius: 5px;
}
.box-left-content {
  padding: 10px;
}
.box-right {
  width: 79%;
  background-color: rgb(223, 229, 235);
  border-radius: 5px;
}
.box-rights {
  width: 79%;
  background-color: #fff;
  border-radius: 5px;
}
.box-rightXQ{
  margin-bottom:10px;
  border: 1px solid #dedede;
  border-radius: 5px;
  padding: 0 10px;
  background-color: white;
  font-size: 14px;
}
.titles{
  font-weight: bold;
  text-align:right;
}
.title{
  text-align:right;
}
.titles-type{
 overflow: hidden;
 white-space: nowrap;
 text-overflow: ellipsis;
}
.title-type{
  overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.btnXG{
  text-align: center;
  color: #034EA2;
  font-weight: bolder;
}
.box-rightXQ-top{
  border-bottom: 1px solid #E9E9E9;
}
.box-right-content {
  padding: 15px 0;
}
.btns{
  background-color: #034EA2;
  border: 1px solid #034EA2;
}
</style>