From a8882b43de508a5e349c6575d76b5d64ba46fcf9 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:44 +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 | 181 ++++++++++++++++++ .../components/currenDescriptions/index.vue | 57 +++--- Code/Fe/src/mixins/TableMixins.js | 7 +- 3 files changed, 209 insertions(+), 36 deletions(-) create mode 100644 Code/Fe/src/components/currenDescriptions/index copy.vue diff --git a/Code/Fe/src/components/currenDescriptions/index copy.vue b/Code/Fe/src/components/currenDescriptions/index copy.vue new file mode 100644 index 0000000..79e86bc --- /dev/null +++ b/Code/Fe/src/components/currenDescriptions/index copy.vue @@ -0,0 +1,181 @@ + + + \ No newline at end of file diff --git a/Code/Fe/src/components/currenDescriptions/index.vue b/Code/Fe/src/components/currenDescriptions/index.vue index 79e86bc..f7c4c9b 100644 --- a/Code/Fe/src/components/currenDescriptions/index.vue +++ b/Code/Fe/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/Code/Fe/src/mixins/TableMixins.js b/Code/Fe/src/mixins/TableMixins.js index 1eedc15..ac18bf0 100644 --- a/Code/Fe/src/mixins/TableMixins.js +++ b/Code/Fe/src/mixins/TableMixins.js @@ -195,13 +195,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()