diff --git a/.gitignore b/.gitignore index 489daa6..9b5fbd9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ node_modules /dist/ dist-electron .cache +localDoc tests/server/static tests/server/static/upload diff --git a/src/views/dj/inspectimprove/DjInspectImprove.api.ts b/src/views/dj/inspectimprove/DjInspectImprove.api.ts deleted file mode 100644 index 6dc5993..0000000 --- a/src/views/dj/inspectimprove/DjInspectImprove.api.ts +++ /dev/null @@ -1,85 +0,0 @@ -import {defHttp} from "/@/utils/http/axios"; -import { useMessage } from "/@/hooks/web/useMessage"; - -const { createConfirm } = useMessage(); - -enum Api { - list = '/dj/inspectimprove/djInspectImprove/rootList', - save='/dj/inspectimprove/djInspectImprove/add', - edit='/dj/inspectimprove/djInspectImprove/edit', - deleteDjInspectImprove = '/dj/inspectimprove/djInspectImprove/delete', - importExcel = '/dj/inspectimprove/djInspectImprove/importExcel', - exportXls = '/dj/inspectimprove/djInspectImprove/exportXls', - loadTreeData = '/dj/inspectimprove/djInspectImprove/loadTreeRoot', - getChildList = '/dj/inspectimprove/djInspectImprove/childList', - getChildListBatch = '/dj/inspectimprove/djInspectImprove/getChildListBatch', -} - -/** - * 导出api - * @param params - */ -export const getExportUrl = Api.exportXls; -/** - * 导入api - * @param params - */ -export const getImportUrl = Api.importExcel; -/** - * 列表接口 - * @param params - */ -export const list = (params) => - defHttp.get({url: Api.list, params}); -/** - * 删除 - */ -export const deleteDjInspectImprove = (params,handleSuccess) => { - return defHttp.delete({url: Api.deleteDjInspectImprove, params}, {joinParamsToUrl: true}).then(() => { - handleSuccess(); - }); -} -/** - * 批量删除 - * @param params - */ -export const batchDeleteDjInspectImprove = (params, handleSuccess) => { - createConfirm({ - iconType: 'warning', - title: '确认删除', - content: '是否删除选中数据', - okText: '确认', - cancelText: '取消', - onOk: () => { - return defHttp.delete({url: Api.deleteDjInspectImprove, data: params}, {joinParamsToUrl: true}).then(() => { - handleSuccess(); - }); - } - }); -} -/** - * 保存或者更新 - * @param params - */ -export const saveOrUpdateDict = (params, isUpdate) => { - let url = isUpdate ? Api.edit : Api.save; - return defHttp.post({url: url, params}); -} -/** - * 查询全部树形节点数据 - * @param params - */ -export const loadTreeData = (params) => - defHttp.get({url: Api.loadTreeData,params}); -/** - * 查询子节点数据 - * @param params - */ -export const getChildList = (params) => - defHttp.get({url: Api.getChildList, params}); -/** - * 批量查询子节点数据 - * @param params - */ -export const getChildListBatch = (params) => - defHttp.get({url: Api.getChildListBatch, params},{isTransformResponse:false}); diff --git a/src/views/dj/inspectimprove/DjInspectImprove.data.ts b/src/views/dj/inspectimprove/DjInspectImprove.data.ts deleted file mode 100644 index 37a8a57..0000000 --- a/src/views/dj/inspectimprove/DjInspectImprove.data.ts +++ /dev/null @@ -1,252 +0,0 @@ -import {BasicColumn} from '/@/components/Table'; -import {FormSchema} from '/@/components/Table'; -import { rules} from '/@/utils/helper/validator'; -import { render } from '/@/utils/common/renderUtils'; - import { getWeekMonthQuarterYear } from '/@/utils'; - import { filterDictTextByCache } from '/@/utils/dict/JDictSelectUtil'; -//列表数据 -export const columns: BasicColumn[] = [ - { - title: '树形表单父id', - align: 'center', - dataIndex: 'pid' - }, - { - title: '问题分类', - align: 'center', - dataIndex: 'questionCategory', - customRender: ({text}) => filterDictTextByCache('inspect_improve_type', text), - }, - { - title: '面上问题', - align: 'center', - dataIndex: 'mianshangQuestion' - }, - { - title: '具体问题', - align: 'left', - dataIndex: 'specicalQuestion' - }, - { - title: '巡视建议', - align: 'center', - dataIndex: 'inspectAdvice' - }, - { - title: '整改措施', - align: 'center', - dataIndex: 'improveMeasure' - }, - { - title: '完成时限', - align: 'center', - dataIndex: 'deadline', - customRender:({text}) =>{ - text = !text ? "" : (text.length > 10 ? text.substr(0,10) : text); - return text; - }, - }, - { - title: '目标节点', - align: 'center', - dataIndex: 'targetNode' - }, - { - title: '问题责任领导', - align: 'center', - dataIndex: 'questionResLeader' - }, - { - title: '问题责任部门', - align: 'center', - dataIndex: 'questionResDept' - }, - { - title: '措施责任领导', - align: 'center', - dataIndex: 'measureResLeader' - }, - { - title: '措施责任部门', - align: 'center', - dataIndex: 'measureResDept' - }, - { - title: '整改交付成果', - align: 'center', - dataIndex: 'rectificationEvidence' - }, - { - title: '成效评价标准', - align: 'center', - dataIndex: 'evaluationCriterion' - }, - { - title: '工作进展', - align: 'center', - dataIndex: 'workProgress' - }, - { - title: '检查情况', - align: 'center', - dataIndex: 'inspectionStatus' - }, - { - title: '监督意见', - align: 'center', - dataIndex: 'supervisoryOpinion' - }, - { - title: '措施数量', - align: 'center', - dataIndex: 'measureCount' - }, -]; -//查询数据 -export const searchFormSchema: FormSchema[] = [ -]; -//表单数据 -export const formSchema: FormSchema[] = [ - { - label: '树形表单父id', - field: 'pid', - component: 'JTreeSelect', - componentProps: { - dict: "dj_inspect_improve,specical_question,id", - pidField: "pid", - pidValue: "0", - hasChildField: "has_child", - }, - }, - { - label: '问题分类', - field: 'questionCategory', - component: 'JDictSelectTag', - componentProps: { - dictCode: 'inspect_improve_type', - stringToNumber: true, - }, - }, - { - label: '面上问题', - field: 'mianshangQuestion', - component: 'Input', - }, - { - label: '具体问题', - field: 'specicalQuestion', - component: 'Input', - }, - { - label: '巡视建议', - field: 'inspectAdvice', - component: 'Input', - }, - { - label: '整改措施', - field: 'improveMeasure', - component: 'Input', - }, - { - label: '完成时限', - field: 'deadline', - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD' - }, - }, - { - label: '目标节点', - field: 'targetNode', - component: 'Input', - }, - { - label: '问题责任领导', - field: 'questionResLeader', - component: 'Input', - }, - { - label: '问题责任部门', - field: 'questionResDept', - component: 'Input', - }, - { - label: '措施责任领导', - field: 'measureResLeader', - component: 'Input', - }, - { - label: '措施责任部门', - field: 'measureResDept', - component: 'Input', - }, - { - label: '整改交付成果', - field: 'rectificationEvidence', - component: 'Input', - }, - { - label: '成效评价标准', - field: 'evaluationCriterion', - component: 'Input', - }, - { - label: '工作进展', - field: 'workProgress', - component: 'Input', - }, - { - label: '检查情况', - field: 'inspectionStatus', - component: 'Input', - }, - { - label: '监督意见', - field: 'supervisoryOpinion', - component: 'Input', - }, - { - label: '措施数量', - field: 'measureCount', - component: 'InputNumber', - }, - // TODO 主键隐藏字段,目前写死为ID - { - label: '', - field: 'id', - component: 'Input', - show: false - }, -]; - -// 高级查询数据 -export const superQuerySchema = { - pid: {title: '树形表单父id',order: 0,view: 'text', type: 'string',}, - questionCategory: {title: '问题分类',order: 1,view: 'number', type: 'number',}, - mianshangQuestion: {title: '面上问题',order: 2,view: 'text', type: 'string',}, - specicalQuestion: {title: '具体问题',order: 3,view: 'text', type: 'string',}, - inspectAdvice: {title: '巡视建议',order: 4,view: 'text', type: 'string',}, - improveMeasure: {title: '整改措施',order: 5,view: 'text', type: 'string',}, - deadline: {title: '完成时限',order: 6,view: 'date', type: 'string',}, - targetNode: {title: '目标节点',order: 7,view: 'text', type: 'string',}, - questionResLeader: {title: '问题责任领导',order: 8,view: 'text', type: 'string',}, - questionResDept: {title: '问题责任部门',order: 9,view: 'text', type: 'string',}, - measureResLeader: {title: '措施责任领导',order: 10,view: 'text', type: 'string',}, - measureResDept: {title: '措施责任部门',order: 11,view: 'text', type: 'string',}, - rectificationEvidence: {title: '整改交付成果',order: 12,view: 'text', type: 'string',}, - evaluationCriterion: {title: '成效评价标准',order: 13,view: 'text', type: 'string',}, - workProgress: {title: '工作进展',order: 14,view: 'text', type: 'string',}, - inspectionStatus: {title: '检查情况',order: 15,view: 'text', type: 'string',}, - supervisoryOpinion: {title: '监督意见',order: 16,view: 'text', type: 'string',}, - measureCount: {title: '措施数量',order: 17,view: 'number', type: 'number',}, -}; - - -/** -* 流程表单调用这个方法获取formSchema -* @param param -*/ -export function getBpmFormSchema(_formData): FormSchema[]{ - // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema - return formSchema; -} diff --git a/src/views/dj/inspectimprove/DjInspectImproveList.vue b/src/views/dj/inspectimprove/DjInspectImproveList.vue deleted file mode 100644 index c08cc5e..0000000 --- a/src/views/dj/inspectimprove/DjInspectImproveList.vue +++ /dev/null @@ -1,336 +0,0 @@ - - - - - diff --git a/src/views/dj/inspectimprove/components/DjInspectImproveForm.vue b/src/views/dj/inspectimprove/components/DjInspectImproveForm.vue deleted file mode 100644 index 106d711..0000000 --- a/src/views/dj/inspectimprove/components/DjInspectImproveForm.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/dj/inspectimprove/components/DjInspectImproveModal.vue b/src/views/dj/inspectimprove/components/DjInspectImproveModal.vue deleted file mode 100644 index adffd7c..0000000 --- a/src/views/dj/inspectimprove/components/DjInspectImproveModal.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/three-admin/role/config/rolePermession.ts b/src/views/three-admin/role/config/rolePermession.ts index 79426ac..8671710 100644 --- a/src/views/three-admin/role/config/rolePermession.ts +++ b/src/views/three-admin/role/config/rolePermession.ts @@ -1,3 +1,3 @@ export const ROLE_SCOPE_CONFIG = { - DEFAULT_PERMESSION_IDS: '2035916880060223489,2026041610467690430,2026051809451730260', + DEFAULT_PERMESSION_IDS: '2035916880060223489,2026041610467690430,2026051809451730260,2059539469575110657', };