Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
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
张伯涛
bigDataSystem
Commits
155150ea
Commit
155150ea
authored
Dec 09, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ce09f311
7dc3b64e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
90 additions
and
87 deletions
+90
-87
index.vue
src/views/dataStandards/labelDropInspection/index.vue
+3
-3
detail.data.ts
...aStandards/labelDropInspection/labelDetail/detail.data.ts
+1
-0
index.vue
...s/dataStandards/labelDropInspection/labelDetail/index.vue
+14
-2
index.vue
...s/dataStandards/labelDropInspection/labelReport/index.vue
+62
-34
editModal.vue
...views/mallResourceDevelopment/API/publicAPI/editModal.vue
+2
-1
editModal.vue
...llResourceDevelopment/dataSet/commonDataSet/editModal.vue
+4
-2
index.vue
...s/mallResourceDevelopment/dataSet/commonDataSet/index.vue
+4
-0
mock.ts
...ews/mallResourceDevelopment/dataSet/commonDataSet/mock.ts
+0
-45
No files found.
src/views/dataStandards/labelDropInspection/index.vue
View file @
155150ea
...
@@ -141,9 +141,9 @@
...
@@ -141,9 +141,9 @@
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
searchInfo
=
reactive
<
Recordable
>
({});
const
searchKey
=
ref
();
const
searchKey
=
ref
();
const
tabName
=
ref
();
const
tabName
=
ref
(
treeData
[
0
].
name
);
const
tree
=
ref
();
const
tree
=
ref
();
const
path
=
ref
();
const
path
=
ref
(
treeData
[
0
].
name
);
function
handleSelect
()
{
function
handleSelect
()
{
const
keys
=
unref
(
tree
).
getSelectedKeys
();
const
keys
=
unref
(
tree
).
getSelectedKeys
();
const
node
=
unref
(
tree
).
getSelectedNode
(
keys
[
0
]);
const
node
=
unref
(
tree
).
getSelectedNode
(
keys
[
0
]);
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
function
handleDetail
(
record
)
{
function
handleDetail
(
record
)
{
push
({
push
({
path
:
'/dataStandards/labelDropInspection/labelDetail'
,
path
:
'/dataStandards/labelDropInspection/labelDetail'
,
query
:
record
,
query
:
{
...
record
,
...{
path
:
path
.
value
+
'/'
+
record
.
name
}
}
,
});
});
}
}
/** 列表删除 */
/** 列表删除 */
...
...
src/views/dataStandards/labelDropInspection/labelDetail/detail.data.ts
View file @
155150ea
...
@@ -123,6 +123,7 @@ export const metadataColumns: BasicColumn[] = [
...
@@ -123,6 +123,7 @@ export const metadataColumns: BasicColumn[] = [
title
:
'标准'
,
title
:
'标准'
,
dataIndex
:
'standard'
,
dataIndex
:
'standard'
,
width
:
100
,
width
:
100
,
slots
:
{
customRender
:
'standard'
},
},
},
{
{
title
:
'落标状态'
,
title
:
'落标状态'
,
...
...
src/views/dataStandards/labelDropInspection/labelDetail/index.vue
View file @
155150ea
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
</div>
</div>
<a-button
type=
"primary"
@
click=
"handleOperation"
>
跳转运维
</a-button>
<a-button
type=
"primary"
@
click=
"handleOperation"
>
跳转运维
</a-button>
<a-button
type=
"primary"
>
查看报告
</a-button>
<a-button
type=
"primary"
@
click=
"handleViewReport"
>
查看报告
</a-button>
<a-button
type=
"primary"
:disabled=
"disabled"
@
click=
"handleSave"
>
保存
</a-button>
<a-button
type=
"primary"
:disabled=
"disabled"
@
click=
"handleSave"
>
保存
</a-button>
<a-button
type=
"primary"
@
click=
"handleOnline"
>
{{
isOnline
?
'下线'
:
'上线'
}}
</a-button>
<a-button
type=
"primary"
@
click=
"handleOnline"
>
{{
isOnline
?
'下线'
:
'上线'
}}
</a-button>
<a-button
type=
"primary"
@
click=
"handleRun"
>
运行
</a-button>
<a-button
type=
"primary"
@
click=
"handleRun"
>
运行
</a-button>
...
@@ -119,6 +119,9 @@
...
@@ -119,6 +119,9 @@
<div>
{{
text
}}
</div>
<div>
{{
text
}}
</div>
<div
style=
"color: #9195a4"
>
{{
record
.
nameTxt
}}
</div>
<div
style=
"color: #9195a4"
>
{{
record
.
nameTxt
}}
</div>
</
template
>
</
template
>
<
template
#
standard=
"{ text, record }"
>
<a>
{{
text
}}
</a>
</
template
>
<
template
#
check=
"{ text, record }"
>
<
template
#
check=
"{ text, record }"
>
<Switch
:disabled=
"disabled"
v-model:checked=
"record['check']"
/>
<Switch
:disabled=
"disabled"
v-model:checked=
"record['check']"
/>
</
template
>
</
template
>
...
@@ -168,7 +171,7 @@
...
@@ -168,7 +171,7 @@
const
RadioGroup
=
Radio
.
Group
;
const
RadioGroup
=
Radio
.
Group
;
const
route
=
useRoute
();
const
route
=
useRoute
();
const
modelName
=
route
.
query
.
name
;
const
modelName
=
route
.
query
.
name
;
const
path
=
'落标检查 / admin-个人工作区 / '
+
modelName
;
const
path
=
route
.
query
.
path
;
const
searchInfo
=
reactive
<
Recordable
>
({});
const
searchInfo
=
reactive
<
Recordable
>
({});
const
infoData
=
route
.
query
;
const
infoData
=
route
.
query
;
const
isOnline
=
ref
(
false
);
const
isOnline
=
ref
(
false
);
...
@@ -278,6 +281,15 @@
...
@@ -278,6 +281,15 @@
function
handleRun
()
{
function
handleRun
()
{
createMessage
.
success
(
'运行成功!'
);
createMessage
.
success
(
'运行成功!'
);
}
}
function
handleViewReport
()
{
router
.
push
({
path
:
'/dataStandards/labelDropInspection/labelReport'
,
query
:
{
name
:
modelName
,
path
:
path
,
},
});
}
onMounted
(()
=>
{
onMounted
(()
=>
{
setFieldsValue
({
...
detailFormData
,
...
infoData
});
setFieldsValue
({
...
detailFormData
,
...
infoData
});
});
});
...
...
src/views/dataStandards/labelDropInspection/labelReport/index.vue
View file @
155150ea
<
template
>
<
template
>
<PageWrapper
:title=
"modelName"
contentBackground
headerSticky
>
<PageWrapper
contentBackground
headerSticky
>
<template
#
extra
>
<template
#
headerContent
>
<div
class=
"flex"
style=
"gap: 10px"
>
<div
class=
"flex-1 flex"
style=
"gap: 10px"
>
<LeftOutlined
style=
"font-size: 25px; cursor: pointer"
@
click=
"handleBack"
/>
<SearchOutlined
style=
"font-size: 30px; color: #14b43e"
/>
<div>
<div
style=
"font-weight: bolder; font-size: 16px"
>
{{
modelName
}}
</div>
<div
style=
"color: #b5b9c5"
>
{{
path
}}
</div>
</div>
</div>
<span>
执行批次
</span>
<span>
执行批次
</span>
<Select
<Select
@
change=
"getTimeDifference()"
@
change=
"getTimeDifference()"
...
@@ -9,6 +22,7 @@
...
@@ -9,6 +22,7 @@
v-model:value=
"selectBatch"
v-model:value=
"selectBatch"
/>
/>
<a-button>
导出报告
</a-button>
<a-button>
导出报告
</a-button>
</div>
</
template
>
</
template
>
<
template
#
footer
>
<
template
#
footer
>
<Descriptions
:column=
"3"
>
<Descriptions
:column=
"3"
>
...
@@ -36,15 +50,33 @@
...
@@ -36,15 +50,33 @@
<div>
<div>
<span>
规则清单
</span>
<span>
规则清单
</span>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<template
#
headerTop
>
<span>
规则总量:103
</span>
<div
class=
"flex"
>
<div
class=
"flex-1"
>
<Input
style=
"width: 200px"
v-model:value=
"searchKey"
placeholder=
"输入关键字搜索"
>
<template
#
prefix
>
<SearchOutlined
/>
</
template
>
</Input>
</div>
<div
class=
"flex"
style=
"gap: 10px"
>
<div>
规则总量:103
</div>
<div>
<CheckCircleOutlined
style=
"color: #25a665"
/>
<CheckCircleOutlined
style=
"color: #25a665"
/>
<span>
通过:79
</span>
</div>
<div>
通过:79
</div>
<div>
<CloseCircleOutlined
style=
"color: #dd4b4c"
/>
<CloseCircleOutlined
style=
"color: #dd4b4c"
/>
<span>
未通过:14
</span>
</div>
<div>
未通过:14
</div>
<div>
<QuestionCircleOutlined
style=
"color: #ee8b16"
/>
<QuestionCircleOutlined
style=
"color: #ee8b16"
/>
<span>
执行失败:10
</span>
</div>
<div>
执行失败:10
</div>
</div>
</div>
</template>
</template>
<
template
#
toolbar
>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
<
template
#
bodyCell=
"{ column, record }"
>
<template
v-if=
"column.key === 'action'"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
<TableAction
...
@@ -74,12 +106,14 @@
...
@@ -74,12 +106,14 @@
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
Descriptions
,
Select
}
from
'ant-design-vue'
;
import
{
Descriptions
,
Select
,
Input
}
from
'ant-design-vue'
;
import
{
import
{
CheckCircleOutlined
,
CheckCircleOutlined
,
CloseCircleOutlined
,
CloseCircleOutlined
,
QuestionCircleOutlined
,
QuestionCircleOutlined
,
InfoCircleOutlined
,
InfoCircleOutlined
,
LeftOutlined
,
SearchOutlined
,
}
from
'@ant-design/icons-vue'
;
}
from
'@ant-design/icons-vue'
;
import
*
as
echarts
from
'echarts'
;
import
*
as
echarts
from
'echarts'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
...
@@ -92,10 +126,12 @@
...
@@ -92,10 +126,12 @@
reportFormSchema
,
reportFormSchema
,
}
from
'@/views/dataStandards/labelDropInspection/labelReport/report.data'
;
}
from
'@/views/dataStandards/labelDropInspection/labelReport/report.data'
;
import
{
reportData
}
from
'@/views/dataStandards/labelDropInspection/labelReport/reportData'
;
import
{
reportData
}
from
'@/views/dataStandards/labelDropInspection/labelReport/reportData'
;
import
{
router
}
from
'@/router'
;
type
EChartsOption
=
echarts
.
EChartsOption
;
type
EChartsOption
=
echarts
.
EChartsOption
;
const
route
=
useRoute
();
const
route
=
useRoute
();
const
modelName
=
route
.
query
.
name
;
const
modelName
=
route
.
query
.
name
;
const
path
=
route
.
query
.
path
;
const
selectBatch
=
ref
(
'2023/06/07 19:45:59~2023/06/07 19:46:10'
);
const
selectBatch
=
ref
(
'2023/06/07 19:45:59~2023/06/07 19:46:10'
);
const
timeList
=
computed
(()
=>
selectBatch
.
value
.
split
(
'~'
));
const
timeList
=
computed
(()
=>
selectBatch
.
value
.
split
(
'~'
));
const
options
=
reactive
([
const
options
=
reactive
([
...
@@ -109,6 +145,7 @@
...
@@ -109,6 +145,7 @@
},
},
]);
]);
const
runTime
=
ref
(
'0'
);
const
runTime
=
ref
(
'0'
);
const
searchKey
=
ref
();
function
getTimeDifference
()
{
function
getTimeDifference
()
{
if
(
!
timeList
.
value
)
return
'0'
;
if
(
!
timeList
.
value
)
return
'0'
;
// 使用 moment 解析带有自定义格式的日期字符串
// 使用 moment 解析带有自定义格式的日期字符串
...
@@ -120,10 +157,7 @@
...
@@ -120,10 +157,7 @@
console
.
log
(
'被调用'
);
console
.
log
(
'被调用'
);
runTime
.
value
=
endMoment
.
diff
(
startMoment
,
'seconds'
);
runTime
.
value
=
endMoment
.
diff
(
startMoment
,
'seconds'
);
}
}
const
[
const
[
registerTable
]
=
useTable
({
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
title
:
''
,
title
:
''
,
// 数据
// 数据
api
:
async
(
params
)
=>
{
api
:
async
(
params
)
=>
{
...
@@ -144,13 +178,7 @@
...
@@ -144,13 +178,7 @@
columns
:
reportColumn
,
columns
:
reportColumn
,
showIndexColumn
:
false
,
showIndexColumn
:
false
,
striped
:
false
,
striped
:
false
,
// 搜索
useSearchForm
:
false
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
reportFormSchema
,
autoSubmitOnEnter
:
true
,
},
useSearchForm
:
true
,
showTableSetting
:
false
,
showTableSetting
:
false
,
bordered
:
true
,
bordered
:
true
,
actionColumn
:
{
actionColumn
:
{
...
@@ -242,10 +270,7 @@
...
@@ -242,10 +270,7 @@
type
:
'category'
,
type
:
'category'
,
data
:
[
'及时性'
,
'准确性'
,
'一致性'
,
'规范性'
,
'唯一性'
,
'完整性'
,
'元数据检查'
],
data
:
[
'及时性'
,
'准确性'
,
'一致性'
,
'规范性'
,
'唯一性'
,
'完整性'
,
'元数据检查'
],
},
},
color
:
[
color
:
[
'#D66868'
,
'#5A88C5'
],
'#D66868'
,
'#5A88C5'
,
],
series
:
[
series
:
[
{
{
name
:
'问题规则'
,
name
:
'问题规则'
,
...
@@ -276,6 +301,9 @@
...
@@ -276,6 +301,9 @@
option
&&
myChart
.
setOption
(
option
);
option
&&
myChart
.
setOption
(
option
);
}
}
function
handleBack
()
{
router
.
go
(
-
1
);
}
onMounted
(()
=>
{
onMounted
(()
=>
{
getTimeDifference
();
getTimeDifference
();
getEcharts1
();
getEcharts1
();
...
...
src/views/mallResourceDevelopment/API/publicAPI/editModal.vue
View file @
155150ea
...
@@ -154,12 +154,13 @@
...
@@ -154,12 +154,13 @@
descriptionData
.
value
=
cardList
.
filter
((
item
)
=>
item
.
title
===
data
.
title
);
descriptionData
.
value
=
cardList
.
filter
((
item
)
=>
item
.
title
===
data
.
title
);
console
.
log
(
'descriptionData.value'
,
descriptionData
.
value
);
console
.
log
(
'descriptionData.value'
,
descriptionData
.
value
);
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
setDescProps
({
data
:
descriptionData
.
value
[
0
]
});
});
});
const
[
const
[
registerApplyForPushNotificationsModal
,
registerApplyForPushNotificationsModal
,
{
openModal
:
openApplyForPushNotificationsModal
},
{
openModal
:
openApplyForPushNotificationsModal
},
]
=
useModal
();
]
=
useModal
();
const
[
register1
]
=
useDescription
({
const
[
register1
,
{
setDescProps
}
]
=
useDescription
({
bordered
:
false
,
bordered
:
false
,
data
:
descriptionData
.
value
[
0
],
data
:
descriptionData
.
value
[
0
],
schema
:
schema
,
schema
:
schema
,
...
...
src/views/mallResourceDevelopment/dataSet/commonDataSet/editModal.vue
View file @
155150ea
...
@@ -152,14 +152,16 @@
...
@@ -152,14 +152,16 @@
setModalProps
({
confirmLoading
:
true
});
setModalProps
({
confirmLoading
:
true
});
title
.
value
=
data
.
title
;
title
.
value
=
data
.
title
;
descriptionData
.
value
=
cardList
.
filter
((
item
)
=>
item
.
title
===
data
.
title
);
descriptionData
.
value
=
cardList
.
filter
((
item
)
=>
item
.
title
===
data
.
title
);
console
.
log
(
'descriptionData.value'
,
descriptionData
.
value
);
console
.
log
(
'data'
,
data
)
console
.
log
(
'descriptionData.value'
,
descriptionData
.
value
[
0
]);
setModalProps
({
confirmLoading
:
false
});
setModalProps
({
confirmLoading
:
false
});
setDescProps
({
data
:
descriptionData
.
value
[
0
]
});
});
});
const
[
const
[
registerApplyForPushNotificationsModal
,
registerApplyForPushNotificationsModal
,
{
openModal
:
openApplyForPushNotificationsModal
},
{
openModal
:
openApplyForPushNotificationsModal
},
]
=
useModal
();
]
=
useModal
();
const
[
register1
]
=
useDescription
({
const
[
register1
,
{
setDescProps
}
]
=
useDescription
({
bordered
:
false
,
bordered
:
false
,
data
:
descriptionData
.
value
[
0
],
data
:
descriptionData
.
value
[
0
],
schema
:
schema
,
schema
:
schema
,
...
...
src/views/mallResourceDevelopment/dataSet/commonDataSet/index.vue
View file @
155150ea
...
@@ -265,6 +265,10 @@
...
@@ -265,6 +265,10 @@
// console.log(node);
// console.log(node);
workSpaceName
.
value
=
node
.
workSpaceName
;
workSpaceName
.
value
=
node
.
workSpaceName
;
if
([
101
,
102
].
includes
(
node
.
parentId
))
{
if
([
101
,
102
].
includes
(
node
.
parentId
))
{
openEditModal
(
true
,
cardList
.
find
((
item
)
=>
item
.
title
===
node
.
workSpaceName
),
);
//跳转详情页
//跳转详情页
}
else
{
}
else
{
onSearch
();
onSearch
();
...
...
src/views/mallResourceDevelopment/dataSet/commonDataSet/mock.ts
View file @
155150ea
...
@@ -169,51 +169,6 @@ export const TreeData: any[] = [
...
@@ -169,51 +169,6 @@ export const TreeData: any[] = [
createTime
:
'2024-10-24 10:04:04'
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
createBy
:
'admin'
,
},
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
206
,
parentWorkSpaceName
:
'党建建设'
,
workSpaceName
:
'红色文化展览'
,
parentId
:
101
,
'code:'
:
'003'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
207
,
parentWorkSpaceName
:
'党建建设'
,
workSpaceName
:
'志愿服务活动'
,
parentId
:
101
,
'code:'
:
'003'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
delFlag
:
'0'
,
flag
:
'1'
,
businessId
:
208
,
parentWorkSpaceName
:
'党建建设'
,
workSpaceName
:
'党员风采展示'
,
parentId
:
101
,
'code:'
:
'003'
,
ancestors
:
'0,100'
,
orderNum
:
1
,
children
:
[],
selectType
:
null
,
createTime
:
'2024-10-24 10:04:04'
,
createBy
:
'admin'
,
},
{
{
delFlag
:
'0'
,
delFlag
:
'0'
,
flag
:
'1'
,
flag
:
'1'
,
...
...
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