mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
fix: 修复绑定企业微信&钉钉的一些问题
This commit is contained in:
@@ -856,6 +856,8 @@
|
||||
"Expire": " 过期",
|
||||
"WeCom": "企业微信",
|
||||
"DingTalk": "钉钉",
|
||||
"dingTalkTest": "测试",
|
||||
"weComTest": "测试",
|
||||
"setting": "设置"
|
||||
},
|
||||
"tickets": {
|
||||
|
||||
@@ -851,6 +851,8 @@
|
||||
"Expire": "",
|
||||
"WeCom": "WeCom",
|
||||
"DingTalk": "DingTalk",
|
||||
"dingTalkTest": "Test",
|
||||
"weComTest": "Test",
|
||||
"setting": "Setting"
|
||||
},
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:url="url"
|
||||
:get-method="getMethod"
|
||||
:fields-meta="fieldsMeta"
|
||||
:more-buttons="moreButtons"
|
||||
:has-detail-in-msg="false"
|
||||
/>
|
||||
</IBox>
|
||||
@@ -21,8 +22,24 @@ export default {
|
||||
GenericCreateUpdateForm
|
||||
},
|
||||
data() {
|
||||
const vm = this
|
||||
return {
|
||||
url: '/api/v1/settings/setting/?category=dingtalk',
|
||||
moreButtons: [
|
||||
{
|
||||
title: this.$t('setting.dingTalkTest'),
|
||||
callback: function(value, form) {
|
||||
vm.$axios.post(
|
||||
'/api/v1/settings/dingtalk/testing/',
|
||||
value
|
||||
).then(res => {
|
||||
vm.$message.success(res['msg'])
|
||||
}).catch(err => {
|
||||
vm.$message.error(err['response']['data']['error'])
|
||||
})
|
||||
}
|
||||
}
|
||||
],
|
||||
fields: [
|
||||
[
|
||||
this.$t('common.BasicInfo'),
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:url="url"
|
||||
:get-method="getMethod"
|
||||
:fields-meta="fieldsMeta"
|
||||
:more-buttons="moreButtons"
|
||||
:has-detail-in-msg="false"
|
||||
/>
|
||||
</IBox>
|
||||
@@ -21,8 +22,24 @@ export default {
|
||||
GenericCreateUpdateForm
|
||||
},
|
||||
data() {
|
||||
const vm = this
|
||||
return {
|
||||
url: '/api/v1/settings/setting/?category=wecom',
|
||||
moreButtons: [
|
||||
{
|
||||
title: this.$t('setting.weComTest'),
|
||||
callback: function(value, form) {
|
||||
vm.$axios.post(
|
||||
'/api/v1/settings/wecom/testing/',
|
||||
value
|
||||
).then(res => {
|
||||
vm.$message.success(res['msg'])
|
||||
}).catch(err => {
|
||||
vm.$message.error(err['response']['data']['error'])
|
||||
})
|
||||
}
|
||||
}
|
||||
],
|
||||
fields: [
|
||||
[
|
||||
this.$t('common.BasicInfo'),
|
||||
|
||||
Reference in New Issue
Block a user