Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c617ba60
authored
2024-12-27 16:52:26 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分类分级任务bug修改
1 parent
1ecb2aea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
src/assets/styles/element-plus/index.scss
src/components/Table/index.vue
src/views/data_inventory/taskConfig.vue
src/views/data_inventory/taskDetail.vue
src/assets/styles/element-plus/index.scss
View file @
c617ba6
...
...
@@ -361,6 +361,11 @@
color
:
#BDBDBD
;
cursor
:
not
-
allowed
;
}
&
.is-regular
{
color
:
var
(
--
el-color-regular
);
cursor
:
auto
;
}
}
// 表格样式
...
...
src/components/Table/index.vue
View file @
c617ba6
...
...
@@ -321,7 +321,7 @@ onMounted(() => {
<!--
{{
scope
.
row
[
item
.
field
]
}}
-->
</
template
>
<
template
#
default=
"scope"
v-else-if=
"item.type == 'text_btn'"
>
<span
v-if=
"scope.row[item.field] != null"
:class=
"item.class + ' text_btn'
"
<span
class=
"text_btn"
v-if=
"scope.row[item.field] != null"
:class=
"[item.class, scope.row.cellClass]
"
@
click=
"(item.click && !item.disabled && !scope.row.disabled) ? item.click(scope,
{ label: item.label, value: item.value }) : handleClick(scope, { label: item.label, value: item.value })"
v-preReClick>
{{
item
.
getName
?
item
.
getName
(
scope
)
:
scope
.
row
[
item
.
field
]
}}
</span>
...
...
src/views/data_inventory/taskConfig.vue
View file @
c617ba6
...
...
@@ -34,14 +34,8 @@ const tableInfo = ref({
{
label
:
"序号"
,
type
:
"index"
,
width
:
56
,
align
:
"center"
,
fixed
:
"left"
},
{
label
:
"任务名称"
,
field
:
"taskName"
,
width
:
96
},
{
label
:
"目录名称"
,
field
:
"cgDirName"
,
width
:
120
,
type
:
"text_btn"
,
columClass
:
'text_btn'
,
click
:
(
scope
)
=>
{
if
(
scope
.
row
.
confirmCnt
>
0
){
ElMessage
.
warning
(
'请先进行任务确认'
);
return
}
router
.
push
({
name
:
"classifyGradeCatalogue"
,
});
label
:
"目录名称"
,
field
:
"cgDirName"
,
width
:
120
,
type
:
"text_btn"
,
click
:
(
scope
)
=>
{
scope
.
row
.
confirmCnt
>
0
&&
router
.
push
({
name
:
"classifyGradeCatalogue"
,
});
}
},
{
...
...
@@ -102,7 +96,18 @@ const getTableData = () => {
})
).
then
((
res
:
any
)
=>
{
loading
.
value
=
false
;
tableInfo
.
value
.
data
=
res
.
data
.
records
||
[];
if
(
res
.
code
==
proxy
.
$passCode
)
{
let
data
=
res
.
data
.
records
||
[];
data
.
map
(
item
=>
{
item
.
cellClass
=
item
.
confirmCnt
>
0
?
''
:
'is-regular'
})
tableInfo
.
value
.
data
=
data
;
}
else
{
ElMessage
({
type
:
"error"
,
message
:
res
.
msg
,
});
}
})
.
catch
((
res
)
=>
{
loading
.
value
=
false
;
...
...
src/views/data_inventory/taskDetail.vue
View file @
c617ba6
...
...
@@ -878,7 +878,7 @@ onMounted(() => {
<div
class=
"desc_group"
>
<div
class=
"desc_item"
>
<span
class=
"desc_label"
>
目录名称:
</span>
<span
class=
"desc_value
text_btn"
@
click=
"btnClick(
{ value: 'path' })
">
{{
taskDetail
.
cgDirName
||
'--'
<span
class=
"desc_value"
>
{{
taskDetail
.
cgDirName
||
'--'
}}
</span>
</div>
<div
class=
"desc_item"
>
...
...
Write
Preview
Styling with
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