Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
45cec009
提交
45cec009
authored
12月 09, 2024
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 统计增加刷新
上级
9e90f06d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
36 行增加
和
18 行删除
+36
-18
ViewDialog.vue
src/modules/group/components/ViewDialog.vue
+9
-8
LabelViewDialog.vue
src/modules/label/components/LabelViewDialog.vue
+27
-10
没有找到文件。
src/modules/group/components/ViewDialog.vue
浏览文件 @
45cec009
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
Group
,
GroupMember
}
from
'../types'
import
type
{
Group
,
GroupMember
}
from
'../types'
import
{
UserFilled
,
Plus
,
Delete
}
from
'@element-plus/icons-vue'
import
{
UserFilled
,
Plus
,
Delete
,
Refresh
}
from
'@element-plus/icons-vue'
import
{
ElMessageBox
,
ElMessage
}
from
'element-plus'
import
{
ElMessageBox
,
ElMessage
}
from
'element-plus'
import
AppList
from
'@/components/base/AppList.vue'
import
AppList
from
'@/components/base/AppList.vue'
import
{
getNameByValue
,
groupTypeList
,
updateStatusRuleList
,
updateStatusList
}
from
'@/utils/dictionary'
import
{
getNameByValue
,
groupTypeList
,
updateStatusRuleList
,
updateStatusList
}
from
'@/utils/dictionary'
...
@@ -23,7 +23,7 @@ const connectionTypeList = useMapStore().getMapValuesByKey('experiment_connectio
...
@@ -23,7 +23,7 @@ const connectionTypeList = useMapStore().getMapValuesByKey('experiment_connectio
const
detail
=
reactive
({
count
:
0
,
status
:
'1'
,
updated_time
:
'-'
})
const
detail
=
reactive
({
count
:
0
,
status
:
'1'
,
updated_time
:
'-'
})
function
fetchInfo
()
{
function
fetchInfo
()
{
getGroupStatistics
({
group_id
:
props
.
data
.
id
}).
then
(
res
=>
{
getGroupStatistics
({
group_id
:
props
.
data
.
id
}).
then
(
(
res
)
=>
{
Object
.
assign
(
detail
,
res
.
data
.
detail
)
Object
.
assign
(
detail
,
res
.
data
.
detail
)
})
})
}
}
...
@@ -58,7 +58,7 @@ const listOptions = computed(() => {
...
@@ -58,7 +58,7 @@ const listOptions = computed(() => {
return
{
return
{
remote
:
{
remote
:
{
httpRequest
:
getGroupMembers
,
httpRequest
:
getGroupMembers
,
params
:
{
group_id
:
props
.
data
.
id
}
params
:
{
group_id
:
props
.
data
.
id
}
,
},
},
columns
:
[
columns
:
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
...
@@ -69,7 +69,7 @@ const listOptions = computed(() => {
...
@@ -69,7 +69,7 @@ const listOptions = computed(() => {
prop
:
'gender'
,
prop
:
'gender'
,
computed
({
row
}:
{
row
:
GroupMember
})
{
computed
({
row
}:
{
row
:
GroupMember
})
{
return
getNameByValue
(
row
.
gender
,
genderList
)
return
getNameByValue
(
row
.
gender
,
genderList
)
}
}
,
},
},
{
label
:
'手机号码'
,
prop
:
'mobile'
},
{
label
:
'手机号码'
,
prop
:
'mobile'
},
{
{
...
@@ -77,19 +77,19 @@ const listOptions = computed(() => {
...
@@ -77,19 +77,19 @@ const listOptions = computed(() => {
prop
:
'experiment_connection_id'
,
prop
:
'experiment_connection_id'
,
computed
({
row
}:
{
row
:
GroupMember
})
{
computed
({
row
}:
{
row
:
GroupMember
})
{
return
getNameByValue
(
row
.
connection
.
type
.
toString
(),
connectionTypeList
)
return
getNameByValue
(
row
.
connection
.
type
.
toString
(),
connectionTypeList
)
}
}
,
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
computed
({
row
}:
{
row
:
GroupMember
})
{
computed
({
row
}:
{
row
:
GroupMember
})
{
return
getNameByValue
(
row
.
status
,
statusList
)
return
getNameByValue
(
row
.
status
,
statusList
)
}
}
,
},
},
{
label
:
'更新人'
,
prop
:
'updated_operator.real_name'
},
{
label
:
'更新人'
,
prop
:
'updated_operator.real_name'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'操作'
,
slots
:
'table-x'
}
{
label
:
'操作'
,
slots
:
'table-x'
}
,
]
]
,
}
}
})
})
// 刷新
// 刷新
...
@@ -158,6 +158,7 @@ function handleRefresh() {
...
@@ -158,6 +158,7 @@ function handleRefresh() {
:disabled=
"['2', '4'].includes(detail.status.toString())"
:disabled=
"['2', '4'].includes(detail.status.toString())"
>
立即更新
</el-button
>
立即更新
</el-button
>
>
<el-button
size=
"small"
:icon=
"Refresh"
@
click=
"handleRefresh"
></el-button>
</dd>
</dd>
</dl>
</dl>
</
template
>
</
template
>
...
...
src/modules/label/components/LabelViewDialog.vue
浏览文件 @
45cec009
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
type
{
Label
}
from
'../types'
import
type
{
Label
}
from
'../types'
import
{
UserFilled
}
from
'@element-plus/icons-vue'
import
{
UserFilled
,
Refresh
}
from
'@element-plus/icons-vue'
import
{
useMapStore
}
from
'@/stores/map'
import
{
useMapStore
}
from
'@/stores/map'
import
{
getNameByValue
,
updateStatusRuleList
,
updateStatusList
,
labelList
}
from
'@/utils/dictionary'
import
{
getNameByValue
,
updateStatusRuleList
,
updateStatusList
,
labelList
}
from
'@/utils/dictionary'
import
{
getLabelStatistics
,
updateLabelStatistics
,
getLabelMembers
}
from
'../api'
import
{
getLabelStatistics
,
updateLabelStatistics
,
getLabelMembers
}
from
'../api'
...
@@ -17,7 +17,7 @@ const connectionTypeList = useMapStore().getMapValuesByKey('experiment_connectio
...
@@ -17,7 +17,7 @@ const connectionTypeList = useMapStore().getMapValuesByKey('experiment_connectio
const
detail
=
reactive
({
count
:
0
,
status
:
'1'
,
updated_time
:
'-'
})
const
detail
=
reactive
({
count
:
0
,
status
:
'1'
,
updated_time
:
'-'
})
function
fetchInfo
()
{
function
fetchInfo
()
{
getLabelStatistics
({
id
:
props
.
data
.
id
}).
then
(
res
=>
{
getLabelStatistics
({
id
:
props
.
data
.
id
}).
then
(
(
res
)
=>
{
Object
.
assign
(
detail
,
res
.
data
.
detail
)
Object
.
assign
(
detail
,
res
.
data
.
detail
)
})
})
}
}
...
@@ -36,7 +36,7 @@ const listOptions = computed(() => {
...
@@ -36,7 +36,7 @@ const listOptions = computed(() => {
return
{
return
{
remote
:
{
remote
:
{
httpRequest
:
getLabelMembers
,
httpRequest
:
getLabelMembers
,
params
:
{
tag_id
:
props
.
data
.
id
}
params
:
{
tag_id
:
props
.
data
.
id
}
,
},
},
columns
:
[
columns
:
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
60
},
...
@@ -47,7 +47,7 @@ const listOptions = computed(() => {
...
@@ -47,7 +47,7 @@ const listOptions = computed(() => {
prop
:
'gender'
,
prop
:
'gender'
,
computed
({
row
}:
{
row
:
any
})
{
computed
({
row
}:
{
row
:
any
})
{
return
getNameByValue
(
row
.
gender
,
genderList
)
return
getNameByValue
(
row
.
gender
,
genderList
)
}
}
,
},
},
{
label
:
'手机号码'
,
prop
:
'mobile'
},
{
label
:
'手机号码'
,
prop
:
'mobile'
},
{
{
...
@@ -55,21 +55,26 @@ const listOptions = computed(() => {
...
@@ -55,21 +55,26 @@ const listOptions = computed(() => {
prop
:
'experiment_connection_id'
,
prop
:
'experiment_connection_id'
,
computed
({
row
}:
{
row
:
any
})
{
computed
({
row
}:
{
row
:
any
})
{
return
getNameByValue
(
row
.
connection
.
type
.
toString
(),
connectionTypeList
)
return
getNameByValue
(
row
.
connection
.
type
.
toString
(),
connectionTypeList
)
}
}
,
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
computed
({
row
}:
{
row
:
any
})
{
computed
({
row
}:
{
row
:
any
})
{
return
getNameByValue
(
row
.
status
,
statusList
)
return
getNameByValue
(
row
.
status
,
statusList
)
}
}
,
},
},
{
label
:
'更新人'
,
prop
:
'updated_operator.real_name'
},
{
label
:
'更新人'
,
prop
:
'updated_operator.real_name'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'更新时间'
,
prop
:
'updated_time'
},
{
label
:
'操作'
,
slots
:
'table-x'
}
{
label
:
'操作'
,
slots
:
'table-x'
}
,
]
]
,
}
}
})
})
// 刷新
function
handleRefresh
()
{
fetchInfo
()
appList
.
value
?.
refetch
()
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -113,7 +118,15 @@ const listOptions = computed(() => {
...
@@ -113,7 +118,15 @@ const listOptions = computed(() => {
<dt>
更新状态
</dt>
<dt>
更新状态
</dt>
<dd>
<dd>
<span
style=
"margin-right: 10px"
>
{{
getNameByValue
(
detail
.
status
,
updateStatusList
)
}}
</span>
<span
style=
"margin-right: 10px"
>
{{
getNameByValue
(
detail
.
status
,
updateStatusList
)
}}
</span>
<el-button
type=
"primary"
plain
@
click=
"handleUpdate"
size=
"small"
:disabled=
"['2', '4'].includes(detail.status)"
>
立即更新
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleUpdate"
size=
"small"
:disabled=
"['2', '4'].includes(detail.status)"
>
立即更新
</el-button
>
<el-button
size=
"small"
:icon=
"Refresh"
@
click=
"handleRefresh"
></el-button>
</dd>
</dd>
</dl>
</dl>
</div>
</div>
...
@@ -123,7 +136,11 @@ const listOptions = computed(() => {
...
@@ -123,7 +136,11 @@ const listOptions = computed(() => {
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<
template
#
table-x=
"{ row }"
>
<
template
#
table-x=
"{ row }"
>
<el-button
type=
"primary"
plain
>
<el-button
type=
"primary"
plain
>
<router-link
target=
"_blank"
:to=
"
{ path: '/user/image', query: { user_id: row.id, experiment_id: row.experiment_id } }">查看
</router-link>
<router-link
target=
"_blank"
:to=
"
{ path: '/user/image', query: { user_id: row.id, experiment_id: row.experiment_id } }"
>查看
</router-link
>
</el-button>
</el-button>
</
template
>
</
template
>
</AppList>
</AppList>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论