|
|
@@ -8,7 +8,7 @@
|
|
|
:need-page="true"
|
|
|
:selection.sync="selection"
|
|
|
:current.sync="rowCurrent"
|
|
|
-
|
|
|
+ @sort-change="onSortChange"
|
|
|
highlight-current-row
|
|
|
height="calc(100vh - 412px)"
|
|
|
full-height="calc(100vh - 116px)"
|
|
|
@@ -307,6 +307,7 @@ export default {
|
|
|
label: '编码',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
+ sortable: true,
|
|
|
minWidth: 110
|
|
|
},
|
|
|
{
|
|
|
@@ -469,6 +470,17 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+
|
|
|
+ onSortChange(e) {
|
|
|
+ console.log(e,'99999999');
|
|
|
+
|
|
|
+ let sort = {
|
|
|
+ orderBy: e.order,
|
|
|
+ sortName: e.prop,
|
|
|
+ };
|
|
|
+ this.sort = sort;
|
|
|
+ this.reload();
|
|
|
+ },
|
|
|
getDictValueFn(e) {
|
|
|
// console.log(e,'3333333333333');
|
|
|
if(e.length){
|
|
|
@@ -540,6 +552,7 @@ export default {
|
|
|
let labs= getMaterialList({
|
|
|
pageNum: page,
|
|
|
size: limit,
|
|
|
+ ...this.sort,
|
|
|
...where,
|
|
|
categoryLevelId: this.currentId
|
|
|
});
|