Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
ce021df1
Commit
ce021df1
authored
Oct 15, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
5ffcfcf3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
75 deletions
+8
-75
Index-sy.vue
src/views/index/Index-sy.vue
+1
-3
ProofItem.vue
src/views/proof/components/ProofItem.vue
+1
-1
AddFolder.vue
src/views/template/components/AddFolder.vue
+6
-71
No files found.
src/views/index/Index-sy.vue
View file @
ce021df1
...
...
@@ -60,9 +60,7 @@
v-model=
"currentFolder.folder_name"
/>
</van-dialog>
<transition
name=
"van-slide-up"
>
<add-folder
v-if=
"showAddFolder"
@
cancel=
"showAddFolder = false"
@
next=
"addFolder"
></add-folder>
</transition>
<add-folder
:show
.
sync=
"showAddFolder"
@
cancel=
"showAddFolder = false"
@
next=
"addFolder"
></add-folder>
</div>
</
template
>
...
...
src/views/proof/components/ProofItem.vue
View file @
ce021df1
...
...
@@ -115,7 +115,7 @@ export default class ProofItem extends Vue {
const
{
showIncrementList
,
incrementList
:
{
length
},
proof
:
{
increment_num
}
proof
:
{
increment_num
}
,
}
=
this
;
this
.
showIncrementList
=
!
showIncrementList
;
if
(
this
.
showIncrementList
&&
length
<=
0
)
{
...
...
src/views/template/components/AddFolder.vue
View file @
ce021df1
...
...
@@ -2,7 +2,7 @@
<van-dialog
use-slot
title=
"添加文件夹"
v-model=
"show"
v-model=
"show
Self
"
show-cancel-button
confirm-button-open-type=
"getUserInfo"
@
close=
"cancel"
...
...
@@ -14,45 +14,20 @@
placeholder=
"请输入文件夹名称"
/>
</van-dialog>
<!--
<van-popup
v-model=
"show"
position=
"bottom"
:close-on-click-overlay=
"false"
:style=
"
{height: '80%'}"
class="base-info">
<div
style=
"position:relative;margin-bottom:26px;"
>
<common-svg
@
click
.
native=
"cancel"
name=
"moban-quxiao"
style=
"position:absolute;left:17px;"
></common-svg>
<span>
创建文件夹
</span>
</div>
<van-field
v-model=
"folderName"
placeholder=
"填写文件夹名称"
></van-field>
<div
class=
"btn-group"
>
<div
@
click=
"next"
class=
"slc-btn-common next"
>
确定
</div>
</div>
</van-popup>
-->
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
,
Emit
}
from
'vue-property-decorator'
;
import
{
Field
,
Popup
}
from
'vant'
;
import
{
Component
,
Prop
,
Vue
,
Emit
,
PropSync
}
from
'vue-property-decorator'
;
import
{
TEMPLATETYPE
}
from
'@/const/enum'
;
@
Component
({
components
:
{
[
Field
.
name
]:
Field
,
[
Popup
.
name
]:
Popup
,
},
})
export
default
class
AddFolder
extends
Vue
{
private
show
:
boolean
=
true
;
@
PropSync
(
'show'
,
{
type
:
Boolean
,
required
:
true
})
private
showSelf
!
:
boolean
;
private
folderName
:
string
=
''
;
private
imgUrl
:
string
=
''
;
private
defaultFolderIndex
:
number
=
0
;
private
defaultFolderName
:
string
=
'未分类文件夹'
;
@
Emit
(
'next'
)
private
next
()
{
this
.
show
=
false
;
this
.
show
Self
=
false
;
const
{
folderName
}
=
this
;
return
{
folderName
,
...
...
@@ -60,48 +35,9 @@ export default class AddFolder extends Vue {
}
@
Emit
(
'cancel'
)
private
cancel
()
{
this
.
show
=
false
;
}
private
handleFileChange
(
e
:
any
)
{
const
input
=
e
.
target
;
const
files
=
input
.
files
;
if
(
files
&&
files
[
0
])
{
this
.
$api
.
file
.
upload
(
files
[
0
]).
then
((
res
:
any
)
=>
{
this
.
imgUrl
=
res
.
url
;
});
}
this
.
showSelf
=
false
;
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.base-info
{
padding
:
17px
0
0
;
.file-input
{
display
:
grid
;
grid-template-columns
:
20px
auto
10px
;
place-items
:
center
;
padding
:
7px
17px
;
background
:
#F9F9FB
;
color
:
#444444
;
font-size
:
14px
;
span
{
place-self
:
start
;
}
}
.btn-group
{
color
:
#B6B5BA
;
font-size
:
14px
;
.classify
{
color
:
#3F79FE
;
}
.next
{
flex
:
auto
;
padding
:
10px
37px
;
border-radius
:
4px
;
background
:
#3F79FE
;
color
:
#FFFFFF
;
font-size
:
16px
;
}
}
}
</
style
>
\ No newline at end of file
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