Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zhanbo.xu
2025-03-05 17:00:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f79eca74b680b9653943e82b85799242a75926c2
f79eca74
1 parent
a4244d20
feat: 新增法定单位
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
10 deletions
src/components/TablePopover/index.vue
src/views/editReportingData/RowDataEditForm.vue
src/views/editReportingData/index.vue
src/views/reportingData/index.vue
src/components/TablePopover/index.vue
View file @
f79eca7
...
...
@@ -31,9 +31,16 @@
:pageSizes="[20, 30, 50, 100]"
:totalCount="0"
:loading="tableLoading"
:emptyText="(loadingDatas && !rowData.popoverData.length) ? '数据加载中' : $t('portEntry.emptyText')"
height="350px"
maxHeight="500px"
:emptyText="
loadingDatas &&
rowData &&
rowData.popoverData &&
!rowData.popoverData.length
? '数据加载中'
: $t('portEntry.emptyText')
"
:height="tableHeight + 'px'"
:maxHeight="tableHeight + 'px'"
rowKey="id"
>
</Table>
...
...
@@ -82,20 +89,31 @@ export default {
},
data() {
return {
tableLoading: false
tableLoading: false,
tableHeight: 350,
};
},
computed:{
loadingDatas(){
return this.$store.state.viewOption.loadingDatas
}
computed: {
loadingDatas() {
return this.$store.state.viewOption.loadingDatas;
},
},
mounted() {
this.calculateTableHeight();
window.addEventListener("resize", this.calculateTableHeight);
},
beforeDestroy() {
window.removeEventListener("resize", this.calculateTableHeight);
},
methods: {
calculateTableHeight() {
this.tableHeight = window.innerHeight - 300;
},
//弹框关闭
popoverClose() {
this.$emit("popoverClose");
this.parentDom.$refs.tables.$refs.bodyWrapper.style.overflowY = "auto";
this.$store.dispatch(
'setLoadingState', true)
this.$store.dispatch(
"setLoadingState", true);
},
//弹框状态改版
popoverChange(data, type) {
...
...
src/views/editReportingData/RowDataEditForm.vue
View file @
f79eca7
This diff is collapsed. Click to expand it.
src/views/editReportingData/index.vue
View file @
f79eca7
...
...
@@ -868,7 +868,7 @@ export default {
},
methods: {
mapDicDatas(dicArr, code) {
if (code != "") {
if (code != ""
&& code
) {
return dicArr.filter((item) => item.itemCode == code)[0]
.itemChineseName;
} else {
...
...
src/views/reportingData/index.vue
View file @
f79eca7
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment