|
|
@@ -263,18 +263,18 @@
|
|
|
/>
|
|
|
<el-table-column :label="$t.value.Action">
|
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
- text
|
|
|
- type="primary"
|
|
|
- :disabled="scope.row.is_system"
|
|
|
- @click="openTypeForm($t.value.modify, scope.row)"
|
|
|
- >{{ $t.value.modify }}</el-button>
|
|
|
- <el-button
|
|
|
- text
|
|
|
- type="danger"
|
|
|
- :disabled="scope.row.is_system"
|
|
|
- @click="deleteType(scope.row.ID)"
|
|
|
- >{{ $t.value.remove }}</el-button>
|
|
|
+ <template v-if="!scope.row.is_system">
|
|
|
+ <el-button
|
|
|
+ text
|
|
|
+ type="primary"
|
|
|
+ @click="openTypeForm($t.value.modify, scope.row)"
|
|
|
+ >{{ $t.value.modify }}</el-button>
|
|
|
+ <el-button
|
|
|
+ text
|
|
|
+ type="danger"
|
|
|
+ @click="deleteType(scope.row.ID)"
|
|
|
+ >{{ $t.value.remove }}</el-button>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|