Showing
3 changed files
with
18 additions
and
3 deletions
... | ... | @@ -81,7 +81,9 @@ |
81 | 81 | </BasicForm> |
82 | 82 | </Card> |
83 | 83 | <Loading v-bind="compState" /> |
84 | - <a-button @click="handleUpdateInfo" type="primary" class="mt-4">保存信息</a-button> | |
84 | + <Authority value="api:yt:admin:customizeSaveApp"> | |
85 | + <a-button @click="handleUpdateInfo" type="primary" class="mt-4">保存信息</a-button> | |
86 | + </Authority> | |
85 | 87 | </div> |
86 | 88 | </template> |
87 | 89 | |
... | ... | @@ -96,6 +98,8 @@ |
96 | 98 | import { logoUpload, bgUpload } from '/@/api/oem/index'; |
97 | 99 | import { useMessage } from '/@/hooks/web/useMessage'; |
98 | 100 | import { getAppDesign, updateAppDesign } from '/@/api/oem/index'; |
101 | + import { Authority } from '/@/components/Authority'; | |
102 | + | |
99 | 103 | export default defineComponent({ |
100 | 104 | components: { |
101 | 105 | Card, |
... | ... | @@ -105,6 +109,7 @@ |
105 | 109 | PlusOutlined, |
106 | 110 | Input, |
107 | 111 | Modal, |
112 | + Authority, | |
108 | 113 | }, |
109 | 114 | setup() { |
110 | 115 | const compState = ref({ | ... | ... |
... | ... | @@ -83,7 +83,9 @@ |
83 | 83 | </BasicForm> |
84 | 84 | </Card> |
85 | 85 | <Loading v-bind="compState" /> |
86 | - <a-button @click="handleUpdateInfo" type="primary" class="mt-4">保存信息</a-button> | |
86 | + <Authority value="api:yt:admin:customizeSavePlatform"> | |
87 | + <a-button @click="handleUpdateInfo" type="primary" class="mt-4">保存信息</a-button> | |
88 | + </Authority> | |
87 | 89 | </div> |
88 | 90 | </template> |
89 | 91 | |
... | ... | @@ -99,6 +101,8 @@ |
99 | 101 | import { PlusOutlined } from '@ant-design/icons-vue'; |
100 | 102 | import { useUserStore } from '/@/store/modules/user'; |
101 | 103 | import { createLocalStorage } from '/@/utils/cache/index'; |
104 | + import { Authority } from '/@/components/Authority'; | |
105 | + | |
102 | 106 | export default defineComponent({ |
103 | 107 | components: { |
104 | 108 | BasicForm, |
... | ... | @@ -107,6 +111,7 @@ |
107 | 111 | Upload, |
108 | 112 | Input, |
109 | 113 | PlusOutlined, |
114 | + Authority, | |
110 | 115 | }, |
111 | 116 | setup() { |
112 | 117 | const compState = ref({ | ... | ... |
... | ... | @@ -31,7 +31,9 @@ |
31 | 31 | </BasicForm> |
32 | 32 | </Card> |
33 | 33 | <Loading v-bind="compState" /> |
34 | - <a-button @click="handleUpdateInfo" type="primary" class="mt-4">更新基本信息</a-button> | |
34 | + <Authority value="api:yt:admin:customizeUpdate"> | |
35 | + <a-button @click="handleUpdateInfo" type="primary" class="mt-4">更新基本信息</a-button> | |
36 | + </Authority> | |
35 | 37 | </div> |
36 | 38 | </template> |
37 | 39 | |
... | ... | @@ -49,6 +51,8 @@ |
49 | 51 | import { qrcodeUpload } from '/@/api/oem/index'; |
50 | 52 | import type { FileItem } from '/@/components/Upload/src/typing'; |
51 | 53 | import type { CityItem, Code } from '../types'; |
54 | + import { Authority } from '/@/components/Authority'; | |
55 | + | |
52 | 56 | export default defineComponent({ |
53 | 57 | components: { |
54 | 58 | Card, |
... | ... | @@ -56,6 +60,7 @@ |
56 | 60 | Loading, |
57 | 61 | Upload, |
58 | 62 | PlusOutlined, |
63 | + Authority, | |
59 | 64 | }, |
60 | 65 | setup() { |
61 | 66 | const compState = ref({ | ... | ... |