zhangtao
laozt 1 year ago
parent f6ca223ce0
commit 83d1cc7a95

@ -59,12 +59,8 @@
</div>
</div>
<div v-show="activeTab == 2">
<div class="next">
<div class="selected">
草稿箱(<span> {{ 100 }} </span>)
</div>
<div class="btn" ref="next">正式提交</div>
</div>
<tab3 />
</div>
</div>
</div>
@ -72,8 +68,9 @@
</div>
</template>
<script>
//tab1
//tab
import tab1 from "./tab1.vue";
import tab3 from "./tab3.vue";
export default {
dicts: [
@ -83,7 +80,7 @@ export default {
"entpr_color",
"major_hazard_level",
],
components: { tab1 },
components: { tab1, tab3 },
data() {
return {
activeTab: 0,

@ -0,0 +1,502 @@
<template>
<div>
<div class="tables" v-loading="loading">
<el-table
v-loading="loading"
:data="enterpriseList"
:border="false"
tooltip-effect="light"
row-key="id"
:row-class-name="tableRowClassName"
>
<el-table-column label="计划年份" align="center" prop="plannedYear" />
<el-table-column label="计划月份" align="center" prop="plannedMonth">
<template slot-scope="scope">
<span>
{{ scope.row.plannedMonth }}
</span>
</template>
</el-table-column>
<el-table-column
label="企业名称"
align="center"
prop="enterpriseName"
/>
<el-table-column label="行政区划" align="center" prop="district">
<template slot-scope="scope">
<span>{{ componendDistrict(scope.row.district) || "/" }}</span>
</template>
</el-table-column>
<el-table-column label="执法地区" align="center" prop="lawAreas" />
<el-table-column label="执法级别" align="center" prop="lawLevel" />
<el-table-column label="执法层级" align="center" prop="lawHierarchy" />
<el-table-column label="是否省重点" align="center" prop="isPoint">
<template slot-scope="scope">
<span>{{ scope.row.isPoint == 1 ? "是" : "否" }}</span>
</template>
</el-table-column>
<el-table-column label="安全风险等级" align="center" prop="" />
<el-table-column label="标准化等级" align="center" prop="" />
<el-table-column label="上次检查时间" align="center" prop="" />
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ scope.row.isPoint == 1 ? "正式" : "草稿" }}</span>
</template>
</el-table-column>
<el-table-column label="操作" header-align="center">
<template slot-scope="scope">
<div class="tabs-btns">
<div class="look" @click="handleDelete(scope.row)">
<span>删除</span>
</div>
</div>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
<div class="next">
<div class="selected">
草稿箱(<span> {{ 100 }} </span>)
</div>
<div class="btn" ref="next">正式提交</div>
</div>
</div>
</template>
<script>
//
import dictzh from "@/utils/dictzh.js";
//
import executive from "../../yingji/echarts/executive.vue";
import {
listEnterprise,
getEnterprise,
delEnterprise,
addEnterprise,
updateEnterprise,
} from "@/api/yingji/enterprise";
export default {
dicts: [
"category",
"economic_categories",
"is_point",
"entpr_color",
"major_hazard_level",
],
components: { executive },
data() {
return {
activeTab: 0,
dictzh: dictzh,
dialogVisible: false,
options: [],
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
newList: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
enterpriseId: null,
createId: null,
updateId: null,
userId: null,
deptId: null,
district: null,
plannedYear: null,
isPoint: "",
enterpriseName: null,
lawSort: null,
lawAreas: null,
lawLevel: null,
lawHierarchy: null,
plannedMonth: null,
status: 1,
checkStatus: null,
checkId: null,
checkAgeing: null,
},
//
form: {},
//
rules: {},
};
},
created() {
this.getList();
},
methods: {
/** 查询计划企业列表 */
getList() {
this.loading = true;
listEnterprise(this.queryParams).then((response) => {
this.enterpriseList = response.data;
this.total = response.data.length;
this.loading = false;
});
},
//
handleDelete(row) {},
//
componendDistrict(district) {
let fullName;
let treeData = JSON.parse(localStorage.getItem("TREE_DATA"));
treeData.map((item) => {
if (item.districtCode == district) {
fullName = item.district;
} else {
item.children.map((itemTwo) => {
if (itemTwo.countyCode == district) {
fullName = item.district + "-" + itemTwo.county;
}
});
}
});
return fullName;
},
},
mounted() {},
computed: {},
filters: {
supervisionLarge: function (value) {
let array = value.split(",");
array.map((item, ind) => {
array[ind] = dictzh[item];
});
return array.join(",") || "/";
},
},
};
</script>
<style lang="scss" scoped>
.isStyle {
color: #f71052;
}
.dialog-slot {
.closeClick {
position: absolute;
top: 0;
right: 0;
padding: 10px 20px;
width: 100%;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
text-align: center;
background: #f8f9fa;
box-shadow: 0px 1px 0px 0px #dbe0e8;
background-color: #e0eaf8;
img {
width: 18px;
height: 18px;
cursor: pointer;
}
.newplan {
display: flex;
align-items: center;
.line {
margin-right: 10px;
width: 5px;
height: 16px;
background-color: #1e70de;
}
.span {
font-size: 16px;
font-family: "Alibaba PuHuiTi";
font-weight: bold;
color: #1e70de;
}
}
}
.content {
// padding: 15px 10px;
.module {
padding-bottom: 15px;
display: flex;
border-bottom: 1px solid #e8ecf0;
.select,
.issue {
width: 150px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #525966;
span {
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
}
.span-one {
margin-right: 10px;
}
}
.select {
background-image: url("../../../assets/images/select2.png");
background-size: 100% 100%;
margin-right: 10px;
}
.issue {
background-image: url("../../../assets/images/issue2.png");
background-size: 100% 100%;
}
.nextStepSelect {
background-image: url("../../../assets/images/select1.png");
span {
color: #2378ec;
}
}
.nextStepIssue {
background-image: url("../../../assets/images/issue1.png");
span {
color: #2378ec;
}
}
}
.filtrate {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding-top: 10px;
padding-bottom: 10px;
.btn-search {
background: #2378ec;
color: #ffffff;
font-size: 15px;
font-family: Alibaba PuHuiTi;
border-radius: 2px;
border: none;
}
.btn-reset {
background: #fdab5b;
color: #ffffff;
font-size: 15px;
font-family: Alibaba PuHuiTi;
border-radius: 2px;
border: none;
}
}
.tables {
// background-color: #eaf2fd;
.tabs-btns {
display: flex;
align-items: center;
justify-content: center;
.look {
display: flex;
align-items: center;
cursor: pointer;
img {
width: 20px;
margin-right: 5px;
}
span {
font-size: 15px;
font-family: Alibaba PuHuiTi;
font-weight: 400;
color: red;
}
}
}
::v-deep .el-table {
.success-row {
background-color: rgba(234, 242, 253, 0.25);
}
td {
height: 30px;
text-align: center;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
}
th {
height: 30px;
background-color: #eaf2fd;
font-size: 16px;
font-family: "Alibaba PuHuiTi";
font-weight: bold;
color: #525966;
.el-checkbox {
display: none;
}
}
.el-table__body-wrapper {
height: 448px !important;
overflow-y: auto;
}
}
::v-deep .el-table::before {
height: 0;
}
}
.pagination {
margin-top: 10px;
.unselectedNumber {
color: #f71052;
}
.selectedNumber {
color: #48e1bb;
}
.sum {
color: #48e1bb;
}
}
.release-planning {
padding: 10px 10px 0 0;
.form-inline {
::v-deep .el-select {
background-color: transparent;
width: 190px;
.el-input__inner {
height: 33px;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
}
// border-radius: 2px;
}
::v-deep .el-input {
.el-input__inner {
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
}
}
.form-textarea {
::v-deep .el-textarea {
height: 180px;
.el-textarea__inner {
height: 100%;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
}
}
}
}
.inputs {
display: flex;
margin-top: 20px;
.inputs-span {
width: 80px;
text-align: right;
margin-right: 10px;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
}
::v-deep .el-select {
background-color: transparent;
width: 190px;
.el-input__inner {
height: 33px;
}
// border-radius: 2px;
}
.input {
flex: 1;
::v-deep .el-textarea {
height: 180px;
.el-textarea__inner {
height: 100%;
}
}
}
}
.centered {
align-items: center;
// position: relative;
// .data_icon {
// width: 10px;
// height: 7px;
// position: absolute;
// top: 50%;
// left: 280px;
// z-index: 9;
// color: #c0c4cc;
// font-size: 14px;
// transform: translateY(-50%);
// }
// ::v-deep .el-input__prefix {
// display: none;
// }
}
}
.next {
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
.selected {
display: flex;
align-items: center;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #525966;
margin-right: 15px;
span {
color: #2378ec;
}
}
.btn {
width: 150px;
height: 30px;
border: 1px solid #2378ec;
border-radius: 2px;
background-color: #eff6ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-family: "Alibaba PuHuiTi";
font-weight: 400;
color: #2378ec;
cursor: pointer;
}
.selectBtn {
background-color: #2378ec;
color: #ffffff;
}
}
}
}
::v-deep .el-dialog__body {
padding: 30px 15px;
}
</style>

@ -129,7 +129,7 @@
</template>
<script>
import myPagination from "@/views/components/myPagination/index.vue";
import myDialog from "@/views/components/dialog/index.vue";
import myDialog from "@/views/components/AddDialog/index.vue";
import myDialogtwo from "@/views/components/dialogTwo/index.vue";
import tempDialog from "@/views/components/tempDialog/index.vue";
import { Loading } from "element-ui";

@ -172,7 +172,7 @@ import {
addEnterprise,
updateEnterprise,
} from "@/api/yingji/enterprise";
import AddDialog from "@/views/components/dialog/index.vue";
import AddDialog from "@/views/components/AddDialog/index.vue";
import { mapState } from "vuex";
export default {

Loading…
Cancel
Save