|
@@ -65,7 +65,10 @@
|
|
|
</el-icon>
|
|
|
</el-button>
|
|
|
</div>
|
|
|
- <el-card class="report-item no-border" shadow="never" v-for="(doc, id) in page" v-if="page !== null && page.length !== 0">
|
|
|
+ <div v-loading="loading" :element-loading-svg="svg"
|
|
|
+ class="custom-loading-svg" element-loading-text="Loading..."
|
|
|
+ element-loading-svg-view-box="-10, -10, 50, 50">
|
|
|
+ <el-card class="report-item no-border" shadow="never" v-for="(doc, id) in page" v-if="page !== null && page.length !== 0">
|
|
|
<div class="report-icon">
|
|
|
<img :src="docLog(doc.docType)" style="width: 52px; height: 52px;" />
|
|
|
</div>
|
|
@@ -87,6 +90,7 @@
|
|
|
<el-tag style="margin-left: 5px;" type="success">{{ doc.businessCate }}</el-tag>
|
|
|
</span>
|
|
|
<span style="float: right; color:darkgrey">{{ doc.updateTime }}</span>
|
|
|
+ <span style="float: right; color:darkgrey">{{ doc.createUserName+'-' }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="report-button" @click="downloadFile(doc.docUrl, doc.docName)">
|
|
@@ -94,7 +98,8 @@
|
|
|
<Download />
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
- </el-card>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
<div class="null-div" v-if="page === null || page.length == 0">
|
|
|
<img src="../../assets/icons/null.png" style="width: 128px; height: 128px;" />
|
|
|
<div>
|
|
@@ -136,6 +141,9 @@ import excelLog from '../../assets/icons/excel.png'
|
|
|
import folderLog from '../../assets/icons/folder.png'
|
|
|
import fileUtil from '@/utils/file'
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -150,10 +158,24 @@ export default {
|
|
|
total: null,
|
|
|
createDate: null,
|
|
|
docName: null,
|
|
|
+ state:true
|
|
|
},
|
|
|
+ loading:false,
|
|
|
+ svg : `
|
|
|
+ <path class="path" d="
|
|
|
+ M 30 15
|
|
|
+ L 28 17
|
|
|
+ M 25.61 25.61
|
|
|
+ A 15 15, 0, 0, 1, 15 30
|
|
|
+ A 15 15, 0, 1, 1, 27.99 7.5
|
|
|
+ L 15 15
|
|
|
+ " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
|
|
|
+ `
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.loading = true
|
|
|
+ this.login();
|
|
|
// 使用$nextTick 等页面加载完毕之后,再选中tree组件默认节点,防止加载顺序问题
|
|
|
this.$nextTick(function () {
|
|
|
// 这行会生效
|
|
@@ -198,7 +220,10 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
this.$refs.treeDataYear.setCurrentKey(this.treeDataYear[0].children[childrenIndex].id)
|
|
|
- this.setDay(this.$refs.treeDataYear.getCurrentNode())
|
|
|
+ //业务接口还没有验证token,查询会提示重新登录
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.setDay(this.$refs.treeDataYear.getCurrentNode())
|
|
|
+ },1500)
|
|
|
})
|
|
|
},
|
|
|
computed: {
|
|
@@ -208,8 +233,8 @@ export default {
|
|
|
...mapStores(useUserStore),
|
|
|
},
|
|
|
created() {
|
|
|
- this.login()
|
|
|
- // this.getDocuments();
|
|
|
+
|
|
|
+ // // this.getDocuments();
|
|
|
this.setYearMonth()
|
|
|
},
|
|
|
methods: {
|
|
@@ -218,7 +243,7 @@ export default {
|
|
|
},
|
|
|
choiceDay(index) {
|
|
|
this.activeBtn = index
|
|
|
- this.listQuery.createDate = this.days[index].date
|
|
|
+ this.listQuery.createDate = this.days[index].date;
|
|
|
this.getDocuments()
|
|
|
},
|
|
|
// 设置横向的天数
|
|
@@ -373,10 +398,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getDocuments() {
|
|
|
+ this.listQuery.state = true;
|
|
|
documentProduction.page(this.listQuery).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
this.page = res.data.records
|
|
|
this.listQuery.pages = res.data.pages
|
|
|
+ this.loading = false;
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -578,4 +605,19 @@ p {
|
|
|
margin-top: 20%;
|
|
|
color: var(--vt-c-text-light-2);
|
|
|
}
|
|
|
+
|
|
|
+:deep(.el-loading-spinner .path ){
|
|
|
+ -webkit-animation: loading-dash 1.5s ease-in-out infinite;
|
|
|
+ animation: loading-dash 1.5s ease-in-out infinite;
|
|
|
+ stroke-dasharray: 90, 150;
|
|
|
+ stroke-dashoffset: 0;
|
|
|
+ stroke-width: 4;
|
|
|
+ stroke-linecap: round;
|
|
|
+ stroke:#ff6154!important;
|
|
|
+}
|
|
|
+:deep(.el-loading-spinner .el-loading-text ){
|
|
|
+ color: #ff6154!important;
|
|
|
+ margin: 3px 0;
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
</style>
|