|
@@ -1,6 +1,6 @@
|
|
|
import { tableSelect } from "@/components/TableSelect";
|
|
|
import { tableSort } from "@/components/TableSort";
|
|
|
-import { reactive, onMounted, ref, usePublicHooks, ElMessage, ElMessageBox, http, getGroupUrl, RegularVerification, verification, PaginationProps, hasAuth } from "@/utils/importUsed"
|
|
|
+import { reactive, onMounted, ref, usePublicHooks, ElMessage, ElMessageBox, http, getGroupUrl, RegularVerification, verification, PaginationProps, hasAuth, getConfig } from "@/utils/importUsed"
|
|
|
// 接口列表实例
|
|
|
const UserUrl = ref(null)
|
|
|
const { switchStyle } = usePublicHooks();
|
|
@@ -61,8 +61,8 @@ export function useUser() {
|
|
|
]);
|
|
|
// 表格数据列表
|
|
|
const dataList:any = ref([
|
|
|
- { sort:0, id: 1, status:false,sex:1, name:'角色名称1', rank:3, dept:"行政部", post:["人事专员", "行政主管"]},
|
|
|
- { sort:1, id: 2, status:true,sex:0, name:'角色名称2', rank:9, dept:"运营部", post:["数据分析", "运营专员", "运营主管"] }
|
|
|
+ { sort:0, id: 1, status:false,sex:1, name:'角色名称1', rank:3, dept:"行政部", post:["人事专员", "行政主管"], header:'kxs_new/KXS_ADMIN/2024-09-04/8ca30206-680f-48ef-aa07-8629cc83739fbf051c698ffdea8a.png'},
|
|
|
+ { sort:1, id: 2, status:true,sex:0, name:'角色名称2', rank:9, dept:"运营部", post:["数据分析", "运营专员", "运营主管"], header:'kxs_new/KXS_ADMIN/2024-09-04/8ca30206-680f-48ef-aa07-8629cc83739fbf051c698ffdea8a.png' }
|
|
|
]);
|
|
|
// 页面加载状态
|
|
|
const loading = ref(false);
|
|
@@ -157,6 +157,21 @@ export function useUser() {
|
|
|
})
|
|
|
)
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "封面图",
|
|
|
+ minWidth: 100,
|
|
|
+ formatter: ({ header }) => {
|
|
|
+ return (<div style="text-align: center;">
|
|
|
+ <el-image
|
|
|
+ fit="cover"
|
|
|
+ preview-teleported={true}
|
|
|
+ src={getConfig().UploadUrl + '/' + header}
|
|
|
+ preview-src-list={Array.of(getConfig().UploadUrl + '/' + header)}
|
|
|
+ class="w-[50px] h-[50px] align-middle"
|
|
|
+ />
|
|
|
+ </div>)
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
label: "部门",
|
|
|
minWidth: 130,
|