diff --git a/front/src/styles/index.scss b/front/src/styles/index.scss index b50413287b48846fafb4838bd13a545174ca75b8..3aebfe2b4cc1ebbe138cc47551d887424795d5d3 100644 --- a/front/src/styles/index.scss +++ b/front/src/styles/index.scss @@ -194,7 +194,18 @@ fieldset {border: 1px solid #DCDFE6;padding: 20px;} margin-bottom: 2px; } } - +.param-table1 { + .el-form { + width: 100%; + display: inline-block; + .el-form-item { + margin-bottom: 0; + } + } + .el-switch { + margin-bottom: 2px; + } +} .navbar .right-menu { float: right; height: 100%; diff --git a/front/src/utils/global.js b/front/src/utils/global.js index 467ac95e65109fb19d0f390c05d081ef54c253c6..2fc7a2baeba4aea4d76d3467bc415c3eb5732a17 100644 --- a/front/src/utils/global.js +++ b/front/src/utils/global.js @@ -637,7 +637,7 @@ Object.assign(Vue.prototype, { } const id = row.id refPrefixArr.forEach(refPrefix => { - promiseArr.push(this.$refs[refPrefix + id].validate()) + this.$refs[refPrefix + id] && promiseArr.push(this.$refs[refPrefix + id].validate()) }) const children = arr[i].children if (children && children.length > 0) { diff --git a/front/src/views/doc/EditDocStandard/index.vue b/front/src/views/doc/EditDocStandard/index.vue index 04a18530e952c1a898b287f395061432bbd1d226..1c62af4b7d2dfb36e84e4960a51d0123dae05fa4 100644 --- a/front/src/views/doc/EditDocStandard/index.vue +++ b/front/src/views/doc/EditDocStandard/index.vue @@ -5,187 +5,197 @@ - - - - - - - - - - - - {{ method }} +
+ + + + + + + + + + + + {{ method }} + + + + + + + + + {{ contentType }} - - - - - - - {{ contentType }} - - - - - - {{ $t('empty') }} - - {{ item.name }} - - - - - - - - - - - - {{ $t('lockDocDesc') }} - - - - - - - {{ $t(item.label) }} - - - + + + + {{ $t('empty') }} + + {{ item.name }} + + + + + + + + + + + + {{ $t('lockDocDesc') }} + + + + + + + {{ $t(item.label) }} + + + +
- {{ $t('newHeader') }} - {{ $t('importHeader') }} - | - - +
+ {{ $t('newHeader') }} + {{ $t('importHeader') }} + | + + +
- - -
- {{ $t('newQueryParam') }} - {{ $t('importQueryParam') }} -
- -
- - - - Body Parameter - - -
- -
- | - {{ $t('newBodyParam') }} - {{ $t('importBodyParam') }} - | +
+ + +
+ {{ $t('newQueryParam') }} + {{ $t('importQueryParam') }} +
+ +
+ + + + Body Parameter + + +
+
+ | + {{ $t('newBodyParam') }} + {{ $t('importBodyParam') }} + | + +
-
- - - - + + + + +
-
- -
- | - {{ $t('newResponseParam') }} - {{ $t('importResponseParam') }} - | +
+
+
+ | + {{ $t('newResponseParam') }} + {{ $t('importResponseParam') }} + | + +
+ +
- - - {{ $t('newErrorCode') }} - +
+ {{ $t('newErrorCode') }} + +
@@ -290,7 +300,7 @@ export default { responseParams: [], errorCodeParams: [], orderIndex: this.getEnums().INIT_ORDER_INDEX, - remark: '' + remark: '', }, paramsActive: 'tabQueryParams', remark: '', @@ -451,7 +461,7 @@ export default { }, // 修改文档内容 submitForm() { - this.$refs.docForm.validate((valid) => { + this.$refs.docForm && this.$refs.docForm.validate((valid) => { let rootArrayValid = true if (this.isEnableRequestRootArray) { rootArrayValid = this.$refs.requestArrayTable.validate() diff --git a/front/src/views/doc/EditTable/index.vue b/front/src/views/doc/EditTable/index.vue index e5c49a46c974fcaf5422de5c33b267521e2f65fd..5212d21d66949c9be15fdbc69b0c17f0ecb78fa6 100644 --- a/front/src/views/doc/EditTable/index.vue +++ b/front/src/views/doc/EditTable/index.vue @@ -1,14 +1,23 @@ - - + - - + - - + - - + - - + - + - - + - - + - - +
- - + + + + \ No newline at end of file diff --git a/front/src/views/doc/EditTable/select.vue b/front/src/views/doc/EditTable/select.vue new file mode 100644 index 0000000000000000000000000000000000000000..0b7b9e5fbfb6d3125e65cbebac96fedc53906903 --- /dev/null +++ b/front/src/views/doc/EditTable/select.vue @@ -0,0 +1,66 @@ + + + + \ No newline at end of file diff --git a/front/src/views/doc/EditTable/switch.vue b/front/src/views/doc/EditTable/switch.vue new file mode 100644 index 0000000000000000000000000000000000000000..be311f524ad5e5338f1633dfe552a0c32e02c4ae --- /dev/null +++ b/front/src/views/doc/EditTable/switch.vue @@ -0,0 +1,51 @@ + + + + \ No newline at end of file diff --git a/front/src/views/doc/RootArrayTable/index.vue b/front/src/views/doc/RootArrayTable/index.vue index f0291947e12017bcdf72ca56a1113a442a7c1b77..5db16ccf50e47de570d47766d63cdc3158a69d6c 100644 --- a/front/src/views/doc/RootArrayTable/index.vue +++ b/front/src/views/doc/RootArrayTable/index.vue @@ -11,16 +11,25 @@ {{ $t('newParam') }} {{ $t('importParam') }}
- - - + - - + - - + - - + - - + - - + - + - - + - - +
- - + +