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"> <div class="avatar">
<img :src="userInfo.avatar" alt="" width="56px" height="56px" /> <img :src="userInfo.avatar" alt="" width="56px" height="56px" />
</div> </div>
<div style="margin-right:10px;"> <!-- <div style="margin-right:10px;">
{{userInfo.real_name}} {{userInfo.real_name}}
</div> </div> -->
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<span style="cursor:pointer;">{{userInfo.real_name}}</span>
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">

@ -244,9 +244,10 @@ export default {
mounted() { mounted() {
// //
getCompany().then((res) => { getCompany().then((res) => {
this.companyList = res.data.data; const data = res.data.data;
if (this.companyList.length > 0) { this.companyList = data;
const id = this.companyList[0].id; if (data.length > 0) {
const id = data[0].id;
this.form.yunweigongsi = id; this.form.yunweigongsi = id;
this.companyChange(id); this.companyChange(id);
} }
@ -268,7 +269,9 @@ export default {
}); });
getDepts({ id: obj.deptId }).then((res) => { getDepts({ id: obj.deptId }).then((res) => {
const guanlibumen = this.findObject(this.option.column, "guanlibumen"); const guanlibumen = this.findObject(this.option.column, "guanlibumen");
guanlibumen.dicData = res.data.data; this.$nextTick(() => {
guanlibumen.dicData = res.data.data;
});
}); });
getTaskAndDataBase({ id }).then((res) => { getTaskAndDataBase({ id }).then((res) => {
this.taskAndDataBaseList = res.data.data; this.taskAndDataBaseList = res.data.data;
@ -277,13 +280,15 @@ export default {
// //
taskParentChange(id) { taskParentChange(id) {
getTaskTypeData({ parentId: id }).then((res) => { getTaskTypeData({ parentId: id }).then((res) => {
this.form.renwuzhonglei = "" this.form.renwuzhonglei = "";
this.form.renwudengji = "" this.form.renwudengji = "";
const renwuzhonglei = this.findObject( const renwuzhonglei = this.findObject(
this.option.column, this.option.column,
"renwuzhonglei" "renwuzhonglei"
); );
renwuzhonglei.dicData = res.data.data; this.$nextTick(() => {
renwuzhonglei.dicData = res.data.data;
});
}); });
}, },
systemChange(id) { systemChange(id) {
@ -291,7 +296,7 @@ export default {
return i.id === id; return i.id === id;
}); });
getModuleAndDataTable({ id: obj.id, type: obj.type }).then((res) => { getModuleAndDataTable({ id: obj.id, type: obj.type }).then((res) => {
this.form.xitongmokuaishujubiao = "" this.form.xitongmokuaishujubiao = "";
const xitongmokuaishujubiao = this.findObject( const xitongmokuaishujubiao = this.findObject(
this.option.column, this.option.column,
"xitongmokuaishujubiao" "xitongmokuaishujubiao"

Loading…
Cancel
Save