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
34c99a07
Commit
34c99a07
authored
Dec 22, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store
parent
2420969e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
proof.ts
src/mixins/proof.ts
+0
-0
List.vue
src/views/template/List.vue
+4
-4
BaseInfo.vue
src/views/template/components/BaseInfo.vue
+4
-0
No files found.
src/mixins/proof.ts
View file @
34c99a07
This diff is collapsed.
Click to expand it.
src/views/template/List.vue
View file @
34c99a07
...
@@ -139,7 +139,7 @@ export default class Index extends Mixins(TemplateMixin) {
...
@@ -139,7 +139,7 @@ export default class Index extends Mixins(TemplateMixin) {
return
[
edit
,
rename
,
move
,
copy
,
del
];
return
[
edit
,
rename
,
move
,
copy
,
del
];
}
}
}
}
private
async
get
UserFolders
()
{
private
async
get
TemplateListByFolderId
()
{
const
id
=
+
this
.
id
;
const
id
=
+
this
.
id
;
const
res
=
await
this
.
$api
.
template
.
list
({
id
:
[
id
]
});
const
res
=
await
this
.
$api
.
template
.
list
({
id
:
[
id
]
});
this
.
list
=
res
.
results
[
0
].
detail
||
[];
this
.
list
=
res
.
results
[
0
].
detail
||
[];
...
@@ -147,7 +147,7 @@ export default class Index extends Mixins(TemplateMixin) {
...
@@ -147,7 +147,7 @@ export default class Index extends Mixins(TemplateMixin) {
private
async
callbackAction
(
cb
:
any
)
{
private
async
callbackAction
(
cb
:
any
)
{
// cb是什么东西?
// cb是什么东西?
this
.
isShowRename
=
await
cb
.
call
(
this
,
this
.
currentTem
);
this
.
isShowRename
=
await
cb
.
call
(
this
,
this
.
currentTem
);
this
.
get
UserFolders
();
this
.
get
TemplateListByFolderId
();
}
}
private
getTemplateById
(
id
:
number
){
private
getTemplateById
(
id
:
number
){
...
@@ -162,7 +162,7 @@ export default class Index extends Mixins(TemplateMixin) {
...
@@ -162,7 +162,7 @@ export default class Index extends Mixins(TemplateMixin) {
private
async
onConfirm
()
{
private
async
onConfirm
()
{
const
params
=
this
.
currentTem
;
const
params
=
this
.
currentTem
;
await
this
.
$api
.
template
.
updateCustomize
(
params
);
await
this
.
$api
.
template
.
updateCustomize
(
params
);
this
.
get
UserFolders
();
this
.
get
TemplateListByFolderId
();
}
}
private
handleClickMoveToCurrent
()
{
private
handleClickMoveToCurrent
()
{
...
@@ -177,7 +177,7 @@ export default class Index extends Mixins(TemplateMixin) {
...
@@ -177,7 +177,7 @@ export default class Index extends Mixins(TemplateMixin) {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
setMovedTemplateId
(
null
);
this
.
setMovedTemplateId
(
null
);
Toast
(
'移动成功'
);
Toast
(
'移动成功'
);
this
.
get
UserFolders
();
this
.
get
TemplateListByFolderId
();
});
});
}
}
}
}
...
...
src/views/template/components/BaseInfo.vue
View file @
34c99a07
...
@@ -118,6 +118,10 @@ export default class BaseInfo extends Vue {
...
@@ -118,6 +118,10 @@ export default class BaseInfo extends Vue {
this
.
showSelectFolder
=
false
;
this
.
showSelectFolder
=
false
;
this
.
folder
=
value
;
this
.
folder
=
value
;
}
}
private
onPickerChange
(
picker
:
any
,
value
:
any
,
index
:
number
){
console
.
log
(
index
);
}
private
handleFileChange
(
e
:
any
)
{
private
handleFileChange
(
e
:
any
)
{
const
[
file
]
=
e
.
target
.
files
;
const
[
file
]
=
e
.
target
.
files
;
if
(
file
)
{
if
(
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