大宝管理后台代码
xxx
dcc
2024-05-07 abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7
src/views/managesettings/managelist.vue
@@ -141,23 +141,23 @@
        {
          title: 'id',
          dataIndex: 'id',
          align: 'center',
          align: 'center'
        },
        {
          title: '管理员姓名',
          dataIndex: 'adminName',
          align: 'center',
          align: 'center'
        },
        {
          title: '管理员手机号',
          dataIndex: 'adminPhone',
          align: 'center',
          align: 'center'
        },
        {
          title: '管理员状态',
          dataIndex: 'isLock',
          align: 'center',
          scopedSlots: { customRender: 'isLock' },
          scopedSlots: { customRender: 'isLock' }
        },
        {
@@ -166,14 +166,14 @@
          align: 'center',
          customRender: (text, row, index) => {
            return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
          },
          }
        },
        {
          title: '操作',
          key: 'action',
          align: 'center',
          scopedSlots: { customRender: 'action' },
        },
          scopedSlots: { customRender: 'action' }
        }
      ],
      // 表头
      pagination: {
@@ -183,23 +183,23 @@
        pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据
        onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示
        onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件
        showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据
        showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据
      },
      loading: false,
      queryParam: {
        pageNum: 1,
        pageSize: 10,
        adminName: '',
        adminPhone: '',
        adminPhone: ''
      },
      datalist: [],
      labelCol: {
        xs: { span: 24 },
        sm: { span: 7 },
        sm: { span: 7 }
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 13 },
        sm: { span: 13 }
      },
      addUserform: this.$form.createForm(this),
      addUserdialog: false,
@@ -208,7 +208,7 @@
      editStockdialog: false,
      editStockdialogloading: false,
      editStockform: this.$form.createForm(this),
      fields: ['id', 'adminPwd'],
      fields: ['id', 'adminPwd']
    }
  },
  created() {
@@ -276,7 +276,7 @@
        pageNum: 1,
        pageSize: 10,
        adminName: '',
        adminPhone: '',
        adminPhone: ''
      }
    },
    getlist() {
@@ -310,7 +310,7 @@
      this.queryParam.pageNum = current
      this.queryParam.pageSize = pageSize
      this.getlist()
    },
  },
    }
  }
}
</script>