zhangtao
laozt 1 year ago
parent 187246cf2f
commit b3e4d2793a

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询企业新列表
export function listNew(query) {
return request({
url: '/programManagement/new/list',
method: 'get',
params: query
})
}
// 查询企业新详细
export function getNew(id) {
return request({
url: '/system/new/' + id,
method: 'get'
})
}
// 新增企业新
export function addNew(data) {
return request({
url: '/system/new',
method: 'post',
data: data
})
}
// 修改企业新
export function updateNew(data) {
return request({
url: '/system/new',
method: 'put',
data: data
})
}
// 删除企业新
export function delNew(id) {
return request({
url: '/system/new/' + id,
method: 'delete'
})
}

@ -22,7 +22,7 @@
<div class="module"> <div class="module">
<div <div
class="select" class="select"
:class="activeTab == 0 ? 'nextStepSelect' : ''" :class="{ nextStepSelect: activeTab == 0 }"
@click="selectTab(0)" @click="selectTab(0)"
> >
<span class="span-one"></span> <span class="span-one"></span>
@ -30,7 +30,7 @@
</div> </div>
<div <div
class="issue" class="issue"
:class="activeTab == 1 ? 'nextStepIssue' : ''" :class="{ nextStepIssue: activeTab == 1 }"
@click="selectTab(1)" @click="selectTab(1)"
> >
<span class="span-one"></span> <span class="span-one"></span>
@ -38,7 +38,7 @@
</div> </div>
<div <div
class="issue" class="issue"
:class="activeTab == 2 ? 'nextStepIssue' : ''" :class="{ nextStepIssue: activeTab == 2 }"
@click="selectTab(2)" @click="selectTab(2)"
> >
<span class="span-one"></span> <span class="span-one"></span>
@ -81,7 +81,6 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="input-input"> <div class="input-input">
<el-input <el-input
v-model="form.enterpriseName" v-model="form.enterpriseName"
@ -99,19 +98,67 @@
<div class="select-btn reset">重置</div> <div class="select-btn reset">重置</div>
</div> </div>
</div> </div>
<div class="tables" v-loading="loading"></div> <div class="tables" v-loading="loading">
<div class="pagination"> <el-table
<my-pagination v-loading="loading"
:total="total" :data="newList"
@pagesChange="pagesChange" @selection-change="handleSelectionChange"
ref="mypagination" >
<el-table-column
label="企业名称"
align="center"
prop="enterpriseName"
/>
<el-table-column
label="行政区划"
align="center"
prop="district"
/>
<el-table-column
label="行业监管大类编码"
align="center"
prop="supervisionLarge"
/>
<el-table-column
label="安全风险等级"
align="center"
prop="riskLevel"
/>
<el-table-column
label="标准化等级"
align="center"
prop="standLevel"
/>
<el-table-column
label="上次检查时间"
align="center"
prop="examineEndTime"
width="180"
> >
<!-- <div>重点企业数 <template slot-scope="scope">
<span :class=" count == unCount ? 'selectedNumber' : 'unselectedNumber'">{{ unCount }}</span>/ <span>{{
<span class="sum">{{ count }}</span> parseTime(scope.row.examineEndTime, "{y}-{m}-{d}")
</div> --> }}</span>
</my-pagination> </template>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit"
>修改</el-button
>
<el-button size="mini" type="text" icon="el-icon-delete"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</div> </div>
<div class="next"> <div class="next">
<div class="selected"> <div class="selected">
草稿箱<span>{{ 0 }}</span> 草稿箱<span>{{ 0 }}</span>
@ -142,11 +189,13 @@
</div> </div>
</template> </template>
<script> <script>
import myPagination from "@/views/components/myPagination/index.vue"; //
import firmDialog from "@/views/components/firmDialog/index.vue"; import firmDialog from "@/views/components/firmDialog/index.vue";
import { mapState } from "vuex"; //
import dictzh from "@/utils/dictzh.js"; import dictzh from "@/utils/dictzh.js";
//
import executive from "../../yingji/echarts/executive.vue"; import executive from "../../yingji/echarts/executive.vue";
import { listNew, getNew, delNew, addNew, updateNew } from "@/api/yingji/new";
export default { export default {
dicts: [ dicts: [
@ -156,69 +205,62 @@ export default {
"entpr_color", "entpr_color",
"major_hazard_level", "major_hazard_level",
], ],
components: { myPagination, firmDialog, executive }, components: { firmDialog, executive },
data() { data() {
return { return {
activeTab: 0, activeTab: 0,
dictzh: dictzh, dictzh: dictzh,
dialogVisible: false, dialogVisible: false,
tableData: [],
listOne: [],
myDistrict: [],
options: [], options: [],
props: { //
value: "subdistrict", loading: true,
label: "institutionName", //
checkStrictly: true, ids: [],
}, //
multipleSelection: [], single: true,
selected: 0, //
activityCode: 0, multiple: true,
workingArea: "", //
subdistrict: "", showSearch: true,
form: { //
subdistrict: [],
ecoTypeLarge: "",
indusTypeClass: "",
isPoint: "",
majorHazardLevel: "",
entprColor: "",
uuitNo: "",
enterpriseName: "",
},
form2: {
plannedYear: "",
planName: "",
planContent: "",
remark: "",
},
rules: {
plannedYear: [
{ required: true, message: "请选择年月", trigger: "blur" },
],
planName: [
{ required: true, message: "请输入计划标题", trigger: "blur" },
],
planContent: [
{ required: true, message: "请输入计划内容", trigger: "blur" },
],
},
total: 0, total: 0,
pages: { //
newList: [],
//
queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
enterpriseId: null,
enterpriseName: null,
district: null,
supervisionLarge: null,
riskLevel: null,
standLevel: null,
examineEndTime: null,
createId: null,
updateId: null,
userId: null,
deptId: null,
}, },
loading: false, //
isamend: false, form: {},
amendId: "", //
count: 0, rules: {},
selectList: [],
disabled: false,
county: false,
district: [],
}; };
}, },
created() {
this.getList();
},
methods: { methods: {
/** 查询企业新列表 */
getList() {
this.loading = true;
listNew(this.queryParams).then((response) => {
this.newList = response.rows;
this.total = response.total;
this.loading = false;
});
},
quhua(e) { quhua(e) {
this.form.subdistrict = e; this.form.subdistrict = e;
}, },
@ -240,11 +282,7 @@ export default {
}, },
}, },
mounted() {}, mounted() {},
computed: { computed: {},
...mapState({
dept: (state) => state.user.dept,
}),
},
filters: { filters: {
supervisionLarge: function (value) { supervisionLarge: function (value) {
let array = value.split(","); let array = value.split(",");

Loading…
Cancel
Save