diff --git a/src/api/operation/inspection/plan.js b/src/api/operation/inspection/plan.js index 037b9f5..1879f37 100644 --- a/src/api/operation/inspection/plan.js +++ b/src/api/operation/inspection/plan.js @@ -14,6 +14,13 @@ export function planisEnable(params) { params: params, }) } +export function routeSelect(params) { + return httpService({ + url: `/user/inspectionRoute/allList`, + method: 'get', + params: params, + }) +} export function planInfo(params) { return httpService({ url: `/user/inspectionPlan/findById`, diff --git a/src/views/Basic/Employee/depend/form.vue b/src/views/Basic/Employee/depend/form.vue index 6a8b7a0..f7b8766 100644 --- a/src/views/Basic/Employee/depend/form.vue +++ b/src/views/Basic/Employee/depend/form.vue @@ -258,7 +258,7 @@ export default { this.positionDisabled(this.treeData) }); }, - // 部门disabled + // 部门禁选 positionDisabled(arr){ arr.forEach((item,index)=>{ if(item.type=== 1 && (item.childList.length===0 || item.childList===null)){ diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js b/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js index d0b7ea0..f2f8a31 100644 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js +++ b/src/views/Operation/InspectionManage/_inspectionExecute/depend/config.js @@ -1,73 +1,79 @@ export const formItem = [ { - type: 'select', - label:'资讯分类', - prop:'categoryId', - option:[], - placeholder:'请选择' - }, - { - type: 'select', - label:'发布状态', - prop:'status', - option:[{ id:1,name:'未发布'},{ id:2,name:'已发布'},], - placeholder:'请选择状态' - }, - { - type: 'time', - label:'创建时间', - start: 'createStartDate', - end:'createEndDate', + type: 'input', + label:'编号', + prop:'code', + placeholder:'请输入' }, { type: 'input', - label:'标题', - prop:'title', + label:'巡检人手机号', + prop:'inspectorTel', placeholder:'请输入' }, + { + type: 'select', + label:'巡检状态', + prop:'inspectionStatus', + placeholder: '请选择', + option:[{ id:1,name:'待巡检'},{ id:2,name:'已巡检'},{ id:3,name:'巡检中'},{ id:4,name:'未巡检'}] + }, ] export const columns = [ { - title: "标题", - dataIndex: "title", - width: "10%", + title: "执行巡检编号", + dataIndex: "code", }, { - title: "分类", - dataIndex: "categoryName", - width: "10%", + title: "执行巡检名称", + dataIndex: "name", }, { - title: "发布状态", + title: "计划当次巡检开始时间", + dataIndex: "beginDate", + }, + { + title: "计划当次巡检结束时间", + dataIndex: "endDate", + }, + { + title: "实际当次巡检开始时间", + dataIndex: "actualBeginDate", + }, + { + title: "实际当次巡检结束时间", + dataIndex: "actualEndDate", + }, + { + title: "状态", dataIndex: "status", - width: "6%", customRender: function (status) { switch (status) { case 1: - return '未发布' + return "待巡检" + break; case 2: - return '已发布' + return "已巡检" + break; + case 3: + return "巡检中" + break; + case 4: + return "未巡检" + break; + default: + break; } } }, { - title: "阅读量", - dataIndex: "viewsNum", - width: "10%", - }, - { - title: "创建时间", - dataIndex: "createDate", - width: "12%", + title: "巡检人姓名", + dataIndex: "inspectorName", }, { - title: "操作", - dataIndex: "action", - key: "action", - width: "180", - fixed: "right", - scopedSlots: { customRender: "action" }, + title: "巡检人手机号", + dataIndex: "inspectorTel", }, ] export const pagination = { diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue b/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue deleted file mode 100644 index ee18a80..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/detail.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - {{ detailData.title }} - {{ - detailData.status === 1 ? "未发布" : "已发布" - }} - - - - - - {{ detailData.categoryName }} - - - {{ detailData.viewsNum }} - - - {{ detailData.createName }} - - - {{ detailData.createDate }} - - - - - {{ detailData.content }} - - - - - - - - - - - - - - diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js b/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js deleted file mode 100644 index 1358dae..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.js +++ /dev/null @@ -1,21 +0,0 @@ -export const form = { - id:undefined, - title:undefined, - categoryId:undefined, - status:undefined, - content:undefined, - imgUrls:[] -} -export const rules = { - title:[{required:true,message:'请输入标题',trigger:'blur'}], - categoryId:[{required:true,message:'请选择分类',trigger:'change'}], - status:[{required:true,message:'请选择',trigger:'change'}], - content:[{required:true,message:'请输入',trigger:'blur'}], -} -export const options = { - status:[ - { id:1, name:'未发布' }, - { id:2, name:'已发布' }, - ], - categoryId:[] -} \ No newline at end of file diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue b/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue deleted file mode 100644 index 2bd27a0..0000000 --- a/src/views/Operation/InspectionManage/_inspectionExecute/depend/form.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - - 基本信息 - - - - - - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - - - - 资讯封面图片 - - - - - - - - - - - - - diff --git a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue index 93b6ce6..3fbe6e7 100644 --- a/src/views/Operation/InspectionManage/_inspectionExecute/index.vue +++ b/src/views/Operation/InspectionManage/_inspectionExecute/index.vue @@ -1,15 +1,15 @@ - 资讯管理 - - 新增资讯 + 巡检记录 + - - - 查看详情 - 修改 - 删除 - - - - - - 批量删除 - - 批量操作 - - - - {{ `已选择 ${selectedRowKeys.length} 条` }} - - - - -