diff --git a/src/views/blockui/BlockUIDoc.vue b/src/views/blockui/BlockUIDoc.vue
index 315967062..d49114517 100755
--- a/src/views/blockui/BlockUIDoc.vue
+++ b/src/views/blockui/BlockUIDoc.vue
@@ -236,7 +236,7 @@ button {
import { ref } from 'vue';
export default {
- data() {
+ setup() {
const blockedPanel = ref(false);
const blockedDocument = ref(false);
const blockDocument = () => {
diff --git a/src/views/datatable/DataTableStateDemo.vue b/src/views/datatable/DataTableStateDemo.vue
index c90d2faf6..2ef88c5fa 100755
--- a/src/views/datatable/DataTableStateDemo.vue
+++ b/src/views/datatable/DataTableStateDemo.vue
@@ -184,7 +184,7 @@ export default {
-
+
{{slotProps.data.country.name}}
@@ -193,14 +193,14 @@ export default {
-
+
{{slotProps.data.representative.name}}
-
+
{{slotProps.option.name}}
@@ -243,7 +243,7 @@ export default {
-
+
{{slotProps.data.country.name}}
@@ -252,14 +252,14 @@ export default {
-
+
{{slotProps.data.representative.name}}
-
+
{{slotProps.option.name}}
@@ -349,7 +349,7 @@ export default {
-
+
{{slotProps.data.country.name}}
@@ -358,14 +358,14 @@ export default {
-
+
{{slotProps.data.representative.name}}
-
+
{{slotProps.option.name}}
@@ -408,7 +408,7 @@ export default {
-
+
{{slotProps.data.country.name}}
@@ -417,14 +417,14 @@ export default {
-
+
{{slotProps.data.representative.name}}
-
+
{{slotProps.option.name}}
@@ -457,13 +457,18 @@ import CustomerService from './service/CustomerService';
export default {
setup() {
+ onMounted(() => {
+ customerService.value.getCustomersMedium().then(data => customers.value = data);
+ })
+
const customers = ref();
+ const customerService = ref(new CustomerService());
const selectedCustomer1 = ref();
const selectedCustomer2 = ref();
- const filters1: {},
- const filters2: {},
- const loading: true,
- const representatives: [
+ const filters1 = ref({});
+ const filters2 = ref({});
+ const loading = ref(true);
+ const representatives = ref([
{name: "Amy Elsner", image: 'amyelsner.png'},
{name: "Anna Fali", image: 'annafali.png'},
{name: "Asiya Javayant", image: 'asiyajavayant.png'},
@@ -474,17 +479,12 @@ export default {
{name: "Onyama Limba", image: 'onyamalimba.png'},
{name: "Stephen Shaw", image: 'stephenshaw.png'},
{name: "XuXue Feng", image: 'xuxuefeng.png'}
- ],
- statuses: [
+ ]);
+ const statuses = ref([
'unqualified', 'qualified', 'new', 'negotiation', 'renewal', 'proposal'
- ]
- },
- customerService: null,
- created() {
- this.customerService = new CustomerService();
- },
- mounted() {
- this.customerService.getCustomersMedium().then(data => this.customers = data);
+ ]);
+
+ return { customers, customerService, selectedCustomer1, selectedCustomer2, filters1, filters2, loading, representatives, statuses }
}
}
<\\/script>