Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
8abfb41f
Commit
8abfb41f
authored
Oct 18, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
器材代用附件用于
parent
3a176dee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
config.js
.../src/commonComponents/components/DeeUploadTable/config.js
+15
-1
index.vue
.../src/commonComponents/components/DeeUploadTable/index.vue
+40
-0
No files found.
applications/architecture-dee/src/commonComponents/components/DeeUploadTable/config.js
View file @
8abfb41f
...
@@ -60,7 +60,21 @@ export default {
...
@@ -60,7 +60,21 @@ export default {
activeValue
:
true
,
activeValue
:
true
,
inactiveValue
:
false
inactiveValue
:
false
}
}
},
{
},
{
'dynamicProp'
:
true
,
'key'
:
'isAttachmentUsedSecret'
,
'title'
:
'附件用于'
,
'prop'
:
'component'
,
'component'
:
{
'name'
:
'el-switch'
,
activeText
:
'是'
,
inactiveText
:
'否'
,
activeValue
:
true
,
inactiveValue
:
false
}
},
{
'dynamicProp'
:
true
,
'dynamicProp'
:
true
,
'key'
:
'isVerifySecretFileName'
,
'key'
:
'isVerifySecretFileName'
,
'title'
:
'是否强制校验密级文件名'
,
'title'
:
'是否强制校验密级文件名'
,
...
...
applications/architecture-dee/src/commonComponents/components/DeeUploadTable/index.vue
View file @
8abfb41f
...
@@ -88,6 +88,40 @@ export default {
...
@@ -88,6 +88,40 @@ export default {
'show'
:
true
,
'show'
:
true
,
'headerAlign'
:
'center'
,
'headerAlign'
:
'center'
,
'align'
:
'center'
'align'
:
'center'
},
{
align
:
'center'
,
headerAlign
:
'center'
,
key
:
'target.contentType'
,
level
:
1
,
parentKey
:
'target'
,
show
:
true
,
title
:
'附件用于'
,
component
:
{
name
:
'el-select'
,
options
:
[
{
label
:
'代用说明'
,
value
:
'isDYSM'
},
{
label
:
'器材验证'
,
value
:
'isQCYZ'
},
{
label
:
'设计意见'
,
value
:
'isSJYJ'
},
{
label
:
'使用情况'
,
value
:
'isSYQK'
},
{
label
:
'其他'
,
value
:
'isOthers'
}
]
}
}
}
]
]
},
},
...
@@ -166,6 +200,10 @@ export default {
...
@@ -166,6 +200,10 @@ export default {
if
(
!
isSupportSecret
)
{
if
(
!
isSupportSecret
)
{
columns
=
this
.
tableColumns
.
filter
(
x
=>
x
.
key
!==
'target.secretCodeName'
)
columns
=
this
.
tableColumns
.
filter
(
x
=>
x
.
key
!==
'target.secretCodeName'
)
}
}
const
isAttachmentUsedSecret
=
this
.
$utils
.
_get
(
this
.
configItem
,
'isAttachmentUsedSecret'
,
false
)
if
(
!
isAttachmentUsedSecret
)
{
columns
=
this
.
tableColumns
.
filter
(
x
=>
x
.
key
!==
'target.contentType'
)
}
return
columns
return
columns
}
}
},
},
...
@@ -247,6 +285,7 @@ export default {
...
@@ -247,6 +285,7 @@ export default {
})
})
},
},
update
(
data
,
deleteRows
=
[])
{
update
(
data
,
deleteRows
=
[])
{
console
.
log
(
11111
,
data
)
// data
// data
const
tableData
=
this
.
value
||
[]
const
tableData
=
this
.
value
||
[]
tableData
.
forEach
(
row
=>
{
tableData
.
forEach
(
row
=>
{
...
@@ -260,6 +299,7 @@ export default {
...
@@ -260,6 +299,7 @@ export default {
}
}
}
}
})
})
console
.
log
(
222
,
data
)
this
.
$emit
(
'input'
,
data
)
this
.
$emit
(
'input'
,
data
)
}
}
}
}
...
...
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