修复问题

zhangtao
laozt 1 year ago
parent 69c1b9b835
commit 5baca05809

@ -48,10 +48,10 @@
<!-- tabs-content -->
<div v-show="activeTab == 0">
<tab1 @nextTab="selectTab" />
<tab1 ref="tabs1" @nextTab="selectTab" />
</div>
<div v-show="activeTab == 1">
<tab2 @nextTab="selectTab" />
<tab2 ref="tabs2" @nextTab="selectTab" />
</div>
<div v-show="activeTab == 2">
<tab3 ref="tabs" @closeDialogtabs="closeDialog" />
@ -85,19 +85,24 @@ export default {
created() {},
methods: {
selectTab(index) {
console.log(index);
// console.log(index);
this.activeTab = index;
if (index == 2) {
if (index == 0) {
this.$refs.tabs1.refreshList();
} else if (index == 1) {
this.$refs.tabs2.refreshList();
} else if (index == 2) {
this.$refs.tabs.reList();
}
},
//
openDialog(item, dept) {
openDialog() {
this.activeTab = 0;
this.dialogVisible = true;
},
//
closeDialog() {
this.$emit("closeDialog")
this.$emit("closeDialog");
this.dialogVisible = false;
},
},

@ -180,7 +180,14 @@ import firmDialog from "@/views/components/firmDialog/index.vue";
import dictzh from "@/utils/dictzh.js";
//
import executive from "../../yingji/echarts/executive.vue";
import { listNew, listGetNew ,getNew, delNew, addNew, updateNew } from "@/api/yingji/new";
import {
listNew,
listGetNew,
getNew,
delNew,
addNew,
updateNew,
} from "@/api/yingji/new";
import {
listEnterprise,
getEnterprise,
@ -271,6 +278,10 @@ export default {
};
},
created() {
this.refreshList()
},
methods: {
refreshList() {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode;
@ -279,7 +290,6 @@ export default {
this.getList();
this.getPlanEnterpriseList();
},
methods: {
/** 查询计划企业列表 */
getPlanEnterpriseList() {
listEnterprise(this.queryPlanEnterpriseParams).then((response) => {

@ -278,6 +278,10 @@ export default {
};
},
created() {
this.refreshList();
},
methods: {
refreshList() {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode;
@ -286,7 +290,6 @@ export default {
this.getList();
this.getPlanEnterpriseList();
},
methods: {
/** 查询计划企业列表 */
getPlanEnterpriseList() {
listEnterprise(this.queryPlanEnterpriseParams).then((response) => {

@ -42,7 +42,7 @@
<el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope">
<span>{{ scope.row.isPoint == 1 ? "正式" : "草稿" }}</span>
<span>{{ scope.row.status == 1 ? "正式" : "草稿" }}</span>
</template>
</el-table-column>
@ -190,7 +190,7 @@ export default {
.then(({ value }) => {
//
if (row.id != null) {
row.createTime = null;
// row.createTime = null;
row.plannedMonth = value;
updateEnterprise(row).then((response) => {
this.$modal.msgSuccess("修改成功");

@ -388,7 +388,7 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
this.$refs.addDialog.openDialog("newlyIncreased", this.dept);
this.$refs.addDialog.openDialog();
},
/** 详情按钮操作 */
handleInfo(row) {

Loading…
Cancel
Save