mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 23:31:05 +03:30
change Ticket
This commit is contained in:
@@ -1,72 +1,71 @@
|
||||
<template>
|
||||
<div id="">
|
||||
<v-container >
|
||||
<material-card class color="black" title="Show Message" text max-width="600px">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12>
|
||||
<div class="mx-2 my-3">
|
||||
<span class="Chat White">Listen to your favorite artists and albums.</span>
|
||||
</div>
|
||||
<div class="mx-2 my-3" style="float:right">
|
||||
<span class="Chat Cyan ">Listen to your favorite artists and albums.</span>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-card-text>
|
||||
<v-container grid-list-md>
|
||||
<h5>Send Message</h5>
|
||||
<v-flex xs12 sm12 md12>
|
||||
<v-textarea
|
||||
name="input-7-1"
|
||||
color="black"
|
||||
label="Default style"
|
||||
value="The Woodman set to work at once, and so sharp was his axe that the tree was soon chopped nearly through."
|
||||
hint="Hint text"
|
||||
></v-textarea>
|
||||
</v-flex>
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-layout row wrap>
|
||||
<v-btn color="pink" class="WM-ActionButton text-lg-left">
|
||||
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
|
||||
<span>Cancel</span>
|
||||
</v-btn>
|
||||
<v-btn color="black" class="mr-2 WM-ActionButton">
|
||||
<v-icon class="white--text mr-2 caption">fas fa-chevron-right</v-icon>
|
||||
<span>Send</span>
|
||||
</v-btn>
|
||||
</v-layout>
|
||||
</v-card-actions>
|
||||
<!-- </v-card> -->
|
||||
</v-layout>
|
||||
</material-card>
|
||||
</v-container>
|
||||
</div>
|
||||
<div>
|
||||
<v-container>
|
||||
<material-card class color="black" title="Show Message" text max-width="600px">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12>
|
||||
<div
|
||||
class="mx-2 my-3"
|
||||
v-for="item in items"
|
||||
:key="item.id"
|
||||
:style="(item.sender_user_id == user_id) ? '' : 'float:right' "
|
||||
>
|
||||
<span
|
||||
v-if="item.sender_user_id == user_id"
|
||||
class="Chat White"
|
||||
>{{ item.text }}</span>
|
||||
<span v-else class="Chat Cyan">{{ item.text }}</span>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<ticket-send-message :user-id="user_id" />
|
||||
</material-card>
|
||||
</v-container>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { ApiService } from "@/services";
|
||||
import { urls } from "@/config/urls";
|
||||
import { mapGetters } from "vuex";
|
||||
export default {
|
||||
name: "",
|
||||
data: () => ({
|
||||
|
||||
})
|
||||
}
|
||||
data() {
|
||||
return {
|
||||
user_id: 0,
|
||||
items: {}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.user_id = this.getModalProperties.user_id;
|
||||
this.load();
|
||||
},
|
||||
computed: {
|
||||
...mapGetters("modal", ["getModalProperties"])
|
||||
},
|
||||
methods: {
|
||||
async load() {
|
||||
const result = await ApiService.get(
|
||||
urls.showMessages(this.user_id)
|
||||
);
|
||||
if (result && result.data.data) {
|
||||
this.items = result.data.data;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.Chat {
|
||||
|
||||
padding: 10px 15px;
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
padding: 10px 15px;
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.Chat.Cyan {
|
||||
background: cornflowerblue;
|
||||
box-shadow: 5px 15px 20px rgba(0,0,0,.2)
|
||||
background: cornflowerblue;
|
||||
box-shadow: 5px 15px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.Chat.White {
|
||||
background: #fff;
|
||||
color:black;
|
||||
box-shadow: 5px 15px 20px rgba(0,0,0,.2)
|
||||
background: #fff;
|
||||
color: black;
|
||||
box-shadow: 5px 15px 20px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user