Showing
9 changed files
with
21 additions
and
18 deletions
@@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
37 | </a-button> | 37 | </a-button> |
38 | </template> | 38 | </template> |
39 | <template #status="{ record }"> | 39 | <template #status="{ record }"> |
40 | - <Authority value="api:yt:alarm:profile:status"> | 40 | + <Authority value="api:yt:alarm:profile:update"> |
41 | <Switch | 41 | <Switch |
42 | :checked="record.status === 1" | 42 | :checked="record.status === 1" |
43 | :loading="record.pendingStatus" | 43 | :loading="record.pendingStatus" |
@@ -47,7 +47,7 @@ | @@ -47,7 +47,7 @@ | ||
47 | /> | 47 | /> |
48 | </Authority> | 48 | </Authority> |
49 | <Tag | 49 | <Tag |
50 | - v-if="!hasPermission('api:yt:alarm:profile:status')" | 50 | + v-if="!hasPermission('api:yt:alarm:profile:update')" |
51 | :color="record.status ? 'green' : 'red'" | 51 | :color="record.status ? 'green' : 'red'" |
52 | > | 52 | > |
53 | {{ record.status ? '启用' : '禁用' }} | 53 | {{ record.status ? '启用' : '禁用' }} |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | </Authority> | 22 | </Authority> |
23 | </template> | 23 | </template> |
24 | <template #status="{ record }"> | 24 | <template #status="{ record }"> |
25 | - <Authority value="api:yt:message:status"> | 25 | + <Authority value="api:yt:message:update"> |
26 | <Switch | 26 | <Switch |
27 | :checked="record.status === 1" | 27 | :checked="record.status === 1" |
28 | :loading="record.pendingStatus" | 28 | :loading="record.pendingStatus" |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | /> | 32 | /> |
33 | </Authority> | 33 | </Authority> |
34 | <Tag | 34 | <Tag |
35 | - v-if="!hasPermission('api:yt:message:status')" | 35 | + v-if="!hasPermission('api:yt:message:update')" |
36 | :color="record.status ? 'green' : 'red'" | 36 | :color="record.status ? 'green' : 'red'" |
37 | > | 37 | > |
38 | {{ record.status ? '启用' : '禁用' }} | 38 | {{ record.status ? '启用' : '禁用' }} |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | </a-button> | 22 | </a-button> |
23 | </template> | 23 | </template> |
24 | <template #status="{ record }"> | 24 | <template #status="{ record }"> |
25 | - <Authority value="api:yt:template:status"> | 25 | + <Authority value="api:yt:template:update"> |
26 | <Switch | 26 | <Switch |
27 | :checked="record.status === 1" | 27 | :checked="record.status === 1" |
28 | :loading="record.pendingStatus" | 28 | :loading="record.pendingStatus" |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | /> | 32 | /> |
33 | </Authority> | 33 | </Authority> |
34 | <Tag | 34 | <Tag |
35 | - v-if="!hasPermission('api:yt:template:status')" | 35 | + v-if="!hasPermission('api:yt:template:update')" |
36 | :color="record.status ? 'green' : 'red'" | 36 | :color="record.status ? 'green' : 'red'" |
37 | > | 37 | > |
38 | {{ record.status ? '启用' : '禁用' }} | 38 | {{ record.status ? '启用' : '禁用' }} |
@@ -74,7 +74,7 @@ | @@ -74,7 +74,7 @@ | ||
74 | /> | 74 | /> |
75 | </template> | 75 | </template> |
76 | <template #configStatus="{ record }"> | 76 | <template #configStatus="{ record }"> |
77 | - <Authority :value="PermissionReportConfigEnum.PERMISSION_STATUS"> | 77 | + <Authority :value="PermissionReportConfigEnum.PERMISSION_UPDATE"> |
78 | <Switch | 78 | <Switch |
79 | :disabled="disabledSwitch" | 79 | :disabled="disabledSwitch" |
80 | :checked="record.status === 1" | 80 | :checked="record.status === 1" |
@@ -85,7 +85,7 @@ | @@ -85,7 +85,7 @@ | ||
85 | /> | 85 | /> |
86 | </Authority> | 86 | </Authority> |
87 | <Tag | 87 | <Tag |
88 | - v-if="!hasPermission(PermissionReportConfigEnum.PERMISSION_STATUS)" | 88 | + v-if="!hasPermission(PermissionReportConfigEnum.PERMISSION_UPDATE)" |
89 | :color="record.status ? 'green' : 'red'" | 89 | :color="record.status ? 'green' : 'red'" |
90 | > | 90 | > |
91 | {{ record.status ? '启用' : '禁用' }} | 91 | {{ record.status ? '启用' : '禁用' }} |
@@ -79,7 +79,7 @@ | @@ -79,7 +79,7 @@ | ||
79 | /> | 79 | /> |
80 | </template> | 80 | </template> |
81 | <template #status="{ record }"> | 81 | <template #status="{ record }"> |
82 | - <Authority :value="PermissionDataFlowEnum.PERMISSION_STATUS"> | 82 | + <Authority :value="PermissionDataFlowEnum.PERMISSION_UPDATE"> |
83 | <Switch | 83 | <Switch |
84 | :checked="record.status === 1" | 84 | :checked="record.status === 1" |
85 | :loading="record.pendingStatus" | 85 | :loading="record.pendingStatus" |
@@ -89,7 +89,7 @@ | @@ -89,7 +89,7 @@ | ||
89 | /> | 89 | /> |
90 | </Authority> | 90 | </Authority> |
91 | <Tag | 91 | <Tag |
92 | - v-if="!hasPermission(PermissionDataFlowEnum.PERMISSION_STATUS)" | 92 | + v-if="!hasPermission(PermissionDataFlowEnum.PERMISSION_UPDATE)" |
93 | :color="record.status ? 'green' : 'red'" | 93 | :color="record.status ? 'green' : 'red'" |
94 | > | 94 | > |
95 | {{ record.status ? '启用' : '禁用' }} | 95 | {{ record.status ? '启用' : '禁用' }} |
@@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
50 | </template> | 50 | </template> |
51 | 51 | ||
52 | <template #status="{ record }"> | 52 | <template #status="{ record }"> |
53 | - <Authority value="api:yt:sceneLinkage:status"> | 53 | + <Authority value="api:yt:sceneLinkage:update"> |
54 | <Switch | 54 | <Switch |
55 | :checked="record.status === 1" | 55 | :checked="record.status === 1" |
56 | :loading="record.pendingStatus" | 56 | :loading="record.pendingStatus" |
@@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
60 | /> | 60 | /> |
61 | </Authority> | 61 | </Authority> |
62 | <Tag | 62 | <Tag |
63 | - v-if="!hasPermission('api:yt:sceneLinkage:status')" | 63 | + v-if="!hasPermission('api:yt:sceneLinkage:update')" |
64 | :color="record.status ? 'green' : 'red'" | 64 | :color="record.status ? 'green' : 'red'" |
65 | > | 65 | > |
66 | {{ record.status ? '启用' : '禁用' }} | 66 | {{ record.status ? '启用' : '禁用' }} |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </Authority> | 17 | </Authority> |
18 | </template> | 18 | </template> |
19 | <template #status="{ record }"> | 19 | <template #status="{ record }"> |
20 | - <Authority value="api:yt:convert:js:status"> | 20 | + <Authority value="api:yt:convert:js:update"> |
21 | <Switch | 21 | <Switch |
22 | :checked="record.status === 1" | 22 | :checked="record.status === 1" |
23 | :loading="record.pendingStatus" | 23 | :loading="record.pendingStatus" |
@@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
27 | /> | 27 | /> |
28 | </Authority> | 28 | </Authority> |
29 | <Tag | 29 | <Tag |
30 | - v-if="!hasPermission('api:yt:convert:js:status')" | 30 | + v-if="!hasPermission('api:yt:convert:js:update')" |
31 | :color="record.status ? 'green' : 'red'" | 31 | :color="record.status ? 'green' : 'red'" |
32 | > | 32 | > |
33 | {{ record.status ? '启用' : '禁用' }} | 33 | {{ record.status ? '启用' : '禁用' }} |
@@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
71 | /> | 71 | /> |
72 | </template> | 72 | </template> |
73 | <template #status="{ record }"> | 73 | <template #status="{ record }"> |
74 | - <Authority :value="PermissionConvertScriptEnum.PERMISSION_UPDATE_STATUS"> | 74 | + <Authority :value="PermissionConvertScriptEnum.PERMISSION_UPDATE"> |
75 | <Switch | 75 | <Switch |
76 | :checked="record.status === 1" | 76 | :checked="record.status === 1" |
77 | :loading="record.pendingStatus" | 77 | :loading="record.pendingStatus" |
@@ -81,7 +81,7 @@ | @@ -81,7 +81,7 @@ | ||
81 | /> | 81 | /> |
82 | </Authority> | 82 | </Authority> |
83 | <Tag | 83 | <Tag |
84 | - v-if="!hasPermission(PermissionConvertScriptEnum.PERMISSION_UPDATE_STATUS)" | 84 | + v-if="!hasPermission(PermissionConvertScriptEnum.PERMISSION_UPDATE)" |
85 | :color="record.status ? 'green' : 'red'" | 85 | :color="record.status ? 'green' : 'red'" |
86 | > | 86 | > |
87 | {{ record.status ? '启用' : '禁用' }} | 87 | {{ record.status ? '启用' : '禁用' }} |
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | </Authority> | 21 | </Authority> |
22 | </template> | 22 | </template> |
23 | <template #status="{ record }"> | 23 | <template #status="{ record }"> |
24 | - <Authority value="api:yt:role:status"> | 24 | + <Authority value="api:yt:role:saveOrUpdateRoleInfoWithMenu:update"> |
25 | <Switch | 25 | <Switch |
26 | :checked="record.status === 1" | 26 | :checked="record.status === 1" |
27 | :loading="record.pendingStatus" | 27 | :loading="record.pendingStatus" |
@@ -30,7 +30,10 @@ | @@ -30,7 +30,10 @@ | ||
30 | @change="(checked:boolean)=>statusChange(checked,record)" | 30 | @change="(checked:boolean)=>statusChange(checked,record)" |
31 | /> | 31 | /> |
32 | </Authority> | 32 | </Authority> |
33 | - <Tag v-if="!hasPermission('api:yt:role:status')" :color="record.status ? 'green' : 'red'"> | 33 | + <Tag |
34 | + v-if="!hasPermission('api:yt:role:saveOrUpdateRoleInfoWithMenu:update')" | ||
35 | + :color="record.status ? 'green' : 'red'" | ||
36 | + > | ||
34 | {{ record.status ? '启用' : '禁用' }} | 37 | {{ record.status ? '启用' : '禁用' }} |
35 | </Tag> | 38 | </Tag> |
36 | </template> | 39 | </template> |