1.头像点击

main
赵培友 3 years ago
parent 86767138e8
commit f7e96ab8b5
  1. 5
      src/page/index/top/index.vue
  2. 21
      src/views/plugin/workflow/process/components/form.vue

@ -16,11 +16,12 @@
<div class="avatar">
<img :src="userInfo.avatar" alt="" width="56px" height="56px" />
</div>
<div style="margin-right:10px;">
<!-- <div style="margin-right:10px;">
{{userInfo.real_name}}
</div>
</div> -->
<el-dropdown>
<span class="el-dropdown-link">
<span style="cursor:pointer;">{{userInfo.real_name}}</span>
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">

@ -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"

Loading…
Cancel
Save