perf: ticket bug

This commit is contained in:
feng 2023-02-09 18:05:37 +08:00
parent 51d30f3275
commit 847d3a331b
2 changed files with 8 additions and 9 deletions

View File

@ -34,8 +34,8 @@ export default {
url: this.url,
columnsExclude: ['process_map', 'rel_snapshot'],
columnsShow: {
min: ['title', 'type', 'state', 'actions'],
default: ['title', 'type', 'state', 'status', 'actions']
min: ['title', 'serial_num', 'type', 'state', 'date_created'],
default: ['title', 'serial_num', 'type', 'state', 'status', 'date_created']
},
columnsMeta: {
serial_num: {

View File

@ -19,7 +19,7 @@
<el-form-item :label="$tc('tickets.Asset')">
<Select2 v-model="requestForm.assets" v-bind="assetSelect2" style="width: 50% !important" />
</el-form-item>
<el-form-item :label="$tc('tickets.SystemUser')" :rules="isRequired">
<el-form-item :label="$tc('perms.Account')" :rules="isRequired">
<AccountFormatter v-model="requestForm.accounts" style="width: 50% !important" />
</el-form-item>
<el-form-item :label="$tc('common.DateStart')" required>
@ -119,14 +119,14 @@ export default {
return [
{
key: this.$tc('perms.Node'),
value: object.apply_nodes.map(item => item.value).join(', ')
value: object.apply_nodes.map(item => item.name).join(', ')
},
{
key: this.$tc('tickets.Asset'),
value: object.apply_assets.map(item => item.name).join(', ')
},
{
key: this.$tc('assets.Accounts'),
key: this.$tc('perms.Account'),
value: object.apply_accounts.join(', ')
},
{
@ -146,7 +146,6 @@ export default {
assignedCardItems() {
const vm = this
const { object } = this
const rel_snapshot = object.rel_snapshot
return [
{
key: this.$tc('tickets.PermissionName'),
@ -162,14 +161,14 @@ export default {
},
{
key: this.$tc('perms.Node'),
value: rel_snapshot.apply_nodes.map(item => item.value).join(', ')
value: object.apply_nodes.map(item => item.name).join(', ')
},
{
key: this.$tc('assets.Asset'),
value: rel_snapshot.apply_assets.map(item => item.name).join(', ')
value: object.apply_assets.map(item => item.name).join(', ')
},
{
key: this.$tc('perms.Accounts'),
key: this.$tc('perms.Account'),
value: (object.apply_accounts || []).join(', ')
},
{