正式提交

zhangtao
laozt 1 year ago
parent 742cf9974f
commit d2d51c6ea1

@ -54,7 +54,7 @@
<tab2 @nextTab="selectTab" /> <tab2 @nextTab="selectTab" />
</div> </div>
<div v-show="activeTab == 2"> <div v-show="activeTab == 2">
<tab3 ref="tabs" /> <tab3 ref="tabs" @closeDialogtabs="closeDialog"/>
</div> </div>
</div> </div>
</div> </div>
@ -96,7 +96,8 @@ export default {
this.dialogVisible = true; this.dialogVisible = true;
}, },
// //
closeDialog(item) { closeDialog() {
this.$emit("closeDialog")
this.dialogVisible = false; this.dialogVisible = false;
}, },
}, },

@ -155,14 +155,13 @@ export default {
}, },
methods: { methods: {
onSubmit() { onSubmit() {
console.log(); let ids = [];
let ids = [] this.enterpriseList.map((item) => {
this.enterpriseList.map(item=>{ ids.push(item.id);
ids.push( item.id) });
updateIdList(ids.join(",")).then((response) => {
})
updateIdList(ids.join(',')).then((response) => {
this.$modal.msgSuccess("提交成功"); this.$modal.msgSuccess("提交成功");
this.$emit("closeDialogtabs");
this.getList(); this.getList();
}); });
}, },

@ -54,7 +54,7 @@
<executive @quhua="quhua" @quhuadizhi="quhuadizhi" ref="executive" /> <executive @quhua="quhua" @quhuadizhi="quhuadizhi" ref="executive" />
</el-form-item> </el-form-item>
<el-form-item label="执法层级" prop="lawHierarchy"> <el-form-item label="执法层级" prop="lawHierarchy">
<el-select <!-- <el-select
v-model="queryParams.lawHierarchy" v-model="queryParams.lawHierarchy"
placeholder="请选择执法层级" placeholder="请选择执法层级"
filterable filterable
@ -66,7 +66,7 @@
:value="item.value" :value="item.value"
> >
</el-option> </el-option>
</el-select> </el-select> -->
</el-form-item> </el-form-item>
<el-form-item label="是否省重点" prop="isPoint"> <el-form-item label="是否省重点" prop="isPoint">
<el-radio-group v-model="queryParams.isPoint"> <el-radio-group v-model="queryParams.isPoint">
@ -133,7 +133,9 @@
/> />
<el-table-column label="是否省重点" align="center" prop="isPoint"> <el-table-column label="是否省重点" align="center" prop="isPoint">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isPoint }}</span> <span>{{
scope.row.isPoint == 1 ? "是" : scope.row.isPoint == 2 ? "否" : ""
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="执法地区" align="center" prop="lawAreas" /> <el-table-column label="执法地区" align="center" prop="lawAreas" />
@ -174,7 +176,7 @@
/> />
</div> </div>
<!-- 发布计划 --> <!-- 发布计划 -->
<add-dialog ref="addDialog" v-on:close="closeAddDialog" /> <add-dialog ref="addDialog" @closeDialog="closeDialog" />
<!-- 详情对话框 --> <!-- 详情对话框 -->
<info-dialog ref="infoDialog" /> <info-dialog ref="infoDialog" />
@ -195,7 +197,6 @@ import AddDialog from "@/views/components/AddDialog/index.vue";
import InfoDialog from "./planmanage/components/infoDialog.vue"; import InfoDialog from "./planmanage/components/infoDialog.vue";
import EditDialog from "./planmanage/components/editDialog.vue"; import EditDialog from "./planmanage/components/editDialog.vue";
import executive from "./echarts/executive.vue"; import executive from "./echarts/executive.vue";
import { mapState } from "vuex";
export default { export default {
components: { AddDialog, InfoDialog, executive, EditDialog }, components: { AddDialog, InfoDialog, executive, EditDialog },
@ -320,7 +321,7 @@ export default {
this.queryParams.plannedMonth = e.join(","); this.queryParams.plannedMonth = e.join(",");
}, },
// //
closeAddDialog() { closeDialog() {
this.getList(); this.getList();
}, },
/** 查询计划企业列表 */ /** 查询计划企业列表 */
@ -328,6 +329,7 @@ export default {
this.loading = true; this.loading = true;
listEnterprise(this.queryParams).then((response) => { listEnterprise(this.queryParams).then((response) => {
this.enterpriseList = response.data; this.enterpriseList = response.data;
// console.log(this.enterpriseList);
this.total = response.data.length; this.total = response.data.length;
this.loading = false; this.loading = false;
}); });
@ -456,11 +458,6 @@ export default {
return ""; return "";
}, },
}, },
computed: {
...mapState({
dept: (state) => state.user.dept,
}),
},
created() { created() {
let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); let treeData = JSON.parse(localStorage.getItem("TREE_DATA"));
this.myDistrict = treeData; this.myDistrict = treeData;

Loading…
Cancel
Save