|
@@ -12,27 +12,18 @@
|
|
|
:page-size="pageSize"
|
|
|
:total-records="totalRecords"
|
|
|
@currentChange="pageHandle"
|
|
|
- :isAdd="true"
|
|
|
- @add="openPopup"
|
|
|
- />
|
|
|
- <popup-edit
|
|
|
- :isShow="isDtlShow"
|
|
|
- :curObj="curObj"
|
|
|
- @close="closePopup"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { arrToObj } from '@/utils'
|
|
|
import SearchForm from './components/searchForm/Index'
|
|
|
-import PopupEdit from './components/popup/IndexEdit'
|
|
|
import baseTable from '_m/baseTable.js'
|
|
|
import xData from './mixin'
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
components: {
|
|
|
SearchForm,
|
|
|
- PopupEdit,
|
|
|
},
|
|
|
provide() {
|
|
|
return {
|
|
@@ -53,6 +44,7 @@ export default {
|
|
|
tableData2() {
|
|
|
const arr = [...this.tableData]
|
|
|
arr.map(item => {
|
|
|
+ item.phones = item.phone.substring(0, 7) + '****'
|
|
|
})
|
|
|
return arr
|
|
|
}
|
|
@@ -63,7 +55,7 @@ export default {
|
|
|
rows: [
|
|
|
{ label: '头像', prop: 'avatar', type: 'img' },
|
|
|
{ label: '昵称', prop: 'nickname' },
|
|
|
- { label: '手机号', prop: 'email' },
|
|
|
+ { label: '手机号', prop: 'phones' },
|
|
|
{ label: '注册时间', prop: 'create_at' },
|
|
|
// { label: '操作', width: 200, type: 'handle2', operations:
|
|
|
// [
|