前端增加休假日历
This commit is contained in:
@@ -153,6 +153,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listProcess(this.queryParams).then(response => {
|
listProcess(this.queryParams).then(response => {
|
||||||
|
console.log(3333,response)
|
||||||
this.processList = response.rows;
|
this.processList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -226,6 +226,33 @@ export default {
|
|||||||
return arr;
|
return arr;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//对象数组排序(文本类)
|
||||||
|
/* compare(propertyName, order) {
|
||||||
|
return function (object1, object2) {
|
||||||
|
var value1 = object1[propertyName];
|
||||||
|
var value2 = object2[propertyName];
|
||||||
|
if (order == 0) {
|
||||||
|
if (value2 < value1) {
|
||||||
|
return -1;
|
||||||
|
} else if (value2 > value1) {
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (order == 1) {
|
||||||
|
if (value2 > value1) {
|
||||||
|
return -1;
|
||||||
|
} else if (value2 < value1) {
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},*/
|
||||||
|
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user