From 1dcb8837a22e72a985e18906d30be66fa81da404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Thu, 19 Sep 2024 16:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=9F=83=E9=A9=B0-=E6=8E=A5=E5=8F=A3-?= =?UTF-8?q?new=E3=80=91=E8=A1=A8=E6=A0=BC=E5=8F=82=E6=95=B0=E4=B8=BAarray?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=A4=84=E7=90=86=E5=8F=8A=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=B0=81=E8=A3=85=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/arrayTableDialog/index.vue | 156 ++++++++++++++++++ .../src/components/showCopyJsonPop/index.vue | 2 +- .../src/components/umyTable/index.vue | 33 +++- .../src/utils/baseData/urlOption.js | 12 +- 4 files changed, 190 insertions(+), 13 deletions(-) create mode 100644 PC/InterFace.New/src/components/arrayTableDialog/index.vue diff --git a/PC/InterFace.New/src/components/arrayTableDialog/index.vue b/PC/InterFace.New/src/components/arrayTableDialog/index.vue new file mode 100644 index 0000000..55bfcf0 --- /dev/null +++ b/PC/InterFace.New/src/components/arrayTableDialog/index.vue @@ -0,0 +1,156 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.New/src/components/showCopyJsonPop/index.vue b/PC/InterFace.New/src/components/showCopyJsonPop/index.vue index 8af894d..b9a03bc 100644 --- a/PC/InterFace.New/src/components/showCopyJsonPop/index.vue +++ b/PC/InterFace.New/src/components/showCopyJsonPop/index.vue @@ -197,7 +197,7 @@ export default { for(let h in _json[item][0]){ this.detailTableHeader.push(h) } - let _value = (item).toUpperCase() == 'DETAILS' ? _json[item] : (_json[item]).join(",") + let _value = ((item).toUpperCase() == 'DETAILS' || typeof _json[item] == 'object') ? _json[item] : (_json[item]).join(",") _arr.push({name:item,value:_value}) } // 如果是对象 diff --git a/PC/InterFace.New/src/components/umyTable/index.vue b/PC/InterFace.New/src/components/umyTable/index.vue index 97acb21..f5fcf9f 100644 --- a/PC/InterFace.New/src/components/umyTable/index.vue +++ b/PC/InterFace.New/src/components/umyTable/index.vue @@ -213,6 +213,13 @@ @closePop="closeJsonPop" > + + +