|
@@ -9,7 +9,7 @@
|
|
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table :data="response.rows" border @selection-change="selects">
|
|
|
+ <el-table :data="list" border @selection-change="selects">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="姓名" align="center" prop="name" />
|
|
|
<el-table-column label="电话" align="center" prop="phone" />
|
|
@@ -24,7 +24,6 @@
|
|
|
<el-empty></el-empty>
|
|
|
</template>
|
|
|
</el-table>
|
|
|
- <pagination v-if="response.total > 0" :total="response.total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
|
|
|
<div class="mfooter">
|
|
|
<el-button type="primary" @click="ok()" :disabled="rows.length == 0">选中 {{ rows.length > 0 ? rows.length + '人' : '' }}</el-button>
|
|
|
<el-button @click="$layer.close(layerid)">取 消</el-button>
|
|
@@ -38,9 +37,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
rows: [],
|
|
|
+ list: [],
|
|
|
queryParams: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
name: null
|
|
|
}
|
|
|
};
|
|
@@ -51,11 +49,10 @@ export default {
|
|
|
methods: {
|
|
|
getList() {
|
|
|
this.ajax({ url: '/work/record/visit/list', data: this.queryParams }).then((response) => {
|
|
|
- this.response = response;
|
|
|
+ this.list = response.data;
|
|
|
});
|
|
|
},
|
|
|
handleQuery() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
this.getList();
|
|
|
},
|
|
|
resetQuery() {
|