Przeglądaj źródła

feat: #摄影师审核重新对接

loki 3 lat temu
rodzic
commit
bae82d0cb5

+ 1 - 1
src/api/photoer/index.js

@@ -1,6 +1,6 @@
 import api from '@/utils/request';
 import api from '@/utils/request';
 
 
-export const getList = params =>
+export const getPage = params =>
 	api.post(`/yxl-back-end/admin/photoer/page`, params);
 	api.post(`/yxl-back-end/admin/photoer/page`, params);
 export const getItem = ({ id, ...params }) =>
 export const getItem = ({ id, ...params }) =>
 	api.get(`/yxl-back-end/admin/photoer/${id}`, params);
 	api.get(`/yxl-back-end/admin/photoer/${id}`, params);

+ 7 - 12
src/views/photographerManagement/photographerVerify/index.vue

@@ -15,7 +15,7 @@
 <script>
 <script>
 import toolbar from './toolbar';
 import toolbar from './toolbar';
 import mxFilterList from '@/mixins/filterList';
 import mxFilterList from '@/mixins/filterList';
-import { getList } from '@/api/photoer';
+import { getPage } from '@/api/photoer';
 
 
 export default {
 export default {
   name: 'PhotographerVerify',
   name: 'PhotographerVerify',
@@ -24,37 +24,32 @@ export default {
 
 
   mixins: [
   mixins: [
     mxFilterList({
     mxFilterList({
-      fetchList: getList // 在下方data再声明一个 fetchList: iGetList 同等效果
+      fetchList: getPage // 在下方data再声明一个 fetchList: iGetList 同等效果
     })
     })
   ],
   ],
 
 
   data() {
   data() {
     return {
     return {
       columns: [
       columns: [
-        // {
-        //   key: 'photo',
-        //   name: '会员ID',
-        //   width: '160'
-        // }
         {
         {
           key: 'realName',
           key: 'realName',
           name: '申请者',
           name: '申请者',
-          width: '180'
+          width: this.$col.m
         },
         },
         {
         {
           key: 'idCardNumber',
           key: 'idCardNumber',
           name: '身份证号',
           name: '身份证号',
-          minWidth: '180'
+          minWidth: this.$col.auto(240)
         },
         },
         {
         {
           key: 'phonenumber',
           key: 'phonenumber',
           name: '手机号',
           name: '手机号',
-          minWidth: '180'
+          minWidth: this.$col.b
         },
         },
         {
         {
           key: 'logo',
           key: 'logo',
           name: '有关图片',
           name: '有关图片',
-          width: '160',
+          width: this.$col.b,
           render: (h, { row }) =>
           render: (h, { row }) =>
             h('img', {
             h('img', {
               style: {
               style: {
@@ -79,7 +74,7 @@ export default {
         {
         {
           key: 'auditStatus',
           key: 'auditStatus',
           name: '状态',
           name: '状态',
-          minWidth: '180',
+          minWidth: this.$col.s,
           type: 'tag',
           type: 'tag',
           fetchTagType: val => {
           fetchTagType: val => {
             switch (val) {
             switch (val) {

+ 1 - 1
src/views/photographerManagement/photographerVerify/toolbar.vue

@@ -24,7 +24,7 @@ export default {
         },
         },
         {
         {
           type: 'select',
           type: 'select',
-          name: 'date',
+          name: 'auditStatus',
           label: '状态',
           label: '状态',
           options: AUDITTYPE,
           options: AUDITTYPE,
           format: val => val
           format: val => val