|
@@ -102,6 +102,7 @@
|
|
|
<form ref="downloadExportForm" :action="downloadExportAction" target="FORMSUBMIT">
|
|
|
</form>
|
|
|
<el-table v-loading="loading" class="table" :data="plantproglistList" @selection-change="handleSelectionChange"
|
|
|
+ @sort-change="sortList"
|
|
|
:cell-class-name="tableCellClassName" :height="clientHeight" border>
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column :label="$t('文件编号')" align="center" prop="fileno" width="150" :show-overflow-tooltip="true"/>
|
|
@@ -114,7 +115,7 @@
|
|
|
<span>{{ parseTime(scope.row.filedate, '{y}-{m}-{d}') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('下次修订日期')" align="center" prop="nexteditdate" width="100">
|
|
|
+ <el-table-column :label="$t('下次修订日期')" align="center" sortable="custom" prop="nexteditdate" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span style="vertical-align:middle">{{ parseTime(scope.row.nexteditdate, '{y}-{m}-{d}') }}</span>
|
|
|
<svg-icon :icon-class="changeColorPiont(scope.row.nexteditdate)"
|
|
@@ -130,7 +131,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('回顾结果')" align="center" prop="reviewResult" width="150" :show-overflow-tooltip="true"
|
|
|
v-if="this.itemNum !== '5'"/>
|
|
|
- <el-table-column :label="$t('下次回顾日期')" align="center" prop="nextreviewdate" width="100"
|
|
|
+ <el-table-column :label="$t('下次回顾日期')" align="center" sortable="custom" prop="nextreviewdate" width="100"
|
|
|
v-if="this.itemNum !== '5'">
|
|
|
<template slot-scope="scope">
|
|
|
<span style="vertical-align:middle">{{ parseTime(scope.row.nextreviewdate, '{y}-{m}-{d}') }}</span>
|
|
@@ -654,7 +655,10 @@ export default {
|
|
|
attachmentNo: null,
|
|
|
attachmentName: null,
|
|
|
attachmentRevision: null,
|
|
|
- revisionDate: null
|
|
|
+ revisionDate: null,
|
|
|
+ orderByColumn: null,
|
|
|
+ isAsc: null,
|
|
|
+ allNo: null
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -713,7 +717,9 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.clientHeight = (document.body.clientHeight - 80) * 0.8
|
|
|
})
|
|
|
-
|
|
|
+ console.log('============================')
|
|
|
+ let responsibility = this.$route.query.responsibility
|
|
|
+ this.queryParams.responsibility = responsibility
|
|
|
this.getList();
|
|
|
this.getTreeselect();
|
|
|
this.getDicts("CLASSIFY").then(response => {
|
|
@@ -742,6 +748,21 @@ export default {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ //element表格排序
|
|
|
+ sortList(val) {
|
|
|
+ var sort = "asc";
|
|
|
+ let sortTip = val.order
|
|
|
+ this.queryParams.orderByColumn = val.prop;
|
|
|
+ if (sortTip === 'descending') {
|
|
|
+ this.queryParams.isAsc = 'desc' // 降序
|
|
|
+ } else if (sortTip === 'ascending') {
|
|
|
+ this.queryParams.isAsc = 'asc' // 升序
|
|
|
+ } else if (sortTip === null) {
|
|
|
+ this.queryParams.isAsc = null;
|
|
|
+ this.queryParams.orderByColumn = null;
|
|
|
+ }
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
//根据分数显示颜色提示
|
|
|
tableCellClassName({row, column, rowIndex, columnIndex}) {
|
|
|
// if (columnIndex == 7 && row.item !== 5) {
|
|
@@ -765,6 +786,7 @@ export default {
|
|
|
} else if (timeInterval <= 30 * 24 * 3600 * 1000) {
|
|
|
return 'roundYellow'
|
|
|
}
|
|
|
+ return ''
|
|
|
},
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|
|
@@ -847,6 +869,7 @@ export default {
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
+ this.queryParams.responsibility = null
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|