Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jft-vue-platform
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王梦龙
jft-vue-platform
Commits
10c4a4aa
提交
10c4a4aa
authored
7月 12, 2024
作者:
zsf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
渠道管理、C端账号管理页面
上级
e2972786
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
313 行增加
和
0 行删除
+313
-0
channel.js
src/api/channel.js
+19
-0
person.js
src/api/person.js
+19
-0
qudao.svg
src/assets/icons/svg/qudao.svg
+2
-0
index.js
src/router/index.js
+28
-0
index.vue
src/views/account/person/index.vue
+125
-0
index.vue
src/views/archives/channel/index.vue
+120
-0
没有找到文件。
src/api/channel.js
0 → 100644
浏览文件 @
10c4a4aa
import
request
from
'@/utils/request'
// 查询所有派遣公司
export
function
dispatchSelect
(
query
)
{
return
request
({
url
:
'/djl-archives/channel/query/dispatch/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询列表
export
function
channelL
(
data
)
{
return
request
({
url
:
'/djl-archives/channel/query/list'
,
method
:
'get'
,
params
:
data
})
}
\ No newline at end of file
src/api/person.js
0 → 100644
浏览文件 @
10c4a4aa
import
request
from
'@/utils/request'
// 查询列表
export
function
personL
(
data
)
{
return
request
({
url
:
'/djl-account/personnel/query/list'
,
method
:
'get'
,
params
:
data
})
}
// 重置密码
export
function
resetPwd
(
data
)
{
return
request
({
url
:
'/djl-account/personnel/rest/password'
,
method
:
'get'
,
params
:
data
})
}
\ No newline at end of file
src/assets/icons/svg/qudao.svg
0 → 100644
浏览文件 @
10c4a4aa
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1717752104688"
class=
"icon"
viewBox=
"0 0 1030 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"45785"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"257.5"
height=
"256"
><path
d=
"M685.180636 217.937087a391.832958 391.832958 0 0 1 196.475979 269.804971 35.264996 35.264996 0 0 0 34.704997 28.547997h6.716999a35.824996 35.824996 0 0 0 27.988997-41.981996 459.003951 459.003951 0 0 0-232.300975-318.503966 34.704996 34.704996 0 0 0-26.868997 0 35.264996 35.264996 0 0 0-6.717 62.132994zM508.855655 259.920082A132.103986 132.103986 0 0 0 639.280641 126.696096a129.304986 129.304986 0 0 0-40.862995-90.68099A124.826987 124.826987 0 0 0 503.817656 0.19011a129.864986 129.864986 0 0 0 3.359 259.729972z m-61.013993-132.662986a59.893994 59.893994 0 0 1 61.573993-55.975994 59.334994 59.334994 0 0 1 0 118.109988 60.453994 60.453994 0 0 1-61.573993-62.133994z m447.809952 409.184956a130.983986 130.983986 0 0 0-92.92099 40.862996 134.901986 134.901986 0 0 0-36.384996 95.15999A131.543986 131.543986 0 0 0 895.650614 801.207024a133.782986 133.782986 0 0 0 134.342985-135.461986A132.662986 132.662986 0 0 0 895.650614 536.441052z m61.572993 134.902986a61.573993 61.573993 0 0 1-61.573993 58.774994 62.692993 62.692993 0 0 1-59.893994-64.372994 61.573993 61.573993 0 0 1 123.146987 5.038zM132.696696 536.440052h-3.359a130.983986 130.983986 0 0 0-92.91999 40.862996 134.901986 134.901986 0 0 0-36.384996 95.15999 131.543986 131.543986 0 0 0 132.663986 128.743986 134.342986 134.342986 0 0 0 132.662985-135.461986 132.662986 132.662986 0 0 0-132.662985-129.304986z m61.573993 134.902986a61.573993 61.573993 0 0 1-61.573993 58.774994 62.692993 62.692993 0 0 1-61.573994-64.372994 61.573993 61.573993 0 0 1 123.147987 5.038z m-95.71999-162.329983h7.837a35.824996 35.824996 0 0 0 34.704996-29.107997A391.832958 391.832958 0 0 1 335.890674 217.937087a34.704996 34.704996 0 0 0 14.553998-47.579995 35.824996 35.824996 0 0 0-48.139994-15.112999A460.123951 460.123951 0 0 0 71.682702 466.47106a34.704996 34.704996 0 0 0 4.478 26.868997 36.383996 36.383996 0 0 0 22.389997 15.672998z m685.147927 321.301966A370.00196 370.00196 0 0 1 262.000682 858.304018l-20.151998-20.150998a35.824996 35.824996 0 0 0-50.377995-2.8 36.383996 36.383996 0 0 0 0 52.058995 443.329952 443.329952 0 0 0 319.063966 136.580985 439.411953 439.411953 0 0 0 329.138965-145.537984 34.704996 34.704996 0 0 0 0-49.817995 35.824996 35.824996 0 0 0-55.975994 1.679z"
p-id=
"45786"
></path></svg>
\ No newline at end of file
src/router/index.js
浏览文件 @
10c4a4aa
...
...
@@ -96,6 +96,34 @@ export const constantRoutes = [
},
]
},
{
path
:
'/'
,
component
:
Layout
,
redirect
:
'/channel'
,
// meta: { title: '项目', icon: 'redis' },
children
:
[
{
path
:
'channel'
,
component
:
()
=>
import
(
'@/views/archives/channel/index'
),
name
:
'channel'
,
meta
:
{
title
:
'渠道管理'
,
icon
:
'qudao'
}
},
]
},
{
path
:
'/'
,
component
:
Layout
,
redirect
:
'/person'
,
// meta: { title: '项目', icon: 'redis' },
children
:
[
{
path
:
'person'
,
component
:
()
=>
import
(
'@/views/account/person/index'
),
name
:
'person'
,
meta
:
{
title
:
'C端账号管理'
,
icon
:
'people'
}
},
]
}
// {
// path: "/channel",
// component: Layout,
...
...
src/views/account/person/index.vue
0 → 100644
浏览文件 @
10c4a4aa
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryRef"
:inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"姓名"
prop=
"name"
>
<el-input
v-model=
"exactParams.name"
clearable
style=
"width: 300px"
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"证件号码"
prop=
"id_no"
>
<el-input
v-model=
"exactParams.id_no"
clearable
style=
"width: 300px"
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"账号"
prop=
"account"
>
<el-input
v-model=
"exactParams.account"
clearable
style=
"width: 300px"
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"证件号码"
align=
"left"
prop=
"id_no"
/>
<el-table-column
label=
"账号"
align=
"left"
prop=
"account"
/>
<el-table-column
label=
"创建时间"
align=
"left"
prop=
"create_time"
/>
<el-table-column
label=
"更新时间"
align=
"left"
prop=
"update_time"
/>
<!--
<el-table-column
label=
"操作"
width=
"280"
align=
"center"
class-name=
"small-padding fixed-width"
fixed=
"right"
>
-->
<!--
<template
#
default=
"
{row}">-->
<!--
<el-button
link
type=
"primary"
@
click=
"handleResetPwd(row)"
icon=
"Refresh"
>
重置密码
</el-button>
-->
<!--
</
template
>
-->
<!-- </el-table-column>-->
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
v-model:page=
"queryParams.page"
v-model:limit=
"queryParams.limit"
@
pagination=
"getList"
/>
</div>
</template>
<
script
setup
>
import
{
personL
,
resetPwd
}
from
"@/api/person"
;
const
{
proxy
}
=
getCurrentInstance
();
const
list
=
ref
([]);
const
loading
=
ref
(
true
);
const
showSearch
=
ref
(
true
);
const
total
=
ref
(
0
);
const
data
=
reactive
({
queryParams
:
{
page
:
1
,
limit
:
10
,
query
:
'exact'
,
vague
:
''
,
accurate
:
''
},
exactParams
:{
}
});
const
{
queryParams
,
exactParams
}
=
toRefs
(
data
);
/** 查询列表 */
function
getList
()
{
loading
.
value
=
true
;
personL
(
queryParams
.
value
).
then
(
response
=>
{
list
.
value
=
response
.
data
;
total
.
value
=
response
.
count
;
loading
.
value
=
false
;
});
}
/** 重置密码按钮操作 */
function
handleResetPwd
(
row
)
{
proxy
.
$modal
.
confirm
(
'您确定要重置密码吗?'
).
then
(
function
()
{
return
resetPwd
({
id
:
row
.
id
,
});
}).
then
((
res
)
=>
{
getList
();
proxy
.
$modal
.
msgSuccess
(
res
.
code
);
}).
catch
(()
=>
{});
}
/** 搜索按钮操作 */
function
handleQuery
()
{
queryParams
.
value
.
page
=
1
;
queryParams
.
value
.
limit
=
10
;
queryParams
.
value
.
accurate
=
JSON
.
stringify
(
exactParams
.
value
);
getList
();
}
/** 重置按钮操作 */
function
resetQuery
()
{
proxy
.
resetForm
(
"queryRef"
);
exactParams
.
value
=
{};
handleQuery
();
}
getList
();
</
script
>
\ No newline at end of file
src/views/archives/channel/index.vue
0 → 100644
浏览文件 @
10c4a4aa
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryRef"
:inline=
"true"
v-show=
"showSearch"
>
<el-form-item
label=
"渠道公司名称"
prop=
"name"
>
<el-input
v-model=
"queryParams.name"
clearable
style=
"width: 300px"
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"派遣公司"
prop=
"dispatch"
>
<el-select
v-model=
"queryParams.dispatch"
placeholder=
"请选择"
filterable
style=
"width: 300px"
>
<el-option
v-for=
"item in dispatchList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"渠道公司名称"
align=
"left"
prop=
"name"
/>
<el-table-column
label=
"所属派遣公司"
align=
"left"
prop=
"dispatch"
/>
<el-table-column
label=
"联系人"
align=
"center"
prop=
"contracts"
/>
<el-table-column
label=
"联系电话"
align=
"center"
prop=
"contract_number"
/>
<el-table-column
label=
"联系地址"
align=
"center"
prop=
"address"
/>
<el-table-column
label=
"入库时间"
align=
"left"
prop=
"create_time"
/>
<el-table-column
label=
"更新时间"
align=
"left"
prop=
"update_time"
/>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
v-model:page=
"queryParams.page"
v-model:limit=
"queryParams.limit"
@
pagination=
"getList"
/>
</div>
</
template
>
<
script
setup
>
import
{
channelL
,
dispatchSelect
}
from
"@/api/channel"
;
const
{
proxy
}
=
getCurrentInstance
();
const
list
=
ref
([]);
const
loading
=
ref
(
true
);
const
showSearch
=
ref
(
true
);
const
total
=
ref
(
0
);
const
dispatchList
=
ref
([])
const
data
=
reactive
({
form
:
{
},
queryParams
:
{
page
:
1
,
limit
:
10
,
},
});
const
{
queryParams
,
form
}
=
toRefs
(
data
);
//查询所有派遣公司
dispatchSelect
().
then
(
res
=>
{
dispatchList
.
value
=
[{
value
:
''
,
label
:
'请选择'
},...
res
.
data
.
map
(
item
=>
{
return
{
value
:
item
,
label
:
item
,
id
:
item
}
})]
})
/** 查询列表 */
function
getList
()
{
loading
.
value
=
true
;
channelL
(
queryParams
.
value
).
then
(
response
=>
{
list
.
value
=
response
.
data
;
total
.
value
=
response
.
count
;
loading
.
value
=
false
;
});
}
/** 搜索按钮操作 */
function
handleQuery
()
{
queryParams
.
value
.
page
=
1
;
queryParams
.
value
.
limit
=
10
;
getList
();
}
/** 重置按钮操作 */
function
resetQuery
()
{
proxy
.
resetForm
(
"queryRef"
);
handleQuery
();
}
getList
();
</
script
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论