From b2bdf4b1ab97a23ed5cdf34fb3703a979fdc3ca9 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, 27 Jul 2023 15:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=BC=B9=E7=AA=97=E5=9B=9E?= =?UTF-8?q?=E6=98=BEbug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../currenDescriptions/index copy.vue | 184 ++++++++++++++++++ .../components/currenDescriptions/index.vue | 57 +++--- PC/InterFace.Dash/src/mixins/TableMixins.js | 7 +- .../src/views/menuList/IncomingData.vue | 23 +++ 4 files changed, 235 insertions(+), 36 deletions(-) create mode 100644 PC/InterFace.Dash/src/components/currenDescriptions/index copy.vue diff --git a/PC/InterFace.Dash/src/components/currenDescriptions/index copy.vue b/PC/InterFace.Dash/src/components/currenDescriptions/index copy.vue new file mode 100644 index 0000000..caaa758 --- /dev/null +++ b/PC/InterFace.Dash/src/components/currenDescriptions/index copy.vue @@ -0,0 +1,184 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.Dash/src/components/currenDescriptions/index.vue b/PC/InterFace.Dash/src/components/currenDescriptions/index.vue index 79e86bc..f7c4c9b 100644 --- a/PC/InterFace.Dash/src/components/currenDescriptions/index.vue +++ b/PC/InterFace.Dash/src/components/currenDescriptions/index.vue @@ -15,45 +15,25 @@ :key="index" :labelStyle="{'text-align': 'right','padding-right':'10px'}" > - {{ - propsData[item.prop] | formatOnlyDate - }} - {{ + + {{ propsData[item.prop] | formatDate }} - {{ - propsData[item.prop]?propsData[item.prop][item.showProp]:"" | formatDate - }} - - {{ propsData[item.prop]?propsData[item.prop][item.showProp]:"" }} - - - {{ propsData[item.prop] | trigger(item.filters,"label", item.dictType) }} - - - {{ propsData[item.prop]?propsData[item.prop][item.showProp]:false | trigger(item.filters,"label") }} + + + {{ initApiEnumList(item,propsData[item.prop]) }} - - {{ propsData[item.prop] +'%' }} + + + {{ propsData[item.prop] ? '是' : '否' }} - -
{{propsData[item.prop] | formatDatePicture}}
+ + + {{ propsData[item.prop] }} - - {{ propsData[item.prop] | triggerList(item.filters, "label") }} + + {{ propsData[item.prop] ? propsData[item.prop] + "" : propsData[item.prop] }} - - - - - {{ propsData[item.prop] ? propsData[item.prop] + "" : propsData[item.prop] }} { + _item_enumList[item.value] = item.label + }) + return _item_enumList[data] || '未定义' + }, } } @@ -175,6 +165,7 @@ export default { display: inline-block; max-height: 150px; overflow: auto; + min-width: 200px; } } } diff --git a/PC/InterFace.Dash/src/mixins/TableMixins.js b/PC/InterFace.Dash/src/mixins/TableMixins.js index 0406766..8192d5d 100644 --- a/PC/InterFace.Dash/src/mixins/TableMixins.js +++ b/PC/InterFace.Dash/src/mixins/TableMixins.js @@ -187,13 +187,14 @@ export const tableMixins = { let _url = this.URLOption_detail ? this.URLOption_detail : this.URLOption_base getDetailed(val.id, _url) .then(res=>{ - // 表头处理 - let _parentName = this.URLOption_detailList.substr(0,this.URLOption_detailList.indexOf('/')) - this.apiColumns_DetailsTable = this.initTableColumns(this.initApiColumnsForDto(res.details[0],_parentName),'detail_api') // 打印使用的全部数据存储 this.tableDataDetails = JSON.parse(JSON.stringify(res)) + // 数据处理 this.propsData = res if (res.details) { + // 表头处理 + let _parentName = this.URLOption_detailList.substr(0,this.URLOption_detailList.indexOf('/')) + this.apiColumns_DetailsTable = this.initTableColumns(this.initApiColumnsForDto(res.details[0],_parentName),'detail_api') if(this.$refs.currenDrawer_Ref){ this.$refs.currenDrawer_Ref.getDetailList(res,()=>{ this.inlineDialogCallback() diff --git a/PC/InterFace.Dash/src/views/menuList/IncomingData.vue b/PC/InterFace.Dash/src/views/menuList/IncomingData.vue index bc239e9..3f756d2 100644 --- a/PC/InterFace.Dash/src/views/menuList/IncomingData.vue +++ b/PC/InterFace.Dash/src/views/menuList/IncomingData.vue @@ -24,6 +24,29 @@ @overallSearchFormClick="overallSearchFormClick" :httpOverallSearchData="httpOverallSearchData" > + +