From 322a5fac20d7931d856b32e17c0a86de9f9e56bd Mon Sep 17 00:00:00 2001
From: wangqing
Date: Thu, 18 Mar 2021 18:51:30 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A1=AB=E5=86=99=E7=BB=93=E6=9E=9C?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/index.js | 20 +++++++++++++++++
src/views/form/setting.vue | 9 +++++++-
src/views/form/statistics.vue | 41 ++++++++++++++++++++++++++++++-----
3 files changed, 63 insertions(+), 7 deletions(-)
diff --git a/src/utils/index.js b/src/utils/index.js
index b17f071..e723f09 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -177,6 +177,11 @@ export function getQueryString(name) {
return context == null || context == '' || context == 'undefined' ? '' : context
}
+/**
+ * 获取当前域名
+ * http://www.baidu.com
+ * @returns {string}
+ */
export function getCurrentDomain() {
return window.location.protocol + '//' + window.location.host
}
@@ -270,3 +275,18 @@ export function openUrl(url) {
a.click()
document.body.removeChild(document.getElementById('tduck-link-temp'))
}
+
+/**
+ * json对象转url参数
+ * @param json
+ * @returns {string|*}
+ */
+export function jsonToParam(json) {
+ if (!json) return ''
+ return Object.keys(json).map(key => {
+ if (json[key] === undefined)
+ return ''
+ return encodeURIComponent(key) +
+ '=' + encodeURIComponent(json[key])
+ }).join('&')
+}
diff --git a/src/views/form/setting.vue b/src/views/form/setting.vue
index c0c5800..eb417d9 100644
--- a/src/views/form/setting.vue
+++ b/src/views/form/setting.vue
@@ -487,7 +487,8 @@
-
![]()
+
@@ -823,6 +824,12 @@ export default {
text-align: left;
}
+.share-preview-img {
+ width: 49px;
+ height: 46px;
+ margin-right: 5px;
+}
+
.share-user-avatar {
width: 49px;
height: 49px;
diff --git a/src/views/form/statistics.vue b/src/views/form/statistics.vue
index 8ee1722..ee3a2fb 100644
--- a/src/views/form/statistics.vue
+++ b/src/views/form/statistics.vue
@@ -20,6 +20,7 @@
查询
+ 导出
@@ -63,15 +64,18 @@
:with-header="false"
:visible.sync="detailDrawer">
-
+
提交详情
{{ item.label }}
- {{activeResultRow?
- activeResultRow['processData'][`field${item.formItemId}`]:'' }}
+ {{
+ activeResultRow ?
+ activeResultRow['processData'][`field${item.formItemId}`] : ''
+ }}
+
@@ -123,6 +127,8 @@