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"