Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
externe Matthieu
Géocontrib Frontend
Commits
465ad167
Commit
465ad167
authored
3 years ago
by
leandro
Browse files
Options
Downloads
Patches
Plain Diff
add button import in feature_type
parent
2410f141
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/router/index.js
+1
-0
1 addition, 0 deletions
src/router/index.js
src/views/feature_type/Feature_type_edit.vue
+9
-1
9 additions, 1 deletion
src/views/feature_type/Feature_type_edit.vue
src/views/project/Project_detail.vue
+3
-2
3 additions, 2 deletions
src/views/project/Project_detail.vue
with
13 additions
and
3 deletions
src/router/index.js
+
1
−
0
View file @
465ad167
...
...
@@ -73,6 +73,7 @@ const routes = [
{
path
:
'
/projet/:slug/type-signalement/ajouter/
'
,
name
:
'
ajouter-type-signalement
'
,
props
:
true
,
component
:
()
=>
import
(
'
../views/feature_type/Feature_type_edit.vue
'
)
},
{
...
...
This diff is collapsed.
Click to expand it.
src/views/feature_type/Feature_type_edit.vue
+
9
−
1
View file @
465ad167
...
...
@@ -114,6 +114,11 @@
{{
action
===
"
create
"
?
"
Créer
"
:
"
Sauvegarder
"
}}
le type de
signalement
</button>
<button
v-if=
"geojson"
class=
"ui teal icon button"
type=
"button"
@
click=
"postFormAndGeojson"
>
<i
class=
"white save icon"
></i>
Créer et importer le(s) signalement(s) du geojson
</button>
// TODO: Add check script for form
&
other scripts //
</form>
</div>
...
...
@@ -144,6 +149,7 @@ export default {
dataKey
:
0
,
};
},
props
:
[
"
geojson
"
,
],
computed
:
{
...
mapGetters
([
"
project
"
]),
...
...
@@ -226,7 +232,9 @@ export default {
this
.
form
.
title
.
errors
.
push
(
"
Veuillez compléter ce champ.
"
);
}
},
postFormAndGeojson
(){
console
.
log
(
'
TODO : DO FUNCTION
'
)
},
updateStore
()
{
this
.
$store
.
commit
(
"
feature_type/UPDATE_FORM
"
,
{
color
:
this
.
form
.
color
,
...
...
This diff is collapsed.
Click to expand it.
src/views/project/Project_detail.vue
+
3
−
2
View file @
465ad167
...
...
@@ -529,8 +529,9 @@ export default {
// AFTER : AND CUSTOM FORM
},
toNewFeatureType
(){
this
.
$router
.
push
({
name
:
'
ajouter-type-signalement
'
,
this
.
$router
.
push
({
name
:
'
ajouter-type-signalement
'
,
params
:
{
geojson
:
this
.
jsonDict
}
});
},
toFormatGeom
(
value
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment