Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
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
徐俊
yn-science-front
Commits
8bc5714b
Commit
8bc5714b
authored
Dec 02, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
f13a6b22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
fileEdit.vue
src/views/report/project/components/fileEdit.vue
+14
-6
paraEdit.vue
src/views/system/parameter/components/paraEdit.vue
+8
-1
No files found.
src/views/report/project/components/fileEdit.vue
View file @
8bc5714b
...
@@ -25,9 +25,14 @@
...
@@ -25,9 +25,14 @@
<div>
序号
</div>
<div>
序号
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"
8
"
class=
"bg-gray"
>
<a-col
:span=
"
6
"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div>
附件说明
</div>
<div>
附件名称
</div>
</div>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div>
是否必备材料
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"10"
class=
"bg-gray"
>
<a-col
:span=
"10"
class=
"bg-gray"
>
...
@@ -45,12 +50,15 @@
...
@@ -45,12 +50,15 @@
<a-col
:span=
"2"
style=
"text-align: center;"
>
<a-col
:span=
"2"
style=
"text-align: center;"
>
{{
index
+
1
}}
{{
index
+
1
}}
</a-col>
</a-col>
<a-col
:span=
"
8
"
>
<a-col
:span=
"
6
"
>
<a-form-model-item
:prop=
"'fileList.' + index + '.fileExplain'"
:rules=
"
{required:
true
, message: '*',trigger: 'blur',}">
<a-form-model-item
:prop=
"'fileList.' + index + '.fileExplain'"
:rules=
"
{required:
item.isRequired
, message: '*',trigger: 'blur',}">
<a-input
v-model=
"item.fileExplain"
:maxLength=
"100"
style=
"width:
8
0%"
:disabled=
"item.required"
/>
<a-input
v-model=
"item.fileExplain"
:maxLength=
"100"
style=
"width:
10
0%"
:disabled=
"item.required"
/>
<!--
<span
v-if=
"mustAttachment.includes(index)"
class=
"required"
></span>
-->
<!--
<span
v-if=
"mustAttachment.includes(index)"
class=
"required"
></span>
-->
</a-form-model-item>
</a-form-model-item>
</a-col>
</a-col>
<a-col
:span=
"2"
>
<div
class=
"special-middle"
style=
"text-align: center;"
><div>
{{
item
.
isRequired
==
true
?
"是"
:
"否"
}}
</div></div>
</a-col>
<a-col
:span=
"10"
>
<a-col
:span=
"10"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div
v-if=
"item.downloadUrl"
class=
"file-box"
>
<div
v-if=
"item.downloadUrl"
class=
"file-box"
>
...
@@ -61,7 +69,7 @@
...
@@ -61,7 +69,7 @@
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(item, index)"
/>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(item, index)"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
<a-form-model-item
:prop=
"'fileList.' + index + '.downloadUrl'"
:rules=
"
{required:
true
, message: '请上传附件',trigger: 'blur',}">
<a-form-model-item
:prop=
"'fileList.' + index + '.downloadUrl'"
:rules=
"
{required:
item.isRequired
, message: '请上传附件',trigger: 'blur',}">
<input
type=
"file"
:ref=
"'fileElem' + index"
class=
"visually-hidden"
@
change=
"handleFiles(item, index)"
/>
<input
type=
"file"
:ref=
"'fileElem' + index"
class=
"visually-hidden"
@
change=
"handleFiles(item, index)"
/>
<a-button
@
click=
"fileSelect(item, index)"
><a-icon
type=
"upload"
/>
选择文件
</a-button>
<a-button
@
click=
"fileSelect(item, index)"
><a-icon
type=
"upload"
/>
选择文件
</a-button>
</a-form-model-item>
</a-form-model-item>
...
...
src/views/system/parameter/components/paraEdit.vue
View file @
8bc5714b
...
@@ -20,6 +20,12 @@
...
@@ -20,6 +20,12 @@
<a-form-model-item
label=
"系统编码"
prop=
"systemCode"
>
<a-form-model-item
label=
"系统编码"
prop=
"systemCode"
>
<a-input
v-model=
"formData.systemCode"
placeholder=
"系统编码"
style=
"width:240px;"
/>
<a-input
v-model=
"formData.systemCode"
placeholder=
"系统编码"
style=
"width:240px;"
/>
</a-form-model-item>
</a-form-model-item>
<a-form-model-item
label=
"是否为必填项"
prop=
"isRequired"
>
<a-radio-group
v-model=
"formData.isRequired"
>
<a-radio
:value=
"true"
>
是
</a-radio>
<a-radio
:value=
"false"
>
否
</a-radio>
</a-radio-group>
</a-form-model-item>
<a-form-model-item
label=
"排序"
prop=
"displayOrder"
>
<a-form-model-item
label=
"排序"
prop=
"displayOrder"
>
<a-input-number
v-model=
"formData.displayOrder"
:min=
"0"
:step=
"1"
style=
"width:240px;"
/>
<a-input-number
v-model=
"formData.displayOrder"
:min=
"0"
:step=
"1"
style=
"width:240px;"
/>
</a-form-model-item>
</a-form-model-item>
...
@@ -51,7 +57,8 @@ export default {
...
@@ -51,7 +57,8 @@ export default {
gbCode
:
{
required
:
false
,
message
:
'请输入标准编码'
,
trigger
:
'blur'
},
gbCode
:
{
required
:
false
,
message
:
'请输入标准编码'
,
trigger
:
'blur'
},
treeCode
:
{
required
:
false
,
message
:
'请输入树编码'
,
trigger
:
'blur'
},
treeCode
:
{
required
:
false
,
message
:
'请输入树编码'
,
trigger
:
'blur'
},
displayOrder
:
{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
},
displayOrder
:
{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
},
systemCode
:
{
required
:
false
,
message
:
'请输入系统编码'
,
trigger
:
'blur'
}
systemCode
:
{
required
:
false
,
message
:
'请输入系统编码'
,
trigger
:
'blur'
},
isRequired
:
{
required
:
false
,
message
:
'请选择是否必填'
,
trigger
:
'blur'
}
},
},
loading
:
false
,
loading
:
false
,
}
}
...
...
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