diff --git a/package.json b/package.json
index 617ce96ed..bb5f32208 100644
--- a/package.json
+++ b/package.json
@@ -58,6 +58,7 @@
"vue-cookie": "^1.1.4",
"vue-echarts": "^5.0.0-beta.0",
"vue-i18n": "^8.15.5",
+ "vue-json-editor": "^1.4.3",
"vue-moment": "^4.1.0",
"vue-password-strength-meter": "^1.7.2",
"vue-router": "3.0.6",
diff --git a/src/components/FormFields/JsonEditor.vue b/src/components/FormFields/JsonEditor.vue
new file mode 100644
index 000000000..c6fa8d167
--- /dev/null
+++ b/src/components/FormFields/JsonEditor.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/FormFields/index.js b/src/components/FormFields/index.js
index d7b0744be..fa49bde31 100644
--- a/src/components/FormFields/index.js
+++ b/src/components/FormFields/index.js
@@ -8,6 +8,7 @@ import UploadKey from './UploadKey'
import UserPassword from './UserPassword'
import WeekCronSelect from './WeekCronSelect'
import UpdateToken from './UpdateToken'
+import JsonEditor from './JsonEditor'
export default {
DatetimeRangePicker,
@@ -19,7 +20,8 @@ export default {
UploadField,
UserPassword,
WeekCronSelect,
- UpdateToken
+ UpdateToken,
+ JsonEditor
}
export {
@@ -32,5 +34,6 @@ export {
UploadField,
UserPassword,
WeekCronSelect,
- UpdateToken
+ UpdateToken,
+ JsonEditor
}
diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json
index c4406a959..c4e174f46 100644
--- a/src/i18n/langs/cn.json
+++ b/src/i18n/langs/cn.json
@@ -445,6 +445,7 @@
"lastCannotBeDeleteMsg": "最后一项,不能被删除",
"InvalidJson": "不是合法 JSON",
"time_period": "时段",
+ "FormatError": "格式错误",
"WeekCronSelect": {
"Monday": "星期一",
"Tuesday": "星期二",
diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json
index 1dcf4072e..b50a2c49c 100644
--- a/src/i18n/langs/en.json
+++ b/src/i18n/langs/en.json
@@ -468,6 +468,7 @@
"failedConditions": "cron expression error"
},
"Cycle": "Cycle",
+ "FormatError": "Format error",
"WeekCronSelect": {
"Monday": "Monday",
"Tuesday": "Tuesday",
diff --git a/src/views/settings/Auth/CAS.vue b/src/views/settings/Auth/CAS.vue
index 07c4cd260..3d99d0501 100644
--- a/src/views/settings/Auth/CAS.vue
+++ b/src/views/settings/Auth/CAS.vue
@@ -11,6 +11,8 @@