| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826 |
- <template>
- <basic-container>
- <avue-crud :option="option"
- :table-loading="loading"
- :data="data"
- :page.sync="page"
- :permission="permissionList"
- :before-open="beforeOpen"
- v-model="form"
- ref="crud"
- @row-update="rowUpdate"
- @row-save="rowSave"
- @row-del="rowDel"
- @search-change="searchChange"
- @search-reset="searchReset"
- @selection-change="selectionChange"
- @current-change="currentChange"
- @size-change="sizeChange"
- @refresh-change="refreshChange"
- @on-load="onLoad">
- <template slot="menuLeft">
- <el-button type="danger"
- size="small"
- icon="el-icon-delete"
- plain
- v-if="permission.basicinfo_delete"
- @click="handleDelete">删 除
- </el-button>
- </template>
- <!-- <template slot="buildingId" slot-scope="scope">-->
- <!-- <span v-if="scope.row.buildingId!==-1">-->
- <!-- {{scope.row.buildingName}}-->
- <!-- </span>-->
- <!-- </template>-->
- <!-- <template slot="floorId" slot-scope="scope">-->
- <!-- <span v-if="scope.row.floorId!==-1">-->
- <!-- {{scope.row.floorName}}-->
- <!-- </span>-->
- <!-- </template>-->
- <!-- <template slot="unitId" slot-scope="scope">-->
- <!-- <span v-if="scope.row.unitId!==-1">-->
- <!-- {{scope.row.unitName}}-->
- <!-- </span>-->
- <!-- </template>-->
- <!-- <template slot="roomId" slot-scope="scope">-->
- <!-- <span v-if="scope.row.roomId!==-1">-->
- <!-- {{scope.row.roomName}}-->
- <!-- </span>-->
- <!-- </template>-->
- <!-- <template slot="menu" slot-scope="scope">-->
- <!-- <el-button icon="el-icon-setting" size="mini" type="text">-->
- <!-- <el-dropdown>-->
- <!-- <span class="el-dropdown-link" style="font-size: xx-small; color: #4babfe">设置标签<i class="el-icon-arrow-down el-icon--right"></i></span>-->
- <!-- <el-dropdown-menu slot="dropdown">-->
- <!-- <el-dropdown-item type="text" @click.native="tagsFormOpen('elder', scope.row)">高龄老人</el-dropdown-item>-->
- <!-- <el-dropdown-item type="text" @click.native="tagsFormOpen('keyPerson', scope.row)">重点人员</el-dropdown-item>-->
- <!-- <el-dropdown-item type="text" @click.native="tagsFormOpen('disabler', scope.row)">残障人士</el-dropdown-item>-->
- <!-- <!– <el-dropdown-item type="text" @click.native="tagsFormOpen('household', scope.row)">常住人员</el-dropdown-item>–>-->
- <!-- <!– <el-dropdown-item type="text" @click.native="tagsFormOpen('enterpriseStaff', scope.row)">企业员工</el-dropdown-item>–>-->
- <!-- </el-dropdown-menu>-->
- <!-- </el-dropdown>-->
- <!-- </el-button>-->
- <!-- </template>-->
- <!-- 标签点击事件-->
- <!-- <template slot="tags" slot-scope="scope" style="display: flex">-->
- <!-- <div v-if="scope.row.tags!== null">-->
- <!-- <el-button style="margin: auto" class="el-icon-collection-tag" v-for="item in scope.row.tags.split(',')" @click.native="tagsDetail(item,scope.row)" size="mini" type="text">-->
- <!-- {{item}}-->
- <!-- </el-button>-->
- <!-- </div>-->
- <!-- </template>-->
- </avue-crud>
- <!-- 显示标签详情组件-->
- <!-- <el-dialog title="残障人士【标签详情】" :visible.sync="disablerTagsdetail" :modal-append-to-body="false">-->
- <!-- <DisablerTagsDetail v-if="disablerTagsdetail" :basic-data="basicData"></DisablerTagsDetail>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="高龄老人【标签详情】" :visible.sync="elderTagsdetail" :modal-append-to-body="false">-->
- <!-- <ElderTagsDetail v-if="elderTagsdetail" :basic-data="basicData"></ElderTagsDetail>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="重点人员【标签详情】" :visible.sync="keyPersonTagsdetail" :modal-append-to-body="false">-->
- <!-- <KeypeopleTagsDetail v-if="keyPersonTagsdetail" :basic-data="basicData"></KeypeopleTagsDetail>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="常住人员【标签详情】" :visible.sync="householdTagsdetail" :modal-append-to-body="false">-->
- <!-- <HouseholdTagsDetail v-if="householdTagsdetail" :basic-data="basicData"></HouseholdTagsDetail>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="企业员工【标签详情】" :visible.sync="enterpriseStaffTagsdetail" :modal-append-to-body="false">-->
- <!-- <EnterpriseStaffTagsDetail v-if="enterpriseStaffTagsdetail" :basic-data="basicData"></EnterpriseStaffTagsDetail>-->
- <!-- </el-dialog>-->
- <!-- 标签添加信息组件-->
- <!-- <el-dialog title="高龄老人【添加标签信息】" :visible.sync="elderTags" :modal-append-to-body="false">-->
- <!-- <ElderTagsForm v-if="elderTags" :basic-data="basicData" :close-fn="() => {elderTags = false}"></ElderTagsForm>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="残障人士【添加标签信息】" :visible.sync="disablerTags" :modal-append-to-body="false">-->
- <!-- <DisablerTagsForm v-if="disablerTags" :basic-data="basicData" :close-fn="() => {disablerTags = false}"></DisablerTagsForm>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="重点人员【添加标签信息】" :visible.sync="keyPersonTags" :modal-append-to-body="false">-->
- <!-- <KeyPersonTagsForm v-if="keyPersonTags" :basic-data="basicData" :close-fn="() => {keyPersonTags = false}"></KeyPersonTagsForm>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="常住人员【添加标签信息】" :visible.sync="householdTags" :modal-append-to-body="false">-->
- <!-- <HouseholdTagsForm v-if="householdTags" :basic-data="basicData" :close-fn="() => {householdTags = false}"></HouseholdTagsForm>-->
- <!-- </el-dialog>-->
- <!-- <el-dialog title="企业人员【添加标签信息】" :visible.sync="enterpriseStaffTags" :modal-append-to-body="false">-->
- <!-- <EnterpriseStaffTagsForm v-if="enterpriseStaffTags" :basic-data="basicData" :close-fn="() => {enterpriseStaffTags = false}"></EnterpriseStaffTagsForm>-->
- <!-- </el-dialog>-->
- </basic-container>
- </template>
- <script>
- import {getList, getDetail, add, update, remove} from "@/api/person/basicinfo";
- import {mapGetters} from "vuex";
- // import ElderTagsForm from "@/components/person-tags/elderTags-form";
- // import DisablerTagsForm from "@/components/person-tags/disablerTags-form";
- // import KeyPersonTagsForm from "@/components/person-tags/keyPersonTags-form";
- // import EnterpriseStaffTagsForm from "@/components/person-tags/enterpriseStaffTags-form";
- // import HouseholdTagsForm from "@/components/person-tags/householdTags-form";
- // import ElderTagsDetail from "@/components/person-tags/elderTags-detail";
- // import DisablerTagsDetail from "@/components/person-tags/disablerTags-detail";
- // import KeypeopleTagsDetail from "@/components/person-tags/keyPersonTags-detail";
- // import HouseholdTagsDetail from "@/components/person-tags/householdTags-detail";
- // import EnterpriseStaffTagsDetail from "@/components/person-tags/enterpriseStaffTags-detail";
- import {DIC} from "@/api/util/nation"
- export default {
- // components: {ElderTagsForm, DisablerTagsForm,KeyPersonTagsForm,DisablerTagsDetail,ElderTagsDetail,KeypeopleTagsDetail},
- data() {
- return {
- elderTags: false,
- disablerTags: false,
- keyPersonTags: false,
- householdTags:false,
- enterpriseStaffTags:false,
- elderTagsdetail:false,
- disablerTagsdetail:false,
- keyPersonTagsdetail:false,
- // householdTagsdetail:false,
- // enterpriseStaffTagsdetail:false,
- basicData: {},
- form: {},
- query: {},
- loading: true,
- page: {
- pageSize: 10,
- currentPage: 1,
- total: 0
- },
- selectionList: [],
- option: {
- height:'auto',
- calcHeight: 30,
- labelWidth: 120,
- tip: false,
- searchShow: true,
- searchMenuSpan: 6,
- border: true,
- index: true,
- viewBtn: true,
- selection: true,
- dialogClickModal: false,
- // menuWidth:500,
- column: [
- {
- label: "身份证号",
- labelWidth: 150,
- prop: "idCard",
- search:true,
- hide: true,
- rules: [{
- required: false,
- message: "请输入身份证号码",
- trigger: "blur"
- }]
- },
- {
- label: "姓名",
- prop: "name",
- search:true,
- rules: [{
- required: true,
- message: "请输入姓名",
- trigger: "blur"
- }]
- },
- {
- label: "性别",
- prop: "sex",
- type: 'select',
- dataType:"number",
- search:true,
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=sex",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: true,
- message: "请选择性别",
- trigger: "blur"
- }]
- },
- {
- label: "照片",
- prop: "imageUri",
- type: 'upload',
- hide:true,
- listType: 'picture-img',
- propsHttp: {
- res: "data",
- url: "link"
- },
- action: "/api/blade-resource/oss/endpoint/put-file",
- tip: '只能生产jpg/png图片,且不超过500kb',
- rules: [{
- required: false,
- message: "请上传入境证明url",
- trigger: "blur"
- }]
- },
- { //列表是展示
- label: "所属社区",
- prop: "agencyName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属社区",
- prop: "agencyId",
- search: true,
- cascaderItem: ['residentialId'],
- type: "select",
- // remote: true,
- // dicData: [],
- dicUrl: "/api/cyzh-community/agency/list?size=500",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择所属社区",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label: "所属小区",
- prop: "residentialName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属小区",
- prop: "residentialId",
- dataType:'number',
- type: "select",
- search: true,
- cascaderItem: ['buildingId'],
- dicUrl: "/api/cyzh-community/residential/list?agencyId={{key}}&size=500",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- // filterable: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择所属小区",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label: "所属楼栋",
- prop: "buildingName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属楼栋",
- prop: "buildingId",
- type: "select",
- // slot:true,
- search: true,
- cascaderItem: ['unitId'],
- dicUrl: "/api/cyzh-community/building/list?residentialId={{key}}&size=500",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- // dicFlag: true,
- // filterable: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择楼栋",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label: "所属单元",
- prop: "unitName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属单元",
- prop: "unitId",
- type: "select",
- // slot:true,
- search: true,
- cascaderItem: ['floorId'],
- dicUrl: "/api/cyzh-community/unit/list?buildingId={{key}}&size=500",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- // dicFlag: false,
- // filterable: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择单元",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label: "所属楼层",
- prop: "floorName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属楼层",
- prop: "floorId",
- type: "select",
- // slot:true,
- search: true,
- cascaderItem: ['roomId'],
- dicUrl: "/api/cyzh-community/floor/list?unitId={{key}}&size=100",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- // dicFlag: false,
- filterable: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择楼层d",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label: "所属房间",
- prop: "roomName",
- addDisplay: false,
- editDisplay: false,
- },
- {
- label: "所属房间",
- prop: "roomId",
- type: "select",
- // slot:true,
- search: true,
- dicUrl: "/api/cyzh-community/room/list?floorId={{key}}&size=500¤t=1",
- dicFormatter:(res)=>{
- return res.data.records;//返回字典的层级结构
- },
- // dicFlag: false,
- filterable: true,
- props: {
- label: "name",
- value: "id"
- },
- rules: [{
- required: true,
- message: "请选择房间",
- trigger: "blur"
- }],
- hide: true,
- viewDisplay: false
- },
- {
- label:'手机号码',
- prop:'phone',
- width:120,
- rules: [{
- required: true,
- message: "请输入手机号码",
- trigger: "blur"
- }]
- },
- {
- label: "生日",
- prop: "birthday",
- type:'date',
- valueFormat:"yyyy-MM-dd",
- hide: true,
- rules: [{
- required: false,
- message: "请输入生日",
- trigger: "blur"
- }]
- },
- // {
- // label: "民族",
- // prop: "nation",
- // hide:true,
- // rules: [{
- // required: true,
- // message: "请输入民族",
- // trigger: "blur"
- // }]
- // },
- {
- label: "民族",
- prop: "nation",
- type:'select',
- dicData:DIC.VALUE,
- filterable:true,
- // searchFilterable:true,
- hide:true,
- rules: [{
- required: true,
- message: "请输入民族",
- trigger: "blur"
- }]
- },
- {
- label: "籍贯",
- prop: "nativePlace",
- hide:true,
- rules: [{
- required: false,
- message: "请输入籍贯",
- trigger: "blur"
- }]
- },
- {
- label: "国籍",
- prop: "nationality",
- hide:true,
- type:'select',
- dataType:'number',
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=nationality",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: false,
- message: "请输入国籍",
- trigger: "blur"
- }]
- },
- {
- label: "政治面貌",
- prop: "political",
- hide:true,
- type: 'select',
- dataType:"number",
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=political",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: false,
- message: "请选择政治面貌",
- trigger: "blur"
- }]
- },
- {
- label: "婚姻状况",
- prop: "maritalStatus",
- type: 'select',
- dataType:"number",
- hide:true,
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=marital-status",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: false,
- message: "请选择婚姻状况",
- trigger: "blur"
- }]
- },
- {
- label: "教育水平",
- prop: "educationalLevel",
- hide:true,
- type: 'select',
- dataType:"number",
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=educational-level",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: false,
- message: "请选择教育水平",
- trigger: "blur"
- }]
- },
- {
- label: "工作单位",
- prop: "workplace",
- hide:true,
- rules: [{
- required: false,
- message: "请输入工作单位",
- trigger: "blur"
- }]
- },
- {
- label: "小程序openId",
- prop: "openId",
- hide: true,
- display: false,
- rules: [{
- required: false,
- message: "请输入小程序openId",
- trigger: "blur"
- }]
- },
- {
- label: "邮箱",
- prop: "email",
- hide:true,
- rules: [{
- required: false,
- message: "请输入邮箱",
- trigger: "blur"
- }]
- },
- {
- label:"是否会员",
- prop:'isMember',
- type:"select",
- hide:true,
- dataType:'number',
- dicData:[
- {
- label:'是',
- value:1
- },{
- label:'否',
- value:0
- },{
- label:'暂无',
- value:-1
- }
- ],
- },
- {
- label: "人员标签",
- prop: "tags",
- type:'checkbox',
- search:true,
- multiple:true,
- span: 24,
- dataType:'string',
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=person-tag",
- props: {
- label: "dictValue",
- value: "dictKey"
- },
- rules: [{
- required: true,
- message: "请输入标签",
- trigger: "blur"
- }]
- },
- {
- label: "备注",
- prop: "remark",
- hide:true,
- rules: [{
- required: false,
- message: "请输入备注",
- trigger: "blur"
- }]
- },
- // {
- // label:'创建时间',
- // prop:'createTime',
- // type:"datetime",
- // span:12,
- // search:true,
- // valueFormat: 'yyyy-MM-dd HH:mm:ss',
- // format: 'yyyy-MM-dd HH:mm:ss',
- // defaultTime:['2020-1-1 00:00:00','2021-6-30 23:59:59'],
- // // dateDefault: true,
- // // searchValue:['2020-1-1 00:00:00','2021-6-30 23:59:59'],
- // searchRange:true,
- // searchClearable: false,
- // rules: [{
- // required: false,
- // message: "请输入创建时间",
- // trigger: "blur"
- // }]
- // }
- ]
- },
- data: []
- };
- },
- watch:{
- },
- computed: {
- ...mapGetters(["permission"]),
- permissionList() {
- return {
- addBtn: this.vaildData(this.permission.basicinfo_add, false),
- viewBtn: this.vaildData(this.permission.basicinfo_view, false),
- delBtn: this.vaildData(this.permission.basicinfo_delete, false),
- editBtn: this.vaildData(this.permission.basicinfo_edit, false)
- };
- },
- ids() {
- let ids = [];
- this.selectionList.forEach(ele => {
- ids.push(ele.id);
- });
- return ids.join(",");
- }
- },
- methods: {
- tagsFormOpen(type,row) {
- this.basicData = row;
- switch (type) {
- case 'elder':
- this.elderTags = true;
- break;
- case 'disabler':
- this.disablerTags = true;
- break;
- case 'keyPerson':
- this.keyPersonTags = true;
- break;
- // case 'household':
- // this.householdTags = true;
- // break;
- // case 'enterpriseStaff':
- // this.enterpriseStaffTags = true;
- // break;
- }
- },
- tagsDetail(type,row){
- this.basicData = row;
- switch (type) {
- case '高龄老人':
- this.elderTagsdetail = true;
- break;
- case '残障人士':
- this.disablerTagsdetail = true;
- break;
- case '重点人员':
- this.keyPersonTagsdetail = true;
- break;
- // case '常住人员':
- // this.householdTagsdetail = true;
- // break;
- // case '企业员工':
- // this.enterpriseStaffTagsdetail = true;
- // break;
- }
- },
- rowSave(row, done, loading) {
- row.agencyName = row.$agencyId;
- row.residentialName = row.$residentialId;
- row.buildingName = row.$buildingId;
- row.unitName = row.$unitId;
- row.floorName = row.$floorId;
- row.roomName = row.$roomId;
- if (row.tags.length == 0) {
- row.tags = '';
- }
- add(row).then(() => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- done();
- }, error => {
- loading();
- window.console.log(error);
- });
- },
- rowUpdate(row, index, done, loading) {
- console.log(row)
- row.agencyName = row.$agencyId;
- row.residentialName = row.$residentialId;
- row.buildingName = row.$buildingId;
- row.unitName = row.$unitId;
- row.floorName = row.$floorId;
- row.roomName = row.$roomId;
- if (row.tags.length == 0) {
- row.tags = '';
- }
- update(row).then(() => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- done();
- }, error => {
- loading();
- console.log(error);
- });
- },
- rowDel(row) {
- this.$confirm("确定将选择数据删除?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- return remove(row.id);
- })
- .then(() => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- });
- },
- handleDelete() {
- if (this.selectionList.length === 0) {
- this.$message.warning("请选择至少一条数据");
- return;
- }
- this.$confirm("确定将选择数据删除?", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- return remove(this.ids);
- })
- .then(() => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- this.$refs.crud.toggleSelection();
- });
- },
- beforeOpen(done, type) {
- if (["edit", "view"].includes(type)) {
- getDetail(this.form.id).then(res => {
- this.form = res.data.data;
- });
- }
- done();
- },
- searchReset() {
- this.query = {};
- this.onLoad(this.page);
- },
- searchChange(params, done) {
- this.query = params;
- this.page.currentPage = 1;
- console.log(params,"搜索条件参数");
- this.onLoad(this.page, params);
- done();
- },
- selectionChange(list) {
- this.selectionList = list;
- },
- selectionClear() {
- this.selectionList = [];
- this.$refs.crud.toggleSelection();
- },
- currentChange(currentPage){
- this.page.currentPage = currentPage;
- },
- sizeChange(pageSize){
- this.page.pageSize = pageSize;
- },
- refreshChange() {
- this.onLoad(this.page, this.query);
- },
- onLoad(page, params = {}) {
- this.loading = true;
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
- const data = res.data.data;
- this.page.total = data.total;
- this.data = data.records;
- this.loading = false;
- this.selectionClear();
- });
- }
- }
- };
- </script>
- <style>
- </style>
|