Преглед на файлове

页面页码组件全局引入

yuwenjun1997 преди 2 години
родител
ревизия
1b1158a7cb
променени са 39 файла, в които са добавени 159 реда и са изтрити 247 реда
  1. 0 2
      src/views/admin/audit/club/device/index.vue
  2. 0 2
      src/views/admin/audit/club/index.vue
  3. 0 2
      src/views/admin/audit/club/list.vue
  4. 0 2
      src/views/admin/audit/device/index.vue
  5. 1 2
      src/views/admin/audit/material/article/index.vue
  6. 0 2
      src/views/admin/audit/material/file/index.vue
  7. 0 2
      src/views/admin/audit/material/image/index.vue
  8. 0 2
      src/views/admin/audit/material/index.vue
  9. 0 2
      src/views/admin/audit/material/package/index.vue
  10. 0 2
      src/views/admin/audit/material/video/index.vue
  11. 0 2
      src/views/admin/audit/personnel/index.vue
  12. 0 2
      src/views/admin/audit/personnel/operate/index.vue
  13. 0 2
      src/views/admin/audit/personnel/training/index.vue
  14. 1 2
      src/views/admin/logistics-licensed/club/device/index.vue
  15. 2 8
      src/views/admin/logistics-licensed/components/club-list.vue
  16. 0 2
      src/views/admin/logistics-licensed/components/supplier-list.vue
  17. 0 4
      src/views/admin/member/index.vue
  18. 0 2
      src/views/admin/settings/menus/components/table-list.vue
  19. 9 15
      src/views/admin/supplier/club/device/index.vue
  20. 0 2
      src/views/admin/supplier/club/index.vue
  21. 0 2
      src/views/admin/supplier/index.vue
  22. 2 7
      src/views/common/helper/document/index.vue
  23. 1 2
      src/views/common/helper/video/index.vue
  24. 0 2
      src/views/normal/audit/club/components/club-list.vue
  25. 0 2
      src/views/normal/audit/club/components/device-list.vue
  26. 2 8
      src/views/normal/club/device-cate.vue
  27. 1 2
      src/views/normal/club/device/index.vue
  28. 5 9
      src/views/normal/club/index.vue
  29. 58 54
      src/views/normal/club/user/index-temp.vue
  30. 1 2
      src/views/normal/club/user/index.vue
  31. 6 8
      src/views/normal/feedback/index.vue
  32. 16 13
      src/views/normal/material/article/index.vue
  33. 14 15
      src/views/normal/material/file/index.vue
  34. 1 2
      src/views/normal/material/image/index.vue
  35. 13 14
      src/views/normal/material/package/index.vue
  36. 1 2
      src/views/normal/material/video/index.vue
  37. 12 20
      src/views/normal/personnel/operate/index.vue
  38. 12 20
      src/views/normal/personnel/training/index.vue
  39. 1 2
      src/views/normal/user/index.vue

+ 0 - 2
src/views/admin/audit/club/device/index.vue

@@ -79,10 +79,8 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { getProdList } from '@/api/product'
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false,

+ 0 - 2
src/views/admin/audit/club/index.vue

@@ -87,9 +87,7 @@
 
 <script>
 import { fetchSupplierList } from '@/api/supplier'
-import Pagination from '@/components/Pagination'
 export default {
-  components: { Pagination },
   data() {
     return {
       listQuery: {

+ 0 - 2
src/views/admin/audit/club/list.vue

@@ -118,11 +118,9 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { fecthAuthList, auditAuth } from '@/api/auth'
 import { mapGetters, mapMutations } from 'vuex'
 export default {
-  components: { Pagination },
   data() {
     return {
       // 是否显示dialog

+ 0 - 2
src/views/admin/audit/device/index.vue

@@ -87,9 +87,7 @@
 
 <script>
 import { fetchSupplierList } from '@/api/supplier'
-import Pagination from '@/components/Pagination'
 export default {
-  components: { Pagination },
   data() {
     return {
       listQuery: {

+ 1 - 2
src/views/admin/audit/material/article/index.vue

@@ -82,10 +82,9 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
+
 import { getArticleList } from '@/api/doc'
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false,

+ 0 - 2
src/views/admin/audit/material/file/index.vue

@@ -110,13 +110,11 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import openWindow from '@/utils/open-window'
 import { getFileList } from '@/api/doc'
 import { auditfile } from '@/api/docReview'
 import { mapGetters } from 'vuex'
 export default {
-  components: { Pagination },
   data() {
     return {
       dialogVisible: false, // 文件审核dialog是否显示

+ 0 - 2
src/views/admin/audit/material/image/index.vue

@@ -75,10 +75,8 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { getImageList } from '@/api/doc'
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false, // 列表加载

+ 0 - 2
src/views/admin/audit/material/index.vue

@@ -94,10 +94,8 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { fetchSupplierList } from '@/api/supplier'
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false,

+ 0 - 2
src/views/admin/audit/material/package/index.vue

@@ -109,12 +109,10 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { getFileList } from '@/api/doc'
 import { auditfile } from '@/api/docReview'
 import { mapGetters } from 'vuex'
 export default {
-  components: { Pagination },
   data() {
     return {
       dialogVisible: false, // 文件审核dialog是否显示

+ 0 - 2
src/views/admin/audit/material/video/index.vue

@@ -100,12 +100,10 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { getVideoList } from '@/api/doc'
 import { auditVideo } from '@/api/docReview'
 import { mapGetters } from 'vuex'
 export default {
-  components: { Pagination },
   data() {
     return {
       dialogVisible: false, // 视频审核dialog是否显示

+ 0 - 2
src/views/admin/audit/personnel/index.vue

@@ -86,9 +86,7 @@
 
 <script>
 import { fetchSupplierList } from '@/api/supplier'
-import Pagination from '@/components/Pagination'
 export default {
-  components: { Pagination },
   data() {
     return {
       listQuery: {

+ 0 - 2
src/views/admin/audit/personnel/operate/index.vue

@@ -83,12 +83,10 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { fetchDoctorList } from '@/api/doctor'
 
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false,

+ 0 - 2
src/views/admin/audit/personnel/training/index.vue

@@ -83,12 +83,10 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { fetchDoctorList } from '@/api/doctor'
 
 export default {
-  components: { Pagination },
   data() {
     return {
       listLoading: false,

+ 1 - 2
src/views/admin/logistics-licensed/club/device/index.vue

@@ -58,13 +58,12 @@
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
 import { getProdList } from '@/api/product'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import Qrcode from '@/components/qrcode'
 import { mapGetters } from 'vuex'
 import { setStorage } from '@/utils/storage'
 export default {
   name: 'ComplexTable',
-  components: { Pagination, Qrcode, PermissionButton },
+  components: { Qrcode, PermissionButton },
 
   data() {
     return {

+ 2 - 8
src/views/admin/logistics-licensed/components/club-list.vue

@@ -69,12 +69,7 @@
     </el-table>
 
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
 
     <!-- 物流信息 -->
     <el-dialog title="机构授权牌寄送" :visible.sync="dialogVisible" width="40%">
@@ -120,12 +115,11 @@
 <script>
 import { fecthAuthList } from '@/api/auth'
 import { fetchCompanyList, logisticsSend } from '@/api/logistics'
-import Pagination from '@/components/Pagination'
 import UploadImage from '@/components/UploadImage'
 import { isMobile } from '@/utils/validate'
 export default {
   name: 'ComplexTable',
-  components: { Pagination, UploadImage },
+  components: { UploadImage },
   props: {
     sendStatus: {
       type: Number,

+ 0 - 2
src/views/admin/logistics-licensed/components/supplier-list.vue

@@ -91,12 +91,10 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { fetchSupplierList } from '@/api/supplier'
 
 export default {
   name: 'ComplexTable',
-  components: { Pagination },
   props: {
     sendStatus: {
       type: Number,

+ 0 - 4
src/views/admin/member/index.vue

@@ -86,12 +86,8 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { fetchMemberList } from '@/api/member'
 export default {
-  components: {
-    Pagination
-  },
   data() {
     return {
       listLoading: false,

+ 0 - 2
src/views/admin/settings/menus/components/table-list.vue

@@ -109,12 +109,10 @@
 
 <script>
 import { fetchMenuList, updateMenuSelective, deleteMenu } from '@/api/system'
-import Pagination from '@/components/Pagination'
 import EditPage from './edit-page.vue'
 export default {
   name: 'TableList',
   components: {
-    Pagination,
     EditPage
   },
   filters: {

+ 9 - 15
src/views/admin/supplier/club/device/index.vue

@@ -6,7 +6,7 @@
         <el-input
           v-model="listQuery.productName"
           placeholder="商品名称"
-          style="width: 200px;"
+          style="width: 200px"
           class="filter-item"
           @keyup.enter.native="handleFilter"
         />
@@ -16,7 +16,7 @@
         <el-input
           v-model="listQuery.snCode"
           placeholder="商品SN码"
-          style="width: 200px;"
+          style="width: 200px"
           class="filter-item"
           @keyup.enter.native="handleFilter"
         />
@@ -65,7 +65,7 @@
       border
       fit
       highlight-current-row
-      style="width: 100%;"
+      style="width: 100%"
       header-row-class-name="tableHeader"
     >
       <el-table-column label="序号" :index="indexMethod" type="index" align="center" width="80" />
@@ -83,7 +83,7 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <el-button
                 v-if="userIdentity === 2 || proxyInfo !== null"
                 type="primary"
@@ -92,7 +92,7 @@
               >上线</el-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <el-button
                 v-if="userIdentity === 2 || proxyInfo !== null"
                 type="info"
@@ -104,7 +104,7 @@
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
         </template>
       </el-table-column>
@@ -128,12 +128,7 @@
     </el-table>
 
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
 
     <!-- 二维码 -->
     <transition name="fade">
@@ -144,12 +139,11 @@
 
 <script>
 import { getProdList } from '@/api/product'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import Qrcode from '@/components/qrcode'
 import { mapGetters } from 'vuex'
 export default {
   name: 'ComplexTable',
-  components: { Pagination, Qrcode },
+  components: { Qrcode },
 
   data() {
     return {
@@ -184,7 +178,7 @@ export default {
     // 获取列表信息
     getList() {
       getProdList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           const { total, list } = res.data
           this.total = total
           this.list = list

+ 0 - 2
src/views/admin/supplier/club/index.vue

@@ -128,12 +128,10 @@
 
 <script>
 import { fecthAuthList, authImportExcel } from '@/api/auth'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { debounce, downLoadWithATag } from '@/utils/tools'
 export default {
   name: 'ComplexTable',
-  components: { Pagination },
   data() {
     return {
       tableKey: 0,

+ 0 - 2
src/views/admin/supplier/index.vue

@@ -117,14 +117,12 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { fetchSupplierList, supplierStatusChange } from '@/api/supplier'
 import { resetPassword } from '@/api/user'
 import { fetchBrandList } from '@/api/brand'
 
 export default {
   name: 'ComplexTable',
-  components: { Pagination },
   // mixins: [scrollTo],
   data() {
     return {

+ 2 - 7
src/views/common/helper/document/index.vue

@@ -19,11 +19,7 @@
       </div>
       <div class="filter-control">
         <el-button type="primary" @click="getList">查询</el-button>
-        <el-button
-          v-if="userIdentity === 1"
-          type="primary"
-          @click="dialogVisible = true"
-        >添加</el-button>
+        <el-button v-if="userIdentity === 1" type="primary" @click="dialogVisible = true">添加</el-button>
       </div>
     </div>
     <!-- 搜索区域END -->
@@ -104,14 +100,13 @@
 
 <script>
 import FileUpload from '@/components/FileUpload'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import openWindow from '@/utils/open-window'
 import { mapGetters } from 'vuex'
 import { fetchCourseList, saveCourse, removeCourse } from '@/api/helper'
 import { debounce } from '@/utils/tools'
 import { sysMenuTree } from '@/api/system'
 export default {
-  components: { Pagination, FileUpload },
+  components: { FileUpload },
   data() {
     return {
       listLoading: false,

+ 1 - 2
src/views/common/helper/video/index.vue

@@ -99,14 +99,13 @@
 
 <script>
 import FileUpload from '@/components/FileUpload'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import openWindow from '@/utils/open-window'
 import { mapGetters } from 'vuex'
 import { fetchCourseList, saveCourse, removeCourse } from '@/api/helper'
 import { debounce } from '@/utils/tools'
 import { sysMenuTree } from '@/api/system'
 export default {
-  components: { Pagination, FileUpload },
+  components: { FileUpload },
 
   data() {
     var validateFileModule = (rule, value, callback) => {

+ 0 - 2
src/views/normal/audit/club/components/club-list.vue

@@ -107,11 +107,9 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { fecthAuthList, auditAuth } from '@/api/auth'
 import { mapGetters, mapMutations } from 'vuex'
 export default {
-  components: { Pagination },
   props: {
     shopAuditStatus: {
       type: Number,

+ 0 - 2
src/views/normal/audit/club/components/device-list.vue

@@ -76,10 +76,8 @@
 </template>
 
 <script>
-import Pagination from '@/components/Pagination'
 import { getProdList } from '@/api/product'
 export default {
-  components: { Pagination },
   props: {
     shopAuditStatus: {
       type: Number,

+ 2 - 8
src/views/normal/club/device-cate.vue

@@ -95,12 +95,7 @@
     </el-table>
 
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
 
     <!-- 设备添加对话框 -->
     <el-dialog title="添加设备" :visible.sync="dialogVisible" width="30%" @close="onDialogClose">
@@ -129,7 +124,6 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import UploadImage from '@/components/UploadImage'
 import { mapGetters } from 'vuex'
 import { createProductCate, fetchProductCateList, removeProductCate, updateProductCateStatus } from '@/api/product'
@@ -144,7 +138,7 @@ const resetFormData = () => ({
 
 export default {
   name: 'ComplexTable',
-  components: { Pagination, PermissionButton, UploadImage },
+  components: { PermissionButton, UploadImage },
   data() {
     return {
       isLoading: false,

+ 1 - 2
src/views/normal/club/device/index.vue

@@ -133,13 +133,12 @@
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
 import { getProdList, setProductStatus, removeProduct } from '@/api/product'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import Qrcode from '@/components/qrcode'
 import { mapGetters } from 'vuex'
 import { setStorage } from '@/utils/storage'
 export default {
   name: 'ComplexTable',
-  components: { Pagination, Qrcode, PermissionButton },
+  components: { Qrcode, PermissionButton },
   data() {
     return {
       authParty: '',

+ 5 - 9
src/views/normal/club/index.vue

@@ -107,7 +107,9 @@
           <permission-button type="primary" size="mini" @click="$_navigationTo(`device-list?id=${row.authId}`)">
             设备认证
           </permission-button>
-          <permission-button type="primary" size="mini" :disabled="row.status !== 1" @click="createClubQrcode(row)"> 二维码 </permission-button>
+          <permission-button type="primary" size="mini" :disabled="row.status !== 1" @click="createClubQrcode(row)">
+            二维码
+          </permission-button>
           <permission-button type="primary" size="mini" @click="cotyClubLink($event, row)">
             复制链接
           </permission-button>
@@ -124,12 +126,7 @@
     </el-table>
 
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
 
     <!-- 对话框区域 -->
     <el-dialog :title="dialogTitle" :visible.sync="showAddAuthDialog" width="30%" @close="dialogClosed">
@@ -182,13 +179,12 @@ import PermissionButton from '@/views/components/PermissionButton'
 import FileUpload from '@/components/FileUpload'
 import Qrcode from '@/components/qrcode/club-qrcode.vue'
 import { fecthAuthList, saveBrandAuth, changeAuthStatus, removeAuth, authImportExcel } from '@/api/auth'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { debounce, downloadWithUrl } from '@/utils/tools'
 import handleClipboard from '@/utils/clipboard'
 export default {
   name: 'ComplexTable',
-  components: { Pagination, FileUpload, PermissionButton, Qrcode },
+  components: { FileUpload, PermissionButton, Qrcode },
   data() {
     return {
       showQRcode: false,

+ 58 - 54
src/views/normal/club/user/index-temp.vue

@@ -4,20 +4,11 @@
     <div class="filter-container">
       <div class="filter-control">
         <span>手机号:</span>
-        <el-input
-          v-model="listQuery.mobile"
-          placeholder="手机号"
-          @keyup.enter.native="getList"
-        />
+        <el-input v-model="listQuery.mobile" placeholder="手机号" @keyup.enter.native="getList" />
       </div>
       <div class="filter-control">
         <span>状态:</span>
-        <el-select
-          v-model="listQuery.status"
-          placeholder="邀请码状态"
-          clearable
-          @change="getList"
-        >
+        <el-select v-model="listQuery.status" placeholder="邀请码状态" clearable @change="getList">
           <el-option label="全部" value="" />
           <el-option label="已绑定" :value="1" />
           <el-option label="未绑定" :value="0" />
@@ -51,53 +42,69 @@
         </template>
       </el-table-column>
       <el-table-column label="添加时间" width="160px" align="center">
-        <template slot-scope="{row}">
+        <template slot-scope="{ row }">
           <span>{{ row.addTime | formatTime }}</span>
         </template>
       </el-table-column>
       <el-table-column label="微信昵称" align="center">
-        <template slot-scope="{row}">
+        <template slot-scope="{ row }">
           <span v-if="row.nickName">{{ row.nickName }}</span>
           <span v-else>—</span>
         </template>
       </el-table-column>
       <el-table-column label="手机号" width="140" align="center">
-        <template slot-scope="{row}">
+        <template slot-scope="{ row }">
           <span v-if="row.mobile">{{ row.mobile }}</span>
           <span v-else>—</span>
         </template>
       </el-table-column>
       <el-table-column label="openID" width="280" align="center">
-        <template slot-scope="{row}">
+        <template slot-scope="{ row }">
           <span v-if="row.openId">{{ row.openId }}</span>
           <span v-else>—</span>
         </template>
       </el-table-column>
       <el-table-column label="绑定时间" width="160px" align="center">
-        <template slot-scope="{row}">
+        <template slot-scope="{ row }">
           <span v-if="row.bindTime">{{ row.bindTime | formatTime }}</span>
           <span v-else>—</span>
         </template>
       </el-table-column>
       <el-table-column label="操作" width="200px" align="center">
-        <template slot-scope="{row}">
-          <permission-button v-if="row.status === 1" type="danger" size="mini" style="margin-right:12px" @click="handleUnbindGenerate(row)">解绑邀请码</permission-button>
-          <permission-button v-else type="primary" size="mini" style="margin-right:12px" @click="handleUpdateGenerate(row)">更新邀请码</permission-button>
+        <template slot-scope="{ row }">
+          <permission-button
+            v-if="row.status === 1"
+            type="danger"
+            size="mini"
+            style="margin-right: 12px"
+            @click="handleUnbindGenerate(row)"
+          >解绑邀请码</permission-button>
+          <permission-button
+            v-else
+            type="primary"
+            size="mini"
+            style="margin-right: 12px"
+            @click="handleUpdateGenerate(row)"
+          >更新邀请码</permission-button>
         </template>
       </el-table-column>
     </el-table>
     <!-- 表格区域END -->
-    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList(listQuery)" />
+    <pagination
+      :total="total"
+      :page.sync="listQuery.pageNum"
+      :limit.sync="listQuery.pageSize"
+      @pagination="getList(listQuery)"
+    />
   </div>
 </template>
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { getAuthUserList, makeGenerate, unbindGenerate, updateGenerate } from '@/api/auth'
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       total: 0,
@@ -127,7 +134,7 @@ export default {
       this.listLoading = true
       this.listQuery.authId = this.authId
       getAuthUserList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           if (res.code !== 0) return
           this.list = res.data.list
           this.total = res.data.total
@@ -139,45 +146,42 @@ export default {
     },
     // 生成邀请码
     handleMakeGenerate() {
-      makeGenerate({ authId: this.authId })
-        .then(res => {
-          console.log(res)
-          if (res.code !== 0) return
-          this.$message({
-            type: 'success',
-            message: res.data,
-            duration: 500
-          })
-          this.getList()
+      makeGenerate({ authId: this.authId }).then((res) => {
+        console.log(res)
+        if (res.code !== 0) return
+        this.$message({
+          type: 'success',
+          message: res.data,
+          duration: 500
         })
+        this.getList()
+      })
     },
     // 更新邀请码
     handleUpdateGenerate(row) {
-      updateGenerate({ clubUserId: row.clubUserId })
-        .then(res => {
-          if (res.code !== 0) return
-          console.log(res)
-          this.$message({
-            type: 'success',
-            message: res.data,
-            duration: 500
-          })
-          this.getList()
+      updateGenerate({ clubUserId: row.clubUserId }).then((res) => {
+        if (res.code !== 0) return
+        console.log(res)
+        this.$message({
+          type: 'success',
+          message: res.data,
+          duration: 500
         })
+        this.getList()
+      })
     },
     // 解绑邀请码
     handleUnbindGenerate(row) {
-      unbindGenerate({ clubUserId: row.clubUserId })
-        .then(res => {
-          if (res.code !== 0) return
-          console.log(res)
-          this.$message({
-            type: 'success',
-            message: res.data,
-            duration: 500
-          })
-          this.getList()
+      unbindGenerate({ clubUserId: row.clubUserId }).then((res) => {
+        if (res.code !== 0) return
+        console.log(res)
+        this.$message({
+          type: 'success',
+          message: res.data,
+          duration: 500
         })
+        this.getList()
+      })
     },
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1
@@ -190,7 +194,7 @@ export default {
 .el-table .cell {
   overflow: visible;
 }
-.el-badge{
+.el-badge {
   margin: 0 6px;
 }
 </style>

+ 1 - 2
src/views/normal/club/user/index.vue

@@ -96,7 +96,6 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { createClubUser, getAuthUserList, removeClubUser } from '@/api/auth'
 import { isMobile } from '@/utils/validate'
@@ -109,7 +108,7 @@ const resetFormData = () => ({
 })
 
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     const validateMobile = (rule, value, callback) => {
       console.log(value)

+ 6 - 8
src/views/normal/feedback/index.vue

@@ -34,7 +34,6 @@
       cell-class-name="table-cell"
       header-row-class-name="tableHeader"
     >
-
       <el-table-column type="expand" width="50">
         <template slot-scope="{ row }">
           <el-form label-position="left" class="table-expand" label-width="110px">
@@ -54,7 +53,7 @@
               </span>
             </el-form-item>
             <el-form-item label="反馈内容:">
-              <span style="overflow-wrap:anywhere;text-align:justify">{{ row.content }}</span>
+              <span style="overflow-wrap: anywhere; text-align: justify">{{ row.content }}</span>
             </el-form-item>
             <el-form-item label="处理结果:">
               <span>{{ row.handleResult }}</span>
@@ -99,7 +98,7 @@
           <permission-button
             type="primary"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="$_navigationTo(`/feedback/detail?feedbackId=${row.feedbackId}`)"
           >处理</permission-button>
         </template>
@@ -118,11 +117,10 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination'
 import { mapGetters } from 'vuex'
 import { getFeedbackList } from '@/api/auth'
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       listLoading: false,
@@ -150,19 +148,19 @@ export default {
       this.listQuery.authUserId = this.authUserId
       console.log(this.listQuery)
       getFeedbackList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           console.log(res)
           if (res.code !== 0) return
           this.list = res.data.list
           this.total = res.data.total
         })
-        .catch(err => {
+        .catch((err) => {
           console.log(err)
         })
     },
     // 初始化预览图片列表
     initPreviewList(list) {
-      list.forEach(item => this.srcList.push(item.articleCover))
+      list.forEach((item) => this.srcList.push(item.articleCover))
     },
     indexMethod(index) {
       return index + this.listQuery.pageSize * (this.listQuery.pageNum - 1) + 1

+ 16 - 13
src/views/normal/material/article/index.vue

@@ -44,7 +44,11 @@
       <el-table-column label="序号" :index="indexMethod" type="index" width="80" align="center" />
       <el-table-column label="文章标题" prop="articleTitle" align="center" />
       <el-table-column label="文章头图" width="100px" align="center">
-        <template slot-scope="{ row }"> <el-image style="width: 50px; height: 50px" :src="row.articleImage" /></template>
+        <template slot-scope="{ row }">
+          <el-image
+            style="width: 50px; height: 50px"
+            :src="row.articleImage"
+          /></template>
       </el-table-column>
       <el-table-column label="审核状态" width="120px" align="center">
         <template slot-scope="{ row }">
@@ -56,7 +60,7 @@
             <el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
               <el-tag slot="reference" size="small" type="danger" class="reason">
                 <span>审核未通过</span>
-                <span class="el-icon-question status danger " />
+                <span class="el-icon-question status danger" />
               </el-tag>
             </el-popover>
             <!-- 未通过原因展示END -->
@@ -68,17 +72,17 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <permission-button type="primary" size="mini" @click="handleChangeStatus(row)">上线</permission-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <permission-button type="info" size="mini" plain @click="handleChangeStatus(row)">下线</permission-button>
             </template>
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
         </template>
       </el-table-column>
@@ -92,13 +96,13 @@
           <permission-button
             type="primary"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="$_navigationTo(`article-edit?articleId=${row.articleId}`)"
           >编辑</permission-button>
           <permission-button
             type="danger"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handleRemoveArticle(row)"
           >删除</permission-button>
         </template>
@@ -116,11 +120,10 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { changeArticleStatus, getArticleList, removeArticle } from '@/api/doc'
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       listLoading: false,
@@ -149,7 +152,7 @@ export default {
       this.listLoading = true
       this.listQuery.authUserId = this.authUserId
       getArticleList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           if (res.code !== 0) return
           this.list = res.data.list
           console.log(res)
@@ -169,7 +172,7 @@ export default {
         this.$message.info('已取消操作')
       })
       if (text !== 'confirm') return
-      removeArticle({ articleId: row.articleId }).then(res => {
+      removeArticle({ articleId: row.articleId }).then((res) => {
         if (res.code !== 0) return
         this.$message.success(res.data)
         this.getList(this.listQuery)
@@ -188,7 +191,7 @@ export default {
         status: item.status === 1 ? 0 : 1
       }
       changeArticleStatus(params)
-        .then(res => {
+        .then((res) => {
           // this.$message.success(res.data)
           this.$message({
             message: res.data,
@@ -197,7 +200,7 @@ export default {
           })
           this.getList()
         })
-        .catch(err => {
+        .catch((err) => {
           console.log(err)
         })
         .finally(() => {

+ 14 - 15
src/views/normal/material/file/index.vue

@@ -53,7 +53,7 @@
             <el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
               <el-tag slot="reference" size="small" type="danger" class="reason">
                 <span>审核未通过</span>
-                <span class="el-icon-question status danger " />
+                <span class="el-icon-question status danger" />
               </el-tag>
             </el-popover>
             <!-- 未通过原因展示END -->
@@ -65,17 +65,17 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <permission-button type="primary" size="mini" @click="handleChangeStatus(row)">上线</permission-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <permission-button type="info" size="mini" plain @click="handleChangeStatus(row)">下线</permission-button>
             </template>
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
         </template>
       </el-table-column>
@@ -89,19 +89,19 @@
           <permission-button
             type="primary"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handlePreviewFile(row)"
           >预览</permission-button>
           <permission-button
             type="primary"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handleShowDialog('edit', row)"
           >编辑</permission-button>
           <permission-button
             type="danger"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handleRemoveFile(row)"
           >删除</permission-button>
         </template>
@@ -126,7 +126,7 @@
         <el-form-item label="标题:" prop="fileTitle">
           <el-input v-model="dialogData.fileTitle" maxlength="50" show-word-limit />
         </el-form-item>
-        <el-form-item label="上传文件:" prop="fileName" style="margin-bottom:0">
+        <el-form-item label="上传文件:" prop="fileName" style="margin-bottom: 0">
           <upload-file
             ref="fileUpload"
             accept=".pdf"
@@ -151,13 +151,12 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import UploadFile from '@/components/UploadFile'
 import { mapGetters } from 'vuex'
 import { changeFileStatus, getFileList, removeFile, saveFile } from '@/api/doc'
 import openWindow from '@/utils/open-window'
 export default {
-  components: { Pagination, UploadFile, PermissionButton },
+  components: { UploadFile, PermissionButton },
   data() {
     return {
       listLoading: false, // 列表加载
@@ -210,7 +209,7 @@ export default {
       this.listLoading = true
       this.listQuery.authUserId = this.authUserId
       getFileList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           if (res.code !== 0) return
           this.list = res.data.list
           this.total = res.data.total
@@ -235,7 +234,7 @@ export default {
 
     // 调用保存数据接口
     save() {
-      this.$refs.formRef.validate(valide => {
+      this.$refs.formRef.validate((valide) => {
         if (!valide) return
         // 请求参数
         const params = {
@@ -245,7 +244,7 @@ export default {
         }
 
         saveFile(params)
-          .then(res => {
+          .then((res) => {
             this.dialogVisible = false
             this.getList()
             this.$message({
@@ -270,7 +269,7 @@ export default {
         this.$message.info('已取消操作')
       })
       if (text !== 'confirm') return
-      removeFile({ fileId: row.fileId }).then(res => {
+      removeFile({ fileId: row.fileId }).then((res) => {
         if (res.code !== 0) return
         this.$message.success(res.data)
         this.getList()
@@ -285,7 +284,7 @@ export default {
         status: item.status === 1 ? 0 : 1
       }
       changeFileStatus(params)
-        .then(res => {
+        .then((res) => {
           this.$message({
             message: res.data,
             duration: 500,

+ 1 - 2
src/views/normal/material/image/index.vue

@@ -113,11 +113,10 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { changeImageStatus, getImageList, removeImage } from '@/api/doc'
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       listLoading: false,

+ 13 - 14
src/views/normal/material/package/index.vue

@@ -53,7 +53,7 @@
             <el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
               <el-tag slot="reference" size="small" type="danger" class="reason">
                 <span>审核未通过</span>
-                <span class="el-icon-question status danger " />
+                <span class="el-icon-question status danger" />
               </el-tag>
             </el-popover>
             <!-- 未通过原因展示END -->
@@ -65,17 +65,17 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <permission-button type="primary" size="mini" @click="handleChangeStatus(row)">上线</permission-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <permission-button type="info" size="mini" plain @click="handleChangeStatus(row)">下线</permission-button>
             </template>
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
         </template>
       </el-table-column>
@@ -89,13 +89,13 @@
           <permission-button
             type="primary"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handleShowDialog('edit', row)"
           >编辑</permission-button>
           <permission-button
             type="danger"
             size="mini"
-            style="margin-right:12px"
+            style="margin-right: 12px"
             @click="handleRemoveFile(row)"
           >删除</permission-button>
         </template>
@@ -120,7 +120,7 @@
         <el-form-item label="资料包名称:" prop="fileTitle">
           <el-input v-model="dialogData.fileTitle" maxlength="50" show-word-limit />
         </el-form-item>
-        <el-form-item label="资料包路径:" prop="fileName" style="margin-bottom:0">
+        <el-form-item label="资料包路径:" prop="fileName" style="margin-bottom: 0">
           <upload-file
             ref="fileUpload"
             accept=".zip,.rar,.7z"
@@ -145,13 +145,12 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import UploadFile from '@/components/UploadFile'
 import { mapGetters } from 'vuex'
 import { changeFileStatus, getFileList, removeFile, saveFile } from '@/api/doc'
 import openWindow from '@/utils/open-window'
 export default {
-  components: { Pagination, UploadFile, PermissionButton },
+  components: { UploadFile, PermissionButton },
   data() {
     return {
       listLoading: false, // 列表加载
@@ -206,7 +205,7 @@ export default {
       this.listLoading = true
       this.listQuery.authUserId = this.authUserId
       getFileList(this.listQuery)
-        .then(res => {
+        .then((res) => {
           if (res.code !== 0) return
           this.list = res.data.list
           this.total = res.data.total
@@ -231,7 +230,7 @@ export default {
 
     // 调用保存数据接口
     save() {
-      this.$refs.formRef.validate(valide => {
+      this.$refs.formRef.validate((valide) => {
         if (!valide) return
         // 请求参数
         const params = {
@@ -241,7 +240,7 @@ export default {
         }
 
         saveFile(params)
-          .then(res => {
+          .then((res) => {
             this.dialogVisible = false
             this.getList()
             this.$message({
@@ -266,7 +265,7 @@ export default {
         this.$message.info('已取消操作')
       })
       if (text !== 'confirm') return
-      removeFile({ fileId: row.fileId }).then(res => {
+      removeFile({ fileId: row.fileId }).then((res) => {
         if (res.code !== 0) return
         this.$message.success(res.data)
         this.getList()
@@ -281,7 +280,7 @@ export default {
         status: item.status === 1 ? 0 : 1
       }
       changeFileStatus(params)
-        .then(res => {
+        .then((res) => {
           this.$message({
             message: res.data,
             duration: 500,

+ 1 - 2
src/views/normal/material/video/index.vue

@@ -182,12 +182,11 @@
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
 import UploadImage from '@/components/UploadImage'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { getToken } from '@/utils/auth'
 import { changeVideoStatus, getVideoList, removeVideo, saveVideo } from '@/api/doc'
 export default {
-  components: { Pagination, PermissionButton, UploadImage },
+  components: { PermissionButton, UploadImage },
   data() {
     return {
       dialogPreviewVisible: false,

+ 12 - 20
src/views/normal/personnel/operate/index.vue

@@ -36,7 +36,7 @@
       border
       fit
       highlight-current-row
-      style="width: 100%;"
+      style="width: 100%"
       header-row-class-name="tableHeader"
     >
       <el-table-column label="序号" :index="indexMethod" type="index" align="center" width="80" />
@@ -53,7 +53,7 @@
             <el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
               <el-tag slot="reference" size="small" type="danger" class="reason">
                 <span>审核未通过</span>
-                <span class="el-icon-question status danger " />
+                <span class="el-icon-question status danger" />
               </el-tag>
             </el-popover>
             <!-- 未通过原因展示END -->
@@ -66,21 +66,21 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <permission-button type="primary" size="mini" @click="handleChangeStatus(row)">上线</permission-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <permission-button type="info" size="mini" @click="handleChangeStatus(row)">下线</permission-button>
             </template>
           </template>
           <template v-else-if="row.auditStatus === 2">
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status danger">已下线</span>
+            <span style="margin-right: 10px" class="status danger">已下线</span>
           </template>
         </template>
       </el-table-column>
@@ -96,30 +96,22 @@
           <permission-button type="primary" size="mini" @click="$_navigationTo(`edit?type=edit&id=${row.doctorId}`)">
             编辑
           </permission-button>
-          <permission-button type="danger" size="mini" @click="handleRemoveDoctor(row)">
-            删除
-          </permission-button>
+          <permission-button type="danger" size="mini" @click="handleRemoveDoctor(row)"> 删除 </permission-button>
         </template>
       </el-table-column>
     </el-table>
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
   </div>
 </template>
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { fetchDoctorList, removeDoctor, doctorStatusChange } from '@/api/doctor'
 
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       listLoading: false,
@@ -149,7 +141,7 @@ export default {
     // 获取列表
     getList() {
       this.listQuery.authUserId = this.authUserId
-      fetchDoctorList(this.listQuery).then(res => {
+      fetchDoctorList(this.listQuery).then((res) => {
         console.log(res)
         this.list = res.data.list
         this.total = res.data.total
@@ -159,7 +151,7 @@ export default {
     handleChangeStatus(row) {
       const status = row.status === 1 ? 0 : 1
 
-      doctorStatusChange({ doctorId: row.doctorId, status }).then(res => {
+      doctorStatusChange({ doctorId: row.doctorId, status }).then((res) => {
         this.$message.success('状态修改成功')
         this.getList()
       })
@@ -175,7 +167,7 @@ export default {
       })
       if (text !== 'confirm') return
 
-      removeDoctor({ doctorId: row.doctorId }).then(res => {
+      removeDoctor({ doctorId: row.doctorId }).then((res) => {
         this.$message.success('删除成功')
         this.getList()
       })

+ 12 - 20
src/views/normal/personnel/training/index.vue

@@ -36,7 +36,7 @@
       border
       fit
       highlight-current-row
-      style="width: 100%;"
+      style="width: 100%"
       header-row-class-name="tableHeader"
     >
       <el-table-column label="序号" :index="indexMethod" type="index" align="center" width="80" />
@@ -53,7 +53,7 @@
             <el-popover placement="top-start" title="审核说明" width="400" trigger="hover" :content="row.invalidReason">
               <el-tag slot="reference" size="small" type="danger" class="reason">
                 <span>审核未通过</span>
-                <span class="el-icon-question status danger " />
+                <span class="el-icon-question status danger" />
               </el-tag>
             </el-popover>
             <!-- 未通过原因展示END -->
@@ -66,21 +66,21 @@
           <!-- 只有审核通过了才能操作上下线 auditStatus :审核状态 -->
           <template v-if="row.auditStatus === 1">
             <template v-if="row.status === 0">
-              <span style="margin-right:10px;" class="status danger">已下线</span>
+              <span style="margin-right: 10px" class="status danger">已下线</span>
               <permission-button type="primary" size="mini" @click="handleChangeStatus(row)">上线</permission-button>
             </template>
             <template v-else>
-              <span style="margin-right:10px;" class="status success ">已上线</span>
+              <span style="margin-right: 10px" class="status success">已上线</span>
               <permission-button type="info" size="mini" @click="handleChangeStatus(row)">下线</permission-button>
             </template>
           </template>
           <template v-else-if="row.auditStatus === 2">
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status warning">待上线</span>
+            <span style="margin-right: 10px" class="status warning">待上线</span>
           </template>
           <template v-else>
             <!-- <el-tag type="warning">待上线</el-tag> -->
-            <span style="margin-right:10px;" class="status danger">已下线</span>
+            <span style="margin-right: 10px" class="status danger">已下线</span>
           </template>
         </template>
       </el-table-column>
@@ -96,30 +96,22 @@
           <permission-button type="primary" size="mini" @click="$_navigationTo(`edit?type=edit&id=${row.doctorId}`)">
             编辑
           </permission-button>
-          <permission-button type="danger" size="mini" @click="handleRemoveDoctor(row)">
-            删除
-          </permission-button>
+          <permission-button type="danger" size="mini" @click="handleRemoveDoctor(row)"> 删除 </permission-button>
         </template>
       </el-table-column>
     </el-table>
     <!-- 页码 -->
-    <pagination
-      :total="total"
-      :page.sync="listQuery.pageNum"
-      :limit.sync="listQuery.pageSize"
-      @pagination="getList"
-    />
+    <pagination :total="total" :page.sync="listQuery.pageNum" :limit.sync="listQuery.pageSize" @pagination="getList" />
   </div>
 </template>
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { fetchDoctorList, removeDoctor, doctorStatusChange } from '@/api/doctor'
 
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     return {
       listLoading: false,
@@ -149,7 +141,7 @@ export default {
     // 获取列表
     getList() {
       this.listQuery.authUserId = this.authUserId
-      fetchDoctorList(this.listQuery).then(res => {
+      fetchDoctorList(this.listQuery).then((res) => {
         console.log(res)
         this.list = res.data.list
         this.total = res.data.total
@@ -159,7 +151,7 @@ export default {
     handleChangeStatus(row) {
       const status = row.status === 1 ? 0 : 1
 
-      doctorStatusChange({ doctorId: row.doctorId, status }).then(res => {
+      doctorStatusChange({ doctorId: row.doctorId, status }).then((res) => {
         this.$message.success('状态修改成功')
         this.getList()
       })
@@ -175,7 +167,7 @@ export default {
       })
       if (text !== 'confirm') return
 
-      removeDoctor({ doctorId: row.doctorId }).then(res => {
+      removeDoctor({ doctorId: row.doctorId }).then((res) => {
         this.$message.success('删除成功')
         this.getList()
       })

+ 1 - 2
src/views/normal/user/index.vue

@@ -116,7 +116,6 @@
 
 <script>
 import PermissionButton from '@/views/components/PermissionButton'
-import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 import { mapGetters } from 'vuex'
 import { authUserStatusChange, createClubUser, getAuthUserList, resetClubUserPassword } from '@/api/auth'
 import { isMobile } from '@/utils/validate'
@@ -128,7 +127,7 @@ const resetFormData = () => ({
 })
 
 export default {
-  components: { Pagination, PermissionButton },
+  components: { PermissionButton },
   data() {
     const validateMobile = (rule, value, callback) => {
       console.log(value)