lijinlong
杜函宇 1 year ago
parent b227b746aa
commit 16fb3e6e85

@ -63,12 +63,12 @@ export default {
// } else // } else
if ( if (
this.total > this.total >
this.current * this.size this.pageNum * this.pageSize
) { ) {
return this.current * this.size; return this.pageNum * this.pageSize;
} else if ( } else if (
this.total < this.current * this.size || this.total < this.pageNum * this.pageSize ||
this.total == this.current * this.size this.total == this.pageNum * this.pageSize
) { ) {
return this.total; return this.total;
} }

@ -23,9 +23,9 @@
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">区划:</div> <div class="select-span">区划:</div>
<el-cascader <el-cascader
v-model="form.district" size="small"
v-model="district"
:options="compartment" :options="compartment"
:show-all-levels="false" :show-all-levels="false"
:props="{ :props="{
@ -38,8 +38,8 @@
<div class="my-checkbox"> <div class="my-checkbox">
<el-checkbox-group v-model="checkList" @change="setmealSelect"> <el-checkbox-group v-model="checkList" @change="setmealSelect">
<el-checkbox label="全部"></el-checkbox> <el-checkbox label="全部"></el-checkbox>
<el-checkbox label="已执法"></el-checkbox> <el-checkbox label="已检查"></el-checkbox>
<el-checkbox label="未执法"></el-checkbox> <el-checkbox label="未检查"></el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</div> </div>
@ -83,8 +83,8 @@
header-align="center" header-align="center"
> >
</el-table-column> </el-table-column>
<el-table-column prop="state" label="状态" header-align="center"> <!-- <el-table-column prop="state" label="状态" header-align="center">
</el-table-column> </el-table-column> -->
<el-table-column label="操作" header-align="center"> <el-table-column label="操作" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="tabs-btns"> <div class="tabs-btns">
@ -151,6 +151,8 @@ export default {
loads: true, loads: true,
total: 0, total: 0,
options: [], options: [],
//
district:'',
form: { form: {
district: "", district: "",
plannedYear: "", plannedYear: "",
@ -310,11 +312,11 @@ export default {
this.filterComparment(value.children); this.filterComparment(value.children);
} else { } else {
delete value.children; delete value.children;
return return;
} }
}); });
}, },
shutDownDetail() { shutDownDetail() {
this.addShow = false; this.addShow = false;
}, },
@ -337,7 +339,7 @@ export default {
); );
}, },
searchList() { searchList() {
this.form.district = this.form.district[this.form.district.length-1] this.form.district = this.district[this.district.length - 1];
this.searchBefore = Object.assign(this.searchBefore, this.form); this.searchBefore = Object.assign(this.searchBefore, this.form);
this.getList(); this.getList();
}, },

@ -67,6 +67,9 @@
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="year" label="计划年份" header-align="center"> <el-table-column prop="year" label="计划年份" header-align="center">
<template slot-scope="scope">
{{ scope.row.year }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="enterpriseName" prop="enterpriseName"
@ -128,7 +131,6 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
ref="form1" ref="form1"
:rules="rules"
> >
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -295,17 +297,17 @@ export default {
addShow: false, addShow: false,
// //
details: {}, details: {},
rules: { // rules: {
enterpriseName: [ // enterpriseName: [
{ required: true, message: "请输入企业名称", trigger: "blur" }, // { required: true, message: "", trigger: "blur" },
], // ],
entCode: [ // entCode: [
{ required: true, message: "请输入企业代码", trigger: "blur" }, // { required: true, message: "", trigger: "blur" },
], // ],
remark: [{ required: true, message: "请输入备注", trigger: "blur" }], // remark: [{ required: true, message: "", trigger: "blur" }],
type: [{ required: true, message: "请输入大类", trigger: "blur" }], // type: [{ required: true, message: "", trigger: "blur" }],
year: [{ required: true, message: "请选择年份", trigger: "blur" }], // year: [{ required: true, message: "", trigger: "blur" }],
}, // },
// //
total: 0, total: 0,
fileList: [], fileList: [],

Loading…
Cancel
Save