|
@@ -26,8 +26,8 @@
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
- <el-table-column v-for="item in columnList" :key="item.value" :prop="item.value"
|
|
|
- :render-header="$commonJS.renderHeaderMethods" :label="item.name" sortable align="center">
|
|
|
+ <el-table-column v-for="item in columnList" :key="item.value" :prop="item.value" v-loading="loading"
|
|
|
+ :render-header="$commonJS.renderHeaderMethods" :label="item.name" :sortable="item.ifSort?'custom':false" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="['name'].includes(item.value)">
|
|
|
<span v-html="$commonJS.getColumnData(scope.row, item)"></span>
|
|
@@ -35,7 +35,7 @@
|
|
|
<div v-else-if="['ifFinal'].includes(item.value)"
|
|
|
v-html="$commonJS.getColumnData(scope.row, item, null, { data: ifFinal })"></div>
|
|
|
<div v-else-if="['statusOrResult'].includes(item.value)">
|
|
|
- <observerDom url="getExamineHistory" :params="{fileGuid:scope.row.fileGuid,ifGetLast:true}" :fun="getData"></observerDom>
|
|
|
+ <observerDom v-if="!loading" url="getExamineHistory" :params="{fileGuid:scope.row.fileGuid,ifGetLast:true}" :fun="getData"></observerDom>
|
|
|
</div>
|
|
|
<div v-else v-html="$commonJS.getColumnData(scope.row, item)"></div>
|
|
|
</template>
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
false: '否',
|
|
|
true: '是',
|
|
|
},
|
|
|
+ loading:false,
|
|
|
// 数据源
|
|
|
tableData: [],
|
|
|
// table栏位信息
|
|
@@ -267,15 +268,17 @@ export default {
|
|
|
searchQuery: this.$commonJS.objectToString(searchOption || {}),//检索条件
|
|
|
orderDTOList: this.sort,//排序信息
|
|
|
}
|
|
|
-
|
|
|
+ this.loading = true
|
|
|
this.$api.queryPatentDigProjectFiles(searchOption2).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableData = res.data.data
|
|
|
this.queryParams.total = this.tableData.length
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
this.tableData = []
|
|
|
this.queryParams.total = 0
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
},
|
|
|
// 搜索
|