Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
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
office
haoban-4
Commits
80905387
Commit
80905387
authored
Sep 15, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改标签编辑
parent
fb04b780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
edit-tag-dialog.vue
src/components/app/my-customer/edit-tag-dialog.vue
+6
-21
No files found.
src/components/app/my-customer/edit-tag-dialog.vue
View file @
80905387
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-01 17:16:25
* @LastEditors: 无尘
* @LastEditTime: 2020-09-15 13:
43:32
* @LastEditTime: 2020-09-15 13:
53:05
-->
<!--
...
...
@@ -121,21 +121,13 @@ export default {
loadingBtn
:
false
};
},
// 生命周期
- 挂载完成(访问DOM元素)
// 生命周期
beforeMount
()
{
const
that
=
this
;
if
(
that
.
brandId
)
{
that
.
getClassifyList
();
}
},
mounted
()
{
const
that
=
this
;
if
(
Object
.
keys
(
that
.
editRow
).
length
)
{
that
.
$nextTick
(()
=>
{
that
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
editRow
));
});
}
},
// methods
methods
:
{
/**
...
...
@@ -252,9 +244,10 @@ export default {
getTagClassify
(
para
)
.
then
(
res
=>
{
that
.
tagsClassifyData
=
res
.
result
||
[];
that
.
$nextTick
(()
=>
{
that
.
currentCategoryId
?
that
.
form
.
categoryId
=
that
.
currentCategoryId
:
''
;
});
that
.
currentCategoryId
?
that
.
form
.
categoryId
=
that
.
currentCategoryId
:
''
;
if
(
Object
.
keys
(
that
.
editRow
).
length
)
{
that
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
that
.
editRow
));
}
})
.
catch
(
function
(
error
)
{
that
.
currentCategoryId
?
that
.
form
.
categoryId
=
that
.
currentCategoryId
:
''
;
...
...
@@ -262,14 +255,6 @@ export default {
}
},
watch
:
{
editRow
(
val
)
{
const
that
=
this
;
if
(
Object
.
keys
(
val
).
length
)
{
that
.
$nextTick
(()
=>
{
that
.
form
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
});
}
},
brandId
(
val
)
{
const
that
=
this
;
if
(
val
)
{
...
...
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