Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
fd91a807
提交
fd91a807
authored
7月 18, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 查看卷王连接,显示卷王账号信息
上级
9de6d65d
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
61 行增加
和
1 行删除
+61
-1
SurveyKingDialog.vue
src/modules/connect/components/SurveyKingDialog.vue
+52
-0
View.vue
src/modules/connect/views/View.vue
+9
-1
没有找到文件。
src/modules/connect/components/SurveyKingDialog.vue
0 → 100644
浏览文件 @
fd91a807
<
script
setup
lang=
"ts"
>
import
{
Lock
}
from
'@element-plus/icons-vue'
import
{
ElMessage
}
from
'element-plus'
import
{
useClipboard
}
from
'@vueuse/core'
const
modelValue
=
defineModel
<
boolean
>
({
default
:
false
})
const
props
=
defineProps
<
{
account
:
string
;
password
:
string
}
>
()
const
{
copy
}
=
useClipboard
()
function
handleCopy
(
value
:
string
)
{
copy
(
value
)
ElMessage
.
success
(
'复制成功'
)
}
function
handleSubmit
()
{
window
.
open
(
`https://surveyking.ezijing.com?account=
${
props
.
account
}
&password=
${
props
.
password
}
`
)
}
</
script
>
<
template
>
<div
class=
"surveyKing-tips"
@
click=
"modelValue = true"
>
<el-icon><Lock
/></el-icon>
</div>
<el-dialog
title=
"账号密码"
width=
"500"
v-model=
"modelValue"
@
update:modelValue=
"$emit('update:modelValue')"
>
<el-form
labelWidth=
"140"
labelSuffix=
":"
>
<el-form-item
label=
"卷王账号"
>
{{
account
}}
<el-button
text
type=
"primary"
@
click=
"handleCopy(account)"
>
复制
</el-button></el-form-item>
<el-form-item
label=
"密码"
>
{{
password
}}
<el-button
text
type=
"primary"
@
click=
"handleCopy(password)"
>
复制
</el-button></el-form-item>
</el-form>
<template
#
footer
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
</
template
>
</el-dialog>
</template>
<
style
lang=
"scss"
>
.surveyKing-tips
{
position
:
fixed
;
right
:
40px
;
bottom
:
100px
;
width
:
50px
;
height
:
50px
;
background-color
:
#fff
;
border-radius
:
50%
;
cursor
:
pointer
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
box-shadow
:
2px
2px
10px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
}
</
style
>
src/modules/connect/views/View.vue
浏览文件 @
fd91a807
...
@@ -3,6 +3,7 @@ import type { ConfigAttribute } from '../types'
...
@@ -3,6 +3,7 @@ import type { ConfigAttribute } from '../types'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
Icon
from
'@/components/ConnectionIcon.vue'
import
Icon
from
'@/components/ConnectionIcon.vue'
import
{
getConnectionDetails
,
asyncOfficialAccountInfo
,
asyncOfficialAccountUsers
}
from
'../api'
import
{
getConnectionDetails
,
asyncOfficialAccountInfo
,
asyncOfficialAccountUsers
}
from
'../api'
const
SurveyKingDialog
=
defineAsyncComponent
(()
=>
import
(
'../components/SurveyKingDialog.vue'
))
const
router
=
useRouter
()
const
router
=
useRouter
()
const
route
=
useRoute
()
const
route
=
useRoute
()
...
@@ -486,7 +487,8 @@ const platformList = [
...
@@ -486,7 +487,8 @@ const platformList = [
{
{
title
:
'访问卷王表单网站'
,
title
:
'访问卷王表单网站'
,
onClick
()
{
onClick
()
{
window
.
open
(
'https://surveyking.ezijing.com/'
)
surveyKingDialogVisible
.
value
=
true
// window.open('https://surveyking.ezijing.com/')
}
}
},
},
{
{
...
@@ -518,6 +520,7 @@ const iconMap: Record<string, string> = {
...
@@ -518,6 +520,7 @@ const iconMap: Record<string, string> = {
'13'
:
'99'
,
'13'
:
'99'
,
'14'
:
'100'
'14'
:
'100'
}
}
const
surveyKingDialogVisible
=
ref
<
boolean
>
(
false
)
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -547,6 +550,11 @@ const iconMap: Record<string, string> = {
...
@@ -547,6 +550,11 @@ const iconMap: Record<string, string> = {
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</AppCard>
</AppCard>
<SurveyKingDialog
v-model=
"surveyKingDialogVisible"
:account=
"getAttributeValueByProp('account')"
:password=
"getAttributeValueByProp('password')"
v-if=
"detail?.type === '13'"
></SurveyKingDialog>
</template>
</template>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论