正式提交

zhangtao
laozt 1 year ago
parent 742cf9974f
commit d2d51c6ea1

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

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

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

Loading…
Cancel
Save