mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 12:01:05 +03:30
complete ticket
This commit is contained in:
@@ -72,7 +72,6 @@
|
||||
|
||||
<v-list>
|
||||
<router-link
|
||||
v-ripple
|
||||
class="toolbar-items"
|
||||
:to="{name: 'MyInfo'}"
|
||||
>
|
||||
@@ -83,7 +82,6 @@
|
||||
|
||||
|
||||
<router-link
|
||||
v-ripple
|
||||
class="toolbar-items"
|
||||
:to="{name: 'Tickets'}"
|
||||
>
|
||||
@@ -116,7 +114,7 @@
|
||||
</v-card>
|
||||
</v-menu>
|
||||
|
||||
<v-badge v-ripple class="toolbar-items Pointer" @click.native="submitLogout" >
|
||||
<v-badge class="toolbar-items Pointer" @click.native="submitLogout" >
|
||||
<v-icon color="tertiary">input</v-icon>
|
||||
</v-badge>
|
||||
</v-flex>
|
||||
|
||||
@@ -38,7 +38,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
search(val) {
|
||||
val && this.querySelections(val);
|
||||
val && val.length > 2 && this.querySelections(val);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -48,7 +48,6 @@ export default {
|
||||
const result = await ApiService.get(urls.userSearch(val));
|
||||
if (result && result.data.data) {
|
||||
this.items = result.data.data;
|
||||
this.user_id = this.data.data.id;
|
||||
this.loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import { ApiService } from "@/services";
|
||||
import { urls } from "@/config/urls";
|
||||
import toast from "@/services/global/toast.service";
|
||||
import { mapMutations } from "vuex";
|
||||
import { mapMutations, mapGetters } from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -47,17 +47,26 @@ export default {
|
||||
this.form.user_id = this.userId;
|
||||
},
|
||||
methods: {
|
||||
...mapMutations("modal", ["closeModal"]),
|
||||
...mapMutations("modal", ["closeModal", "setResultModal"]),
|
||||
async register() {
|
||||
if(this.userId > 0) {
|
||||
const result = await ApiService.post( urls.storeMessages, this.form );
|
||||
if (result && result.status == 200) {
|
||||
this.setResultModal(Math.random(12));
|
||||
this.closeModal();
|
||||
}
|
||||
} else {
|
||||
toast.error('please Select User');
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
userId(val) {
|
||||
this.form.user_id = val;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters("modal", ["getModalProperties"])
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user