|
@@ -0,0 +1,366 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form-item label="化验日期" style="width: 308px">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="daterangeTestDate"
|
|
|
+ value-format="YYYY/MM/DD"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="-"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
+ <el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-table v-loading="loading" :data="dayList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column label="化验日期" align="center" prop="testDate" width="180">
|
|
|
+ <template #default="scope">
|
|
|
+ <span>{{ parseTime(scope.row.testDate, '{y}-{m}-{d}') }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="工业表-进水化学需氧量COD" align="center" prop="gyJsCod" />
|
|
|
+ <el-table-column label="工业表-进水酸碱度pH" align="center" prop="gyJsPh" />
|
|
|
+ <el-table-column label="工业表-进水悬浮物SS" align="center" prop="gyJsSs" />
|
|
|
+ <el-table-column label="工业表-进水总磷TP" align="center" prop="gyJsTp" />
|
|
|
+ <el-table-column label="工业表-进水总氮TN" align="center" prop="gyJsTn" />
|
|
|
+ <el-table-column label="工业表-进水氨氮NH₃-N" align="center" prop="gyJsNh3" />
|
|
|
+ <el-table-column label="工业表-进水水温/进水PH - 2个值" align="center" prop="gyJsSwPh" />
|
|
|
+ <el-table-column label="工业表-进水泵房液位 " align="center" prop="gyJsBfyw" />
|
|
|
+ <el-table-column label="工业表-出水水量Q出" align="center" prop="gyCsSlqc" />
|
|
|
+ <el-table-column label="工业表-出水化学需氧量COD" align="center" prop="gyCsCod" />
|
|
|
+ <el-table-column label="工业表-出水酸碱度pH" align="center" prop="gyCsPh" />
|
|
|
+ <el-table-column label="工业表-出水悬浮物SS" align="center" prop="gyCsSs" />
|
|
|
+ <el-table-column label="工业表-出水总氮TN" align="center" prop="gyCsTn" />
|
|
|
+ <el-table-column label="工业表-出水总磷TP" align="center" prop="gyCsTp" />
|
|
|
+ <el-table-column label="工业表-出水氨氮NH₃-N" align="center" prop="gyCsNh3" />
|
|
|
+ <el-table-column label="工业表-1#池好氧中段溶解氧 DO" align="center" prop="gyOneHyzdDo" />
|
|
|
+ <el-table-column label="工业表-1#池好氧末段溶解氧 DO" align="center" prop="gyOneHymdDo" />
|
|
|
+ <el-table-column label="工业表-2#池好氧中段溶解氧 DO" align="center" prop="gyTwoHyzdDo" />
|
|
|
+ <el-table-column label="工业表-2#池好氧末段溶解氧 DO" align="center" prop="gyTwoHymdDo" />
|
|
|
+ <el-table-column label="工业表-1#池污泥浓度" align="center" prop="gyOneMlss" />
|
|
|
+ <el-table-column label="工业表-2#池污泥浓度" align="center" prop="gyTwoMlss" />
|
|
|
+ <el-table-column label="工业表-进水溶解性总固体TDS" align="center" prop="gyJsTds" />
|
|
|
+ <el-table-column label="工业表-进水水量Q进" align="center" prop="gyJsSlq" />
|
|
|
+ <el-table-column label="工业表-内回流泵1# 1号泵 工频" align="center" prop="gyNHlbOneGp" />
|
|
|
+ <el-table-column label="工业表-内回流泵1# 2号泵 工频" align="center" prop="gyNHlbTwoGp" />
|
|
|
+ <el-table-column label="工业表-内回流泵1# 3号泵 工频" align="center" prop="gyNHlbThreeGp" />
|
|
|
+ <el-table-column label="工业表-内回流泵2# 4号泵 工频" align="center" prop="gyNHlbFourGp" />
|
|
|
+ <el-table-column label="工业表-内回流泵2# 5号泵 工频" align="center" prop="gyNhlBFiveGp" />
|
|
|
+ <el-table-column label="工业表-内回流泵2# 6号泵 工频" align="center" prop="gyNHlbSixGp" />
|
|
|
+ <el-table-column label="工业表-外回流泵1 工频" align="center" prop="gyWHlbOneGp" />
|
|
|
+ <el-table-column label="工业表-外回流泵2 工频" align="center" prop="gyWHlbTwoGp" />
|
|
|
+ <el-table-column label="工业表-外回流泵3 工频" align="center" prop="gyWHlbThreeGp" />
|
|
|
+ <el-table-column label="工业表-外回流泵4 工频" align="center" prop="gyWHlbFourGp" />
|
|
|
+ <el-table-column label="工业表-外回流泵5 工频" align="center" prop="gyWHlbFiveGp" />
|
|
|
+ <el-table-column label="工业表-风机1" align="center" prop="gyFjOne" />
|
|
|
+ <el-table-column label="工业表-风机2" align="center" prop="gyFjTwo" />
|
|
|
+ <el-table-column label="工业表-风机3" align="center" prop="gyFjThree" />
|
|
|
+ <el-table-column label="工业表-风机4" align="center" prop="gyFjFour" />
|
|
|
+ <el-table-column label="工业表-风机5" align="center" prop="gyFjFive" />
|
|
|
+ <el-table-column label="工业表-风机6" align="center" prop="gyFjSix" />
|
|
|
+ <el-table-column label="工业表-空气流量1" align="center" prop="gyKqllOne" />
|
|
|
+ <el-table-column label="工业表-空气流量2" align="center" prop="gyKqllTwo" />
|
|
|
+ <el-table-column label="工业表-空气流量3" align="center" prop="gyKqllThree" />
|
|
|
+ <el-table-column label="工业表-空气流量4" align="center" prop="gyKqllFour" />
|
|
|
+ <el-table-column label="工业表-空气流量5" align="center" prop="gyKqllFive" />
|
|
|
+ <el-table-column label="工业表-空气流量6" align="center" prop="gyKqllSix" />
|
|
|
+ <el-table-column label="工业表-信义污水厂实际碳源加药量" align="center" prop="gySjtyjly" />
|
|
|
+ <el-table-column label="工业表-信义污水厂除磷加药瞬时流量" align="center" prop="gyCljyssll" />
|
|
|
+ <el-table-column label="工业表-好氧池溶解氧集合" align="center" prop="gyHycRjyAll" />
|
|
|
+ <el-table-column label="工业表-好氧池中断溶解氧" align="center" prop="gyHycRjyZdAll" />
|
|
|
+ <el-table-column label="工业表-好氧池污泥浓度集合" align="center" prop="gyHycWnndAll" />
|
|
|
+ <el-table-column label="工业表-信义污水厂_除磷P04预测值_" align="center" prop="gyClP04Ycz" />
|
|
|
+ <el-table-column label="日报表-进水化学需氧量 COD" align="center" prop="rbJsCod" />
|
|
|
+ <el-table-column label="日报表-进水酸碱度pH" align="center" prop="rbJsPh" />
|
|
|
+ <el-table-column label="日报表-进水生化需氧量BOD₅" align="center" prop="rbJsBod5" />
|
|
|
+ <el-table-column label="日报表-进水悬浮物 SS" align="center" prop="rbJsSs" />
|
|
|
+ <el-table-column label="日报表-进水氨氮 NH₃-N" align="center" prop="rbJsNh3" />
|
|
|
+ <el-table-column label="日报表-进水总氮TN" align="center" prop="rbJsTn" />
|
|
|
+ <el-table-column label="日报表-进水总磷TP" align="center" prop="rbJsTp" />
|
|
|
+ <el-table-column label="日报表-进水粪菌群" align="center" prop="rbJsDcgj" />
|
|
|
+ <el-table-column label="日报表-出水化学需氧量COD" align="center" prop="rbCsCod" />
|
|
|
+ <el-table-column label="日报表-出水酸碱度pH" align="center" prop="rbCsPh" />
|
|
|
+ <el-table-column label="日报表-出水生化需氧量BOD₅" align="center" prop="rbCsBod5" />
|
|
|
+ <el-table-column label="日报表-出水悬浮物SS" align="center" prop="rbCsSs" />
|
|
|
+ <el-table-column label="日报表-出水氨氮 NH₃-N" align="center" prop="rbCsNh3" />
|
|
|
+ <el-table-column label="日报表-出水总氮TN" align="center" prop="rbCsTn" />
|
|
|
+ <el-table-column label="日报表-出水总磷TP" align="center" prop="rbCsTp" />
|
|
|
+ <el-table-column label="日报表-出水粪菌群" align="center" prop="rbCsDcgj" />
|
|
|
+ <el-table-column label="日报表-进水水温" align="center" prop="rbJsSw" />
|
|
|
+ <el-table-column label="日报表-出水水温" align="center" prop="rbCsSw" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 酸碱度pH" align="center" prop="rbShcOnePh" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 酸碱度pH" align="center" prop="rbShcTwoPh" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 污泥沉降比SV%" align="center" prop="rbShcHyOneSv" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 污泥沉降比SV%" align="center" prop="rbShcHyTwoSv" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 污泥体积指数SVI" align="center" prop="rbShcHyOneSvi" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 污泥体积指数SVI" align="center" prop="rbShcHyTwoSvi" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 污泥浓度MLSS" align="center" prop="rbShcHyOneMlss" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 污泥浓度MLSS" align="center" prop="rbShcHyTwoMlss" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 挥发性污泥浓度MLVSS" align="center" prop="rbShcHyOneMlvss" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 挥发性污泥浓度MLVSS" align="center" prop="rbShcHyTwoMlvss" />
|
|
|
+ <el-table-column label="日报表-生化池厌氧池#1 溶解氧DO" align="center" prop="rbShcYyOneDo" />
|
|
|
+ <el-table-column label="日报表-生化池厌氧池#2 溶解氧DO" align="center" prop="rbShcYyTwoDo" />
|
|
|
+ <el-table-column label="日报表-生化池缺氧池#1 溶解氧DO" align="center" prop="rbShcQyOneDo" />
|
|
|
+ <el-table-column label="日报表-生化池缺氧池#2 溶解氧DO" align="center" prop="rbShcQyTwoDo" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#1 溶解氧DO" align="center" prop="rbShcHyOneDo" />
|
|
|
+ <el-table-column label="日报表-生化池好氧池#2 溶解氧DO" align="center" prop="rbShcHyTwoDo" />
|
|
|
+ <el-table-column label="日报表-进水量" align="center" prop="rbJsl" />
|
|
|
+ <el-table-column label="日报表-出水量" align="center" prop="rbCsl" />
|
|
|
+ <el-table-column label="日报表-深度处理冲洗水量(m³)" align="center" prop="rbSdclcxsl" />
|
|
|
+ <el-table-column label="日报表-气水比" align="center" prop="rbQsb" />
|
|
|
+ <el-table-column label="日报表-F/M" align="center" prop="rbFM" />
|
|
|
+ <el-table-column label="日报表-厌氧区停留时间 HRT" align="center" prop="rbYyHrt" />
|
|
|
+ <el-table-column label="日报表-好氧区停留时间HRT" align="center" prop="rbHyHrt" />
|
|
|
+ <el-table-column label="日报表-缺氧区停留时间 HRT" align="center" prop="rbQyHrt" />
|
|
|
+ <el-table-column label="日报表-内回流r" align="center" prop="rbNhlR" />
|
|
|
+ <el-table-column label="日报表-外回流R" align="center" prop="rbWhlR" />
|
|
|
+ <el-table-column label="日报表-污泥龄SRT" align="center" prop="rbSrt" />
|
|
|
+ <el-table-column label="日报表-产泥率" align="center" prop="rbCnl" />
|
|
|
+ <el-table-column label="日报表-投药前 BOD₅/TN" align="center" prop="rbTyqBod5Tn" />
|
|
|
+ <el-table-column label="日报表-投药后 BOD₅/TN" align="center" prop="rbTyhBod5Tn" />
|
|
|
+ <el-table-column label="日报表-好氧池溶解氧集合" align="center" prop="rbHycRjyAll" />
|
|
|
+ <el-table-column label="日报表-好氧池污泥浓度集合" align="center" prop="rbHycWnndAll" />
|
|
|
+ <el-table-column label="日报表-厌氧池溶解氧集合" align="center" prop="rbYycRjyAll" />
|
|
|
+ <el-table-column label="日报表-缺氧池溶解氧集合" align="center" prop="rbQycRjyAll" />
|
|
|
+ <el-table-column label="日报表-污泥沉降比集合" align="center" prop="rbWncjbAll" />
|
|
|
+ <el-table-column label="日报表-污泥体积指数集合" align="center" prop="rbWntjzsAll" />
|
|
|
+ <el-table-column label="日报表-挥发性污泥浓度集合" align="center" prop="rbHfxwnndAll" />
|
|
|
+ <el-table-column label="日报表-出泥量(m³)" align="center" prop="rbChuniliang" />
|
|
|
+ <el-table-column label="日报表-出泥含水率(%)" align="center" prop="rbCnhsl" />
|
|
|
+ <el-table-column label="日报表-干污泥量(m³)" align="center" prop="rbGwnl" />
|
|
|
+ <el-table-column label="日报表-电费" align="center" prop="rbDf" />
|
|
|
+ <el-table-column label="日报表-絮凝剂费" align="center" prop="rbXnjf" />
|
|
|
+ <el-table-column label="日报表-除磷费" align="center" prop="rbClf" />
|
|
|
+ <el-table-column label="日报表-碳源费" align="center" prop="rbTyf" />
|
|
|
+ <el-table-column label="日报表-消毒剂费" align="center" prop="rbXdjf" />
|
|
|
+ <el-table-column label="日报表-其他药剂费" align="center" prop="rbQtyjf" />
|
|
|
+ <el-table-column label="日报表-采暖费" align="center" prop="rbCnf" />
|
|
|
+ <el-table-column label="日报表-自来水费" align="center" prop="rbZlsf" />
|
|
|
+ <el-table-column label="日报表-直接成本" align="center" prop="rbZjcb" />
|
|
|
+ <el-table-column label="日报表-单位成本" align="center" prop="rbDwcb" />
|
|
|
+ <el-table-column label="化验表-仪表COD" align="center" prop="hyCodYb" />
|
|
|
+ <el-table-column label="化验表-化验机器人COD化验有效值" align="center" prop="hyCodJqr" />
|
|
|
+ <el-table-column label="化验表-化验机器人COD化验计算值" align="center" prop="hyCodYz" />
|
|
|
+ <el-table-column label="化验表-#1好氧池-正磷酸盐 + 化验机器人正磷化验有效值1" align="center" prop="hyTpHl1Jqr" />
|
|
|
+ <el-table-column label="化验表-#2好氧池-正磷酸盐 + 化验机器人正磷化验有效值2" align="center" prop="hyTpHl2Jqr" />
|
|
|
+ <el-table-column label="化验表-二沉池-正磷酸盐 + 化验机器人正磷化验有效值二沉池" align="center" prop="hyTpRccJqr" />
|
|
|
+ <el-table-column label="化验表-化验机器人正磷化验计算值1" align="center" prop="hyTp1Yz" />
|
|
|
+ <el-table-column label="化验表-化验机器人正磷化验计算值2" align="center" prop="hyTp2Yz" />
|
|
|
+ <el-table-column label="化验表-化验机器人正磷化验计算值二沉池" align="center" prop="hyTpRccYz" />
|
|
|
+ <el-table-column label="化验表-1#缺氧氨氮 + 化验机器人氨氮化验有效值1" align="center" prop="hyNh31Jqr" />
|
|
|
+ <el-table-column label="化验表-2#缺氧氨氮 + 化验机器人氨氮化验有效值2" align="center" prop="hyNh32Jqr" />
|
|
|
+ <el-table-column label="化验表-化验机器人氨氮化验计算值1" align="center" prop="hyNh31Yz" />
|
|
|
+ <el-table-column label="化验表-回流出水计算值1" align="center" prop="hyNo3Hlc1Yz" />
|
|
|
+ <el-table-column label="化验表-化验机器人氨氮化验计算值2" align="center" prop="hyNh32Yz" />
|
|
|
+ <el-table-column label="化验表-回流出水计算值2" align="center" prop="hyNo3Hlc2Yz" />
|
|
|
+ <el-table-column label="化验表-1#好氧池硝酸盐" align="center" prop="hyNo3Hlj1Jqr" />
|
|
|
+ <el-table-column label="化验表-2#好氧池硝酸盐" align="center" prop="hyNo3Hlj2Jqr" />
|
|
|
+ <el-table-column label="化验表-碳源投加流量" align="center" prop="hyTyll" />
|
|
|
+ <el-table-column label="化验表-1#缺氧出口硝酸盐 + 缺氧出水化验机器人有效值1" align="center" prop="hyNo3Qyc1Jqr" />
|
|
|
+ <el-table-column label="化验表-2#缺氧出-硝酸盐 + 缺氧出水化验机器人有效值2" align="center" prop="hyNo3Qyc2Jqr" />
|
|
|
+ <el-table-column label="化验表-缺氧进水计算值1" align="center" prop="hyNo3Qyc1Yz" />
|
|
|
+ <el-table-column label="化验表-缺氧进水计算值2" align="center" prop="hyNo3Qyc2Yz" />
|
|
|
+ <el-table-column label="化验表-进水流量" align="center" prop="hyJsll" />
|
|
|
+ <el-table-column label="化验表-好氧池硝酸盐" align="center" prop="hyHycxsyAll" />
|
|
|
+ <el-table-column label="化验表-缺氧氨氮" align="center" prop="hyQyanAll" />
|
|
|
+ <el-table-column label="化验表-缺氧硝酸盐" align="center" prop="hyQyckxsyAll" />
|
|
|
+ <el-table-column label="化验表-好氧池正磷酸盐" align="center" prop="hyHyzlsyAll" />
|
|
|
+ <el-table-column label="计算表-进水碳氮比" align="center" prop="jsJsTdb" />
|
|
|
+ <el-table-column label="计算表-进水碳磷比" align="center" prop="jsJsTlb" />
|
|
|
+ <el-table-column label="计算表-进水BOD与COD比值(生化性)" align="center" prop="jsJsBodBCod" />
|
|
|
+ <el-table-column label="计算表-厌氧区停留时间" align="center" prop="jsYyqHrt" />
|
|
|
+ <el-table-column label="计算表-缺氧区停留时间" align="center" prop="jsQyqHrt" />
|
|
|
+ <el-table-column label="计算表-好氧区停留时间" align="center" prop="jsHyqHrt" />
|
|
|
+ <el-table-column label="计算表-挥发性污泥浓度占比" align="center" prop="jsHfxwnndzb" />
|
|
|
+ <el-table-column label="计算表-F/M" align="center" prop="jsFM" />
|
|
|
+ <el-table-column label="计算表-过栅流速" align="center" prop="jsGsls" />
|
|
|
+ <el-table-column label="计算表-第1道粗格栅过栅流速" align="center" prop="jsGslsOne" />
|
|
|
+ <el-table-column label="计算表-第2道粗格栅过栅流速" align="center" prop="jsGslsTwo" />
|
|
|
+ <el-table-column label="计算表-细格栅过栅流速" align="center" prop="jsXgsGsls" />
|
|
|
+ <el-table-column label="计算表-旋流沉砂池表面负荷" align="center" prop="jsXlcscBmfh" />
|
|
|
+ <el-table-column label="计算表-旋流沉砂池停留时间" align="center" prop="jsXlcscHrt" />
|
|
|
+ <el-table-column label="计算表-初次沉淀池表面负荷" align="center" prop="jsCccdcBmfh" />
|
|
|
+ <el-table-column label="计算表-初次沉淀池停留时间" align="center" prop="jsCccdcHrt" />
|
|
|
+ <el-table-column label="计算表-二沉池表面负荷" align="center" prop="jsEccBmfh" />
|
|
|
+ <el-table-column label="计算表-二沉池停留时间" align="center" prop="jsEccHrt" />
|
|
|
+ <el-table-column label="计算表-二沉池固体负荷" align="center" prop="jsEccGtfh" />
|
|
|
+ <el-table-column label="计算表-次氯酸钠接触时间" align="center" prop="jsClsnJcsj" />
|
|
|
+ <el-table-column label="计算表-斜管沉淀池清水区上升流速" align="center" prop="jsXgcdcQsqSsls" />
|
|
|
+ <el-table-column label="计算表-外回流比" align="center" prop="jsWhlb" />
|
|
|
+ <el-table-column label="计算表-外回流比-新的计算方式" align="center" prop="jsWhlbRN" />
|
|
|
+ <el-table-column label="计算表-内回流比" align="center" prop="jsNhlb" />
|
|
|
+ <el-table-column label="计算表-万吨水产泥率" align="center" prop="jsWdscnl" />
|
|
|
+ <el-table-column label="计算表-生化池气水比" align="center" prop="jsQsb" />
|
|
|
+ <el-table-column label="计算表-反冲洗水量" align="center" prop="jsFcxsl" />
|
|
|
+ <el-table-column label="计算表-反冲洗水量比例" align="center" prop="jsFcxslbl" />
|
|
|
+ <el-table-column label="乐观锁" align="center" prop="revision" />
|
|
|
+ <el-table-column label="备注" align="center" prop="remark" />
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="total>0"
|
|
|
+ :total="total"
|
|
|
+ v-model:page="queryParams.pageNum"
|
|
|
+ v-model:limit="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 添加或修改信义大天维度统计对话框 -->
|
|
|
+ <el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
|
|
+ <el-form ref="dayRef" :model="form" :rules="rules" label-width="80px">
|
|
|
+ </el-form>
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup name="Day">
|
|
|
+import { listDay, getDay, delDay, addDay, updateDay } from "@/api/business/day";
|
|
|
+
|
|
|
+const { proxy } = getCurrentInstance();
|
|
|
+
|
|
|
+const dayList = ref([]);
|
|
|
+const open = ref(false);
|
|
|
+const loading = ref(true);
|
|
|
+const showSearch = ref(true);
|
|
|
+const ids = ref([]);
|
|
|
+const single = ref(true);
|
|
|
+const multiple = ref(true);
|
|
|
+const total = ref(0);
|
|
|
+const title = ref("");
|
|
|
+const daterangeTestDate = ref([]);
|
|
|
+
|
|
|
+const data = reactive({
|
|
|
+ form: {},
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ testDate: null,
|
|
|
+ },
|
|
|
+ rules: {
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+const { queryParams, form, rules } = toRefs(data);
|
|
|
+
|
|
|
+/** 查询信义大天维度统计列表 */
|
|
|
+function getList() {
|
|
|
+ loading.value = true;
|
|
|
+ queryParams.value.params = {};
|
|
|
+ if (null != daterangeTestDate && '' != daterangeTestDate) {
|
|
|
+ queryParams.value["timeBegin"] = daterangeTestDate.value[0];
|
|
|
+ queryParams.value["timeEnd"] = daterangeTestDate.value[1];
|
|
|
+ }
|
|
|
+ listDay(queryParams.value).then(response => {
|
|
|
+ dayList.value = response.rows;
|
|
|
+ total.value = response.total;
|
|
|
+ loading.value = false;
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+// 取消按钮
|
|
|
+function cancel() {
|
|
|
+ open.value = false;
|
|
|
+ reset();
|
|
|
+}
|
|
|
+
|
|
|
+// 表单重置
|
|
|
+function reset() {
|
|
|
+ form.value = {
|
|
|
+ };
|
|
|
+ proxy.resetForm("dayRef");
|
|
|
+}
|
|
|
+
|
|
|
+/** 搜索按钮操作 */
|
|
|
+function handleQuery() {
|
|
|
+ queryParams.value.pageNum = 1;
|
|
|
+ getList();
|
|
|
+}
|
|
|
+
|
|
|
+/** 重置按钮操作 */
|
|
|
+function resetQuery() {
|
|
|
+ daterangeTestDate.value = [];
|
|
|
+ proxy.resetForm("queryRef");
|
|
|
+ handleQuery();
|
|
|
+}
|
|
|
+
|
|
|
+// 多选框选中数据
|
|
|
+function handleSelectionChange(selection) {
|
|
|
+ ids.value = selection.map(item => item.ID);
|
|
|
+ single.value = selection.length != 1;
|
|
|
+ multiple.value = !selection.length;
|
|
|
+}
|
|
|
+
|
|
|
+/** 新增按钮操作 */
|
|
|
+function handleAdd() {
|
|
|
+ reset();
|
|
|
+ open.value = true;
|
|
|
+ title.value = "添加信义大天维度统计";
|
|
|
+}
|
|
|
+
|
|
|
+/** 修改按钮操作 */
|
|
|
+function handleUpdate(row) {
|
|
|
+ reset();
|
|
|
+ const _ID = row.ID || ids.value
|
|
|
+ getDay(_ID).then(response => {
|
|
|
+ form.value = response.data;
|
|
|
+ open.value = true;
|
|
|
+ title.value = "修改信义大天维度统计";
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/** 提交按钮 */
|
|
|
+function submitForm() {
|
|
|
+ proxy.$refs["dayRef"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ if (form.value.ID != null) {
|
|
|
+ updateDay(form.value).then(response => {
|
|
|
+ proxy.$modal.msgSuccess("修改成功");
|
|
|
+ open.value = false;
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ addDay(form.value).then(response => {
|
|
|
+ proxy.$modal.msgSuccess("新增成功");
|
|
|
+ open.value = false;
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/** 删除按钮操作 */
|
|
|
+function handleDelete(row) {
|
|
|
+ const _IDs = row.ID || ids.value;
|
|
|
+ proxy.$modal.confirm('是否确认删除信义大天维度统计编号为"' + _IDs + '"的数据项?').then(function() {
|
|
|
+ return delDay(_IDs);
|
|
|
+ }).then(() => {
|
|
|
+ getList();
|
|
|
+ proxy.$modal.msgSuccess("删除成功");
|
|
|
+ }).catch(() => {});
|
|
|
+}
|
|
|
+
|
|
|
+/** 导出按钮操作 */
|
|
|
+function handleExport() {
|
|
|
+ proxy.download('business/day/export', {
|
|
|
+ ...queryParams.value
|
|
|
+ }, `day_${new Date().getTime()}.xlsx`)
|
|
|
+}
|
|
|
+
|
|
|
+getList();
|
|
|
+</script>
|