Pop Erweiterung auf Adressen
This commit is contained in:
@@ -1312,10 +1312,10 @@ class PopController extends mfBaseController
|
|||||||
$data['doku_date'] = ($r->doku_date) ? strtotime($r->doku_date) : null;
|
$data['doku_date'] = ($r->doku_date) ? strtotime($r->doku_date) : null;
|
||||||
$data['note'] = $r->note;
|
$data['note'] = $r->note;
|
||||||
|
|
||||||
$data['edit_by'] = 1;
|
// $data['edit_by'] = 1;
|
||||||
|
|
||||||
if ($mode == "add") {
|
if ($mode == "add") {
|
||||||
$data['create_by'] = 1;
|
// $data['create_by'] = 1;
|
||||||
$pop = PopModel::create($data);
|
$pop = PopModel::create($data);
|
||||||
} else {
|
} else {
|
||||||
$pop->update($data);
|
$pop->update($data);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Vue.component('Pop', {
|
|||||||
<tt-table :data="window['TT_CONFIG']['POPS']" :config="PopTableConfig" excel-export>
|
<tt-table :data="window['TT_CONFIG']['POPS']" :config="PopTableConfig" excel-export>
|
||||||
|
|
||||||
<template v-slot:top-buttons>
|
<template v-slot:top-buttons>
|
||||||
<button type="button" class="btn btn-primary" @click="window.location = window['TT_CONFIG']['BASE_URL'] + '/Pop/add'">
|
<button type="button" class="btn btn-primary" @click="window.location = window['TT_CONFIG']['BASE_URL'] + '/Pop/add?returnto=Pop'">
|
||||||
<i class="fas fa-plus"></i>
|
<i class="fas fa-plus"></i>
|
||||||
Pop hinzufügen
|
Pop hinzufügen
|
||||||
</button>
|
</button>
|
||||||
@@ -75,6 +75,12 @@ Vue.component('Pop', {
|
|||||||
defaultPageSize: 25,
|
defaultPageSize: 25,
|
||||||
headers: [
|
headers: [
|
||||||
{text: 'Name', key: 'name', priority: 10},
|
{text: 'Name', key: 'name', priority: 10},
|
||||||
|
{text: 'Kategorie', key: 'category', class: 'text-center', priority: 4, filter: 'select', filterOptions: [
|
||||||
|
{value: '1', text: 'Outdoor (Kasten/Schrank)'},
|
||||||
|
{value: '2', text: 'Indoor (Keller Gebäude)'},
|
||||||
|
{value: '3', text: 'Sender/Funk (Sendemast)'},
|
||||||
|
{value: '4', text: 'Container (Garage, Container)'},
|
||||||
|
{value: '99', text: 'Unbekannt'}]},
|
||||||
{text: 'Netzgebiet', key: 'networkArea', class: 'text-center',
|
{text: 'Netzgebiet', key: 'networkArea', class: 'text-center',
|
||||||
// TODO: fix autocomplete Filter
|
// TODO: fix autocomplete Filter
|
||||||
// filter: 'autocomplete',
|
// filter: 'autocomplete',
|
||||||
|
|||||||
Reference in New Issue
Block a user