diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index a6cfe9e4a..3ca213622 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -655,6 +655,11 @@ }, "perms": { "": "", + "AllAccounts": "All accounts", + "ManualInput": "Manual input", + "SameAccount": "Same account", + "SpecifyInput": "Specify input", + "Input": "Input", "permAccount": "Accounts", "Actions": "Actions", "Permission": "Permissions", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index e422fdee3..39c56ab6b 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -662,6 +662,11 @@ }, "perms": { "": "", + "AllAccounts": "すべてのアカウント", + "ManualInput": "手動入力", + "SameAccount": "同じ名前のアカウント", + "SpecifyInput": "入力の指定", + "Input": "入力", "permAccount": "認定アカウント", "Actions": "アクション", "Asset": "資産", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index e09a586a0..b5421f13c 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -685,6 +685,11 @@ }, "perms": { "": "", + "AllAccounts": "所有账号", + "ManualInput": "手动输入", + "SameAccount": "同名账号", + "SpecifyInput": "指定输入", + "Input": "输入", "Account": "账号", "permAccount": "授权账号", "Actions": "动作", diff --git a/src/views/perms/AssetPermission/AssetPermissionCreateUpdate.vue b/src/views/perms/AssetPermission/AssetPermissionCreateUpdate.vue index de4151d54..60959ab11 100644 --- a/src/views/perms/AssetPermission/AssetPermissionCreateUpdate.vue +++ b/src/views/perms/AssetPermission/AssetPermissionCreateUpdate.vue @@ -108,11 +108,6 @@ export default { type: 'checkbox' } }, - afterGetFormValue(validValues) { - console.log('>>>', validValues, validValues.accounts) - validValues.accounts = validValues.accounts ? validValues.accounts.toString() : '' - return validValues - }, cleanFormValue(value) { if (!Array.isArray(value.accounts)) { value.accounts = value.accounts ? value.accounts.split(',') : [] diff --git a/src/views/perms/AssetPermission/components/AccountFormatter.vue b/src/views/perms/AssetPermission/components/AccountFormatter.vue index 40030138c..b8594d8da 100644 --- a/src/views/perms/AssetPermission/components/AccountFormatter.vue +++ b/src/views/perms/AssetPermission/components/AccountFormatter.vue @@ -1,27 +1,116 @@ @@ -29,5 +118,4 @@ export default { .select >>> .el-input.el-input--suffix { width: 100px } - diff --git a/src/views/perms/AssetPermission/components/TagInput.vue b/src/views/perms/AssetPermission/components/TagInput.vue new file mode 100644 index 000000000..6cf2a9d22 --- /dev/null +++ b/src/views/perms/AssetPermission/components/TagInput.vue @@ -0,0 +1,95 @@ + + + + +