| | |
| | | #VITE_API_URL = 'http://192.168.0.76:8009' |
| | | |
| | | # VITE_API_URL = 'http://192.168.0.8:8008' |
| | | VITE_API_URL = 'http://192.168.0.76:8009' |
| | | VITE_API_URL = 'http://192.168.0.76:8010' |
| | | # VITE_API_URL = 'http://192.168.0.10:8008' |
| | | # VITE_API_URL = 'http://192.168.0.62:8008' |
| | |
| | | </template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="区域名称" size="default"> |
| | | <!-- <el-form-item label="区域名称" size="default"> |
| | | <el-input v-model="form.name" placeholder="请选择"> |
| | | <template #append> |
| | | <el-button :icon="Search" @click="openRegion"></el-button> |
| | | </template> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | <el-form-item label="单位部门" size="default"> |
| | | <el-select v-model="form.departmentId" placeholder="请选择" style="width: 100%"> |
| | | <el-option label="Zone one" value="shanghai" /> |
| | |
| | | <el-form-item label="生产日期" size="default"> |
| | | <el-date-picker |
| | | v-model="form.produceTime" |
| | | :size="large" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | type="datetime" |
| | | placeholder="选择日期时间" |
| | |
| | | </el-form-item> |
| | | <el-form-item label="停用状态" size="default"> |
| | | <el-select v-model="form.stopStatus" placeholder="请选择" style="width: 100%"> |
| | | <el-option label="Zone one" value="shanghai" /> |
| | | <el-option label="Zone two" value="beijing" /> |
| | | <el-option label="Zone one" value="0" /> |
| | | <el-option label="Zone two" value="1" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上次检查日期" size="default"> |
| | |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openMaintenance('查看', scope.row)" size="small">查看</el-button> |
| | | <el-button link type="primary" @click="openMaintenance('修改', scope.row)" size="small">修改</el-button> |
| | | <el-button link type="primary" @click="deleteA(scope.row)" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openDetect('查看', scope.row)" size="small">查看</el-button> |
| | | <el-button link type="primary" @click="openDetect('修改', scope.row)" size="small">修改</el-button> |
| | | <el-button link type="primary" @click="deleteB(scope.row)" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column align="center" prop="repairStartDate" label="维修开始日期" /> |
| | | <el-table-column align="center" prop="repairEndDate" label="维修结束日期" /> |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope" |
| | | > |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openRepair('查看', scope.row)" size="small">查看</el-button> |
| | | <el-button link type="primary" @click="openRepair('修改', scope.row)" size="small">修改</el-button> |
| | | <el-button link type="primary" @click="deleteC(scope.row)" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openStandard('查看', scope.row)" size="small">查看</el-button> |
| | | <el-button link type="primary" @click="openStandard('修改', scope.row)" size="small">修改</el-button> |
| | | <el-button link type="primary" @click="deleteD(scope.row)" size="small">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import type { UploadProps, UploadUserFile } from 'element-plus'; |
| | | import { facilityManagementApi } from '/@/api/facilityManagement'; |
| | | import { number } from 'echarts'; |
| | | export default defineComponent({ |
| | | components: { categoryDailog, regionDailog, DailogSearchUser, maintenanceDailog, detectDailog, repairDailog, standardDailog }, |
| | | setup(props, { emit }) { |
| | | const dialogVisible = ref(false); |
| | | const form = ref({ |
| | | supplyName: 'name1', |
| | | supplyName: '', |
| | | |
| | | nextTestDate: 1658279204173, |
| | | nextTestDate: "", |
| | | |
| | | qUsage: '23', |
| | | qUsage: '', |
| | | |
| | | departmentId: 1, |
| | | departmentId: "", |
| | | |
| | | produceTime: 1658279204173, |
| | | produceTime: "", |
| | | |
| | | actualStopDate: 1658279204173, |
| | | actualStopDate: "", |
| | | |
| | | takecareDetailList: [ |
| | | { |
| | | leadingPersonDepartmentId: 2, |
| | | leadingPersonDepartmentId: "", |
| | | |
| | | takecareDate: 1658279204172, |
| | | takecareDate: "", |
| | | |
| | | leadingPersonId: 4, |
| | | leadingPersonId: "", |
| | | |
| | | takecareMemo: '', |
| | | }, |
| | | ], |
| | | |
| | | infoType: 2, |
| | | infoType: "", |
| | | |
| | | leadingDepartmentId: 2, |
| | | leadingDepartmentId: "", |
| | | |
| | | useEndDay: '1234', |
| | | useEndDay: '', |
| | | |
| | | previousTakecareDate: 1658279204173, |
| | | previousTakecareDate: "", |
| | | |
| | | previousCheckDate: 1658279204173, |
| | | previousCheckDate: "", |
| | | |
| | | model: '', |
| | | |
| | | stopStatus: 0, |
| | | stopStatus: "", |
| | | |
| | | testWarn: '', |
| | | |
| | | stopSubmitDate: 1658279204173, |
| | | stopSubmitDate: "", |
| | | |
| | | repairStatus: 0, |
| | | repairStatus: "", |
| | | |
| | | takecareStardardeDetailList: [ |
| | | { |
| | |
| | | }, |
| | | ], |
| | | |
| | | nextCheckDate: 1658279204173, |
| | | nextCheckDate: "", |
| | | |
| | | checkCycle: '发多少', |
| | | checkCycle: '', |
| | | |
| | | checkPoint: '发多少', |
| | | checkPoint: '', |
| | | |
| | | leadingPersonId: 0, |
| | | leadingPersonId: "", |
| | | |
| | | qName: '发顺丰', |
| | | qName: '', |
| | | |
| | | nextTakecareDate: 1658279204173, |
| | | nextTakecareDate: "", |
| | | |
| | | setPart: '改好', |
| | | setPart: '', |
| | | |
| | | checkStandardeDetailList: [ |
| | | { |
| | | checkTarget: '3', |
| | | checkTarget: '', |
| | | |
| | | checkPart: '5', |
| | | checkPart: '', |
| | | |
| | | checkContent: '2', |
| | | checkContent: '', |
| | | |
| | | indexNum: '1', |
| | | indexNum: '', |
| | | |
| | | unit: '4', |
| | | unit: '', |
| | | |
| | | rate: '6', |
| | | rate: '', |
| | | }, |
| | | ], |
| | | |
| | | actualDestoryDate: 1658279204173, |
| | | actualDestoryDate: "", |
| | | |
| | | isNeedTest: 0, |
| | | isNeedTest: "", |
| | | |
| | | alertNum: '321', |
| | | alertNum: '', |
| | | |
| | | checkContent: '312', |
| | | checkContent: '', |
| | | |
| | | useMemo: '312', |
| | | useMemo: '', |
| | | |
| | | previousTestDate: 1658279204173, |
| | | previousTestDate: "", |
| | | |
| | | isNeedTakecare: 1, |
| | | isNeedTakecare: "", |
| | | |
| | | destoryReason: '312', |
| | | destoryReason: '', |
| | | |
| | | checkDetailList: [], |
| | | |
| | | positionNum: '34', |
| | | positionNum: '', |
| | | |
| | | testCycle: '566', |
| | | testCycle: '', |
| | | |
| | | recoveryReason: '89', |
| | | recoveryReason: '', |
| | | |
| | | isNeedCheck: 0, |
| | | isNeedCheck: "", |
| | | |
| | | actualRecoveryDate: 1658279204173, |
| | | actualRecoveryDate: "", |
| | | |
| | | leadingPersonDepartmentId: 3, |
| | | leadingPersonDepartmentId: "", |
| | | |
| | | stopReason: 'fdf', |
| | | stopReason: '', |
| | | |
| | | destorySubmitDate: 1658279204173, |
| | | destorySubmitDate: "", |
| | | |
| | | testDetailList: [ |
| | | { |
| | | testMemo: '', |
| | | |
| | | testPersonDepartmentId: 0, |
| | | testPersonDepartmentId: "", |
| | | |
| | | testStatus: '', |
| | | |
| | | testPersonId: 0, |
| | | testPersonId: "", |
| | | |
| | | testResult: 0, |
| | | testResult: "", |
| | | |
| | | testDate: 1658279204171, |
| | | testDate: "", |
| | | }, |
| | | ], |
| | | |
| | |
| | | |
| | | repaireDetailList: [ |
| | | { |
| | | repairStatus: 0, |
| | | repairStatus: "", |
| | | |
| | | repairPersonDepartmentId: 0, |
| | | repairPersonDepartmentId: "", |
| | | |
| | | repairMemo: '发生的', |
| | | repairMemo: '', |
| | | |
| | | repairPersonId: 0, |
| | | repairPersonId: "", |
| | | |
| | | repairEndDate: 1658279204171, |
| | | repairEndDate: "", |
| | | |
| | | repairStartDate: 1658279204171, |
| | | repairStartDate: "", |
| | | |
| | | exceptionInfo: 'ddd对对对', |
| | | exceptionInfo: '', |
| | | }, |
| | | ], |
| | | |
| | | equipmentTypeId: 4, |
| | | equipmentTypeId: "", |
| | | |
| | | useDate: 1658279204173, |
| | | useDate: "", |
| | | |
| | | recoverySubmitDate: 1658279204173, |
| | | recoverySubmitDate: "", |
| | | |
| | | lockNum: '94', |
| | | lockNum: '', |
| | | |
| | | stopSubmitPersonId: 2, |
| | | stopSubmitPersonId: "", |
| | | |
| | | afterStopStep: '32', |
| | | afterStopStep: '', |
| | | |
| | | lifeCycle: 1, |
| | | lifeCycle: "", |
| | | |
| | | delCheckStandardeDetails: '1,2', |
| | | delCheckStandardeDetails: '', |
| | | |
| | | delTakecareStardardeDetails: '1,2', |
| | | delTakecareStardardeDetails: '', |
| | | |
| | | delTakecareDetails: '1,2', |
| | | delTakecareDetails: '', |
| | | |
| | | delRepaireDetails: '1,2', |
| | | delRepaireDetails: '', |
| | | |
| | | delTestDetails: '1,2', |
| | | delTestDetails: '', |
| | | }); |
| | | const titles = ref(); |
| | | const disabled = ref(false); |
| | |
| | | Dailogtype.value = type; |
| | | if (num == 0) { |
| | | titles.value = `${title}仪表信息`; |
| | | form.value.infoType = num; |
| | | } else if (num == 1) { |
| | | titles.value = `${title}设备设施`; |
| | | form.value.infoType = num; |
| | | } else if (num == 2) { |
| | | titles.value = `${title}设备设施`; |
| | | form.value.infoType = num; |
| | | } |
| | | |
| | | disabled.value = title == '查看' ? true : false; |
| | |
| | | }; |
| | | // 提交 |
| | | const submitForm = () => { |
| | | form.value.delTakecareDetails =deleteAId.value.toString() |
| | | form.value.delTestDetails =deleteBId.value.toString() |
| | | form.value.delRepaireDetails =deleteCId.value.toString() |
| | | form.value.delCheckStandardeDetails =deleteDId.value.toString() |
| | | dialogVisible.value = false; |
| | | facilityManagementApi() |
| | | .getequipmentInfoAddOrUpdate(form.value) |
| | |
| | | // form.value = null; |
| | | }; |
| | | const activeName = ref('first'); |
| | | |
| | | const index = ref<any>(); |
| | | const categoryShow = ref(); |
| | | const opencategory = () => { |
| | | categoryShow.value.openDailog(); |
| | |
| | | }; |
| | | const maintenanceShow = ref(); |
| | | const openMaintenance = (title: string, data: any) => { |
| | | index.value = form.value.takecareDetailList.indexOf(data); |
| | | maintenanceShow.value.openDailog(title, data); |
| | | }; |
| | | const detectShow = ref(); |
| | | const openDetect = (title: string, data: any) => { |
| | | index.value = form.value.testDetailList.indexOf(data); |
| | | detectShow.value.openDailog(title, data); |
| | | }; |
| | | const repairShow = ref(); |
| | | const openRepair = (title: string, data: any) => { |
| | | index.value = form.value.repaireDetailList.indexOf(data); |
| | | repairShow.value.openDailog(title, data); |
| | | }; |
| | | const standardShow = ref(); |
| | | const openStandard = (title: string, data: any) => { |
| | | index.value = form.value.checkStandardeDetailList.indexOf(data); |
| | | standardShow.value.openDailog(title, data); |
| | | }; |
| | | // 上传 |
| | |
| | | () => false |
| | | ); |
| | | }; |
| | | const deleteAId = ref([]); |
| | | const deleteBId = ref([]); |
| | | const deleteCId = ref([]); |
| | | const deleteDId = ref([]); |
| | | // 删除 |
| | | const deleteA = (tag: any) => { |
| | | form.value.takecareDetailList.splice(form.value.takecareDetailList.indexOf(tag), 1); |
| | | deleteAId.value.push(tag.id); |
| | | }; |
| | | const deleteB = (tag: any) => { |
| | | form.value.testDetailList.splice(form.value.testDetailList.indexOf(tag), 1); |
| | | deleteBId.value.push(tag.id); |
| | | }; |
| | | const deleteC = (tag: any) => { |
| | | form.value.repaireDetailList.splice(form.value.repaireDetailList.indexOf(tag), 1); |
| | | deleteCId.value.push(tag.id); |
| | | }; |
| | | const deleteD = (tag: any) => { |
| | | form.value.checkStandardeDetailList.splice(form.value.checkStandardeDetailList.indexOf(tag), 1); |
| | | deleteDId.value.push(tag.id); |
| | | }; |
| | | // 回传 |
| | | const main = (val: any) => { |
| | | form.value.takecareDetailList.push(val); |
| | | if (index.value == -1) { |
| | | form.value.takecareDetailList.push(val); |
| | | } else { |
| | | form.value.takecareDetailList[index.value] = val; |
| | | } |
| | | }; |
| | | const delect = (val: any) => { |
| | | form.value.testDetailList.push(val); |
| | | if (index.value == -1) { |
| | | form.value.testDetailList.push(val); |
| | | } else { |
| | | form.value.testDetailList[index.value] = val; |
| | | } |
| | | }; |
| | | const Repair= (val:any)=>{ |
| | | form.value.repaireDetailList.push(val); |
| | | } |
| | | const Stand=(val:any)=>{ |
| | | form.value.checkStandardeDetailList.push(val); |
| | | } |
| | | const Repair = (val: any) => { |
| | | if (index.value == -1) { |
| | | form.value.repaireDetailList.push(val); |
| | | } else { |
| | | form.value.repaireDetailList[index.value] = val; |
| | | } |
| | | }; |
| | | const Stand = (val: any) => { |
| | | if (index.value == -1) { |
| | | form.value.checkStandardeDetailList.push(val); |
| | | } else { |
| | | form.value.checkStandardeDetailList[index.value] = val; |
| | | } |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |
| | |
| | | } |
| | | }; |
| | | return { |
| | | deleteAId, |
| | | deleteBId, |
| | | deleteCId, |
| | | deleteDId, |
| | | deleteA, |
| | | deleteB, |
| | | deleteC, |
| | | deleteD, |
| | | main, |
| | | index, |
| | | delect, |
| | | Repair, |
| | | Stand, |
| | |
| | | if (title == '查看') { |
| | | disabled.value = true; |
| | | form.value = data; |
| | | } else { |
| | | } else if(title == '修改'){ |
| | | disabled.value = false; |
| | | form.value = data; |
| | | } |
| | | }; |
| | | // 开启用户弹窗 |
| | |
| | | if(title=='查看'){ |
| | | disabled.value=true |
| | | form.value=data |
| | | }else{ |
| | | }else if(title == '修改'){ |
| | | disabled.value=false |
| | | form.value=data |
| | | } |
| | | }; |
| | | // 开启用户弹窗 |
| | |
| | | if (title == '查看') { |
| | | disabled.value = true; |
| | | form.value = data; |
| | | } else { |
| | | } else if(title == '修改') { |
| | | disabled.value = false; |
| | | form.value = data; |
| | | } |
| | | }; |
| | | // 开启用户弹窗 |
| | |
| | | if (title == '查看') { |
| | | disabled.value = true; |
| | | form.value = data; |
| | | } else { |
| | | } else if(title=='修改'){ |
| | | disabled.value = false; |
| | | form.value = data; |
| | | } |
| | | }; |
| | | // 开启用户弹窗 |
| | |
| | | </el-form> |
| | | <el-tabs v-model="activeName" class="demo-tabs"> |
| | | <el-tab-pane label="目标指标分解" name="1"> |
| | | <el-button type="primary" size="default" @click="daiAdd('新增', '')">新增</el-button> |
| | | <el-button type="primary" size="default" @click="daiAdd('新增','')">新增</el-button> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <el-table :data="form.examineItemList" style="width: 100%"> |
| | |
| | | <el-table-column align="center" label="操作"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="daiAdd('查看', scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="daiAdd('修改', scope.row)">修改</el-button> |
| | | <el-button link type="primary" @click="deleteA(scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | }; |
| | | // 接受传值 |
| | | const AddObj = (val: any) => { |
| | | form.value.examineItemList.push(val); |
| | | if (index.value == -1) { |
| | | form.value.examineItemList.push(val); |
| | | } else { |
| | | form.value.examineItemList[index.value] = val; |
| | | } |
| | | }; |
| | | // 删除 |
| | | const deleteA = (tag: any) => { |
| | | form.value.examineItemList.splice(form.value.examineItemList.indexOf(tag), 1); |
| | | }; |
| | | // 提交 |
| | | const submitForm = () => { |
| | |
| | | }; |
| | | const activeName = ref('1'); |
| | | // 新增弹窗 |
| | | const index = ref<any>(); |
| | | const Show = ref(); |
| | | const daiAdd = (title: string, data: any) => { |
| | | index.value = form.value.examineItemList.indexOf(data); |
| | | Show.value.openDailog(title, data); |
| | | }; |
| | | // 安全目标指标弹窗 |
| | |
| | | } |
| | | }; |
| | | return { |
| | | index, |
| | | form, |
| | | dialogVisible, |
| | | deleteA, |
| | | AddObj, |
| | | openDailog, |
| | | activeName, |
| | |
| | | <template> |
| | | <el-dialog v-model="dialogVisible" :before-close="resetForm" :fullscreen="full" title="新建考核项目" width="50%" draggable> |
| | | <el-dialog v-model="dialogVisible" :before-close="resetForm" :fullscreen="full" :title="titles" width="50%" draggable> |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-form :model="form" label-width="120px"> |
| | | <el-form :model="form" :disabled="disabled" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="类型"> |
| | |
| | | content: '', ////考核内容 |
| | | judgeStandard: '', ////评定标准 |
| | | }); |
| | | const disabled=ref(false) |
| | | const titles=ref() |
| | | const openDailog = (title: string, value: any) => { |
| | | dialogVisible.value = true; |
| | | titles.value=`${title}考核项目` |
| | | if (title == '查看') { |
| | | form.value = value; |
| | | disabled.value=true |
| | | }else if(title == '修改'){ |
| | | disabled.value=false |
| | | form.value = value; |
| | | } |
| | | }; |
| | |
| | | }; |
| | | return { |
| | | form, |
| | | disabled, |
| | | titles, |
| | | dialogVisible, |
| | | openDailog, |
| | | submitForm, |
| | |
| | | |
| | | const router=useRouter() |
| | | const Type=onMounted(()=>{ |
| | | // console.log("xxxxxxx",router) |
| | | console.log("xxxxxxx",router) |
| | | }) |
| | | |
| | | return { |
| | |
| | | const add = (e: any) => { |
| | | formUp.targetDivideDetailList.push(e); |
| | | // let obj=JSON.parse(JSON.stringify(form.value)) |
| | | }; |
| | | // 新增 |
| | | const submitForm = () => { |
| | | formUp.targetId = form.value.id; |
| | | goalManagementApi() |
| | | .gettargetDivideDetail(formUp) |
| | |
| | | } |
| | | }); |
| | | }; |
| | | const submitForm = () => {}; |
| | | // 删除 |
| | | const Delete = (data: any) => { |
| | | formUp.targetId= data.targetId |
| | |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <el-form-item label="责任部门" prop="dutyDepartmentId" size="default"> |
| | | <el-tree-select v-model="form.dutyDepartmentId" :data="data" class="w100" :props="propse" placeholder="请选择" /> |
| | | <el-tree-select v-model="form.dutyDepartmentId" check-strictly="true" :data="data" class="w100" :props="propse" placeholder="请选择" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11" :offset="2"> |
| | |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <el-form-item label="制定人部门" prop="makerDepartmentId" size="default"> |
| | | <el-tree-select v-model="form.makerDepartmentId" :data="data" class="w100" :props="propse" placeholder="请选择" /> |
| | | <el-tree-select v-model="form.makerDepartmentId" :data="data" check-strictly="true" class="w100" :props="propse" placeholder="请选择" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="11" :offset="2"> |
| | |
| | | </el-form> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button type="primary" @click="dialogVisible = false" size="default">继续添加</el-button> |
| | | <!-- <el-button type="primary" @click="dialogVisible = false" size="default">继续添加</el-button> --> |
| | | <el-button @click="resetForm(ruleFormRef)" size="default">关闭</el-button> |
| | | <el-button type="primary" @click="submitForm(ruleFormRef)" size="default">确定</el-button> |
| | | </span> |
| | |
| | | }; |
| | | |
| | | const resetForm = (formEl: FormInstance | undefined) => { |
| | | if (!formEl) return; |
| | | formEl.resetFields(); |
| | | dialogVisible.value = false; |
| | | if (!formEl) return |
| | | formEl.resetFields(); |
| | | }; |
| | | //部门 |
| | | const department = () => { |
| | |
| | | const propse = { |
| | | label: 'depName', |
| | | children: 'children', |
| | | value:"depId" |
| | | value: 'depId', |
| | | }; |
| | | onMounted(() => { |
| | | department() |
| | | department(); |
| | | }); |
| | | const disabled=ref(false) |
| | | const disabled = ref(false); |
| | | // 开启弹窗 |
| | | const dialogVisible = ref(false); |
| | | const openDailog = (title:string,data:any) => { |
| | | if(title=='查看'){ |
| | | disabled.value=true |
| | | form.value=data |
| | | }else if(title=='修改'){ |
| | | disabled.value=true |
| | | disabled.value=false |
| | | }else{ |
| | | disabled.value=false |
| | | const openDailog = (title: string, data: any) => { |
| | | if (title == '查看') { |
| | | disabled.value = true; |
| | | form.value = data; |
| | | } else if (title == '修改') { |
| | | disabled.value = false; |
| | | form.value = data; |
| | | } else { |
| | | disabled.value = false; |
| | | } |
| | | dialogVisible.value = true; |
| | | }; |
| | |
| | | } |
| | | }; |
| | | const data = ref(); |
| | | const nameC=ref() |
| | | const nameC = ref(); |
| | | const onUser = (e: any) => { |
| | | form.value.commitPersonId = e.uid; |
| | | nameC.value = e.realName |
| | | nameC.value = e.realName; |
| | | }; |
| | | return { |
| | | disabled, |
| | |
| | | <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> |
| | | <el-table :data="tableData" style="width: 100%"> |
| | | <el-table-column align="center" label="序号" type="index" width="80" /> |
| | | <el-table-column align="center" prop="date" label="责任部门" /> |
| | | <el-table-column align="center" prop="name" label="考核指标" /> |
| | | <el-table-column align="center" prop="address" label="制定部门" /> |
| | | <el-table-column align="center" prop="date" label="制定日期" /> |
| | | <el-table-column align="center" prop="name" label="检查值" /> |
| | | <el-table-column align="center" prop="name" label="检查人" /> |
| | | <el-table-column align="center" prop="address" label="检查时间" /> |
| | | <el-table-column align="center" prop="dutyDepartmentId" label="责任部门" /> |
| | | <el-table-column align="center" prop="value" label="考核指标" /> |
| | | <el-table-column align="center" prop="makerDepartmentId" label="制定部门" /> |
| | | <el-table-column align="center" prop="makeDate" label="制定日期" /> |
| | | <el-table-column align="center" prop="value" label="检查值" /> |
| | | <el-table-column align="center" prop="commitPersonId" label="检查人" /> |
| | | <el-table-column align="center" prop="makeDate" label="检查时间" /> |
| | | </el-table> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | |
| | | const tableData = ref(); |
| | | const openDailog = (data: any) => { |
| | | dialogVisible.value = true; |
| | | // console.log(data) |
| | | tableData.value = data; |
| | | }; |
| | | //全屏 |
| | |
| | | <el-table-column property="year" label="年度" align="center" sortable show-overflow-tooltip /> |
| | | <el-table-column property="value" label="指标值" align="center" sortable show-overflow-tooltip /> |
| | | <el-table-column v-if="activeName == 1" label="操作" align="center" show-overflow-tooltip> |
| | | <template #default> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" size="default" :icon="EditPen" @click="jumpFrom(0)">检查</el-button> |
| | | <el-button link type="primary" size="default" :icon="View" @click="openDai(tableData)">记录</el-button> |
| | | <el-button link type="primary" size="default" :icon="View" @click="openDai(scope.row.targetDivideDetailList)">记录</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="activeName == 2" label="操作" align="center" show-overflow-tooltip> |
| | |
| | | </el-table-column> |
| | | <el-table-column v-if="activeName == 3" label="操作" align="center" show-overflow-tooltip> |
| | | <template #default> |
| | | <el-button link type="primary" size="default" :icon="EditPen" @click="jumpFrom()">待审批</el-button> |
| | | <el-button link type="primary" size="default" :icon="EditPen" @click="jumpFrom">待审批</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-pagination |
| | | v-model:currentPage="currentPage4" |
| | | v-model:page-size="pageSize4" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | @size-change="handleSizeChange" |
| | |
| | | }; |
| | | // |
| | | const handleClick = (val: any) => { |
| | | let targetType = JSON.parse(JSON.stringify(val)); |
| | | ruleForm.searchParams.targetType = targetType.paneName; |
| | | // let targetType = JSON.parse(JSON.stringify(val)); |
| | | ruleForm.searchParams.targetType = val.paneName; |
| | | listApi(); |
| | | }; |
| | | onMounted(() => { |
| | |
| | | ruleForm.pageIndex = val; |
| | | listApi(); |
| | | }; |
| | | const activeName = ref('1'); |
| | | const activeName = ref<any>('1'); |
| | | // 记录弹窗 |
| | | const Show = ref(); |
| | | const openDai = (data: any) => { |
| | |
| | | }; |
| | | // 流程表单 |
| | | const router = useRouter(); |
| | | const jumpFrom = (data: string) => { |
| | | const jumpFrom = (data: any) => { |
| | | router.push({ |
| | | path: '/processForms', |
| | | query: { |
| | |
| | | open: env.VITE_OPEN, |
| | | proxy: { |
| | | '/gitee': { |
| | | target: 'https://192.168.0.76:8009', |
| | | target: 'https://192.168.0.76:8010', |
| | | ws: true, |
| | | changeOrigin: true, |
| | | rewrite: (path) => path.replace(/^\/gitee/, ''), |