From f7e96ab8b5dba2d9f3811b180f811c9eef8cb347 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=9F=B9=E5=8F=8B?= <17852335869@163.com>
Date: Thu, 2 Mar 2023 10:18:14 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=A4=B4=E5=83=8F=E7=82=B9=E5=87=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/index/top/index.vue | 5 +++--
.../workflow/process/components/form.vue | 21 ++++++++++++-------
2 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index b951827..39441b4 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -16,11 +16,12 @@
-
+
+ {{userInfo.real_name}}
diff --git a/src/views/plugin/workflow/process/components/form.vue b/src/views/plugin/workflow/process/components/form.vue
index 2d05695..4eb451a 100644
--- a/src/views/plugin/workflow/process/components/form.vue
+++ b/src/views/plugin/workflow/process/components/form.vue
@@ -244,9 +244,10 @@ export default {
mounted() {
// 运维公司
getCompany().then((res) => {
- this.companyList = res.data.data;
- if (this.companyList.length > 0) {
- const id = this.companyList[0].id;
+ const data = res.data.data;
+ this.companyList = data;
+ if (data.length > 0) {
+ const id = data[0].id;
this.form.yunweigongsi = id;
this.companyChange(id);
}
@@ -268,7 +269,9 @@ export default {
});
getDepts({ id: obj.deptId }).then((res) => {
const guanlibumen = this.findObject(this.option.column, "guanlibumen");
- guanlibumen.dicData = res.data.data;
+ this.$nextTick(() => {
+ guanlibumen.dicData = res.data.data;
+ });
});
getTaskAndDataBase({ id }).then((res) => {
this.taskAndDataBaseList = res.data.data;
@@ -277,13 +280,15 @@ export default {
// 任务父类
taskParentChange(id) {
getTaskTypeData({ parentId: id }).then((res) => {
- this.form.renwuzhonglei = ""
- this.form.renwudengji = ""
+ this.form.renwuzhonglei = "";
+ this.form.renwudengji = "";
const renwuzhonglei = this.findObject(
this.option.column,
"renwuzhonglei"
);
- renwuzhonglei.dicData = res.data.data;
+ this.$nextTick(() => {
+ renwuzhonglei.dicData = res.data.data;
+ });
});
},
systemChange(id) {
@@ -291,7 +296,7 @@ export default {
return i.id === id;
});
getModuleAndDataTable({ id: obj.id, type: obj.type }).then((res) => {
- this.form.xitongmokuaishujubiao = ""
+ this.form.xitongmokuaishujubiao = "";
const xitongmokuaishujubiao = this.findObject(
this.option.column,
"xitongmokuaishujubiao"