员工列表加上头像
This commit is contained in:
parent
8a4b002797
commit
bcd894e924
|
|
@ -40,6 +40,10 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template #column1="{ row }">
|
||||||
|
<slot name="column1" :row="row"></slot>
|
||||||
|
</template>
|
||||||
|
|
||||||
</vxe-grid>
|
</vxe-grid>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -273,7 +277,7 @@ export default {
|
||||||
date[0]._d.setHours(0, 0, 0, 0);
|
date[0]._d.setHours(0, 0, 0, 0);
|
||||||
date[1]._d.setHours(23, 59, 59, 59);
|
date[1]._d.setHours(23, 59, 59, 59);
|
||||||
this.start_time = parseInt(date[0]._d.getTime() / 1000); // 将日期转换为时间戳
|
this.start_time = parseInt(date[0]._d.getTime() / 1000); // 将日期转换为时间戳
|
||||||
this.end_time = parseInt( date[1]._d.getTime() / 1000); // 将日期转换为时间戳
|
this.end_time = parseInt(date[1]._d.getTime() / 1000); // 将日期转换为时间戳
|
||||||
} else { // 如果没有值
|
} else { // 如果没有值
|
||||||
this.start_time = 0; // 将日期转换为时间戳
|
this.start_time = 0; // 将日期转换为时间戳
|
||||||
this.end_time = 0; // 将日期转换为时间戳
|
this.end_time = 0; // 将日期转换为时间戳
|
||||||
|
|
@ -359,8 +363,8 @@ export default {
|
||||||
width: this.$mk.getWindowSize().width * 0.9,
|
width: this.$mk.getWindowSize().width * 0.9,
|
||||||
height: this.$mk.getWindowSize().height * 0.9,
|
height: this.$mk.getWindowSize().height * 0.9,
|
||||||
dataId: 0,
|
dataId: 0,
|
||||||
callback:({success})=>{
|
callback: ({ success }) => {
|
||||||
if(success){
|
if (success) {
|
||||||
this.$refs.xGrid.commitProxy('query')
|
this.$refs.xGrid.commitProxy('query')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -459,7 +463,7 @@ export default {
|
||||||
if (editPage != null) {
|
if (editPage != null) {
|
||||||
editPage.beforeTabClose().then(() => {
|
editPage.beforeTabClose().then(() => {
|
||||||
this.$closePage(this.options.editPageUrl);
|
this.$closePage(this.options.editPageUrl);
|
||||||
this.showPageEdit( row[this.options.keyName]); // 打开页面
|
this.showPageEdit(row[this.options.keyName]); // 打开页面
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.showPageEdit(row[this.options.keyName]); // 打开页面
|
this.showPageEdit(row[this.options.keyName]); // 打开页面
|
||||||
|
|
@ -474,27 +478,27 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
showPageEdit(dataId){
|
showPageEdit(dataId) {
|
||||||
|
|
||||||
if( this.options.editPage){
|
if (this.options.editPage) {
|
||||||
this.$mk.dialog.open({
|
this.$mk.dialog.open({
|
||||||
page: this.options.editPage,
|
page: this.options.editPage,
|
||||||
title: this.options.editPageTitle,
|
title: this.options.editPageTitle,
|
||||||
pageOptions: {
|
pageOptions: {
|
||||||
},
|
},
|
||||||
width: this.$mk.getWindowSize().width * 0.9,
|
width: this.$mk.getWindowSize().width * 0.9,
|
||||||
height: this.$mk.getWindowSize().height * 0.9,
|
height: this.$mk.getWindowSize().height * 0.9,
|
||||||
dataId: dataId,
|
dataId: dataId,
|
||||||
callback:({success})=>{
|
callback: ({ success }) => {
|
||||||
if(success){
|
if (success) {
|
||||||
this.$refs.xGrid.commitProxy('query')
|
this.$refs.xGrid.commitProxy('query')
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}else{
|
});
|
||||||
|
} else {
|
||||||
this.$openPage(this.options.editPageUrl + dataId);
|
this.$openPage(this.options.editPageUrl + dataId);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<basic-page-edit :desc="desc" :dataId="getDataId()" :options="pageOptions"></basic-page-edit>
|
<basic-page-edit :desc="desc" :dataId="getDataId()" :options="pageOptions">
|
||||||
|
|
||||||
|
</basic-page-edit>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<basic-page-list :desc="desc" :options="pageOptions"></basic-page-list>
|
<basic-page-list :desc="desc" :options="pageOptions">
|
||||||
|
<template v-slot:column1="{row}">
|
||||||
|
|
||||||
|
<img v-if="row && row.avatar" :src="row.avatar" style="width: 100px;"/>
|
||||||
|
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</basic-page-list>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -136,6 +144,10 @@ export default {
|
||||||
|
|
||||||
// =============================== 表格列 自动生成 Start ===============================
|
// =============================== 表格列 自动生成 Start ===============================
|
||||||
|
|
||||||
|
{ slots: { default: 'column1' },title: '员工头像', width: 250 },
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ field: 'name', sortable: true, title: '员工姓名', width: 250 }, // 员工姓名
|
{ field: 'name', sortable: true, title: '员工姓名', width: 250 }, // 员工姓名
|
||||||
{ field: 'code', sortable: true, title: '员工工号', width: 250 }, // 员工工号
|
{ field: 'code', sortable: true, title: '员工工号', width: 250 }, // 员工工号
|
||||||
{ field: 'base_department', formatter: 'formatRef', params: { dataType: "object", textField: "name" }, title: '部门', width: 250 },
|
{ field: 'base_department', formatter: 'formatRef', params: { dataType: "object", textField: "name" }, title: '部门', width: 250 },
|
||||||
|
|
@ -144,7 +156,6 @@ export default {
|
||||||
//{ field: 'password', sortable: true, title: '员工密码', width: 250 }, // 员工密码
|
//{ field: 'password', sortable: true, title: '员工密码', width: 250 }, // 员工密码
|
||||||
//{ field: 'salt', sortable: true, title: '员工盐', width: 250 }, // 员工盐
|
//{ field: 'salt', sortable: true, title: '员工盐', width: 250 }, // 员工盐
|
||||||
{ field: 'nickname', sortable: true, title: '员工昵称', width: 250 }, // 员工昵称
|
{ field: 'nickname', sortable: true, title: '员工昵称', width: 250 }, // 员工昵称
|
||||||
// { field: 'avatar', sortable: true, title: '员工头像', width: 250 }, // 员工头像
|
|
||||||
//{ field: 'openid', sortable: true, title: '员工openid', width: 250 }, // 员工openid
|
//{ field: 'openid', sortable: true, title: '员工openid', width: 250 }, // 员工openid
|
||||||
//{ field: 'unionid', sortable: true, title: '员工unionid', width: 250 }, // 员工unionid
|
//{ field: 'unionid', sortable: true, title: '员工unionid', width: 250 }, // 员工unionid
|
||||||
//{ field: 'session_key', sortable: true, title: '员工session_key', width: 250 }, // 员工session_key
|
//{ field: 'session_key', sortable: true, title: '员工session_key', width: 250 }, // 员工session_key
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue