| | |
| | | const $table = tableRef.value; |
| | | if ($table) { |
| | | $table.clearEdit().then(() => { |
| | | // loading.value = true |
| | | loading.value = true |
| | | // setTimeout(() => { |
| | | // loading.value = false |
| | | // VxeUI.modal.message({ content: `保存成功!name=${row.name}`, status: 'success' }) |
| | |
| | | // } |
| | | // }; |
| | | async function getRouteList(year, month) { |
| | | loading.value = true; |
| | | const res = await listGasPlan({ |
| | | major: "管路", |
| | | year, |
| | | month, |
| | | }); |
| | | console.log(res.rows, "getList"); |
| | | routePlanList.value = res.rows; |
| | | routePlanList.value = routePlanList.value.map((item, index) => { |
| | | return { |
| | |
| | | loading.value = false; |
| | | } |
| | | async function getGasList(year, month) { |
| | | loading2.value = true; |
| | | const res = await listGasPlan({ |
| | | major: "气柜", |
| | | year, |
| | |
| | | // row.monthProduceAllNum = row.dayProduceAllNum * row.days; |
| | | // } |
| | | function cellClickEvent(e, row) { |
| | | console.log(row,"cellClickEvent") |
| | | if(row.dayProduceType==="1"){ |
| | | row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber; |
| | | }else{ |
| | |
| | | message: "数据保存成功", |
| | | type: "success", |
| | | }); |
| | | loading.value = false; |
| | | loading2.value = false; |
| | | handleQuery(); |
| | | } |
| | | async function handleSave2(row) { |
| | | const year = queryParams.value.date.split("-")[0]; |
| | | const month = parseInt(queryParams.value.date.split("-")[1]); |
| | | console.log(row, "baocun"); |
| | | // gasPlanList.value = gasPlanList.value.map((item) => { |
| | | // return { |
| | | // ...item, |
| | | // major: "气体", |
| | | // year, |
| | | // month, |
| | | // }; |
| | | // }); |
| | | // routePlanList.value = routePlanList.value.map((item) => { |
| | | // return { |
| | | // ...item, |
| | | // major: "管路", |
| | | // year, |
| | | // month, |
| | | // }; |
| | | // }); |
| | | const res = await getGasPlanSave([ |
| | | { |
| | | ...row, |
| | | major: "气柜", |
| | | year, |
| | | month, |
| | | }, |
| | | ]); |
| | | ElMessage({ |
| | | message: "数据保存成功", |
| | | type: "success", |
| | | }); |
| | | handleQuery(); |
| | | console.log(res, "akiwjciwj"); |
| | | } |
| | | onMounted(() => { |
| | | // getRouteList(); |
| | | // getGasList(); |
| | | }); |
| | | // async function handleSave2(row) { |
| | | // const year = queryParams.value.date.split("-")[0]; |
| | | // const month = parseInt(queryParams.value.date.split("-")[1]); |
| | | // console.log(row, "baocun"); |
| | | // // gasPlanList.value = gasPlanList.value.map((item) => { |
| | | // // return { |
| | | // // ...item, |
| | | // // major: "气体", |
| | | // // year, |
| | | // // month, |
| | | // // }; |
| | | // // }); |
| | | // // routePlanList.value = routePlanList.value.map((item) => { |
| | | // // return { |
| | | // // ...item, |
| | | // // major: "管路", |
| | | // // year, |
| | | // // month, |
| | | // // }; |
| | | // // }); |
| | | // const res = await getGasPlanSave([ |
| | | // { |
| | | // ...row, |
| | | // major: "气柜", |
| | | // year, |
| | | // month, |
| | | // }, |
| | | // ]); |
| | | // ElMessage({ |
| | | // message: "数据保存成功", |
| | | // type: "success", |
| | | // }); |
| | | // handleQuery(); |
| | | // console.log(res, "akiwjciwj"); |
| | | // } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .box_container { |
| | |
| | | return `<font color="#f89c9c">${capacityLoad}%</font>` |
| | | }else if(designTimes==0&&requireTimes>0){ |
| | | return `<font color="#f56c6c">error</font>` |
| | | }else{ |
| | | return `${capacityLoad}%` |
| | | } |
| | | } |
| | | /** 导出按钮操作 */ |