mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
hide id
This commit is contained in:
@@ -46,12 +46,17 @@
|
||||
<tr v-if="contract_template_list.data" v-for="(contract, $index) in contract_template_list.data" :key="$index">
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>
|
||||
<div><b>Hash Id</b>: {{ contract.hash_id }}</div>
|
||||
<div><b>Name</b>: {{ contract.name }}</div>
|
||||
<div><b>Complete Day Range</b>: {{ contract.complete_day_range }}</div>
|
||||
</td>
|
||||
<td>
|
||||
<div v-if="contract.contract_template_obligation_list" v-for="(obligation, $index) in contract.contract_template_obligation_list" :key="$index">
|
||||
<div>-{{ obligation.name }} <small>({{ obligation.sequence }})</small></div>
|
||||
<div>
|
||||
-{{ obligation.name }}
|
||||
<small>({{ obligation.hash_id }})</small>
|
||||
<small>({{ obligation.sequence }})</small>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!contract.contract_template_obligation_list[0]">
|
||||
-
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
<div v-if="filter_status" class="filter dropdown-menu show">
|
||||
<contract-template-filter
|
||||
<entity-template-filter
|
||||
:form="form"
|
||||
@clicked="filterSubmit"
|
||||
@reset="FilterReset"
|
||||
></contract-template-filter>
|
||||
></entity-template-filter>
|
||||
</div>
|
||||
</b-col>
|
||||
<b-col md="6" v-if="permission_list.includes('add contract')" class="text-right">
|
||||
<b-col md="6" v-if="permission_list.includes('add entity')" class="text-right">
|
||||
<router-link
|
||||
class="btn btn-primary"
|
||||
to="create"
|
||||
@@ -42,21 +42,22 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-if="entity_list.data" v-for="(contract, $index) in entity_list.data" :key="$index">
|
||||
<tr v-if="entity_list.data" v-for="(entity, $index) in entity_list.data" :key="$index">
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>
|
||||
<div><b>Name</b>: {{ contract.name }}</div>
|
||||
<div><b>Hash Id</b>: {{ entity.hash_id }}</div>
|
||||
<div><b>Name</b>: {{ entity.name }}</div>
|
||||
</td>
|
||||
<td>
|
||||
<span :class="'badge badge-' + contract.status[0].color">{{ contract.status[0].name }}</span>
|
||||
<span :class="'badge badge-' + entity.status[0].color">{{ entity.status[0].name }}</span>
|
||||
</td>
|
||||
<td>
|
||||
{{ contract.created_at }}
|
||||
{{ entity.created_at }}
|
||||
</td>
|
||||
<td>
|
||||
<router-link
|
||||
v-if="permission_list.includes('edit contract')"
|
||||
:to="'edit/' + contract.hash_id"
|
||||
v-if="permission_list.includes('edit entity')"
|
||||
:to="'edit/' + entity.hash_id"
|
||||
class="btn btn-xs btn-light"
|
||||
title="Edit"
|
||||
>
|
||||
@@ -91,12 +92,12 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ContractTemplateFilter from "./Filter";
|
||||
import entityTemplateFilter from "./Filter";
|
||||
import PaginateNav from '../../components/paginations/NextPerviousPagination';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ContractTemplateFilter,
|
||||
entityTemplateFilter,
|
||||
PaginateNav
|
||||
},
|
||||
data() {
|
||||
@@ -122,7 +123,7 @@
|
||||
vm.permission_list = response.data.permission_list;
|
||||
});
|
||||
},
|
||||
getContractTemplateList() {
|
||||
getentityTemplateList() {
|
||||
let vm = this;
|
||||
let url = 'entity/list';
|
||||
vm.tableCall(url);
|
||||
@@ -178,7 +179,7 @@
|
||||
created() {
|
||||
let vm = this;
|
||||
vm.getPermissionList();
|
||||
vm.getContractTemplateList();
|
||||
vm.getentityTemplateList();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user