Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Esteban Choque
Portal Bolivia Digital
Commits
aa92c9f6
Commit
aa92c9f6
authored
May 16, 2019
by
Esteban Choque
Browse files
Se elimino el dialog cerrar del dialog Iniciar nuevo debate
parent
4b209339
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pages/participa/_id_forum/_name_forum/_id_topic/_name_topic/index.vue
View file @
aa92c9f6
...
@@ -125,15 +125,6 @@ export default {
...
@@ -125,15 +125,6 @@ export default {
this
.
pagina
(
1
);
this
.
pagina
(
1
);
},
},
methods
:
{
methods
:
{
getTopics
()
{
//axios.get('http://localhost/wordpress/index.php?rest_route=/topic_posts/v1/'+this.$route.params.id_forum+'/'+this.$route.params.id_topic)
axios
.
get
(
this
.
$foro
.
url
+
'
/topic_posts/v1/
'
+
this
.
$route
.
params
.
id_forum
+
'
/
'
+
this
.
$route
.
params
.
id_topic
)
.
then
(
response
=>
{
this
.
forum
=
response
.
data
[
this
.
$route
.
params
.
id_forum
];
this
.
page_tit
=
this
.
forum
.
topics
[
this
.
$route
.
params
.
id_topic
].
name
;
console
.
log
(
response
.
status
);
// ex.: 200
});
},
sendPublicacion
()
{
sendPublicacion
()
{
this
.
params
=
{
this
.
params
=
{
id_topic
:
this
.
$route
.
params
.
id_topic
,
id_topic
:
this
.
$route
.
params
.
id_topic
,
...
@@ -227,7 +218,9 @@ export default {
...
@@ -227,7 +218,9 @@ export default {
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
forum
=
response
.
data
[
this
.
$route
.
params
.
id_forum
];
this
.
forum
=
response
.
data
[
this
.
$route
.
params
.
id_forum
];
this
.
page_num_posts
=
parseInt
(
this
.
forum
.
topics
[
this
.
$route
.
params
.
id_topic
].
num_posts
);
this
.
page_num_posts
=
parseInt
(
this
.
forum
.
topics
[
this
.
$route
.
params
.
id_topic
].
num_posts
);
this
.
page_tit
=
this
.
forum
.
topics
[
this
.
$route
.
params
.
id_topic
].
name
;
console
.
log
(
response
.
status
);
// ex.: 200
console
.
log
(
response
.
status
);
// ex.: 200
console
.
log
(
'
titulo
'
+
this
.
page_tit
);
});
});
},
},
validarNombre
()
{
validarNombre
()
{
...
...
src/pages/participa/_id_forum/_name_forum/index.vue
View file @
aa92c9f6
...
@@ -53,8 +53,7 @@
...
@@ -53,8 +53,7 @@
<el-dialog
<el-dialog
title=
"Iniciar Nuevo Debate"
title=
"Iniciar Nuevo Debate"
:visible.sync=
"dialogVisible"
:visible.sync=
"dialogVisible"
width=
"80%"
width=
"80%"
>
:before-close=
"handleClose"
>
<table
<table
style=
"width:100%"
>
style=
"width:100%"
>
<tr>
<tr>
...
@@ -164,17 +163,6 @@ export default {
...
@@ -164,17 +163,6 @@ export default {
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
this
.
getListaCategorias
();
this
.
getListaCategorias
();
},
},
handleClose
(
done
)
{
this
.
$confirm
(
'
¿Estás seguro de descartar esta publicación?
'
,
'
Advertencia
'
,
{
confirmButtonText
:
'
Si
'
,
cancelButtonText
:
'
No
'
,
type
:
'
warning
'
})
.
then
(
_
=>
{
done
();
})
.
catch
(
_
=>
{});
},
getListaCategorias
()
{
getListaCategorias
()
{
//axios.get('http://localhost/wordpress/index.php?rest_route=/tm/v1/'+this.$route.params.id_forum)
//axios.get('http://localhost/wordpress/index.php?rest_route=/tm/v1/'+this.$route.params.id_forum)
axios
.
get
(
this
.
$foro
.
url
+
'
/tm/v1/
'
+
this
.
$route
.
params
.
id_forum
)
axios
.
get
(
this
.
$foro
.
url
+
'
/tm/v1/
'
+
this
.
$route
.
params
.
id_forum
)
...
...
Write
Preview
Supports
Markdown
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