diff --git a/src/components/generator/config.js b/src/components/generator/config.js index bc9bf4f..549c231 100644 --- a/src/components/generator/config.js +++ b/src/components/generator/config.js @@ -501,7 +501,7 @@ export const selectComponents = [ __slot__: { 'list-type': true }, - action: '/tduck-api/project/file/upload/', + action: process.env.VUE_APP_API_ROOT + '/project/file/upload/', disabled: false, accept: '', name: 'file', diff --git a/src/utils/index.js b/src/utils/index.js index e723f09..f8afff1 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -270,10 +270,10 @@ export function openUrl(url) { var a = document.createElement('a') a.setAttribute('href', url) a.setAttribute('target', '_blank') - a.setAttribute('id', 'tduck-link-temp') + a.setAttribute('id', 'd2admin-link-temp') document.body.appendChild(a) a.click() - document.body.removeChild(document.getElementById('tduck-link-temp')) + document.body.removeChild(document.getElementById('d2admin-link-temp')) } /** @@ -290,3 +290,18 @@ export function jsonToParam(json) { '=' + encodeURIComponent(json[key]) }).join('&') } + +/** + * 是否是json + * @param str + * @returns {boolean} + */ +function isJsonString(str) { + try { + if (typeof JSON.parse(str) == 'object') { + return true + } + } catch (e) { + } + return false +} diff --git a/src/views/form/statistics.vue b/src/views/form/statistics.vue index e5e67b4..58f93e6 100644 --- a/src/views/form/statistics.vue +++ b/src/views/form/statistics.vue @@ -71,7 +71,15 @@

{{ item.label }}

- {{ + +
+ + {{file.fileName}} + +
+ {{ activeResultRow ? activeResultRow['processData'][`field${item.formItemId}`] : '' }} @@ -127,7 +135,7 @@