agilebuilder-ui 1.1.33 → 1.1.35-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{401-7193e896.js → 401-02854e97.js} +1 -1
- package/lib/{404-2852bd20.js → 404-7fc14953.js} +1 -1
- package/lib/{iframe-page-bcc25b1c.js → iframe-page-f229d784.js} +1 -1
- package/lib/index-73d07db3.js +73221 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +89 -89
- package/lib/{tab-content-iframe-index-48b3b846.js → tab-content-iframe-index-f6bcacf3.js} +1 -1
- package/lib/{tab-content-index-d25e4873.js → tab-content-index-4a0d7f2d.js} +1 -1
- package/lib/{tache-subprocess-history-a72dd967.js → tache-subprocess-history-dcb3009a.js} +1 -1
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +343 -368
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +113 -42
- package/packages/organization-input/src/organization-input.vue +11 -0
- package/packages/super-grid/src/apis.js +13 -13
- package/packages/super-grid/src/dynamic-input.vue +11 -1
- package/packages/super-grid/src/formatter.js +55 -56
- package/packages/super-grid/src/normal-column-content.vue +149 -56
- package/packages/super-grid/src/row-operation.vue +35 -18
- package/packages/super-grid/src/super-grid.vue +135 -97
- package/packages/super-icon/src/index.vue +35 -18
- package/src/styles/display-layout.scss +1 -1
- package/src/styles/index.scss +7 -1
- package/src/utils/auth-api.js +4 -0
- package/src/utils/common-util.js +3 -0
- package/src/utils/dingtalk-util.ts +23 -17
- package/src/utils/util.js +721 -715
- package/src/views/dsc-component/Sidebar/Item.vue +76 -60
- package/src/views/layout/components/Menubar/Item.vue +94 -74
- package/lib/index-d502d8fe.js +0 -72779
|
@@ -12,26 +12,32 @@ export function checkDingtalkEnvironment() {
|
|
|
12
12
|
window.$dd = dd
|
|
13
13
|
const nonceStr = '1234567890' // 必填,自定义固定字符串。
|
|
14
14
|
const timeStamp = new Date().getTime() // 必填,生成签名的时间戳
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
19
|
-
url: window.location.href // 必填,当前页面的url
|
|
20
|
-
})
|
|
21
|
-
.then((response: any) => {
|
|
22
|
-
dd.config({
|
|
23
|
-
agentId: response.agentId, // 必填,授权应用的agentid
|
|
24
|
-
corpId: response.corpId, //必填,企业ID
|
|
25
|
-
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
15
|
+
try {
|
|
16
|
+
window.$http
|
|
17
|
+
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
|
|
26
18
|
nonceStr: nonceStr, // 必填,自定义固定字符串。
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
|
|
19
|
+
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
20
|
+
url: window.location.href // 必填,当前页面的url
|
|
30
21
|
})
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
.then((response: any) => {
|
|
23
|
+
dd.config({
|
|
24
|
+
agentId: response.agentId, // 必填,授权应用的agentid
|
|
25
|
+
corpId: response.corpId, //必填,企业ID
|
|
26
|
+
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
27
|
+
nonceStr: nonceStr, // 必填,自定义固定字符串。
|
|
28
|
+
signature: response.signature, // 必填,签名
|
|
29
|
+
type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
|
|
30
|
+
jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
|
|
31
|
+
})
|
|
32
|
+
dd.error(function (err) {
|
|
33
|
+
window.$dd = null
|
|
34
|
+
console.error('dd error: ' + JSON.stringify(err))
|
|
35
|
+
})
|
|
33
36
|
})
|
|
34
|
-
|
|
37
|
+
} catch (e) {
|
|
38
|
+
window.$dd = null
|
|
39
|
+
console.error('DingTalk SDK initialization failed: ', e)
|
|
40
|
+
}
|
|
35
41
|
})
|
|
36
42
|
}
|
|
37
43
|
}
|