|
|
@@ -3,9 +3,9 @@
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bold">准入范围</span>
|
|
|
- <span style="margin-left: 100px">
|
|
|
+ <span style="margin-left: 600px">
|
|
|
准入编码
|
|
|
- <el-input size="mini" v-model="Code" style="width:10%" placeholder="请输入"></el-input>
|
|
|
+ <el-input size="mini" v-model="Code" style="width:10%" placeholder="准入编码"></el-input>
|
|
|
|
|
|
<el-button type="primary" size="mini" @click="handleSearch">查询</el-button>
|
|
|
</span>
|
|
|
@@ -14,15 +14,15 @@
|
|
|
<el-button style="float: right; padding: 3px 25px" type="text" @click="showDialog" v-if="canadd || newcanadd">添加</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <el-table :data="techList" border height="calc(100vh - 435px)" size="mini" @selection-change="handleSelectionChange">
|
|
|
+ <el-table :data="techList" border height="calc(100vh - 435px)" size="mini" @selection-change="handleSelectionChange" @sort-change="orderby">
|
|
|
<el-table-column
|
|
|
type="selection"
|
|
|
width="55">
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="Name" label="分类名称" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="CertSubStatus" label="状态" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="Code" label="分类编码" show-overflow-tooltip sortable></el-table-column>
|
|
|
+ <el-table-column prop="Name" label="分类名称" show-overflow-tooltip sortable></el-table-column>
|
|
|
+ <el-table-column prop="CertSubStatus" label="状态" show-overflow-tooltip sortable>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.CertSubStatus=='1'"
|
|
|
style="color:#67C23A">准入</span>
|
|
|
@@ -149,6 +149,11 @@
|
|
|
loading: false,
|
|
|
IsCompanyUser: '',
|
|
|
Ids: [],
|
|
|
+ // 列表排序
|
|
|
+ Column: {
|
|
|
+ Order: '',
|
|
|
+ Prop: ''
|
|
|
+ },
|
|
|
SupplierId: 0,
|
|
|
SupplierTypeCode: '',
|
|
|
SupplierCertId: 0,
|
|
|
@@ -209,6 +214,16 @@
|
|
|
this.Ids.push(val[i].Id)
|
|
|
}
|
|
|
},
|
|
|
+ // 列表排序功能
|
|
|
+ orderby (column) {
|
|
|
+ if (column.order == 'ascending') {
|
|
|
+ this.Column.Order = 'asc'
|
|
|
+ } else if (column.order == 'descending') {
|
|
|
+ this.Column.Order = 'desc'
|
|
|
+ }
|
|
|
+ this.Column.Prop = column.prop
|
|
|
+ this.initData()
|
|
|
+ },
|
|
|
getvalue (SupplierId, SupplierTypeCode, certId) {
|
|
|
this.SupplierId = SupplierId
|
|
|
this.SupplierTypeCode = SupplierTypeCode
|
|
|
@@ -218,6 +233,8 @@
|
|
|
initData () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
+ Order: this.Column.Order,
|
|
|
+ Prop: this.Column.Prop,
|
|
|
SupplierCertId: this.SupplierCertId,
|
|
|
SupplierTypeCode: this.SupplierTypeCode,
|
|
|
Code: this.Code,
|