|
@ -1,7 +1,8 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="ulohavzoraknode"> |
|
|
<div class="ulohavzoraknode"> |
|
|
<!--pre>UlohaVzorakNode {{item}} {{typeof(item)}}</pre--> |
|
|
<!--pre>UlohaVzorakNode {{item}} {{typeof(item)}}</pre--> |
|
|
<h5>Řešení {{item.node.uloha.cislo_zadani.poradi}}.{{ item.node.uloha.kod }}: {{ item.node.uloha.nazev }}</h5> |
|
|
<!--h5 v-if="!editorMode">Řešení {{item.node.uloha.cislo_zadani.poradi}}.{{ item.node.uloha.kod }}: {{ item.node.uloha.nazev }}</h5--> |
|
|
|
|
|
<h5>Řešení!</h5> |
|
|
<button v-if="editorMode" v-on:click="showSelect=!showSelect" class="upravit">Upravit</button> |
|
|
<button v-if="editorMode" v-on:click="showSelect=!showSelect" class="upravit">Upravit</button> |
|
|
<div v-if="showSelect"> |
|
|
<div v-if="showSelect"> |
|
|
<form class="searchForm" v-on:submit.prevent="submitSearch"> |
|
|
<form class="searchForm" v-on:submit.prevent="submitSearch"> |
|
@ -38,14 +39,14 @@ export default { |
|
|
editorMode: Boolean, |
|
|
editorMode: Boolean, |
|
|
}, |
|
|
}, |
|
|
mounted: function(){ |
|
|
mounted: function(){ |
|
|
if (this.item.node.uloha === null){ |
|
|
|
|
|
console.log("Uloha je null!"); |
|
|
|
|
|
console.log(this.item); |
|
|
|
|
|
} |
|
|
|
|
|
if (this.create){ |
|
|
if (this.create){ |
|
|
this.showSelect = true; |
|
|
this.showSelect = true; |
|
|
console.log('Creating'); |
|
|
console.log('Creating'); |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.item !== null && this.item.node.uloha === null){ |
|
|
|
|
|
console.log("Uloha je null!"); |
|
|
|
|
|
console.log(this.item); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
submitSearch: function(){ |
|
|
submitSearch: function(){ |
|
|