build / task (16.x, npm, macOS-latest) (push) Canceled after 0s
build / task (16.x, npm, ubuntu-latest) (push) Canceled after 0s
build / task (16.x, npm, windows-latest) (push) Canceled after 0s
build / task (16.x, pnpm, macOS-latest) (push) Canceled after 0s
build / task (16.x, pnpm, ubuntu-latest) (push) Canceled after 0s
build / task (16.x, pnpm, windows-latest) (push) Canceled after 0s
build / task (16.x, yarn, macOS-latest) (push) Canceled after 0s
build / task (16.x, yarn, ubuntu-latest) (push) Canceled after 0s
build / task (16.x, yarn, windows-latest) (push) Canceled after 0s
build / task (18.x, npm, macOS-latest) (push) Canceled after 0s
build / task (18.x, npm, ubuntu-latest) (push) Canceled after 0s
build / task (18.x, npm, windows-latest) (push) Canceled after 0s
build / task (18.x, pnpm, macOS-latest) (push) Canceled after 0s
build / task (18.x, pnpm, ubuntu-latest) (push) Canceled after 0s
build / task (18.x, pnpm, windows-latest) (push) Canceled after 0s
build / task (18.x, yarn, macOS-latest) (push) Canceled after 0s
build / task (18.x, yarn, ubuntu-latest) (push) Canceled after 0s
build / task (18.x, yarn, windows-latest) (push) Canceled after 0s
build / task (20.x, npm, macOS-latest) (push) Canceled after 0s
build / task (20.x, npm, ubuntu-latest) (push) Canceled after 0s
build / task (20.x, npm, windows-latest) (push) Canceled after 0s
build / task (20.x, pnpm, macOS-latest) (push) Canceled after 0s
build / task (20.x, pnpm, ubuntu-latest) (push) Canceled after 0s
build / task (20.x, pnpm, windows-latest) (push) Canceled after 0s
build / task (20.x, yarn, macOS-latest) (push) Canceled after 0s
build / task (20.x, yarn, ubuntu-latest) (push) Canceled after 0s
build / task (20.x, yarn, windows-latest) (push) Canceled after 0s
87 lines
3.2 KiB
Vue
87 lines
3.2 KiB
Vue
<template>
|
|
<div class="layout-padding">
|
|
<div class="layout-padding-auto layout-padding-view">
|
|
<el-row v-show="showSearch">
|
|
<el-form :inline="true" :model="state.queryForm" @keyup.enter="getDataList" ref="queryRef">
|
|
<el-form-item label="姓名" prop="name">
|
|
<el-input v-model="state.queryForm.name" placeholder="名称模糊查询" clearable />
|
|
</el-form-item>
|
|
<el-form-item label="手机号" prop="verifiedPhone">
|
|
<el-input v-model="state.queryForm.verifiedPhone" placeholder="核验手机号" clearable />
|
|
</el-form-item>
|
|
<el-form-item label="员工编码" prop="employeeCode">
|
|
<el-input v-model="state.queryForm.employeeCode" placeholder="GE_…" clearable />
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="Search" @click="getDataList">查询</el-button>
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-row>
|
|
<el-row>
|
|
<div class="mb8" style="width: 100%">
|
|
<right-toolbar v-model:showSearch="showSearch" class="ml10 mr20" style="float: right" @queryTable="getDataList" />
|
|
</div>
|
|
</el-row>
|
|
<el-table
|
|
:data="state.dataList"
|
|
v-loading="state.loading"
|
|
border
|
|
:cell-style="tableStyle.cellStyle"
|
|
:header-cell-style="tableStyle.headerCellStyle"
|
|
@sort-change="sortChangeHandle"
|
|
>
|
|
<el-table-column type="index" label="#" width="50" />
|
|
<el-table-column prop="displayName" label="姓名" min-width="100" show-overflow-tooltip />
|
|
<el-table-column prop="verifiedPhone" label="核验手机号" width="130" show-overflow-tooltip />
|
|
<el-table-column prop="employeeCode" label="员工编码" min-width="200" show-overflow-tooltip />
|
|
<el-table-column prop="openId" label="openid" min-width="160" show-overflow-tooltip />
|
|
<el-table-column prop="updateTime" label="更新时间" width="170" show-overflow-tooltip />
|
|
<el-table-column prop="createTime" label="创建时间" width="170" show-overflow-tooltip />
|
|
<el-table-column label="操作" width="120" fixed="right">
|
|
<template #default="scope">
|
|
<el-button
|
|
icon="edit-pen"
|
|
text
|
|
type="primary"
|
|
v-auth="'thirdparty_zzdPhoneBind_edit'"
|
|
@click="formDialogRef.openDialog(scope.row)"
|
|
>
|
|
改手机号
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
|
|
</div>
|
|
<form-dialog ref="formDialogRef" @refresh="getDataList(false)" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts" name="thirdpartyZzdPhoneBind">
|
|
import { BasicTableProps, useTable } from '/@/hooks/table'
|
|
import { fetchList } from '/@/api/thirdparty/zzdPhoneBind'
|
|
|
|
const FormDialog = defineAsyncComponent(() => import('./form.vue'))
|
|
|
|
const formDialogRef = ref()
|
|
const queryRef = ref()
|
|
const showSearch = ref(true)
|
|
|
|
const state: BasicTableProps = reactive<BasicTableProps>({
|
|
queryForm: {
|
|
name: '',
|
|
verifiedPhone: '',
|
|
employeeCode: '',
|
|
},
|
|
pageList: fetchList,
|
|
})
|
|
|
|
const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, tableStyle } = useTable(state)
|
|
|
|
const resetQuery = () => {
|
|
queryRef.value?.resetFields()
|
|
getDataList()
|
|
}
|
|
</script>
|