|
|
@@ -5,8 +5,8 @@ import { ref } from 'vue';
|
|
|
|
|
|
/**
|
|
|
* 获取表格列表数据
|
|
|
- * @param type
|
|
|
- * @returns
|
|
|
+ * @param type
|
|
|
+ * @returns
|
|
|
*/
|
|
|
export function queryTableList(type: QueryBusinessJsReq) {
|
|
|
// 加载状态
|
|
|
@@ -18,6 +18,12 @@ export function queryTableList(type: QueryBusinessJsReq) {
|
|
|
.then((res) => {
|
|
|
tableList.value = res.map((e, i) => {
|
|
|
return { ...e, key: String(i) };
|
|
|
+ }).sort((a, b) => {
|
|
|
+ if (a.applystatus === 1) {
|
|
|
+ return b.applystatus === 1 ? 0 : -1
|
|
|
+ } else {
|
|
|
+ return b.applystatus === 1 ? 1 : 0
|
|
|
+ }
|
|
|
});
|
|
|
loading.value = false;
|
|
|
console.log('查询列表', tableList);
|