合规评估-技术评估结果-条款号 排序

This commit is contained in:
zyn
2023-05-12 15:41:47 +08:00
parent 23af33c6a5
commit 65297257b8
@@ -175,7 +175,8 @@
border border
:height="sarProStateTableHeight" :height="sarProStateTableHeight"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"
@sort-change="sortChange">
<el-table-column <el-table-column
type="selection" type="selection"
fixed="left" fixed="left"
@@ -183,6 +184,7 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
sortable="custom"
show-overflow-tooltip show-overflow-tooltip
prop="specificItem" prop="specificItem"
width="90" width="90"
@@ -470,6 +472,20 @@
} }
}, },
methods: { methods: {
sortChange({ column, prop, order }){
if(order === "descending"){
// 降序
this.querySarProStateZero('desc')
}
if(order === 'ascending'){
// 升序
this.querySarProStateZero('asc')
}
if(order === null){
// 不排序
this.querySarProStateZero()
}
},
// ... // ...
handleCommand(command) { handleCommand(command) {
switch (command[1]) { switch (command[1]) {
@@ -628,13 +644,14 @@
this.querySarProStateZero() this.querySarProStateZero()
}, },
// 查看项目符合性 // 查看项目符合性
querySarProStateZero () { querySarProStateZero (order) {
var form = this.sarProStateEO var form = this.sarProStateEO
form.position = this.sarProject.position form.position = this.sarProject.position
form.standId = this.standId form.standId = this.standId
form.current = this.sarProStateTotalPage form.current = this.sarProStateTotalPage
form.size = this.sarProStatePageSize form.size = this.sarProStatePageSize
// form.interpretationTime = this.interpretationTime // form.interpretationTime = this.interpretationTime
form.order = order
form.prcNum = this.prcNum form.prcNum = this.prcNum
this.$http.get('sarStandardComplianceAssessResult/interpretation', form, { this.$http.get('sarStandardComplianceAssessResult/interpretation', form, {
_this: this, _this: this,