diff --git a/index.html b/index.html index 105e700fe996e9db3e790f0b6692c4f91e402d76..2c19e6cbb33a4a3d10c792fcc9a7c0cefc27658d 100644 --- a/index.html +++ b/index.html @@ -15,4 +15,4 @@
- + \ No newline at end of file diff --git a/src/components/apass-upload.vue b/src/components/apass-upload.vue index d47f954853828f22bfbdb06ebf7034cdf92b9905..bb0737889c64a310ea48933002e2f7a0665b8dae 100644 --- a/src/components/apass-upload.vue +++ b/src/components/apass-upload.vue @@ -10,6 +10,7 @@ :file-list="fileList" :before-upload="beforeUpload" :on-success="uploadSuccess" + :on-remove="uploadRemove" >
@@ -83,8 +84,14 @@ export default { }, uploadSuccess({ data }) { this.$emit("change", data); - - // 替换文件后要把旧文件删除掉 + this.removePreFile(); + }, + uploadRemove() { + this.preUrl = this.url; + this.$emit("change", ""); + this.removePreFile(); + }, + removePreFile() { if (this.preUrl) { this.$http .delete("/apaas/static/file/delete", { diff --git a/src/pages/technical-support/answer-center/index.vue b/src/pages/technical-support/answer-center/index.vue index ab021d2172f4ed3560cf1973e0f9c7b744b250e6..c53c19f8c57ed9ee2acf8bce9a75187adf61bfe2 100644 --- a/src/pages/technical-support/answer-center/index.vue +++ b/src/pages/technical-support/answer-center/index.vue @@ -42,13 +42,13 @@
-
+

本月提问贡献榜

@@ -83,7 +83,7 @@

注:同一文档类型下可维护多个文档名称

- + 清空 - 新增SDK类型 + 新增SDK示例 @@ -106,7 +106,7 @@ >
-

注:同一文档类型下可维护多个文档名称

+

注:同一SDK类型下可维护多个示例名称

@@ -381,22 +381,20 @@ export default { return helper.dateStringTransform(time); }, selectAction(values) { + // 页码操作需要保存所选项 if (this.saveSection) { return; } - let cleanPage = values.length === 0; // 是否清空当前页所有选中 let selection = [...this.selection]; - if (cleanPage) { - selection = selection.filter((item) => { - return !this.listData.find((v) => { - return v.id === item.id; - }); + selection = selection.filter((item) => { + return !this.listData.find((v) => { + return v.id === item.id; }); - } else { - selection.push(...values); - } + }); + + selection.push(...values); this.selection = selection; }, diff --git a/src/pages/technical-support/sdk-manage/type/index.vue b/src/pages/technical-support/sdk-manage/type/index.vue index f5dceff48f380e46d75922359ae475453c5001ff..4304ed8241b2ca537322b498e37fc3af00991eeb 100644 --- a/src/pages/technical-support/sdk-manage/type/index.vue +++ b/src/pages/technical-support/sdk-manage/type/index.vue @@ -417,22 +417,20 @@ export default { return helper.dateStringTransform(time); }, selectAction(values) { + // 页码操作需要保存所选项 if (this.saveSection) { return; } - let cleanPage = values.length === 0; // 是否清空当前页所有选中 let selection = [...this.selection]; - if (cleanPage) { - selection = selection.filter((item) => { - return !this.listData.find((v) => { - return v.id === item.id; - }); + selection = selection.filter((item) => { + return !this.listData.find((v) => { + return v.id === item.id; }); - } else { - selection.push(...values); - } + }); + + selection.push(...values); this.selection = selection; }, diff --git a/src/pages/user/questions-answers/my-qa.vue b/src/pages/user/questions-answers/my-qa.vue index eb1b4678059a68e40ffe0fa471826407f41ee347..1305085b3f533a7fb5ac61f080e36aae328af68a 100644 --- a/src/pages/user/questions-answers/my-qa.vue +++ b/src/pages/user/questions-answers/my-qa.vue @@ -346,6 +346,11 @@ export default { }); }, }, + created() { + if (this.$route.query.name !== undefined) { + this.activeName = this.$route.query.name; + } + }, mounted() { this.getUserQA(); this.getQList(); diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 96d26bb11b26629f6b61ce6d60a3246aacfb44f8..7c9dea7537ee48730713015e0bde461894e4bb0f 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -80,7 +80,13 @@ (用于查询流程状态)

-
+
上传接口文档 (请上传所有服务地址完整接口文档): @@ -147,7 +153,7 @@ 服务测试
-
+
测试服务信息:
@@ -387,6 +396,7 @@ v-show=" (activeBtn == 0 || activeBtn == 1 || + activeBtn == 2 || activeBtn == 3 || activeBtn == 4) && !resSuccess @@ -804,8 +814,8 @@ export default { { label: "DELETE", value: "DELETE" }, ], optionType1: [{ label: "GET", value: "GET" }], - activeName: 0, - activeZh: 0, + activeName: "0", + activeZh: "0", sjfwQqcs: [ { label: "请求字段编码", @@ -1132,7 +1142,7 @@ export default { bodys = this.$refs.jsonCodes ? this.$refs.jsonCodes.getCodesVal() : ""; contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { - if (this.activeZh == 1) { + if (this.activeZh == "1") { contentType = this.zhfwQqt; if (this.zhfwQqt == "JSON") { bodys = this.$refs.zhfwJsonCodes @@ -1204,10 +1214,12 @@ export default { nextJcxx() { if ( this.activeBtn == 0 || + this.activeBtn == 2 || this.activeBtn == 3 || (this.activeBtn == 4 && (this.zhyyVal == 22 || this.zhyyVal == 23)) ) { if ( + this.activeBtn == 2 || this.activeBtn == 3 || (this.activeBtn == 4 && this.zhyyVal == 22) ) { @@ -1231,6 +1243,23 @@ export default { this.$message.error("请完善返回参数信息中的字段名称"); } } + } else { + let requestData = this.$refs.fwcs_sjfw_qqcs.getTableData(); + let responseData = this.$refs.fwcs_sjfw_fhcs.getTableData(); + this.requestRules = 0; + this.responseRules = 0; + this.checkTable(requestData, 0); + this.checkTable(responseData, 1); + if (this.requestRules == 0 && this.responseRules == 0) { + this.request_fields = requestData; + this.response_fields = responseData; + this.jcxxtx = true; + this.getOrganization(); + } else if (this.requestRules != 0) { + this.$message.error("请完善请求参数信息中的字段名称"); + } else if (this.responseRules != 0) { + this.$message.error("请完善返回参数信息中的字段名称"); + } } } else if (this.activeBtn == 1) { let value = helper.getQueryString("id", this.serviceUrl); @@ -1410,7 +1439,7 @@ export default { if (this.activeBtn == 0 || this.activeBtn == 3) { contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { - if (this.activeZh == 1) { + if (this.activeZh == "1") { contentType = this.zhfwQqt; } }