|
@@ -0,0 +1,38 @@
|
|
|
+<template>
|
|
|
+ <base-form slot="content" ref="ruleForm" :data="searchData">
|
|
|
+ <div slot="footer">
|
|
|
+ <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
|
|
|
+ <!-- <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出{{ this.$route.meta.title }}信息</el-button> -->
|
|
|
+ </div>
|
|
|
+ </base-form>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ mixins: [],
|
|
|
+ props: {
|
|
|
+ listLoading: Boolean
|
|
|
+ },
|
|
|
+ inject: ['parentData'],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ searchData: [
|
|
|
+ { label: '手机号', key: 'phone' },
|
|
|
+ { label: '昵称', key: 'nickname' },
|
|
|
+ { label: '角色', key: 'group_type', type: 'select', options: this.$dictData.group_type},
|
|
|
+ { label: '状态', key: 'auth_state', type: 'select', options: this.$dictData.auth_state},
|
|
|
+ // { label: '角色', key: 'role_id', type: 'selectRemote',
|
|
|
+ // remoteParams: { skey: 'name', api: `base.admroleslist`, opKey: 'name', opVal: 'id' },
|
|
|
+ // },
|
|
|
+ { label: '推荐人', key: 'referrer' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ searchHandle() {
|
|
|
+ const oldform = this.$refs.ruleForm.baseForm
|
|
|
+ const newForm = { ...oldform }
|
|
|
+ this.$emit('change', newForm)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|