@@ -457,8 +472,15 @@ import axios from "axios";
import useVuelidate from "@vuelidate/core";
import { required, integer, numeric, minValue } from "@vuelidate/validators";
import { mapGetters, mapActions } from "vuex";
+import { read } from "@popperjs/core";
+import ItemMasterImage from "./ItemMasterImage.vue";
+import ItemMultipleImage from "./ItemMultipleImage.vue";
export default {
+ components: {
+ "item-master-image": ItemMasterImage,
+ "item-multiple-image": ItemMultipleImage,
+ },
emits: ["reloadComponent"],
props: {
selectedCawangan: { type: String },
@@ -477,8 +499,11 @@ export default {
sags: [],
norujukan: "",
marhuns: "",
+ filemarhun: "",
+ reloadImageComponent: 0,
componentKey: 0,
tambahan: "",
+ // image: "",
form: {
user_id: localStorage.getItem("id"),
lelongbid_id: "",
@@ -500,6 +525,9 @@ export default {
return this.sags.length;
}
},
+ dataUrl() {
+ // return "data:image/jpeg;base64," + this.image;
+ },
...mapGetters(["allCarts"]),
},
mounted: function () {
@@ -523,6 +551,9 @@ export default {
.then((response) => {
console.log(response);
if (response.data.success == true) {
+ // let readImage = response.data.message.lelongbid[7].filemarhun[0].filename;
+ // this.image = readImage;
+ // console.log(this.image);
this.status = true;
this.lelong_details = response.data.message;
this.response = response.data.message.lelongbid;
@@ -548,9 +579,10 @@ export default {
// // console.log("tiada");
// }
// });
-
this.norujukan = norujukan;
this.marhuns = this.norujukan.lelongbidmarhun;
+ this.reloadImageComponent += 1;
+ this.filemarhun = this.norujukan.filemarhun;
this.form.lelongbid_id = this.norujukan.id;
this.tambahan = "";
this.form.hargabida = "";
@@ -632,11 +664,4 @@ export default {
.disabled-bg {
background-color: rgb(233, 236, 239);
}
-
-.product-image {
- min-height: 200px;
- min-width: 200px;
- max-height: 350px;
- max-width: 350px;
-}
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
index d7affa8..f940d68 100644
--- a/src/main.js
+++ b/src/main.js
@@ -41,6 +41,8 @@ import Avatar from 'primevue/avatar';
import TabView from 'primevue/tabview';
import TabPanel from 'primevue/tabpanel';
import Tag from 'primevue/tag';
+import Image from 'primevue/image';
+import Galleria from 'primevue/galleria';
import TheTemplate from './components/layouts/TheTemplate.vue'
import BaseCard from './components/base/BaseCard.vue'
@@ -77,6 +79,8 @@ app.component('Toolbar', Toolbar);
app.component('TabView', TabView);
app.component('TabPanel', TabPanel);
app.component('Tag', Tag);
+app.component('Image', Image);
+app.component('Galleria', Galleria);
app.use(router).use(store).use(PrimeVue).use(VueSweetalert2).use(ToastService).mount('#app');
// app.use(router).use(store).use(PrimeVue).use(ToastService).mount('#app');