diff --git a/src/views/components/AddDialog/index.vue b/src/views/components/AddDialog/index.vue
index efc15b9..f7b7f9c 100644
--- a/src/views/components/AddDialog/index.vue
+++ b/src/views/components/AddDialog/index.vue
@@ -48,13 +48,13 @@
-
+
-
+
-
+
@@ -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;
},
},
diff --git a/src/views/components/AddDialog/tab1.vue b/src/views/components/AddDialog/tab1.vue
index 3eff287..3838205 100644
--- a/src/views/components/AddDialog/tab1.vue
+++ b/src/views/components/AddDialog/tab1.vue
@@ -39,7 +39,7 @@
clearable
/>
-
+
{
diff --git a/src/views/components/AddDialog/tab2.vue b/src/views/components/AddDialog/tab2.vue
index 4fbfa2c..afe8fa0 100644
--- a/src/views/components/AddDialog/tab2.vue
+++ b/src/views/components/AddDialog/tab2.vue
@@ -278,15 +278,18 @@ export default {
};
},
created() {
- let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
- if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
- this.queryParams.district = userInfo.permissionCode;
- this.queryPlanEnterpriseParams.district = userInfo.permissionCode;
- }
- this.getList();
- this.getPlanEnterpriseList();
+ this.refreshList();
},
methods: {
+ refreshList() {
+ let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
+ if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
+ this.queryParams.district = userInfo.permissionCode;
+ this.queryPlanEnterpriseParams.district = userInfo.permissionCode;
+ }
+ this.getList();
+ this.getPlanEnterpriseList();
+ },
/** 查询计划企业列表 */
getPlanEnterpriseList() {
listEnterprise(this.queryPlanEnterpriseParams).then((response) => {
diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue
index 3d7ef5f..fc7d1cd 100644
--- a/src/views/components/AddDialog/tab3.vue
+++ b/src/views/components/AddDialog/tab3.vue
@@ -42,7 +42,7 @@
- {{ scope.row.isPoint == 1 ? "正式" : "草稿" }}
+ {{ scope.row.status == 1 ? "正式" : "草稿" }}
@@ -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("修改成功");
diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue
index bef4926..96efd55 100644
--- a/src/views/yingji/planManage.vue
+++ b/src/views/yingji/planManage.vue
@@ -388,7 +388,7 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.$refs.addDialog.openDialog("newlyIncreased", this.dept);
+ this.$refs.addDialog.openDialog();
},
/** 详情按钮操作 */
handleInfo(row) {