zs 2 vuotta sitten
vanhempi
commit
c6229acc8d

+ 1 - 1
src/views/match/index.vue

@@ -66,7 +66,7 @@ onMounted(async () => {
   loading.value = false;
 });
 const search = async (e: { skip: number; limit: number }) => {
-  const info = { skip: e.skip, limit: e.limit, ...searchForm.value, status: '0' };
+  const info = { skip: e.skip, limit: e.limit, ...searchForm.value };
   const res: IQueryResult = await matchAxios.query(info);
   if (res.errcode == '0') {
     list.value = res.data;

+ 3 - 3
src/views/team/examine/detail.vue

@@ -74,9 +74,9 @@ onMounted(async () => {
   loading.value = false;
 });
 const search = async () => {
-  let openid = route.query.openid;
-  if (openid) {
-    let res: IQueryResult = await teamAxios.fetch(openid);
+  let id = route.query.id;
+  if (id) {
+    let res: IQueryResult = await teamAxios.fetch(id);
     if (res.errcode == '0') {
       let info: any = res.data as {};
       form.value = info;

+ 1 - 1
src/views/team/examine/index.vue

@@ -109,7 +109,7 @@ const toView = (data) => {
 };
 // 审核
 const toExam = async (data) => {
-  let res: IQueryResult = await teamAxios.fetch(data.openid);
+  let res: IQueryResult = await teamAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;
     dialog.value = { title: '审核管理', show: true, type: '1' };

+ 3 - 3
src/views/team/team/detail.vue

@@ -69,9 +69,9 @@ onMounted(async () => {
   loading.value = false;
 });
 const search = async () => {
-  let openid = route.query.openid;
-  if (openid) {
-    let res: IQueryResult = await teamAxios.fetch(openid);
+  let id = route.query.id;
+  if (id) {
+    let res: IQueryResult = await teamAxios.fetch(id);
     if (res.errcode == '0') {
       let info: any = res.data as {};
       form.value = info;

+ 2 - 2
src/views/users/match/index.vue

@@ -103,7 +103,7 @@ const getDict = (e, model) => {
 };
 // 审核
 const toExam = async (data) => {
-  let res: IQueryResult = await userAxios.fetch(data.openid);
+  let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;
     dialog.value = { title: '审核管理', show: true, type: '1' };
@@ -149,7 +149,7 @@ const searchOther = async () => {
   res = await dictAxios.query({ type: 'type' });
   if (res.errcode == '0') typeList.value = res.data;
   // 状态
-  res = await dictAxios.query({ type: 'ststus' });
+  res = await dictAxios.query({ type: 'status' });
   if (res.errcode == '0') statusList.value = res.data;
 };
 </script>

+ 2 - 2
src/views/users/team/index.vue

@@ -103,7 +103,7 @@ const getDict = (e, model) => {
 };
 // 审核
 const toExam = async (data) => {
-  let res: IQueryResult = await userAxios.fetch(data.openid);
+  let res: IQueryResult = await userAxios.fetch(data._id);
   if (res.errcode == '0') {
     form.value = res.data;
     dialog.value = { title: '审核管理', show: true, type: '1' };
@@ -149,7 +149,7 @@ const searchOther = async () => {
   res = await dictAxios.query({ type: 'type' });
   if (res.errcode == '0') typeList.value = res.data;
   // 状态
-  res = await dictAxios.query({ type: 'ststus' });
+  res = await dictAxios.query({ type: 'status' });
   if (res.errcode == '0') statusList.value = res.data;
 };
 </script>