eztech-core-components 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/comps/CoreFormTable.vue
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
:locales="locales"
|
|
28
28
|
:locale.sync="locale"
|
|
29
29
|
:is-admin="isAdmin"
|
|
30
|
+
:read-only="isReadonly"
|
|
30
31
|
:is-sub="true"
|
|
31
32
|
:statuses="statuses"
|
|
32
33
|
:status-count="statusCount"
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
:level="parentLevel || level"
|
|
58
59
|
:unsaved-changes="unsavedChanges"
|
|
59
60
|
:is-admin="isAdmin"
|
|
61
|
+
:read-only="isReadonly"
|
|
60
62
|
@set-unsaved-changes="set_unsaved_changes"
|
|
61
63
|
@restore-password="handleRestorePassword"
|
|
62
64
|
@close="handleClose"
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
:locales="locales"
|
|
82
84
|
default-size="small"
|
|
83
85
|
no-padding
|
|
86
|
+
:disabled="isReadonly"
|
|
84
87
|
@temp-change="handleTempChange"
|
|
85
88
|
@locale-change="handleLocaleChange"
|
|
86
89
|
/>
|
|
@@ -88,6 +91,7 @@
|
|
|
88
91
|
</div>
|
|
89
92
|
</template>
|
|
90
93
|
<script>
|
|
94
|
+
import { isReadonly } from 'vue'
|
|
91
95
|
import { tableData, tableMethods, tableComputed, tableWatch, getAsyncData } from '../utils/table-helper'
|
|
92
96
|
export default {
|
|
93
97
|
name: 'CoreFormTable',
|
|
@@ -142,6 +146,9 @@ export default {
|
|
|
142
146
|
},
|
|
143
147
|
isAdmin () {
|
|
144
148
|
return this.groupName === 'EXPERTS' && this.tableName === 'reg_expert_types'
|
|
149
|
+
},
|
|
150
|
+
isReadonly () {
|
|
151
|
+
return this.table_name === 'hrm_users' && this.rootApiId === '62504707439988841'
|
|
145
152
|
}
|
|
146
153
|
},
|
|
147
154
|
watch: {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<core-duration-justified :value="getValue(col, scope.row)" />
|
|
15
15
|
</div>
|
|
16
16
|
<div
|
|
17
|
-
v-else-if="['image', 'profileImage'].includes(col.col_type)"
|
|
17
|
+
v-else-if="['image', 'profileImage', 'icon'].includes(col.col_type)"
|
|
18
18
|
:class="['h-full flex items-center w-full', {
|
|
19
19
|
'justify-center': col.props.align === 'center',
|
|
20
20
|
'justify-end': col.props.align === 'right'
|