Commit 315d2a1c6db2ea16523809917e92eec17a53c7dd
Merge branch 'dev-ft' into 'main'
feat:新增企业定制按钮权限 See merge request huang/yun-teng-iot-front!224
Showing
3 changed files
with
18 additions
and
3 deletions
@@ -81,7 +81,9 @@ | @@ -81,7 +81,9 @@ | ||
81 | </BasicForm> | 81 | </BasicForm> |
82 | </Card> | 82 | </Card> |
83 | <Loading v-bind="compState" /> | 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 | </div> | 87 | </div> |
86 | </template> | 88 | </template> |
87 | 89 | ||
@@ -96,6 +98,8 @@ | @@ -96,6 +98,8 @@ | ||
96 | import { logoUpload, bgUpload } from '/@/api/oem/index'; | 98 | import { logoUpload, bgUpload } from '/@/api/oem/index'; |
97 | import { useMessage } from '/@/hooks/web/useMessage'; | 99 | import { useMessage } from '/@/hooks/web/useMessage'; |
98 | import { getAppDesign, updateAppDesign } from '/@/api/oem/index'; | 100 | import { getAppDesign, updateAppDesign } from '/@/api/oem/index'; |
101 | + import { Authority } from '/@/components/Authority'; | ||
102 | + | ||
99 | export default defineComponent({ | 103 | export default defineComponent({ |
100 | components: { | 104 | components: { |
101 | Card, | 105 | Card, |
@@ -105,6 +109,7 @@ | @@ -105,6 +109,7 @@ | ||
105 | PlusOutlined, | 109 | PlusOutlined, |
106 | Input, | 110 | Input, |
107 | Modal, | 111 | Modal, |
112 | + Authority, | ||
108 | }, | 113 | }, |
109 | setup() { | 114 | setup() { |
110 | const compState = ref({ | 115 | const compState = ref({ |
@@ -83,7 +83,9 @@ | @@ -83,7 +83,9 @@ | ||
83 | </BasicForm> | 83 | </BasicForm> |
84 | </Card> | 84 | </Card> |
85 | <Loading v-bind="compState" /> | 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 | </div> | 89 | </div> |
88 | </template> | 90 | </template> |
89 | 91 | ||
@@ -99,6 +101,8 @@ | @@ -99,6 +101,8 @@ | ||
99 | import { PlusOutlined } from '@ant-design/icons-vue'; | 101 | import { PlusOutlined } from '@ant-design/icons-vue'; |
100 | import { useUserStore } from '/@/store/modules/user'; | 102 | import { useUserStore } from '/@/store/modules/user'; |
101 | import { createLocalStorage } from '/@/utils/cache/index'; | 103 | import { createLocalStorage } from '/@/utils/cache/index'; |
104 | + import { Authority } from '/@/components/Authority'; | ||
105 | + | ||
102 | export default defineComponent({ | 106 | export default defineComponent({ |
103 | components: { | 107 | components: { |
104 | BasicForm, | 108 | BasicForm, |
@@ -107,6 +111,7 @@ | @@ -107,6 +111,7 @@ | ||
107 | Upload, | 111 | Upload, |
108 | Input, | 112 | Input, |
109 | PlusOutlined, | 113 | PlusOutlined, |
114 | + Authority, | ||
110 | }, | 115 | }, |
111 | setup() { | 116 | setup() { |
112 | const compState = ref({ | 117 | const compState = ref({ |
@@ -31,7 +31,9 @@ | @@ -31,7 +31,9 @@ | ||
31 | </BasicForm> | 31 | </BasicForm> |
32 | </Card> | 32 | </Card> |
33 | <Loading v-bind="compState" /> | 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 | </div> | 37 | </div> |
36 | </template> | 38 | </template> |
37 | 39 | ||
@@ -49,6 +51,8 @@ | @@ -49,6 +51,8 @@ | ||
49 | import { qrcodeUpload } from '/@/api/oem/index'; | 51 | import { qrcodeUpload } from '/@/api/oem/index'; |
50 | import type { FileItem } from '/@/components/Upload/src/typing'; | 52 | import type { FileItem } from '/@/components/Upload/src/typing'; |
51 | import type { CityItem, Code } from '../types'; | 53 | import type { CityItem, Code } from '../types'; |
54 | + import { Authority } from '/@/components/Authority'; | ||
55 | + | ||
52 | export default defineComponent({ | 56 | export default defineComponent({ |
53 | components: { | 57 | components: { |
54 | Card, | 58 | Card, |
@@ -56,6 +60,7 @@ | @@ -56,6 +60,7 @@ | ||
56 | Loading, | 60 | Loading, |
57 | Upload, | 61 | Upload, |
58 | PlusOutlined, | 62 | PlusOutlined, |
63 | + Authority, | ||
59 | }, | 64 | }, |
60 | setup() { | 65 | setup() { |
61 | const compState = ref({ | 66 | const compState = ref({ |