Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
peiworker
/
douyin-fe
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1c5b0e75
authored
Jun 28, 2020
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2bd5a3fa
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
43 deletions
+48
-43
dist/b.html
+0
-35
dist/index.html
+2
-2
dist/static/js/chunk-4ed577de.4aed5d59.js
+0
-2
dist/static/js/chunk-4ed577de.ea8299b8.js
+2
-0
src/api/cates.js
+9
-0
src/views/cates/index.vue
+35
-4
No files found.
dist/b.html
deleted
100644 → 0
View file @
2bd5a3fa
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
Document
</title>
</head>
<body>
<p>
111111111111111111111111111
</p>
<div>
<input
type=
"text"
id=
"tid"
name=
"tid"
value=
"wdeq1206"
readonly=
"readonly"
>
<p
class=
"btn"
onclick=
"copyUrl()"
>
一键复制并打开微信
</p>
</div>
<script>
function
copyUrl
(){
var
input
=
document
.
getElementById
(
"tid"
);
input
.
select
();
input
.
setSelectionRange
(
0
,
input
.
value
.
length
),
document
.
execCommand
(
'Copy'
);
var
locatUrl
=
"weixin://"
;
if
(
/ipad|iphone|mac/i
.
test
(
navigator
.
userAgent
))
{
var
ifr
=
document
.
createElement
(
"iframe"
);
ifr
.
src
=
locatUrl
;
ifr
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
ifr
);
}
else
{
window
.
location
.
href
=
locatUrl
;
}
}
</script>
<p>
22222222222222222222222
</p>
<p>
33333333333333333333333
</p>
</body>
</html>
dist/index.html
View file @
1c5b0e75
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge,chrome=1"
><meta
name=
renderer
content=
webkit
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><link
rel=
icon
href=
/favicon.ico
><title>
Vue Element Admin
</title><link
href=
/static/css/chunk-libs.5cf311f0.css
rel=
stylesheet
><link
href=
/static/css/app.1b85534f.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
/static/js/chunk-elementUI.d1ab7f65.js
></script><script
src=
/static/js/chunk-libs.a49098e1.js
></script><script>
(
function
(
e
){
function
n
(
n
){
for
(
var
r
,
c
,
a
=
n
[
0
],
i
=
n
[
1
],
d
=
n
[
2
],
f
=
0
,
h
=
[];
f
<
a
.
length
;
f
++
)
c
=
a
[
f
],
u
[
c
]
&&
h
.
push
(
u
[
c
][
0
]),
u
[
c
]
=
0
;
for
(
r
in
i
)
Object
.
prototype
.
hasOwnProperty
.
call
(
i
,
r
)
&&
(
e
[
r
]
=
i
[
r
]);
l
&&
l
(
n
);
while
(
h
.
length
)
h
.
shift
()();
return
o
.
push
.
apply
(
o
,
d
||
[]),
t
()}
function
t
(){
for
(
var
e
,
n
=
0
;
n
<
o
.
length
;
n
++
){
for
(
var
t
=
o
[
n
],
r
=!
0
,
c
=
1
;
c
<
t
.
length
;
c
++
){
var
a
=
t
[
c
];
0
!==
u
[
a
]
&&
(
r
=!
1
)}
r
&&
(
o
.
splice
(
n
--
,
1
),
e
=
i
(
i
.
s
=
t
[
0
]))}
return
e
}
var
r
=
{},
c
=
{
runtime
:
0
},
u
=
{
runtime
:
0
},
o
=
[];
function
a
(
e
){
return
i
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-0575145a"
:
"59e0ff0b"
,
"chunk-05a99c67"
:
"be1a1e89"
,
"chunk-19593038"
:
"e94b4705"
,
"chunk-1cc1e7b2"
:
"cad4e853"
,
"chunk-2162b876"
:
"65a3d33f"
,
"chunk-2d2105d3"
:
"7106a610"
,
"chunk-2d230fe7"
:
"446e67d8"
,
"chunk-4ed577de"
:
"4aed5d59"
,
"chunk-556562e8"
:
"04d70197"
,
"chunk-667d2d85"
:
"2d4f045d"
,
"chunk-bf0cb8b0"
:
"7e5e9a4e"
}[
e
]
+
".js"
}
function
i
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
i
),
t
.
l
=!
0
,
t
.
exports
}
i
.
e
=
function
(
e
){
var
n
=
[],
t
=
{
"chunk-0575145a"
:
1
,
"chunk-05a99c67"
:
1
,
"chunk-19593038"
:
1
,
"chunk-1cc1e7b2"
:
1
,
"chunk-2162b876"
:
1
,
"chunk-4ed577de"
:
1
,
"chunk-556562e8"
:
1
,
"chunk-667d2d85"
:
1
,
"chunk-bf0cb8b0"
:
1
};
c
[
e
]?
n
.
push
(
c
[
e
]):
0
!==
c
[
e
]
&&
t
[
e
]
&&
n
.
push
(
c
[
e
]
=
new
Promise
((
function
(
n
,
t
){
for
(
var
r
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-0575145a"
:
"40f76b5c"
,
"chunk-05a99c67"
:
"d0296c60"
,
"chunk-19593038"
:
"40f76b5c"
,
"chunk-1cc1e7b2"
:
"d3c6c5a3"
,
"chunk-2162b876"
:
"40f76b5c"
,
"chunk-2d2105d3"
:
"31d6cfe0"
,
"chunk-2d230fe7"
:
"31d6cfe0"
,
"chunk-4ed577de"
:
"40f76b5c"
,
"chunk-556562e8"
:
"b043920c"
,
"chunk-667d2d85"
:
"d1c64e6f"
,
"chunk-bf0cb8b0"
:
"40f76b5c"
}[
e
]
+
".css"
,
u
=
i
.
p
+
r
,
o
=
document
.
getElementsByTagName
(
"link"
),
a
=
0
;
a
<
o
.
length
;
a
++
){
var
d
=
o
[
a
],
f
=
d
.
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
f
===
r
||
f
===
u
))
return
n
()}
var
h
=
document
.
getElementsByTagName
(
"style"
);
for
(
a
=
0
;
a
<
h
.
length
;
a
++
){
d
=
h
[
a
],
f
=
d
.
getAttribute
(
"data-href"
);
if
(
f
===
r
||
f
===
u
)
return
n
()}
var
l
=
document
.
createElement
(
"link"
);
l
.
rel
=
"stylesheet"
,
l
.
type
=
"text/css"
,
l
.
onload
=
n
,
l
.
onerror
=
function
(
n
){
var
r
=
n
&&
n
.
target
&&
n
.
target
.
src
||
u
,
o
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.\n("
+
r
+
")"
);
o
.
request
=
r
,
delete
c
[
e
],
l
.
parentNode
.
removeChild
(
l
),
t
(
o
)},
l
.
href
=
u
;
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
l
)})).
then
((
function
(){
c
[
e
]
=
0
})));
var
r
=
u
[
e
];
if
(
0
!==
r
)
if
(
r
)
n
.
push
(
r
[
2
]);
else
{
var
o
=
new
Promise
((
function
(
n
,
t
){
r
=
u
[
e
]
=
[
n
,
t
]}));
n
.
push
(
r
[
2
]
=
o
);
var
d
,
f
=
document
.
createElement
(
"script"
);
f
.
charset
=
"utf-8"
,
f
.
timeout
=
120
,
i
.
nc
&&
f
.
setAttribute
(
"nonce"
,
i
.
nc
),
f
.
src
=
a
(
e
),
d
=
function
(
n
){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
h
);
var
t
=
u
[
e
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
n
&&
(
"load"
===
n
.
type
?
"missing"
:
n
.
type
),
c
=
n
&&
n
.
target
&&
n
.
target
.
src
,
o
=
new
Error
(
"Loading chunk "
+
e
+
" failed.\n("
+
r
+
": "
+
c
+
")"
);
o
.
type
=
r
,
o
.
request
=
c
,
t
[
1
](
o
)}
u
[
e
]
=
void
0
}};
var
h
=
setTimeout
((
function
(){
d
({
type
:
"timeout"
,
target
:
f
})}),
12
e4
);
f
.
onerror
=
f
.
onload
=
d
,
document
.
head
.
appendChild
(
f
)}
return
Promise
.
all
(
n
)},
i
.
m
=
e
,
i
.
c
=
r
,
i
.
d
=
function
(
e
,
n
,
t
){
i
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
enumerable
:
!
0
,
get
:
t
})},
i
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
i
.
t
=
function
(
e
,
n
){
if
(
1
&
n
&&
(
e
=
i
(
e
)),
8
&
n
)
return
e
;
if
(
4
&
n
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
t
=
Object
.
create
(
null
);
if
(
i
.
r
(
t
),
Object
.
defineProperty
(
t
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
n
&&
"string"
!=
typeof
e
)
for
(
var
r
in
e
)
i
.
d
(
t
,
r
,
function
(
n
){
return
e
[
n
]}.
bind
(
null
,
r
));
return
t
},
i
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
i
.
d
(
n
,
"a"
,
n
),
n
},
i
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
i
.
p
=
"/"
,
i
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
d
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
f
=
d
.
push
.
bind
(
d
);
d
.
push
=
n
,
d
=
d
.
slice
();
for
(
var
h
=
0
;
h
<
d
.
length
;
h
++
)
n
(
d
[
h
]);
var
l
=
f
;
t
()})([]);
</script><script
src=
/static/js/app.1757914b.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge,chrome=1"
><meta
name=
renderer
content=
webkit
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
><link
rel=
icon
href=
/favicon.ico
><title>
Vue Element Admin
</title><link
href=
/static/css/chunk-libs.5cf311f0.css
rel=
stylesheet
><link
href=
/static/css/app.1b85534f.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
src=
/static/js/chunk-elementUI.d1ab7f65.js
></script><script
src=
/static/js/chunk-libs.a49098e1.js
></script><script>
(
function
(
e
){
function
n
(
n
){
for
(
var
r
,
c
,
a
=
n
[
0
],
i
=
n
[
1
],
d
=
n
[
2
],
f
=
0
,
h
=
[];
f
<
a
.
length
;
f
++
)
c
=
a
[
f
],
u
[
c
]
&&
h
.
push
(
u
[
c
][
0
]),
u
[
c
]
=
0
;
for
(
r
in
i
)
Object
.
prototype
.
hasOwnProperty
.
call
(
i
,
r
)
&&
(
e
[
r
]
=
i
[
r
]);
l
&&
l
(
n
);
while
(
h
.
length
)
h
.
shift
()();
return
o
.
push
.
apply
(
o
,
d
||
[]),
t
()}
function
t
(){
for
(
var
e
,
n
=
0
;
n
<
o
.
length
;
n
++
){
for
(
var
t
=
o
[
n
],
r
=!
0
,
c
=
1
;
c
<
t
.
length
;
c
++
){
var
a
=
t
[
c
];
0
!==
u
[
a
]
&&
(
r
=!
1
)}
r
&&
(
o
.
splice
(
n
--
,
1
),
e
=
i
(
i
.
s
=
t
[
0
]))}
return
e
}
var
r
=
{},
c
=
{
runtime
:
0
},
u
=
{
runtime
:
0
},
o
=
[];
function
a
(
e
){
return
i
.
p
+
"static/js/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-0575145a"
:
"59e0ff0b"
,
"chunk-05a99c67"
:
"be1a1e89"
,
"chunk-19593038"
:
"e94b4705"
,
"chunk-1cc1e7b2"
:
"cad4e853"
,
"chunk-2162b876"
:
"65a3d33f"
,
"chunk-2d2105d3"
:
"7106a610"
,
"chunk-2d230fe7"
:
"446e67d8"
,
"chunk-4ed577de"
:
"ea8299b8"
,
"chunk-556562e8"
:
"04d70197"
,
"chunk-667d2d85"
:
"2d4f045d"
,
"chunk-bf0cb8b0"
:
"7e5e9a4e"
}[
e
]
+
".js"
}
function
i
(
n
){
if
(
r
[
n
])
return
r
[
n
].
exports
;
var
t
=
r
[
n
]
=
{
i
:
n
,
l
:
!
1
,
exports
:{}};
return
e
[
n
].
call
(
t
.
exports
,
t
,
t
.
exports
,
i
),
t
.
l
=!
0
,
t
.
exports
}
i
.
e
=
function
(
e
){
var
n
=
[],
t
=
{
"chunk-0575145a"
:
1
,
"chunk-05a99c67"
:
1
,
"chunk-19593038"
:
1
,
"chunk-1cc1e7b2"
:
1
,
"chunk-2162b876"
:
1
,
"chunk-4ed577de"
:
1
,
"chunk-556562e8"
:
1
,
"chunk-667d2d85"
:
1
,
"chunk-bf0cb8b0"
:
1
};
c
[
e
]?
n
.
push
(
c
[
e
]):
0
!==
c
[
e
]
&&
t
[
e
]
&&
n
.
push
(
c
[
e
]
=
new
Promise
((
function
(
n
,
t
){
for
(
var
r
=
"static/css/"
+
({}[
e
]
||
e
)
+
"."
+
{
"chunk-0575145a"
:
"40f76b5c"
,
"chunk-05a99c67"
:
"d0296c60"
,
"chunk-19593038"
:
"40f76b5c"
,
"chunk-1cc1e7b2"
:
"d3c6c5a3"
,
"chunk-2162b876"
:
"40f76b5c"
,
"chunk-2d2105d3"
:
"31d6cfe0"
,
"chunk-2d230fe7"
:
"31d6cfe0"
,
"chunk-4ed577de"
:
"40f76b5c"
,
"chunk-556562e8"
:
"b043920c"
,
"chunk-667d2d85"
:
"d1c64e6f"
,
"chunk-bf0cb8b0"
:
"40f76b5c"
}[
e
]
+
".css"
,
u
=
i
.
p
+
r
,
o
=
document
.
getElementsByTagName
(
"link"
),
a
=
0
;
a
<
o
.
length
;
a
++
){
var
d
=
o
[
a
],
f
=
d
.
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
f
===
r
||
f
===
u
))
return
n
()}
var
h
=
document
.
getElementsByTagName
(
"style"
);
for
(
a
=
0
;
a
<
h
.
length
;
a
++
){
d
=
h
[
a
],
f
=
d
.
getAttribute
(
"data-href"
);
if
(
f
===
r
||
f
===
u
)
return
n
()}
var
l
=
document
.
createElement
(
"link"
);
l
.
rel
=
"stylesheet"
,
l
.
type
=
"text/css"
,
l
.
onload
=
n
,
l
.
onerror
=
function
(
n
){
var
r
=
n
&&
n
.
target
&&
n
.
target
.
src
||
u
,
o
=
new
Error
(
"Loading CSS chunk "
+
e
+
" failed.\n("
+
r
+
")"
);
o
.
request
=
r
,
delete
c
[
e
],
l
.
parentNode
.
removeChild
(
l
),
t
(
o
)},
l
.
href
=
u
;
var
s
=
document
.
getElementsByTagName
(
"head"
)[
0
];
s
.
appendChild
(
l
)})).
then
((
function
(){
c
[
e
]
=
0
})));
var
r
=
u
[
e
];
if
(
0
!==
r
)
if
(
r
)
n
.
push
(
r
[
2
]);
else
{
var
o
=
new
Promise
((
function
(
n
,
t
){
r
=
u
[
e
]
=
[
n
,
t
]}));
n
.
push
(
r
[
2
]
=
o
);
var
d
,
f
=
document
.
createElement
(
"script"
);
f
.
charset
=
"utf-8"
,
f
.
timeout
=
120
,
i
.
nc
&&
f
.
setAttribute
(
"nonce"
,
i
.
nc
),
f
.
src
=
a
(
e
),
d
=
function
(
n
){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
h
);
var
t
=
u
[
e
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
n
&&
(
"load"
===
n
.
type
?
"missing"
:
n
.
type
),
c
=
n
&&
n
.
target
&&
n
.
target
.
src
,
o
=
new
Error
(
"Loading chunk "
+
e
+
" failed.\n("
+
r
+
": "
+
c
+
")"
);
o
.
type
=
r
,
o
.
request
=
c
,
t
[
1
](
o
)}
u
[
e
]
=
void
0
}};
var
h
=
setTimeout
((
function
(){
d
({
type
:
"timeout"
,
target
:
f
})}),
12
e4
);
f
.
onerror
=
f
.
onload
=
d
,
document
.
head
.
appendChild
(
f
)}
return
Promise
.
all
(
n
)},
i
.
m
=
e
,
i
.
c
=
r
,
i
.
d
=
function
(
e
,
n
,
t
){
i
.
o
(
e
,
n
)
||
Object
.
defineProperty
(
e
,
n
,{
enumerable
:
!
0
,
get
:
t
})},
i
.
r
=
function
(
e
){
"undefined"
!==
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
i
.
t
=
function
(
e
,
n
){
if
(
1
&
n
&&
(
e
=
i
(
e
)),
8
&
n
)
return
e
;
if
(
4
&
n
&&
"object"
===
typeof
e
&&
e
&&
e
.
__esModule
)
return
e
;
var
t
=
Object
.
create
(
null
);
if
(
i
.
r
(
t
),
Object
.
defineProperty
(
t
,
"default"
,{
enumerable
:
!
0
,
value
:
e
}),
2
&
n
&&
"string"
!=
typeof
e
)
for
(
var
r
in
e
)
i
.
d
(
t
,
r
,
function
(
n
){
return
e
[
n
]}.
bind
(
null
,
r
));
return
t
},
i
.
n
=
function
(
e
){
var
n
=
e
&&
e
.
__esModule
?
function
(){
return
e
[
"default"
]}:
function
(){
return
e
};
return
i
.
d
(
n
,
"a"
,
n
),
n
},
i
.
o
=
function
(
e
,
n
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
n
)},
i
.
p
=
"/"
,
i
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
d
=
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[],
f
=
d
.
push
.
bind
(
d
);
d
.
push
=
n
,
d
=
d
.
slice
();
for
(
var
h
=
0
;
h
<
d
.
length
;
h
++
)
n
(
d
[
h
]);
var
l
=
f
;
t
()})([]);
</script><script
src=
/static/js/app.1757914b.js
></script></body></html>
\ No newline at end of file
dist/static/js/chunk-4ed577de.4aed5d59.js
deleted
100644 → 0
View file @
2bd5a3fa
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4ed577de"
],{
"0f14"
:
function
(
t
,
e
,
n
){
"use strict"
;
n
.
r
(
e
);
var
a
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
staticClass
:
"app-container"
},[
n
(
"div"
,{
staticClass
:
"filter-container"
},[
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"名称"
},
nativeOn
:{
keyup
:
function
(
e
){
return
!
e
.
type
.
indexOf
(
"key"
)
&&
t
.
_k
(
e
.
keyCode
,
"enter"
,
13
,
e
.
key
,
"Enter"
)?
null
:
t
.
handleFilter
(
e
)}},
model
:{
value
:
t
.
listQuery
.
name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
listQuery
,
"name"
,
e
)},
expression
:
"listQuery.name"
}}),
t
.
_v
(
" "
),
n
(
"el-button"
,{
staticClass
:
"filter-item"
,
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
t
.
handleFilter
}},[
t
.
_v
(
"\n 搜索\n "
)])],
1
),
t
.
_v
(
" "
),
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
listLoading
,
expression
:
"listLoading"
}],
attrs
:{
data
:
t
.
list
,
"element-loading-text"
:
"Loading"
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
}},[
n
(
"el-table-column"
,{
attrs
:{
align
:
"center"
,
label
:
"ID"
,
width
:
"95"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
$index
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"名称"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
row
.
name
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"排序"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
row
.
sort
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
align
:
"center"
,
width
:
"230"
,
"class-name"
:
"small-padding fixed-width"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
n
){
return
t
.
updateSort
(
e
.
row
.
id
)}}},[
t
.
_v
(
"\n 修改排序\n "
)])]}}])})],
1
),
t
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
t
.
total
,
page
:
t
.
listQuery
.
page
,
limit
:
t
.
listQuery
.
limit
},
on
:{
"update:page"
:
function
(
e
){
return
t
.
$set
(
t
.
listQuery
,
"page"
,
e
)},
"update:limit"
:
function
(
e
){
return
t
.
$set
(
t
.
listQuery
,
"limit"
,
e
)},
pagination
:
t
.
fetchData
}})],
1
)},
i
=
[],
o
=
n
(
"b775"
),
r
=
n
(
"5f87"
);
function
u
(
t
){
return
t
.
token
=
Object
(
r
[
"a"
])(),
Object
(
o
[
"a"
])({
url
:
"jingdong/cate-list"
,
method
:
"get"
,
params
:
t
})}
function
l
(
t
){
return
t
.
token
=
Object
(
r
[
"a"
])(),
Object
(
o
[
"a"
])({
url
:
"jingdong/update-cate-sort"
,
method
:
"post"
,
params
:
t
})}
var
s
=
n
(
"333d"
),
c
=
{
name
:
"Cates"
,
components
:{
Pagination
:
s
[
"a"
]},
data
:
function
(){
return
{
dialogTableVisible
:
!
1
,
list
:
null
,
listLoading
:
!
0
,
total
:
0
,
listQuery
:{
page
:
1
,
limit
:
15
,
name
:
""
}}},
created
:
function
(){
this
.
fetchData
()},
methods
:{
updateSort
:
function
(
t
){
var
e
=
this
;
this
.
$prompt
(
"请输入排序大小"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputPattern
:
/
\d
+/
,
inputErrorMessage
:
"必须是数字"
}).
then
((
function
(
n
){
var
a
=
n
.
value
;
l
({
id
:
t
,
sort
:
a
}).
then
((
function
(
t
){
e
.
$message
({
type
:
"info"
,
message
:
"更新成功"
}),
e
.
fetchData
()}))})).
catch
((
function
(){
e
.
$message
({
type
:
"info"
,
message
:
"取消输入"
})}))},
fetchData
:
function
(){
var
t
=
this
;
this
.
listLoading
=!
0
,
u
(
this
.
listQuery
).
then
((
function
(
e
){
t
.
list
=
e
.
data
.
data
,
t
.
total
=
e
.
data
.
meta
.
total
,
setTimeout
((
function
(){
t
.
listLoading
=!
1
}),
500
)}))},
handleFilter
:
function
(){
this
.
listQuery
.
page
=
1
,
this
.
fetchData
()}}},
d
=
c
,
p
=
n
(
"2877"
),
f
=
Object
(
p
[
"a"
])(
d
,
a
,
i
,
!
1
,
null
,
null
,
null
);
e
[
"default"
]
=
f
.
exports
},
"333d"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
t
.
hidden
}},[
n
(
"el-pagination"
,
t
.
_b
({
attrs
:{
background
:
t
.
background
,
"current-page"
:
t
.
currentPage
,
"page-size"
:
t
.
pageSize
,
layout
:
t
.
layout
,
"page-sizes"
:
t
.
pageSizes
,
total
:
t
.
total
},
on
:{
"update:currentPage"
:
function
(
e
){
t
.
currentPage
=
e
},
"update:current-page"
:
function
(
e
){
t
.
currentPage
=
e
},
"update:pageSize"
:
function
(
e
){
t
.
pageSize
=
e
},
"update:page-size"
:
function
(
e
){
t
.
pageSize
=
e
},
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}},
"el-pagination"
,
t
.
$attrs
,
!
1
))],
1
)},
i
=
[];
n
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
t
,
e
,
n
,
a
){
return
t
/=
a
/
2
,
t
<
1
?
n
/
2
*
t
*
t
+
e
:(
t
--
,
-
n
/
2
*
(
t
*
(
t
-
2
)
-
1
)
+
e
)};
var
o
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
t
){
window
.
setTimeout
(
t
,
1
e3
/
60
)}}();
function
r
(
t
){
document
.
documentElement
.
scrollTop
=
t
,
document
.
body
.
parentNode
.
scrollTop
=
t
,
document
.
body
.
scrollTop
=
t
}
function
u
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
t
,
e
,
n
){
var
a
=
u
(),
i
=
t
-
a
,
l
=
20
,
s
=
0
;
e
=
"undefined"
===
typeof
e
?
500
:
e
;
var
c
=
function
t
(){
s
+=
l
;
var
u
=
Math
.
easeInOutQuad
(
s
,
a
,
i
,
e
);
r
(
u
),
s
<
e
?
o
(
t
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
var
s
=
{
name
:
"Pagination"
,
props
:{
total
:{
required
:
!
0
,
type
:
Number
},
page
:{
type
:
Number
,
default
:
1
},
limit
:{
type
:
Number
,
default
:
20
},
pageSizes
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
30
,
50
]}},
layout
:{
type
:
String
,
default
:
"total, sizes, prev, pager, next, jumper"
},
background
:{
type
:
Boolean
,
default
:
!
0
},
autoScroll
:{
type
:
Boolean
,
default
:
!
0
},
hidden
:{
type
:
Boolean
,
default
:
!
1
}},
computed
:{
currentPage
:{
get
:
function
(){
return
this
.
page
},
set
:
function
(
t
){
this
.
$emit
(
"update:page"
,
t
)}},
pageSize
:{
get
:
function
(){
return
this
.
limit
},
set
:
function
(
t
){
this
.
$emit
(
"update:limit"
,
t
)}}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
$emit
(
"pagination"
,{
page
:
this
.
currentPage
,
limit
:
t
}),
this
.
autoScroll
&&
l
(
0
,
800
)},
handleCurrentChange
:
function
(
t
){
this
.
$emit
(
"pagination"
,{
page
:
t
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
l
(
0
,
800
)}}},
c
=
s
,
d
=
(
n
(
"e498"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
a
,
i
,
!
1
,
null
,
"6af373ef"
,
null
);
e
[
"a"
]
=
p
.
exports
},
7456
:
function
(
t
,
e
,
n
){},
e498
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
n
(
"7456"
),
i
=
n
.
n
(
a
);
i
.
a
}}]);
\ No newline at end of file
dist/static/js/chunk-4ed577de.ea8299b8.js
0 → 100644
View file @
1c5b0e75
(
window
[
"webpackJsonp"
]
=
window
[
"webpackJsonp"
]
||
[]).
push
([[
"chunk-4ed577de"
],{
"0f14"
:
function
(
t
,
e
,
n
){
"use strict"
;
n
.
r
(
e
);
var
a
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
staticClass
:
"app-container"
},[
n
(
"div"
,{
staticClass
:
"filter-container"
},[
n
(
"el-input"
,{
staticClass
:
"filter-item"
,
staticStyle
:{
width
:
"200px"
},
attrs
:{
placeholder
:
"名称"
},
nativeOn
:{
keyup
:
function
(
e
){
return
!
e
.
type
.
indexOf
(
"key"
)
&&
t
.
_k
(
e
.
keyCode
,
"enter"
,
13
,
e
.
key
,
"Enter"
)?
null
:
t
.
handleFilter
(
e
)}},
model
:{
value
:
t
.
listQuery
.
name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
listQuery
,
"name"
,
e
)},
expression
:
"listQuery.name"
}}),
t
.
_v
(
" "
),
n
(
"el-button"
,{
staticClass
:
"filter-item"
,
attrs
:{
type
:
"primary"
,
icon
:
"el-icon-search"
},
on
:{
click
:
t
.
handleFilter
}},[
t
.
_v
(
"\n 搜索\n "
)])],
1
),
t
.
_v
(
" "
),
n
(
"el-table"
,{
directives
:[{
name
:
"loading"
,
rawName
:
"v-loading"
,
value
:
t
.
listLoading
,
expression
:
"listLoading"
}],
attrs
:{
data
:
t
.
list
,
"element-loading-text"
:
"Loading"
,
border
:
""
,
fit
:
""
,
"highlight-current-row"
:
""
}},[
n
(
"el-table-column"
,{
attrs
:{
align
:
"center"
,
label
:
"ID"
,
width
:
"95"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
$index
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"名称"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
row
.
name
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"别名"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
row
.
alias_name
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"排序"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"\n "
+
t
.
_s
(
e
.
row
.
sort
)
+
"\n "
)]}}])}),
t
.
_v
(
" "
),
n
(
"el-table-column"
,{
attrs
:{
label
:
"操作"
,
align
:
"center"
,
width
:
"230"
,
"class-name"
:
"small-padding fixed-width"
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
n
){
return
t
.
updateSort
(
e
.
row
.
id
,
e
.
row
.
sort
)}}},[
t
.
_v
(
"\n 修改排序\n "
)]),
t
.
_v
(
" "
),
n
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
size
:
"mini"
},
on
:{
click
:
function
(
n
){
return
t
.
updateAlias
(
e
.
row
.
id
,
e
.
row
.
alias_name
)}}},[
t
.
_v
(
"\n 修改别名\n "
)])]}}])})],
1
),
t
.
_v
(
" "
),
n
(
"pagination"
,{
directives
:[{
name
:
"show"
,
rawName
:
"v-show"
,
value
:
t
.
total
>
0
,
expression
:
"total > 0"
}],
attrs
:{
total
:
t
.
total
,
page
:
t
.
listQuery
.
page
,
limit
:
t
.
listQuery
.
limit
},
on
:{
"update:page"
:
function
(
e
){
return
t
.
$set
(
t
.
listQuery
,
"page"
,
e
)},
"update:limit"
:
function
(
e
){
return
t
.
$set
(
t
.
listQuery
,
"limit"
,
e
)},
pagination
:
t
.
fetchData
}})],
1
)},
i
=
[],
o
=
n
(
"b775"
),
r
=
n
(
"5f87"
);
function
u
(
t
){
return
t
.
token
=
Object
(
r
[
"a"
])(),
Object
(
o
[
"a"
])({
url
:
"jingdong/cate-list"
,
method
:
"get"
,
params
:
t
})}
function
l
(
t
){
return
t
.
token
=
Object
(
r
[
"a"
])(),
Object
(
o
[
"a"
])({
url
:
"jingdong/update-cate-sort"
,
method
:
"post"
,
params
:
t
})}
function
s
(
t
){
return
t
.
token
=
Object
(
r
[
"a"
])(),
Object
(
o
[
"a"
])({
url
:
"jingdong/update-cate-alias"
,
method
:
"post"
,
params
:
t
})}
var
c
=
n
(
"333d"
),
d
=
{
name
:
"Cates"
,
components
:{
Pagination
:
c
[
"a"
]},
data
:
function
(){
return
{
dialogTableVisible
:
!
1
,
list
:
null
,
listLoading
:
!
0
,
total
:
0
,
listQuery
:{
page
:
1
,
limit
:
15
,
name
:
""
}}},
created
:
function
(){
this
.
fetchData
()},
methods
:{
updateSort
:
function
(
t
,
e
){
var
n
=
this
;
this
.
$prompt
(
"请输入排序大小"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputPattern
:
/
\d
+/
,
inputErrorMessage
:
"必须是数字"
,
inputValue
:
e
}).
then
((
function
(
e
){
var
a
=
e
.
value
;
l
({
id
:
t
,
sort
:
a
}).
then
((
function
(
t
){
n
.
$message
({
type
:
"success"
,
message
:
"更新成功"
}),
n
.
fetchData
()}))})).
catch
((
function
(){
n
.
$message
({
type
:
"info"
,
message
:
"取消输入"
})}))},
updateAlias
:
function
(
t
,
e
){
var
n
=
this
;
this
.
$prompt
(
"请输入别名"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
inputPattern
:
/
\S
+/
,
inputErrorMessage
:
"必须有值"
,
inputValue
:
e
}).
then
((
function
(
e
){
var
a
=
e
.
value
;
s
({
id
:
t
,
alias_name
:
a
}).
then
((
function
(
t
){
n
.
$message
({
type
:
"success"
,
message
:
"更新成功"
}),
n
.
fetchData
()}))})).
catch
((
function
(){
n
.
$message
({
type
:
"info"
,
message
:
"取消输入"
})}))},
fetchData
:
function
(){
var
t
=
this
;
this
.
listLoading
=!
0
,
u
(
this
.
listQuery
).
then
((
function
(
e
){
t
.
list
=
e
.
data
.
data
,
t
.
total
=
e
.
data
.
meta
.
total
,
setTimeout
((
function
(){
t
.
listLoading
=!
1
}),
500
)}))},
handleFilter
:
function
(){
this
.
listQuery
.
page
=
1
,
this
.
fetchData
()}}},
p
=
d
,
f
=
n
(
"2877"
),
m
=
Object
(
f
[
"a"
])(
p
,
a
,
i
,
!
1
,
null
,
null
,
null
);
e
[
"default"
]
=
m
.
exports
},
"333d"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
n
=
t
.
_self
.
_c
||
e
;
return
n
(
"div"
,{
staticClass
:
"pagination-container"
,
class
:{
hidden
:
t
.
hidden
}},[
n
(
"el-pagination"
,
t
.
_b
({
attrs
:{
background
:
t
.
background
,
"current-page"
:
t
.
currentPage
,
"page-size"
:
t
.
pageSize
,
layout
:
t
.
layout
,
"page-sizes"
:
t
.
pageSizes
,
total
:
t
.
total
},
on
:{
"update:currentPage"
:
function
(
e
){
t
.
currentPage
=
e
},
"update:current-page"
:
function
(
e
){
t
.
currentPage
=
e
},
"update:pageSize"
:
function
(
e
){
t
.
pageSize
=
e
},
"update:page-size"
:
function
(
e
){
t
.
pageSize
=
e
},
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}},
"el-pagination"
,
t
.
$attrs
,
!
1
))],
1
)},
i
=
[];
n
(
"c5f6"
);
Math
.
easeInOutQuad
=
function
(
t
,
e
,
n
,
a
){
return
t
/=
a
/
2
,
t
<
1
?
n
/
2
*
t
*
t
+
e
:(
t
--
,
-
n
/
2
*
(
t
*
(
t
-
2
)
-
1
)
+
e
)};
var
o
=
function
(){
return
window
.
requestAnimationFrame
||
window
.
webkitRequestAnimationFrame
||
window
.
mozRequestAnimationFrame
||
function
(
t
){
window
.
setTimeout
(
t
,
1
e3
/
60
)}}();
function
r
(
t
){
document
.
documentElement
.
scrollTop
=
t
,
document
.
body
.
parentNode
.
scrollTop
=
t
,
document
.
body
.
scrollTop
=
t
}
function
u
(){
return
document
.
documentElement
.
scrollTop
||
document
.
body
.
parentNode
.
scrollTop
||
document
.
body
.
scrollTop
}
function
l
(
t
,
e
,
n
){
var
a
=
u
(),
i
=
t
-
a
,
l
=
20
,
s
=
0
;
e
=
"undefined"
===
typeof
e
?
500
:
e
;
var
c
=
function
t
(){
s
+=
l
;
var
u
=
Math
.
easeInOutQuad
(
s
,
a
,
i
,
e
);
r
(
u
),
s
<
e
?
o
(
t
):
n
&&
"function"
===
typeof
n
&&
n
()};
c
()}
var
s
=
{
name
:
"Pagination"
,
props
:{
total
:{
required
:
!
0
,
type
:
Number
},
page
:{
type
:
Number
,
default
:
1
},
limit
:{
type
:
Number
,
default
:
20
},
pageSizes
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
30
,
50
]}},
layout
:{
type
:
String
,
default
:
"total, sizes, prev, pager, next, jumper"
},
background
:{
type
:
Boolean
,
default
:
!
0
},
autoScroll
:{
type
:
Boolean
,
default
:
!
0
},
hidden
:{
type
:
Boolean
,
default
:
!
1
}},
computed
:{
currentPage
:{
get
:
function
(){
return
this
.
page
},
set
:
function
(
t
){
this
.
$emit
(
"update:page"
,
t
)}},
pageSize
:{
get
:
function
(){
return
this
.
limit
},
set
:
function
(
t
){
this
.
$emit
(
"update:limit"
,
t
)}}},
methods
:{
handleSizeChange
:
function
(
t
){
this
.
$emit
(
"pagination"
,{
page
:
this
.
currentPage
,
limit
:
t
}),
this
.
autoScroll
&&
l
(
0
,
800
)},
handleCurrentChange
:
function
(
t
){
this
.
$emit
(
"pagination"
,{
page
:
t
,
limit
:
this
.
pageSize
}),
this
.
autoScroll
&&
l
(
0
,
800
)}}},
c
=
s
,
d
=
(
n
(
"e498"
),
n
(
"2877"
)),
p
=
Object
(
d
[
"a"
])(
c
,
a
,
i
,
!
1
,
null
,
"6af373ef"
,
null
);
e
[
"a"
]
=
p
.
exports
},
7456
:
function
(
t
,
e
,
n
){},
e498
:
function
(
t
,
e
,
n
){
"use strict"
;
var
a
=
n
(
"7456"
),
i
=
n
.
n
(
a
);
i
.
a
}}]);
\ No newline at end of file
src/api/cates.js
View file @
1c5b0e75
...
...
@@ -18,3 +18,12 @@ export function updateCateSort(params) {
params
})
}
export
function
updateCateAlias
(
params
)
{
params
.
token
=
getToken
()
return
request
({
url
:
'jingdong/update-cate-alias'
,
method
:
'post'
,
params
})
}
src/views/cates/index.vue
View file @
1c5b0e75
...
...
@@ -25,6 +25,11 @@
{{
scope
.
row
.
name
}}
</
template
>
</el-table-column>
<el-table-column
label=
"别名"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
alias_name
}}
</
template
>
</el-table-column>
<el-table-column
label=
"排序"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
sort
}}
...
...
@@ -32,9 +37,12 @@
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"230"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"updateSort(scope.row.id)"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"updateSort(scope.row.id
, scope.row.sort
)"
>
修改排序
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"updateAlias(scope.row.id, scope.row.alias_name)"
>
修改别名
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -43,7 +51,7 @@
</template>
<
script
>
import
{
getCateList
,
updateCateSort
}
from
'@/api/cates'
import
{
getCateList
,
updateCateSort
,
updateCateAlias
}
from
'@/api/cates'
import
Pagination
from
'@/components/Pagination'
export
default
{
...
...
@@ -66,16 +74,39 @@
this
.
fetchData
()
},
methods
:
{
updateSort
(
id
)
{
updateSort
(
id
,
sort
)
{
this
.
$prompt
(
'请输入排序大小'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
inputPattern
:
/
\d
+/
,
inputErrorMessage
:
'必须是数字'
inputErrorMessage
:
'必须是数字'
,
inputValue
:
sort
}).
then
(({
value
})
=>
{
updateCateSort
({
id
,
sort
:
value
}).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'更新成功'
});
this
.
fetchData
()
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'取消输入'
});
});
},
updateAlias
(
id
,
alias_name
)
{
this
.
$prompt
(
'请输入别名'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
inputPattern
:
/
\S
+/
,
inputErrorMessage
:
'必须有值'
,
inputValue
:
alias_name
}).
then
(({
value
})
=>
{
updateCateAlias
({
id
,
alias_name
:
value
}).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'更新成功'
});
this
.
fetchData
()
...
...
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