import request from '@/utils/request';
//卫生评比 常规评比
export const szwspb_list = (data = {}) =>
    request({
        url: '/xddy/dygl_bjzzpb_szwspbjcxm/index',
        data: {
            page: data.page,
            limit: data.limit,
            keyword: data.keyword,
            xdbs_jclx: data.xdbs_jclx,

        }
    })
export const szwspb_add = (data = {}) =>
    request({
        url: '/xddy/dygl_bjzzpb_szwspbjcxm/add',
        data: {
            issubmit: '1',
            xddy_dygl_bjzzpb_szwspbjcxm: {
                xdbs_jcxm: data.xdbs_jcxm,
                xdbs_jclx: data.xdbs_jclx,
            }
        }
    })
export const szwspb_edit = (data = {}) =>
    request({
        url: '/xddy/dygl_bjzzpb_szwspbjcxm/edit',
        data: {
            issubmit: '1',
            xdbs_id: data.xdbs_id,
            xddy_dygl_bjzzpb_szwspbjcxm: {
                xdbs_jcxm: data.xdbs_jcxm,
                xdbs_jclx: data.xdbs_jclx,
            }
        }
    })
export const szwspb_del = (data = {}) =>
    request({
        url: '/xddy/dygl_bjzzpb_szwspbjcxm/delete',
        data: {

            xdbs_id: data.xdbs_id
        }
    })
 // switchType() {
    //   switch (this.activeName) {
    //     case "first":
    //       this.type = 1;
    //       this.cur_page = 1;
    //       this.getListData();
    //       break;
    //     case "second":
    //       this.type = 2;
    //       this.cur_page = 1;
    //       this.getListData();
    //   }
    // },
