|
@@ -11,32 +11,15 @@
|
|
>
|
|
>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="监测计划">
|
|
|
|
|
|
+ <el-form-item label="监测项目名称" label-width="80px">
|
|
<el-select
|
|
<el-select
|
|
filterable clearable
|
|
filterable clearable
|
|
- v-model="filterForm.data.monitoringplan"
|
|
|
|
|
|
+ v-model="filterForm.data.itemname"
|
|
placeholder=""
|
|
placeholder=""
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item of nameObj.monitoringplan.arr"
|
|
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="6">
|
|
|
|
- <el-form-item label="监测部门">
|
|
|
|
- <el-select
|
|
|
|
- filterable clearable
|
|
|
|
- v-model="filterForm.data.detectiondepartment"
|
|
|
|
- placeholder=""
|
|
|
|
- style="width: 100%;"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item of nameObj.detectiondepartment.arr"
|
|
|
|
|
|
+ v-for="item of nameObj.itemname.arr"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
@@ -48,12 +31,12 @@
|
|
<el-form-item label="系统名称">
|
|
<el-form-item label="系统名称">
|
|
<el-select
|
|
<el-select
|
|
filterable clearable
|
|
filterable clearable
|
|
- v-model="filterForm.data.systemname"
|
|
|
|
|
|
+ v-model="filterForm.data.powersystemname"
|
|
placeholder=""
|
|
placeholder=""
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item of nameObj.systemname.arr"
|
|
|
|
|
|
+ v-for="item of nameObj.powersystemname.arr"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
@@ -82,36 +65,35 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="监测日期">
|
|
<el-form-item label="监测日期">
|
|
- <el-date-picker
|
|
|
|
- type="date"
|
|
|
|
|
|
+ <zj-timegran-date
|
|
v-model="filterForm.data.monitordate"
|
|
v-model="filterForm.data.monitordate"
|
|
- placeholder=""
|
|
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
- format="yyyy-MM-dd"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- ></el-date-picker>
|
|
|
|
|
|
+ :type="'daterange'"
|
|
|
|
+ :defaultOffset="-1"
|
|
|
|
+ ></zj-timegran-date>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-form-item label="批次号">
|
|
|
|
- <el-select
|
|
|
|
- filterable clearable
|
|
|
|
- v-model="filterForm.data.batchno"
|
|
|
|
- placeholder=""
|
|
|
|
|
|
+ <el-form-item label="化验单号">
|
|
|
|
+ <el-input clearable
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
|
|
+ v-model="filterForm.data.batchno"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- v-for="index of 12"
|
|
|
|
- :key="index"
|
|
|
|
- :value="index"
|
|
|
|
- :label="'第' + index + '次'"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ </el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="box-top-gjl">
|
|
<div class="box-top-gjl">
|
|
|
|
+ <el-button
|
|
|
|
+ class="button"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
+ v-privilege="activeMenu + 'PUT'"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="but_edit_plural()"
|
|
|
|
+ >保存</el-button>
|
|
<div style="float:right; text-align: right;">
|
|
<div style="float:right; text-align: right;">
|
|
<el-button
|
|
<el-button
|
|
class="button"
|
|
class="button"
|
|
@@ -143,6 +125,12 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-bottom">
|
|
<div class="box-bottom">
|
|
|
|
+ <el-form
|
|
|
|
+ size="mini"
|
|
|
|
+ ref="dialog_form_arr"
|
|
|
|
+ label-width="0px"
|
|
|
|
+ :model="tableFormDataObj"
|
|
|
|
+ >
|
|
<el-table
|
|
<el-table
|
|
stripe
|
|
stripe
|
|
id="singleTable"
|
|
id="singleTable"
|
|
@@ -154,67 +142,115 @@
|
|
border
|
|
border
|
|
size="mini"
|
|
size="mini"
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
|
|
+ <el-table-column
|
|
|
|
+ sortable
|
|
|
|
+ type="selection"
|
|
|
|
+ width="40"
|
|
|
|
+ align="center"
|
|
|
|
+ fixed="left"
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="seq"
|
|
|
|
+ label="序号"
|
|
|
|
+ fixed="left"
|
|
|
|
+ width="50px"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="detectiondepartment"
|
|
prop="detectiondepartment"
|
|
label="监测部门"
|
|
label="监测部门"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.detectiondepartment.obj[scope.row.detectiondepartment] ? nameObj.detectiondepartment.obj[scope.row.detectiondepartment] : scope.row.detectiondepartment }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="systemname"
|
|
|
|
|
|
+ prop="powersystemname"
|
|
label="系统名称"
|
|
label="系统名称"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.powersystemname.obj[scope.row.powersystemname] ? nameObj.powersystemname.obj[scope.row.powersystemname] : scope.row.powersystemname }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="powermonitorname"
|
|
prop="powermonitorname"
|
|
label="监测点名称"
|
|
label="监测点名称"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.powermonitorname.obj[scope.row.powermonitorname] ? nameObj.powermonitorname.obj[scope.row.powermonitorname] : scope.row.powermonitorname }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
prop="itemname"
|
|
prop="itemname"
|
|
label="监测项目名称"
|
|
label="监测项目名称"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ nameObj.itemname.obj[scope.row.itemname] ? nameObj.itemname.obj[scope.row.itemname] : scope.row.itemname }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="monitordate"
|
|
|
|
- label="监测日期"
|
|
|
|
|
|
+ prop="monitoringvalue"
|
|
|
|
+ label="监测值"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="scope.row.isSelection"
|
|
|
|
+ >
|
|
|
|
+ <el-input clearable
|
|
|
|
+ style="width: 90%;"
|
|
|
|
+ v-model="tableFormDataObj[scope.row.seq].monitoringvalue"
|
|
|
|
+ refcous="true"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <template slot="error" slot-scope="scope">
|
|
|
|
+ <p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
|
+ </template>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <span v-else>{{scope.row.monitoringvalue}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="batchno"
|
|
|
|
- label="批次号"
|
|
|
|
|
|
+ prop="unit"
|
|
|
|
+ label="单位"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="datadate"
|
|
|
|
- label="监测时间"
|
|
|
|
|
|
+ prop="monitordate"
|
|
|
|
+ label="监测日期"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="monitoringvalue"
|
|
|
|
- label="监测值"
|
|
|
|
|
|
+ prop="batchno"
|
|
|
|
+ label="化验单号"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
sortable
|
|
sortable
|
|
- prop="unit"
|
|
|
|
- label="单位"
|
|
|
|
|
|
+ prop="datadate"
|
|
|
|
+ label="监测时间"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -231,26 +267,25 @@
|
|
label="备注"
|
|
label="备注"
|
|
min-width="100px"
|
|
min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- class-name="gn-TableDownloadExcel-none"
|
|
|
|
- label="操作"
|
|
|
|
- align="center"
|
|
|
|
- width="75px"
|
|
|
|
- fixed="right"
|
|
|
|
>
|
|
>
|
|
- <template slot-scope="scope">
|
|
|
|
- <div>
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- size="mini"
|
|
|
|
- v-privilege="activeMenu + 'PUT'"
|
|
|
|
- @click="but_edit(scope.row)"
|
|
|
|
- >修改</el-button>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="scope.row.isSelection"
|
|
|
|
+ >
|
|
|
|
+ <el-input clearable
|
|
|
|
+ style="width: 90%;"
|
|
|
|
+ v-model="tableFormDataObj[scope.row.seq].note"
|
|
|
|
+ refcous="true"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <template slot="error" slot-scope="scope">
|
|
|
|
+ <p class="error" :title="scope.error">{{ scope.error }}</p>
|
|
|
|
+ </template>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <span v-else>{{scope.row.note}}</span>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
+ </el-form>
|
|
<el-pagination
|
|
<el-pagination
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total"
|
|
:total="total"
|
|
@@ -263,231 +298,15 @@
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-dialog
|
|
|
|
- :title="'信息 - ' + (dialog.editorBox.type === 'add' ? '新增' : '修改')"
|
|
|
|
- :visible.sync="dialog.editorBox.show"
|
|
|
|
- width="600px"
|
|
|
|
- :close-on-click-modal="false"
|
|
|
|
- :show-close="!loading"
|
|
|
|
- >
|
|
|
|
- <div>
|
|
|
|
- <el-form
|
|
|
|
- ref="dialog_form"
|
|
|
|
- :model="dialog.editorBox.form.data"
|
|
|
|
- :rules="dialog.editorBox.form.rules"
|
|
|
|
- size="mini"
|
|
|
|
- label-width="85px"
|
|
|
|
- >
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测部门"
|
|
|
|
- prop="detectiondepartment"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- filterable clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.detectiondepartment"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item of nameObj.detectiondepartment.arr"
|
|
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="系统名称"
|
|
|
|
- prop="systemname"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.systemname"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item of nameObj.systemname.arr"
|
|
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测点名称"
|
|
|
|
- prop="powermonitorname"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.powermonitorname"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item of nameObj.powermonitorname.arr"
|
|
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测项目名称"
|
|
|
|
- prop="itemname"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- filterable clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.itemname"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="item of nameObj.itemname.arr"
|
|
|
|
- :key="item.id"
|
|
|
|
- :value="item.id"
|
|
|
|
- :label="item.name"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测日期"
|
|
|
|
- prop="monitordate"
|
|
|
|
- >
|
|
|
|
- <el-date-picker
|
|
|
|
- type="date"
|
|
|
|
- v-model="dialog.editorBox.form.data.monitordate"
|
|
|
|
- placeholder=""
|
|
|
|
- style="width: 100%;"
|
|
|
|
- format="yyyy-MM-dd"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- ></el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="批次号"
|
|
|
|
- prop="batchno"
|
|
|
|
- >
|
|
|
|
- <el-select
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.batchno"
|
|
|
|
- >
|
|
|
|
- <el-option
|
|
|
|
- v-for="index of 12"
|
|
|
|
- :key="index"
|
|
|
|
- :value="index"
|
|
|
|
- :label="'第' + index + '次'"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测时间"
|
|
|
|
- prop="datadate"
|
|
|
|
- >
|
|
|
|
- <el-date-picker
|
|
|
|
- type="datetime"
|
|
|
|
- v-model="dialog.editorBox.form.data.datadate"
|
|
|
|
- placeholder=""
|
|
|
|
- style="width: 100%;"
|
|
|
|
- format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
- ></el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="监测值"
|
|
|
|
- prop="monitoringvalue"
|
|
|
|
- >
|
|
|
|
- <el-input clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.monitoringvalue"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="单位"
|
|
|
|
- prop="unit"
|
|
|
|
- >
|
|
|
|
- <el-input clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.unit"
|
|
|
|
- disabled
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="分析人"
|
|
|
|
- prop="analyst"
|
|
|
|
- >
|
|
|
|
- <el-input clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.analyst"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="12">
|
|
|
|
- <el-form-item
|
|
|
|
- label="备注"
|
|
|
|
- prop="note"
|
|
|
|
- >
|
|
|
|
- <el-input clearable
|
|
|
|
- style="width: 100%;"
|
|
|
|
- v-model="dialog.editorBox.form.data.note"
|
|
|
|
- >
|
|
|
|
- </el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-form>
|
|
|
|
- </div>
|
|
|
|
- <span
|
|
|
|
- slot="footer"
|
|
|
|
- class="dialog-footer"
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- @click="dialog.editorBox.show = false"
|
|
|
|
- :loading="loading"
|
|
|
|
- >取 消</el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="dataSave"
|
|
|
|
- :loading="loading"
|
|
|
|
- >保 存</el-button>
|
|
|
|
- </span>
|
|
|
|
- </el-dialog>
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import timegranDate from '@/components/zg/timegranDate.vue'
|
|
export default {
|
|
export default {
|
|
name: 'powerMonitoringDayData',
|
|
name: 'powerMonitoringDayData',
|
|
|
|
+ components: {
|
|
|
|
+ 'zj-timegran-date': timegranDate
|
|
|
|
+ },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
activeMenu: '',
|
|
activeMenu: '',
|
|
@@ -498,6 +317,7 @@ export default {
|
|
detectiondepartment: '',
|
|
detectiondepartment: '',
|
|
systemname: '',
|
|
systemname: '',
|
|
powermonitorname: '',
|
|
powermonitorname: '',
|
|
|
|
+ powersystemname: '',
|
|
monitordate: '',
|
|
monitordate: '',
|
|
batchno: ''
|
|
batchno: ''
|
|
},
|
|
},
|
|
@@ -508,7 +328,10 @@ export default {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
total: 0,
|
|
total: 0,
|
|
|
|
+ loading: false,
|
|
singleTableHeight: 100,
|
|
singleTableHeight: 100,
|
|
|
|
+ tableFormDataObj: {},
|
|
|
|
+ multipleSelection: [],
|
|
tableData: [
|
|
tableData: [
|
|
// {
|
|
// {
|
|
// detectiondepartment: '',
|
|
// detectiondepartment: '',
|
|
@@ -530,20 +353,8 @@ export default {
|
|
arr: []
|
|
arr: []
|
|
},
|
|
},
|
|
detectiondepartment: {
|
|
detectiondepartment: {
|
|
- obj: {
|
|
|
|
- 'TestCenter': '检化验中心',
|
|
|
|
- 'CentreWaterTreatment': '中央水处理'
|
|
|
|
- },
|
|
|
|
- arr: [
|
|
|
|
- {
|
|
|
|
- id: 'TestCenter',
|
|
|
|
- name: '检化验中心'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- id: 'CentreWaterTreatment',
|
|
|
|
- name: '中央水处理'
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ obj: {},
|
|
|
|
+ arr: []
|
|
},
|
|
},
|
|
systemname: {
|
|
systemname: {
|
|
obj: {},
|
|
obj: {},
|
|
@@ -553,12 +364,15 @@ export default {
|
|
obj: {},
|
|
obj: {},
|
|
arr: []
|
|
arr: []
|
|
},
|
|
},
|
|
|
|
+ powersystemname: {
|
|
|
|
+ obj: {},
|
|
|
|
+ arr: []
|
|
|
|
+ },
|
|
itemname: {
|
|
itemname: {
|
|
obj: {},
|
|
obj: {},
|
|
arr: []
|
|
arr: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- loading: false,
|
|
|
|
tableLoading: false,
|
|
tableLoading: false,
|
|
dialog: {
|
|
dialog: {
|
|
editorBox: {
|
|
editorBox: {
|
|
@@ -569,6 +383,7 @@ export default {
|
|
detectiondepartment: '',
|
|
detectiondepartment: '',
|
|
systemname: '',
|
|
systemname: '',
|
|
powermonitorname: '',
|
|
powermonitorname: '',
|
|
|
|
+ powersystemname: '',
|
|
itemname: '',
|
|
itemname: '',
|
|
monitordate: '',
|
|
monitordate: '',
|
|
batchno: '',
|
|
batchno: '',
|
|
@@ -612,6 +427,7 @@ export default {
|
|
that.getSystemNameData();
|
|
that.getSystemNameData();
|
|
that.getPowermonitorNameData();
|
|
that.getPowermonitorNameData();
|
|
that.getItemNameData();
|
|
that.getItemNameData();
|
|
|
|
+ that.getDetectiondepartmentData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 计算树区域高度
|
|
// 计算树区域高度
|
|
@@ -650,7 +466,7 @@ export default {
|
|
// 获取系统名称
|
|
// 获取系统名称
|
|
getMonitoringPlanData () {
|
|
getMonitoringPlanData () {
|
|
let that = this
|
|
let that = this
|
|
- let url = 'pass/ems/v1/tcm0325s/getidandname/';
|
|
|
|
|
|
+ let url = 'pass/ems/v1/tcm0325s/getCodeAndName/';
|
|
that.axios.get(url)
|
|
that.axios.get(url)
|
|
.then(function (res) {
|
|
.then(function (res) {
|
|
if (res.code === '0') {
|
|
if (res.code === '0') {
|
|
@@ -663,8 +479,8 @@ export default {
|
|
})
|
|
})
|
|
obj[item.powercode] = item.powername;
|
|
obj[item.powercode] = item.powername;
|
|
}
|
|
}
|
|
- that.nameObj.monitoringplan.arr = arr;
|
|
|
|
- that.nameObj.monitoringplan.obj = obj;
|
|
|
|
|
|
+ that.nameObj.powersystemname.arr = arr;
|
|
|
|
+ that.nameObj.powersystemname.obj = obj;
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -681,10 +497,10 @@ export default {
|
|
let obj = {};
|
|
let obj = {};
|
|
for (let item of res.data) {
|
|
for (let item of res.data) {
|
|
arr.push({
|
|
arr.push({
|
|
- id: item.id,
|
|
|
|
- name: item.name
|
|
|
|
|
|
+ id: item.powermonitorcode,
|
|
|
|
+ name: item.powermonitorname
|
|
})
|
|
})
|
|
- obj[item.id] = item.name;
|
|
|
|
|
|
+ obj[item.powermonitorcode] = item.powermonitorname;
|
|
}
|
|
}
|
|
that.nameObj.powermonitorname.arr = arr;
|
|
that.nameObj.powermonitorname.arr = arr;
|
|
that.nameObj.powermonitorname.obj = obj;
|
|
that.nameObj.powermonitorname.obj = obj;
|
|
@@ -704,10 +520,10 @@ export default {
|
|
let obj = {};
|
|
let obj = {};
|
|
for (let item of res.data) {
|
|
for (let item of res.data) {
|
|
arr.push({
|
|
arr.push({
|
|
- id: item.id,
|
|
|
|
- name: item.name
|
|
|
|
|
|
+ id: item.itemcode,
|
|
|
|
+ name: item.itemname
|
|
})
|
|
})
|
|
- obj[item.id] = item.name;
|
|
|
|
|
|
+ obj[item.itemcode] = item.itemname;
|
|
}
|
|
}
|
|
that.nameObj.itemname.arr = arr;
|
|
that.nameObj.itemname.arr = arr;
|
|
that.nameObj.itemname.obj = obj;
|
|
that.nameObj.itemname.obj = obj;
|
|
@@ -716,16 +532,81 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ getDetectiondepartmentData () {
|
|
|
|
+ let that = this
|
|
|
|
+ let url = 'pass/ems/v1/tcmcodeitems/DETECTIONDEPARTMENT';
|
|
|
|
+ that.axios.get(url)
|
|
|
|
+ .then(function (res) {
|
|
|
|
+ if (res.code === '0') {
|
|
|
|
+ let arr = [];
|
|
|
|
+ let obj = {};
|
|
|
|
+ for (let item of res.data) {
|
|
|
|
+ arr.push({
|
|
|
|
+ id: item.itemcode,
|
|
|
|
+ name: item.itemname
|
|
|
|
+ })
|
|
|
|
+ obj[item.itemcode] = item.itemname;
|
|
|
|
+ }
|
|
|
|
+ that.nameObj.detectiondepartment.arr = arr;
|
|
|
|
+ that.nameObj.detectiondepartment.obj = obj;
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ but_edit_plural () {
|
|
|
|
+ let that = this;
|
|
|
|
+ if (that.multipleSelection.length > 0) {
|
|
|
|
+ that.$refs['dialog_form_arr'].validate((valid, obj) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ let SubmitData = [];
|
|
|
|
+ console.log(that.tableFormDataObj)
|
|
|
|
+ for (let key in that.tableFormDataObj) {
|
|
|
|
+ SubmitData.push({
|
|
|
|
+ powermonitorname: that.tableFormDataObj[key].powermonitorname,
|
|
|
|
+ batchno: that.tableFormDataObj[key].batchno,
|
|
|
|
+ sitem: that.tableFormDataObj[key].itemname,
|
|
|
|
+ powersystemname: that.tableFormDataObj[key].powersystemname,
|
|
|
|
+ monitordate: that.tableFormDataObj[key].monitordate,
|
|
|
|
+ unit: that.tableFormDataObj[key].unit,
|
|
|
|
+ analyst: that.tableFormDataObj[key].analyst,
|
|
|
|
+ monitoringvalue: that.tableFormDataObj[key].monitoringvalue,
|
|
|
|
+ note: that.tableFormDataObj[key].note
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ that.axios.put('pass/ems/v1/tcm0348s/', SubmitData)
|
|
|
|
+ .then(function (res) {
|
|
|
|
+ if (res.code === '0') {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: '修改成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ that.getTableData();
|
|
|
|
+ that.dialog.editorBox.show = false;
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ that.loading = false;
|
|
|
|
+ })
|
|
|
|
+ .catch(function () {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 获取表格中的数据
|
|
// 获取表格中的数据
|
|
getTableData (pageNum) {
|
|
getTableData (pageNum) {
|
|
let that = this,
|
|
let that = this,
|
|
params = {
|
|
params = {
|
|
- monitoringplan: that.filterForm.data.monitoringplan,
|
|
|
|
- detectiondepartment: that.filterForm.data.detectiondepartment,
|
|
|
|
- systemname: that.filterForm.data.systemname,
|
|
|
|
powermonitorname: that.filterForm.data.powermonitorname,
|
|
powermonitorname: that.filterForm.data.powermonitorname,
|
|
- monitordate: that.filterForm.data.monitordate,
|
|
|
|
- batchno: that.filterForm.data.batchno
|
|
|
|
|
|
+ monitoringvalue: that.filterForm.data.monitoringvalue,
|
|
|
|
+ batchno: that.filterForm.data.batchno,
|
|
|
|
+ sitem: that.filterForm.data.itemname,
|
|
|
|
+ startTime: that.filterForm.data.monitordate[0],
|
|
|
|
+ endTime: that.filterForm.data.monitordate[1],
|
|
|
|
+ powersystemname: that.filterForm.data.powersystemname
|
|
};
|
|
};
|
|
that.pageNum = pageNum || that.pageNum;
|
|
that.pageNum = pageNum || that.pageNum;
|
|
that.tableLoading = true;
|
|
that.tableLoading = true;
|
|
@@ -736,13 +617,15 @@ export default {
|
|
.then(function (res) {
|
|
.then(function (res) {
|
|
if (res.code === '0') {
|
|
if (res.code === '0') {
|
|
let arr = [];
|
|
let arr = [];
|
|
- for (let item of res.data.list) {
|
|
|
|
|
|
+ for (let i = 0; i < res.data.list.length; i++) {
|
|
|
|
+ let item = res.data.list[i];
|
|
arr.push({
|
|
arr.push({
|
|
|
|
+ seq: i,
|
|
recordid: item.recordid,
|
|
recordid: item.recordid,
|
|
- detectiondepartment: item.detectiondepartment,
|
|
|
|
- systemname: item.systemname,
|
|
|
|
|
|
+ detectiondepartment: item.powerdetecdepartment,
|
|
|
|
+ powersystemname: item.powersystemname,
|
|
powermonitorname: item.powermonitorname,
|
|
powermonitorname: item.powermonitorname,
|
|
- itemname: item.itemname,
|
|
|
|
|
|
+ itemname: item.sitem,
|
|
monitordate: item.monitordate,
|
|
monitordate: item.monitordate,
|
|
batchno: item.batchno,
|
|
batchno: item.batchno,
|
|
datadate: item.datadate,
|
|
datadate: item.datadate,
|
|
@@ -752,8 +635,10 @@ export default {
|
|
note: item.note
|
|
note: item.note
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ // for (let item of res.data.list) {
|
|
that.tableData = arr;
|
|
that.tableData = arr;
|
|
that.total = res.data.total;
|
|
that.total = res.data.total;
|
|
|
|
+ // }
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -790,6 +675,29 @@ export default {
|
|
that.dialog.editorBox.type = 'edit';
|
|
that.dialog.editorBox.type = 'edit';
|
|
that.dialog.editorBox.show = true;
|
|
that.dialog.editorBox.show = true;
|
|
},
|
|
},
|
|
|
|
+ handleSelectionChange (val) {
|
|
|
|
+ let that = this;
|
|
|
|
+ let tableFormDataObj = {};
|
|
|
|
+ for (let item of that.tableData) {
|
|
|
|
+ item.isSelection = false;
|
|
|
|
+ }
|
|
|
|
+ for (let item of val) {
|
|
|
|
+ let obj = {};
|
|
|
|
+ let xId = item.seq;
|
|
|
|
+ if (that.tableFormDataObj[xId]) {
|
|
|
|
+ tableFormDataObj[xId] = that.tableFormDataObj[xId];
|
|
|
|
+ } else {
|
|
|
|
+ for (let key in item) {
|
|
|
|
+ obj[key] = item[key];
|
|
|
|
+ }
|
|
|
|
+ tableFormDataObj[xId] = obj;
|
|
|
|
+ }
|
|
|
|
+ item.isSelection = true;
|
|
|
|
+ }
|
|
|
|
+ that.tableFormDataObj = tableFormDataObj;
|
|
|
|
+ console.log(that.tableFormDataObj)
|
|
|
|
+ this.multipleSelection = val;
|
|
|
|
+ },
|
|
dataSave () {
|
|
dataSave () {
|
|
let that = this;
|
|
let that = this;
|
|
let SubmitData = {
|
|
let SubmitData = {
|
|
@@ -847,5 +755,14 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .el-table__body .el-form-item--mini.el-form-item {
|
|
|
|
+ margin: 0px;
|
|
|
|
+ .error {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ color: #f56c6c;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ line-height: 1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|