- Sorry this section is under construction
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ file.__sizeLabel }} / {{ file.__progressLabel }}
+
+
+ {{ file.xhr.statusText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/src/pages/Items.vue b/src/pages/Items.vue
index e92dc3f..439c208 100644
--- a/src/pages/Items.vue
+++ b/src/pages/Items.vue
@@ -1,14 +1,97 @@
-
- Sorry this section is under construction
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.longName}}
+ #{{item.id}}
+ {{item.image}}
+
+
+
+
+
+
-
-
diff --git a/src/pages/New.vue b/src/pages/New.vue
index 87aecc2..6b34557 100644
--- a/src/pages/New.vue
+++ b/src/pages/New.vue
@@ -1,18 +1,20 @@
-
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
- {{scope.opt.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
import Page from 'components/Page'
+import ImageEditor from 'components/ImageEditor'
export default {
name: 'New',
mixins: [Page],
+ components: {
+ ImageEditor
+ },
data () {
return {
myNew: { text: '' },
@@ -139,10 +77,7 @@ export default {
tags: null,
priorities: [1, 2, 3],
image: null,
- editImage: false,
- showUploader: false,
- imageCollection: 'news',
- images: [],
+ showImgEditor: false,
tools: [
['left', 'center', 'right', 'justify'],
['bold', 'italic', 'underline', 'removeFormat'],
@@ -194,19 +129,6 @@ export default {
watch: {
'this.$route.params.id': function () {
this.loadNew()
- },
- image () {
- this.showUploader = false
- },
- showUploader () {
- this.$refs.uploader.reset()
- },
- editImage () {
- if (this.editImage) {
- this.image = this.myNew.image
- } else {
- this.showUploader = false
- }
}
},
methods: {
@@ -229,7 +151,7 @@ export default {
this.$axios.get(`News/${this.id}`, { params: { filter } })
.then(res => (this.myNew = res.data))
} else {
- this.new = {
+ this.myNew = {
userFk: this.$state.userId,
tag: 'new',
priority: 1,
@@ -253,31 +175,10 @@ export default {
this.$q.notify({
message: this.$t(message),
icon: 'check',
- color: 'green-6'
+ color: 'green'
})
this.$router.go(-1)
})
- },
- filterImages (val, update, abort) {
- let filter = {
- where: {
- name: { like: `${val}%` },
- collectionFk: this.imageCollection
- },
- limit: !val ? 50 : undefined
- }
- this.$axios.get(`Images`, { params: { filter } })
- .then(res => {
- update(() => (this.images = res.data))
- })
- .catch(() => abort())
- },
- onEditImage () {
- this.myNew.image = this.image
- this.editImage = false
- },
- addImage (inputValue, doneFn) {
- console.log(inputValue)
}
}
}
diff --git a/src/pages/News.vue b/src/pages/News.vue
index a3beb70..cdc17f8 100644
--- a/src/pages/News.vue
+++ b/src/pages/News.vue
@@ -14,7 +14,7 @@
clickable
v-ripple>
-
+
@@ -42,6 +42,10 @@
+
@@ -74,12 +78,17 @@