Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
fulixin
dsk-operate-sys-cscec
Commits
2c2dde07
Commit
2c2dde07
authored
Jan 12, 2024
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a0faa005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
2 deletions
+105
-2
index.vue
dsk-operate-ui/src/components/DskEmailInput/index.vue
+104
-1
index.vue
.../consultingOrgManagement/components/ProjectList/index.vue
+1
-1
No files found.
dsk-operate-ui/src/components/DskEmailInput/index.vue
View file @
2c2dde07
<
template
>
<div
class=
"dsk-email-input-container"
>
<el-autocomplete
:popper-class=
"popperClass"
v-model=
"comEmailValue"
:clearable=
"clearable"
:fetch-suggestions=
"searchQuery"
:placeholder=
"placeholder"
@
select=
"handleSelect"
>
<template
slot-scope=
"
{ item }">
<slot
:optionData=
"item"
>
<div
class=
"email-type-option"
>
</div>
</slot>
</
template
>
</el-autocomplete>
</div>
</template>
<
script
>
const
emailTypeList
=
[
{
value
:
"@qq.com"
,
emailIcon
:
""
,
chineseName
:
"QQ邮箱"
},
{
value
:
"@163.com"
,
emailIcon
:
""
,
chineseName
:
"网易邮箱"
},
{
value
:
"@126.com"
,
emailIcon
:
""
,
chineseName
:
"网易邮箱"
},
{
value
:
"@yahoo.cn"
,
emailIcon
:
""
,
chineseName
:
"雅虎邮箱"
},
{
value
:
"@sina.com"
,
emailIcon
:
""
,
chineseName
:
"搜狐邮箱"
},
{
value
:
"@outlook.com"
,
emailIcon
:
""
,
chineseName
:
"微软邮箱"
},
{
value
:
"@gmail.com"
,
emailIcon
:
""
,
chineseName
:
"谷歌邮箱"
},
{
value
:
"@163.net"
,
emailIcon
:
""
,
chineseName
:
"尊享邮"
}
];
export
default
{
name
:
"dskEmailInput"
,
props
:
{
...
...
@@ -43,7 +94,7 @@ export default {
},
data
()
{
return
{
comEmailValue
:
this
.
emailValue
comEmailValue
:
this
.
emailValue
,
};
},
//可访问data属性
...
...
@@ -56,7 +107,42 @@ export default {
},
//方法集
methods
:
{
handleSelect
()
{
},
searchQuery
(
keywords
,
callback
)
{
// 空值不联想
if
(
!
keywords
?.
trim
())
{
return
callback
([]);
}
// 存在字符
/**
* @type {string}
*/
let
key
=
keywords
;
const
index
=
key
.
indexOf
(
"@"
);
// 检索到@符号进行联想
if
(
index
!=
-
1
)
{
// 截取@符号前部分
key
=
key
.
slice
(
0
,
index
);
// 只有一个@符号 没有其它值的情况
if
(
!
key
)
return
callback
([]);
/**
* @type {Array<{
* value : string;
* emailIcon : string;
* chineseName : string;
* }>}
*/
const
emailTyps
=
JSON
.
parse
(
JSON
.
stringify
(
emailTypeList
));
const
_temp
=
emailTyps
.
map
(
item
=>
{
item
.
value
=
`
${
key
}${
item
.
value
}
`
;
return
item
;
});
return
callback
(
_temp
);
}
return
callback
([]);
}
},
}
</
script
>
...
...
@@ -67,3 +153,20 @@ export default {
position
:
relative
;
}
</
style
>
<
style
lang=
"scss"
>
.dsk-email-options-popper
{
.el-autocomplete-suggestion__wrap
{
.el-autocomplete-suggestion__list
{
&
>
[
id
*=
"el-autocomplete"
]
{
padding
:
0px
16px
;
}
.email-type-option
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
height
:
32px
;
}
}
}
}
</
style
>
dsk-operate-ui/src/views/consultingOrgManagement/components/ProjectList/index.vue
View file @
2c2dde07
...
...
@@ -343,7 +343,7 @@ export default {
// 跳转到企业详情
viewEnterprise(row) {
if (!row?.advisoryBody?.advisoryBodyCid) return this.$message.warning("缺少咨询机构id");
this.$tab.openPage(row.advisoryBody.advisoryBodyName ? row.advisoryBody.advisoryBodyName : "咨询机构详情", `
/
enterprise
/
$
{
encodeStr
(
row
.
advisoryBody
.
advisoryBodyCid
)}
`);
this.$tab.openPage(row.advisoryBody.advisoryBodyName ? row.advisoryBody.advisoryBodyName : "咨询机构详情", `
/
enterprise
/
$
{
encodeStr
(
row
.
advisoryBody
.
advisoryBodyCid
)}
?
companyName
=
$
{
row
.
advisoryBody
.
advisoryBodyName
}
`);
}
},
}
...
...
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