新增入股任务选择负责人
This commit is contained in:
parent
1b41b00dd9
commit
ac9da403d7
src
@ -20,3 +20,8 @@ export function getUserInfo() {
|
|||||||
export function setUserInfo(params: any) {
|
export function setUserInfo(params: any) {
|
||||||
return request.post({ url: '/auth.admin/editSelf', params })
|
return request.post({ url: '/auth.admin/editSelf', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 编辑管理员信息
|
||||||
|
export function getUserList(params: any) {
|
||||||
|
return request.get({ url: '/user.user/lists', params })
|
||||||
|
}
|
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-card class="!border-none" shadow="never">
|
<!-- <el-card class="!border-none" shadow="never">
|
||||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||||
<el-form-item label="负责人名称" prop="name">
|
<el-form-item label="负责人名称" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
class="w-[280px]"
|
class="w-[280px]"
|
||||||
v-model="queryParams.name"
|
v-model="queryParams.nickname"
|
||||||
clearable
|
clearable
|
||||||
placeholder="请输入负责人名称"
|
placeholder="请输入负责人名称"
|
||||||
/>
|
/>
|
||||||
@ -26,35 +26,35 @@
|
|||||||
<el-button @click="resetParams">重置</el-button>
|
<el-button @click="resetParams">重置</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card> -->
|
||||||
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-table :data="pager.lists" @cell-click="handleCurrentChange">
|
<el-table :data="pager.lists" @cell-click="handleCurrentChange">
|
||||||
<el-table-column label="账号" prop="account" min-width="120" />
|
<el-table-column label="账号" prop="account" min-width="120" />
|
||||||
<el-table-column label="名称" prop="name" min-width="100" />
|
<el-table-column label="头像" prop="avatar" min-width="80">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<img style="width: 50px; height: 50px" :src="row.avatar" />
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="名称" prop="nickname" min-width="100" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="角色"
|
label="电话"
|
||||||
prop="role_name"
|
prop="mobile"
|
||||||
min-width="140"
|
min-width="140"
|
||||||
show-tooltip-when-overflow
|
show-tooltip-when-overflow
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="部门"
|
label="公司"
|
||||||
prop="dept_name"
|
prop="company.company_name"
|
||||||
min-width="100"
|
min-width="160"
|
||||||
show-tooltip-when-overflow
|
show-tooltip-when-overflow
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
label="创建时间"
|
|
||||||
prop="create_time"
|
|
||||||
min-width="180"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="最近登录时间"
|
label="最近登录时间"
|
||||||
prop="login_time"
|
prop="login_time"
|
||||||
min-width="180"
|
min-width="180"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="最近登录IP" prop="login_ip" min-width="120" />
|
<el-table-column label="最近登录IP" prop="login_ip" min-width="120" /> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex mt-4 justify-end">
|
<div class="flex mt-4 justify-end">
|
||||||
@ -71,6 +71,7 @@ import { useDictData, useDictOptions } from "@/hooks/useDictOptions";
|
|||||||
import { adminLists } from "@/api/perms/admin";
|
import { adminLists } from "@/api/perms/admin";
|
||||||
import Popup from "@/components/popup/index.vue";
|
import Popup from "@/components/popup/index.vue";
|
||||||
import { defineEmits } from "vue";
|
import { defineEmits } from "vue";
|
||||||
|
import { getUserList } from "@/api/user";
|
||||||
const { optionsData } = useDictOptions<{
|
const { optionsData } = useDictOptions<{
|
||||||
role: any[];
|
role: any[];
|
||||||
}>({
|
}>({
|
||||||
@ -80,9 +81,15 @@ const { optionsData } = useDictOptions<{
|
|||||||
});
|
});
|
||||||
// 查询条件
|
// 查询条件
|
||||||
const queryParams = reactive({
|
const queryParams = reactive({
|
||||||
name: "",
|
company_id: "",
|
||||||
role_id: "",
|
|
||||||
});
|
});
|
||||||
|
const props = defineProps({
|
||||||
|
company_id: {
|
||||||
|
type: String || Number,
|
||||||
|
defaults: 0,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
queryParams.company_id = props.company_id;
|
||||||
|
|
||||||
// 选中数据
|
// 选中数据
|
||||||
const emits = defineEmits(["customEvent"]);
|
const emits = defineEmits(["customEvent"]);
|
||||||
@ -94,7 +101,7 @@ const handleCurrentChange = (value: any) => {
|
|||||||
|
|
||||||
// 分页相关
|
// 分页相关
|
||||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||||
fetchFun: adminLists,
|
fetchFun: getUserList,
|
||||||
params: queryParams,
|
params: queryParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -185,7 +185,10 @@
|
|||||||
title="选择负责人"
|
title="选择负责人"
|
||||||
width="60%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<personnelPopup @custom-event="changePersonner"></personnelPopup>
|
<personnelPopup
|
||||||
|
@custom-event="changePersonner"
|
||||||
|
:company_id="formData.company_id"
|
||||||
|
></personnelPopup>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
@ -408,7 +411,7 @@ const personnelShow = ref(false);
|
|||||||
const personnelRef = shallowRef<InstanceType<typeof personnelPopup>>();
|
const personnelRef = shallowRef<InstanceType<typeof personnelPopup>>();
|
||||||
const changePersonner = (e: any) => {
|
const changePersonner = (e: any) => {
|
||||||
formData.task_admin = e.id;
|
formData.task_admin = e.id;
|
||||||
formData.task_admin_name = e.name;
|
formData.task_admin_name = e.nickname;
|
||||||
personnelShow.value = false;
|
personnelShow.value = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user