Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e3eaf59f
authored
Mar 04, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
a863832f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
linkwe-ui/src/views/contacts/organization.vue
linkwe-ui/src/views/contacts/organization.vue
View file @
e3eaf59
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
isActivate
:
''
,
isActivate
:
''
,
department
:
''
department
:
''
,
},
},
dateRange
:
[],
dateRange
:
[],
treeData
:
[],
treeData
:
[],
...
@@ -20,19 +20,19 @@ export default {
...
@@ -20,19 +20,19 @@ export default {
status
:
{
status
:
{
0
:
'启用'
,
0
:
'启用'
,
1
:
'禁用'
,
1
:
'禁用'
,
6
:
'离职'
6
:
'离职'
,
},
},
statusActivate
:
{
statusActivate
:
{
1
:
'已激活'
,
1
:
'已激活'
,
2
:
'已禁用'
,
2
:
'已禁用'
,
4
:
'未激活'
,
4
:
'未激活'
,
5
:
'退出企业'
,
5
:
'退出企业'
,
6
:
'删除'
6
:
'删除'
,
},
},
total
:
0
,
total
:
0
,
defaultProps
:
{
defaultProps
:
{
label
:
'name'
,
label
:
'name'
,
children
:
'children'
children
:
'children'
,
},
},
form
:
{},
form
:
{},
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -44,7 +44,7 @@ export default {
...
@@ -44,7 +44,7 @@ export default {
dialogVisibleAvatar
:
false
,
dialogVisibleAvatar
:
false
,
queryImg
:
{
queryImg
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
20
pageSize
:
20
,
},
},
totalImg
:
0
,
totalImg
:
0
,
// 表单校验
// 表单校验
...
@@ -59,18 +59,18 @@ export default {
...
@@ -59,18 +59,18 @@ export default {
{
{
type
:
'email'
,
type
:
'email'
,
message
:
"'请输入正确的邮箱地址"
,
message
:
"'请输入正确的邮箱地址"
,
trigger
:
[
'blur'
,
'change'
]
trigger
:
[
'blur'
,
'change'
]
,
}
}
,
],
],
mobile
:
[
mobile
:
[
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'必填项'
,
trigger
:
'blur'
},
{
{
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
pattern
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]\d{8}
$/
,
message
:
'请输入正确的手机号码'
,
message
:
'请输入正确的手机号码'
,
trigger
:
'blur'
trigger
:
'blur'
,
}
}
,
]
]
,
})
})
,
}
}
},
},
watch
:
{},
watch
:
{},
...
@@ -140,7 +140,7 @@ export default {
...
@@ -140,7 +140,7 @@ export default {
// 0: 启用,1:禁用
// 0: 启用,1:禁用
let
params
=
{
let
params
=
{
userId
:
data
.
userId
,
userId
:
data
.
userId
,
enable
:
data
.
enable
==
1
?
0
:
1
enable
:
data
.
enable
==
1
?
0
:
1
,
}
}
api
.
startOrStop
(
params
).
then
(()
=>
{
api
.
startOrStop
(
params
).
then
(()
=>
{
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
remove
(
id
)
{
remove
(
id
)
{
// const operIds = id || this.ids + "";
// const operIds = id || this.ids + "";
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
type
:
'warning'
type
:
'warning'
,
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
api
.
remove
(
id
)
return
api
.
remove
(
id
)
...
@@ -185,7 +185,7 @@ export default {
...
@@ -185,7 +185,7 @@ export default {
},
},
departRemove
(
id
)
{
departRemove
(
id
)
{
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认删除吗?'
,
'警告'
,
{
type
:
'warning'
type
:
'warning'
,
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
api
.
removeDepart
(
id
)
return
api
.
removeDepart
(
id
)
...
@@ -213,8 +213,8 @@ export default {
...
@@ -213,8 +213,8 @@ export default {
submitSelectMaterial
(
image
)
{
submitSelectMaterial
(
image
)
{
this
.
form
.
headImageUrl
=
image
.
materialUrl
this
.
form
.
headImageUrl
=
image
.
materialUrl
// this.form.imageMessage._materialName = image.materialName
// this.form.imageMessage._materialName = image.materialName
}
}
,
}
}
,
}
}
</
script
>
</
script
>
...
@@ -331,31 +331,31 @@ export default {
...
@@ -331,31 +331,31 @@ export default {
width=
"180"
width=
"180"
class-name=
"small-padding fixed-width"
class-name=
"small-padding fixed-width"
>
>
<
template
slot-scope=
"
scope
"
>
<
template
slot-scope=
"
{ row }
"
>
<el-button
<el-button
v-hasPermi=
"['contacts:organization:view']"
v-hasPermi=
"['contacts:organization:view']"
type=
"text"
type=
"text"
@
click=
"edit(
scope.
row, 0)"
@
click=
"edit(row, 0)"
>
查看
</el-button
>
查看
</el-button
>
>
<el-button
<el-button
v-if=
"row.userId !== 1 && row.enable
< 2
&&
row
.
isActivate
!=
5
"
v-hasPermi=
"['contacts:organization:setStatus']"
v-hasPermi=
"['contacts:organization:setStatus']"
v-if=
"scope.row.userId !== 1 && scope.row.enable
< 2
"
type=
"text"
type=
"text"
@
click=
"startOrStop(
scope.
row)"
@
click=
"startOrStop(row)"
>
{{
status
[
scope
.
row
.
enable
]
}}
</el-button
>
{{
status
[
row
.
enable
]
}}
</el-button
>
>
<el-button
<el-button
v-if=
"
scope.row.enable
< 2
"
v-if=
"
row.enable
< 2
&&
row
.
isActivate
!=
5
"
v-hasPermi=
"['contacts:organization:edit']"
v-hasPermi=
"['contacts:organization:edit']"
type=
"text"
type=
"text"
@
click=
"edit(
scope.
row, 1)"
@
click=
"edit(row, 1)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
v-if=
"
scope.row.enable
< 2
"
v-if=
"
row.enable
< 2
&&
row
.
isActivate
!=
5
"
v-hasPermi=
"['contacts:organization:remove']"
v-hasPermi=
"['contacts:organization:remove']"
@
click=
"remove(
scope.
row.userId)"
@
click=
"remove(row.userId)"
type=
"text"
type=
"text"
>
删除
</el-button
>
删除
</el-button
>
>
...
@@ -440,7 +440,7 @@ export default {
...
@@ -440,7 +440,7 @@ export default {
checkStrictly: true,
checkStrictly: true,
/** multiple: true,*/ emitPath: false,
/** multiple: true,*/ emitPath: false,
value: 'id',
value: 'id',
label: 'name'
label: 'name'
,
}"
}"
></el-cascader>
></el-cascader>
</el-form-item>
</el-form-item>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment