@@ -74,11 +83,8 @@
@@ -210,10 +216,12 @@ const handleDelete=(ids)=>{
-watch(query,()=>{
- // console.log(query.value)
- initEmployeeList();
-},10000)
+// watch(query,()=>{
+// // console.log(query.value)
+// initEmployeeList();
+// },10000)
+
+const tempData=ref([])
const tempstore=()=>{
const temp=[]
@@ -232,6 +240,9 @@ const tempstore=()=>{
}
})
tableData.value=temp
+ tempData.value.slice(0,0)
+ tempData.value=tableData.value.slice(0,10)
+
//console.log(res.data.data)
}
@@ -259,9 +270,8 @@ const handleSizeChange = (pageSize) => {
queryForm.value.pageSize=pageSize;
initEmployeeList();
}
-const handleCurrentChange = (current) => {
- queryForm.value.current=current;
- initEmployeeList();
+const handleCurrentChange = (pageNum) => {
+ tempData.value=tableData.value.slice(pageNum*10-10,pageNum*10)
}
diff --git a/src/views/employee/verify/index.vue b/src/views/employee/verify/index.vue
index 11ccc1a..7d27bed 100644
--- a/src/views/employee/verify/index.vue
+++ b/src/views/employee/verify/index.vue
@@ -2,16 +2,16 @@
-
-
+
+
@@ -19,15 +19,24 @@
-
-
-
-
- {{scope.row.rating}}
-
+
+
+ 女
+ 男
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -39,13 +48,13 @@
+
+
+
@@ -61,10 +70,8 @@ import axios from "@/util/axios";
import { ElNotification } from 'element-plus'
import Dialog from '@/views/employee/dialog/index.vue'
-import axiosUtil from "@/util/axios";
-import {ElMessage} from "element-plus";
+
import {useRouter} from "vue-router"
-import {request} from "axios";
const RCollapse=ref([]);
@@ -82,7 +89,7 @@ const handleDialogValue=(ids)=>{
edialogVisible.value=true
}
-
+const tempData=ref([])
@@ -100,7 +107,7 @@ const tableData =ref([])
const handleCollapse=async (temp)=>{
- console.log(temp)
+ // console.log(temp)
const res=await axios.post("manicurist/queryAll");
RCollapse.value.splice(0,RCollapse.value.length);
LCollapse.value.splice(0,LCollapse.value.length);
@@ -116,8 +123,8 @@ const handleCollapse=async (temp)=>{
//console.log(item.state);
});
- console.log("RCollapse"+RCollapse.value);
- console.log("LCollapse"+LCollapse.value);
+ // console.log("RCollapse"+RCollapse.value);
+ // console.log("LCollapse"+LCollapse.value);
if (temp){
tableData.value=RCollapse.value
total.value=Number(RCollapse.value.length);
@@ -125,23 +132,28 @@ const handleCollapse=async (temp)=>{
tableData.value=LCollapse.value
total.value=Number(LCollapse.value.length);
}
+ tempData.value.slice(0,0)
+ tempData.value=tableData.value.slice(0,10)
+
}
const initEmployeeList=async()=>{
if (!query.value){
- const res=await axios.post("manicurist/queryAll");
- // console.log(res.data)
- tableData.value=res.data.data;
- total.value=res.data.data.length;
+ // const res=await axios.post("manicurist/queryAll");
+ // // console.log(res.data)
+ // tableData.value=res.data.data;
+ // total.value=res.data.data.length;
+ handleCollapse();
}else{
const res = await axios.get("manicurist/queryById", {manicuristId: query.value});
// console.log(res.data)
const temp = []
temp.push(res.data.data)
- tableData.value = temp;
+ tempData.value = temp;
total.value = 1;
}
+
}
@@ -149,14 +161,16 @@ const initEmployeeList=async()=>{
handleCollapse();
-const handleSizeChange = (pageSize) => {
- formPage.value.current=1;
- formPage.value.pageSize=pageSize;
- initBusinessList();
-}
+// const handleSizeChange = (pageSize) => {
+// // console.log("pageSize"+pageSize)
+// // formPage.value.current=1;
+// // formPage.value.pageSize=pageSize;
+// tempData.value=tableData.value.slice(pageSize-10,pageSize)
+// }
const handleCurrentChange = (pageNum) => {
- formPage.value.current=pageNum;
- initBusinessList();
+ // console.log("current"+pageNum)
+ // formPage.value.current=pageNum;
+ tempData.value=tableData.value.slice(pageNum*10-10,pageNum*10)
}