From 4344516dfc185af0a5c7028abb55f6becfe87326 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Tue, 22 Mar 2022 10:20:20 +0800
Subject: [PATCH] Merge branch 'shf' of https://sinanoaq.cn:8888/r/ztqt into shf
---
src/views/safetyproduction/checklist.vue | 374 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 374 insertions(+), 0 deletions(-)
diff --git a/src/views/safetyproduction/checklist.vue b/src/views/safetyproduction/checklist.vue
new file mode 100644
index 0000000..0697acc
--- /dev/null
+++ b/src/views/safetyproduction/checklist.vue
@@ -0,0 +1,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>
\ No newline at end of file
--
Gitblit v1.9.2