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 @@ + + + + + {{ + 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") }} + + + {{ propsData[item.prop] +'%' }} + + + {{propsData[item.prop] | formatDatePicture}} + + + {{ propsData[item.prop] | triggerList(item.filters, "label") }} + + + + + + + + {{ propsData[item.prop] ? propsData[item.prop] + "" : propsData[item.prop] }} + + + {{ item.data }} + + + + + \ 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" > + +