diff --git a/src/views/internaltool/cleanAdvisory/cleanadvisory.api.ts b/src/views/internaltool/cleanAdvisory/cleanadvisory.api.ts new file mode 100644 index 0000000..61e1217 --- /dev/null +++ b/src/views/internaltool/cleanAdvisory/cleanadvisory.api.ts @@ -0,0 +1,26 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + + list = '/internaltool/cleanEmpAdvisory/list', + clean = '/internaltool/cleanEmpAdvisory/clean', + delete = '/internaltool/cleanEmpAdvisory/delete', + +} +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +export const dataClean = (params,handleSuccess) => { + return defHttp.post({url: Api.clean, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +export const dataDelete = (params,handleSuccess) => { + return defHttp.post({url: Api.delete, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} diff --git a/src/views/internaltool/cleanAdvisory/cleanadvisory.data.ts b/src/views/internaltool/cleanAdvisory/cleanadvisory.data.ts new file mode 100644 index 0000000..e479752 --- /dev/null +++ b/src/views/internaltool/cleanAdvisory/cleanadvisory.data.ts @@ -0,0 +1,83 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '申请ID', + align: "center", + dataIndex: 'applyId', + ifShow: false + }, + { + title: 'OPENID', + align: "center", + dataIndex: 'openId', + width: 220 + }, + { + title: '名称', + align: "center", + dataIndex: 'name', + width: 120 + }, + { + title: '电话', + align: "center", + dataIndex: 'tel', + width: 100 + }, + { + title: '咨询类型', + dataIndex: 'advisoryType', + width: 150, + customRender:({text})=>{ + if(text == '1'){ + return "家属"; + }else if(text == '2'){ + return "员工"; + }else if(text == '3'){ + return "公司"; + }else{ + return "其他"; + } + }, + }, + { + title: '企业名称', + align: "center", + dataIndex: 'comName', + width: 240 + }, + { + title: '注册时间', + align: "center", + dataIndex: 'createTime', + width: 160 + }, + { + title: '申请时间', + align: "center", + dataIndex: 'updateTime', + width: 160 + }, +]; + +export const formSchema: FormSchema[] = [ + { + label: '电话', + field: 'tel', + component: 'Input', + componentProps: { + placeholder: '请输入电话', + }, + }, + { + label: 'OPENID', + field: 'openId', + component: 'Input', + componentProps: { + placeholder: '请输入OPENID', + }, + }, +]; diff --git a/src/views/internaltool/cleanAdvisory/index.vue b/src/views/internaltool/cleanAdvisory/index.vue new file mode 100644 index 0000000..fe71237 --- /dev/null +++ b/src/views/internaltool/cleanAdvisory/index.vue @@ -0,0 +1,156 @@ + + + + +