前端增加休假日历

This commit is contained in:
mkbk
2025-02-22 16:33:01 +08:00
parent 55b7003d80
commit 4fa71727ce
2 changed files with 28 additions and 0 deletions

View File

@@ -153,6 +153,7 @@ export default {
getList() {
this.loading = true;
listProcess(this.queryParams).then(response => {
console.log(3333,response)
this.processList = response.rows;
this.total = response.total;
this.loading = false

View File

@@ -226,6 +226,33 @@ export default {
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() {
this.open = false;