Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
4d7ea4bf
Commit
4d7ea4bf
authored
May 15, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网点绑定负责人
parent
9e0742c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
6 deletions
+118
-6
main.js
src/main.js
+22
-0
index.vue
src/views/ecw/dock/index.vue
+2
-1
index.vue
src/views/ecw/node/index.vue
+79
-1
index.vue
src/views/ecw/pickupLoc/index.vue
+15
-4
No files found.
src/main.js
View file @
4d7ea4bf
...
...
@@ -40,6 +40,28 @@ Vue.prototype.getDictDataLabel = getDictDataLabel
Vue
.
prototype
.
DICT_TYPE
=
DICT_TYPE
Vue
.
prototype
.
handleTree
=
handleTree
Date
.
prototype
.
format
=
function
(
format
)
{
var
date
=
{
"
M+
"
:
this
.
getMonth
()
+
1
,
"
d+
"
:
this
.
getDate
(),
"
h+
"
:
this
.
getHours
(),
"
m+
"
:
this
.
getMinutes
(),
"
s+
"
:
this
.
getSeconds
(),
"
q+
"
:
Math
.
floor
((
this
.
getMonth
()
+
3
)
/
3
),
"
S+
"
:
this
.
getMilliseconds
()
};
if
(
/
(
y+
)
/i
.
test
(
format
))
{
format
=
format
.
replace
(
RegExp
.
$1
,
(
this
.
getFullYear
()
+
''
).
substr
(
4
-
RegExp
.
$1
.
length
));
}
for
(
var
k
in
date
)
{
if
(
new
RegExp
(
"
(
"
+
k
+
"
)
"
).
test
(
format
))
{
format
=
format
.
replace
(
RegExp
.
$1
,
RegExp
.
$1
.
length
==
1
?
date
[
k
]
:
(
"
00
"
+
date
[
k
]).
substr
((
""
+
date
[
k
]).
length
));
}
}
return
format
;
}
// 全局组件挂载
Vue
.
component
(
'
DictTag
'
,
DictTag
)
Vue
.
component
(
'
DocAlert
'
,
DocAlert
)
...
...
src/views/ecw/dock/index.vue
View file @
4d7ea4bf
...
...
@@ -55,7 +55,8 @@
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"主键"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"序号"
type=
"index"
width=
"50"
/>
<el-table-column
label=
"中文名称"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"英文名称"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
label=
"国家"
align=
"center"
prop=
"countryZh"
/>
...
...
src/views/ecw/node/index.vue
View file @
4d7ea4bf
...
...
@@ -35,7 +35,17 @@
<el-table-column
label=
"网点编号"
align=
"center"
prop=
"number"
/>
<el-table-column
label=
"网点名称"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"网点地址"
align=
"center"
prop=
"addressZh"
/>
<el-table-column
label=
"负责人的用户id"
align=
"center"
prop=
"adminId"
/>
<el-table-column
prop=
"adminId"
label=
"负责人"
align=
"center"
>
<template
slot-scope=
"scope"
>
<div>
<span>
{{
scope
.
row
.
adminId
?
scope
.
row
.
adminName
:
'
未设置
'
}}
</span>
<br>
<el-button
v-if=
"!scope.row.adminId"
type=
"text"
size=
"mini"
@
click=
"setAdminClick(scope.row)"
>
设置主管
</el-button>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -57,6 +67,35 @@
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 设置主管对话框 -->
<el-dialog
title=
"设置主管"
:visible.sync=
"setAdminOpen"
width=
"900px"
append-to-body
>
<el-table
:data=
"userList"
>
<el-table-column
label=
"序号"
type=
"index"
width=
"50"
/>
<el-table-column
label=
"用户名"
align=
"center"
prop=
"username"
/>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"nickname"
/>
<el-table-column
label=
"手机号"
align=
"center"
prop=
"mobile"
/>
<el-table-column
prop=
"loginDate"
label=
"最近操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
new
Date
(
scope
.
row
.
loginDate
).
format
(
'
yyyy-MM-dd hh:mm:ss
'
)
}}
</span>
<br>
<span>
{{
scope
.
row
.
loginIp
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"setAdmin(scope.row)"
>
设为主管
</el-button>
</
template
>
</el-table-column>
</el-table>
<!-- 分页组件 -->
<pagination
v-show=
"userTotal > 0"
:total=
"userTotal"
:page.sync=
"userQueryParams.pageNo"
:limit.sync=
"userQueryParams.pageSize"
@
pagination=
"getUserList"
/>
</el-dialog>
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"900px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
...
...
@@ -163,6 +202,7 @@ import { createNode, updateNode, deleteNode, getNode, getNodePage, exportNodeExc
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
listUser
}
from
"
@/api/system/user
"
;
export
default
{
name
:
"
Node
"
,
...
...
@@ -205,6 +245,17 @@ export default {
title
:
""
,
// 是否显示弹出层
open
:
false
,
//社否显示设置主管
updateRow
:
null
,
userList
:[],
userTotal
:
0
,
setAdminOpen
:
false
,
userQueryParams
:
{
pageNo
:
1
,
pageSize
:
10
},
dateRangeCreateTime
:
[],
// 查询参数
queryParams
:
{
...
...
@@ -286,6 +337,33 @@ export default {
this
.
loading
=
false
;
});
},
//获取用户列表
getUserList
()
{
listUser
(
this
.
userQueryParams
).
then
(
response
=>
{
this
.
userList
=
response
.
data
.
list
;
this
.
userTotal
=
response
.
data
.
total
;
});
},
//设置主管
setAdminClick
(
row
)
{
this
.
updateRow
=
row
;
this
.
setAdminOpen
=
true
;
this
.
getUserList
();
},
setAdmin
(
user
)
{
this
.
updateRow
.
adminId
=
user
.
id
;
updateNode
(
this
.
updateRow
).
then
(()
=>
{
this
.
$set
(
this
.
updateRow
,
'
adminName
'
,
user
.
nickname
);
this
.
$modal
.
msgSuccess
(
"
设置成功
"
);
this
.
setAdminOpen
=
false
;
}).
catch
(
function
()
{
this
.
$modal
.
msgSuccess
(
"
设置失败
"
);
});
},
getContinentsList
()
{
this
.
queryParams
.
treeType
=
0
;
getListTree
(
this
.
queryParams
).
then
(
response
=>
{
...
...
src/views/ecw/pickupLoc/index.vue
View file @
4d7ea4bf
...
...
@@ -38,11 +38,11 @@
</el-row>
<!-- 列表 -->
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
type=
"index"
width=
"50"
/>
<el-table
v-loading=
"loading"
:data=
"list"
@
sort-change=
"sortChange"
>
<el-table-column
label=
"序号"
type=
"index"
width=
"50"
/>
<el-table-column
label=
"提货点名称"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"排序"
align=
"center"
prop=
"sort"
/>
<el-table-column
label=
"排序"
sortable=
"custom"
align=
"center"
prop=
"sort"
/>
<el-table-column
label=
"地区"
align=
"center"
prop=
"countryId"
>
<template
slot-scope=
"scope"
>
...
...
@@ -179,6 +179,9 @@ export default {
CommonStatusEnum
:
CommonStatusEnum
,
// 数据字典
statusDictDatas
:
getDictDatas
(
DICT_TYPE
.
COMMON_STATUS
),
sortProp
:
null
,
sortType
:
null
,
};
},
created
()
{
...
...
@@ -191,6 +194,8 @@ export default {
this
.
loading
=
true
;
// 处理查询参数
let
params
=
{...
this
.
queryParams
};
params
.
sortProp
=
this
.
sortProp
;
params
.
sortType
=
this
.
sortType
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeWorkTime
,
'
workTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
// 执行查询
...
...
@@ -201,6 +206,13 @@ export default {
});
},
sortChange
(
obj
)
{
this
.
sortProp
=
obj
.
prop
;
//排序字段名称
this
.
sortType
=
obj
.
order
;
//排序方式
this
.
queryParams
.
pageNo
=
1
;
this
.
getList
();
},
getCountryList
()
{
this
.
queryParams
.
treeType
=
1
;
getListTree
(
this
.
queryParams
).
then
(
response
=>
{
...
...
@@ -210,7 +222,6 @@ export default {
getCountryName
(
countryId
)
{
for
(
let
index
in
this
.
countryList
)
{
console
.
log
(
index
);
let
country
=
this
.
countryList
[
index
];
if
(
country
.
id
==
countryId
)
return
country
.
titleZh
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment