|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="app-container">
|
|
|
+ <div class="app-container scroll-auto">
|
|
|
<el-container>
|
|
|
<el-header style="text-align: center; display: block">
|
|
|
<span style="font-weight: 600; font-size: 18px">配网参数信息</span>
|
|
@@ -21,20 +21,20 @@
|
|
|
label="项目编码"
|
|
|
prop="parCode"
|
|
|
:show-overflow-tooltip="true"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
label="项目名称"
|
|
|
prop="parName"
|
|
|
width="150"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
label="项目对应值"
|
|
|
prop="parValue"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
+ <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
|
:options="dict.type.pdm_maintenance_time"
|
|
@@ -42,7 +42,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" prop="status" align="center">
|
|
|
+ <el-table-column label="状态" prop="status" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag
|
|
|
type="success"
|
|
@@ -95,21 +95,21 @@
|
|
|
label="项目编码"
|
|
|
prop="parCode"
|
|
|
width="100"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
:show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
label="项目名称"
|
|
|
prop="parName"
|
|
|
- width="180"
|
|
|
- align="center"
|
|
|
+ width="180"
|
|
|
+ align="center"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
label="项目对应值"
|
|
|
prop="parValue"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
+ <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
|
:options="dict.type.repeat_power_failure"
|
|
@@ -117,7 +117,7 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" prop="status" align="center">
|
|
|
+ <el-table-column label="状态" prop="status" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag
|
|
|
type="success"
|
|
@@ -171,10 +171,10 @@
|
|
|
<el-table-column
|
|
|
label="无故障持续时间"
|
|
|
prop="parValue"
|
|
|
- align="center"
|
|
|
+ align="center"
|
|
|
:show-overflow-tooltip="true"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
+ <el-table-column label="计量单位" prop="parUnit" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
|
:options="dict.type.pdm_maintenance_time"
|
|
@@ -182,12 +182,12 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="金额奖励" prop="parField" align="center">
|
|
|
+ <el-table-column label="金额奖励" prop="parField" align="center">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.parField }}/元
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="状态" prop="status" align="center">
|
|
|
+ <el-table-column label="状态" prop="status" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag
|
|
|
type="success"
|
|
@@ -243,10 +243,7 @@
|
|
|
label="扣分项目"
|
|
|
prop="parName"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="扣分"
|
|
|
- prop="parValue"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column label="扣分" prop="parValue"></el-table-column>
|
|
|
<el-table-column label="状态" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag
|
|
@@ -298,12 +295,12 @@
|
|
|
@success="handleDicSuccess"
|
|
|
@closed="dialog.info = false"
|
|
|
></fault-free-duration-dic-dialog>
|
|
|
- <deduct-points-dialog
|
|
|
- v-if="dialog.info"
|
|
|
- ref="deductPointsDialog"
|
|
|
- @success="handleDicSuccess"
|
|
|
- @closed="dialog.deduct = false"
|
|
|
- ></deduct-points-dialog>
|
|
|
+ <deduct-points-dialog
|
|
|
+ v-if="dialog.info"
|
|
|
+ ref="deductPointsDialog"
|
|
|
+ @success="handleDicSuccess"
|
|
|
+ @closed="dialog.deduct = false"
|
|
|
+ ></deduct-points-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -323,7 +320,7 @@ export default {
|
|
|
components: {
|
|
|
dicDialog,
|
|
|
faultFreeDurationDicDialog,
|
|
|
- deductPointsDialog
|
|
|
+ deductPointsDialog,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -365,7 +362,7 @@ export default {
|
|
|
dialog: {
|
|
|
dic: false,
|
|
|
info: false,
|
|
|
- deduct:false
|
|
|
+ deduct: false,
|
|
|
},
|
|
|
};
|
|
|
},
|
|
@@ -463,26 +460,26 @@ export default {
|
|
|
this.$refs.deductPointsDialog.open().setData(this.form);
|
|
|
});
|
|
|
},
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAddFaultFreeDuration() {
|
|
|
- this.dialog.info = true;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.form = {
|
|
|
- id: null,
|
|
|
- parCode: null,
|
|
|
- parName: "无故障持续时间",
|
|
|
- parValue: null,
|
|
|
- parUnit: null,
|
|
|
- parType: 2,
|
|
|
- remark: null,
|
|
|
- createBy: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateTime: null,
|
|
|
- };
|
|
|
- this.$refs.faultFreeDurationDicDialog.open().setData(this.form);
|
|
|
- });
|
|
|
- },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleAddFaultFreeDuration() {
|
|
|
+ this.dialog.info = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.form = {
|
|
|
+ id: null,
|
|
|
+ parCode: null,
|
|
|
+ parName: "无故障持续时间",
|
|
|
+ parValue: null,
|
|
|
+ parUnit: null,
|
|
|
+ parType: 2,
|
|
|
+ remark: null,
|
|
|
+ createBy: null,
|
|
|
+ createTime: null,
|
|
|
+ updateBy: null,
|
|
|
+ updateTime: null,
|
|
|
+ };
|
|
|
+ this.$refs.faultFreeDurationDicDialog.open().setData(this.form);
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
@@ -495,16 +492,12 @@ export default {
|
|
|
.open("edit")
|
|
|
.setData(response.data);
|
|
|
});
|
|
|
- }
|
|
|
- else if (row.parType == 3) {
|
|
|
- this.dialog.deduct = true;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.deductPointsDialog
|
|
|
- .open("edit")
|
|
|
- .setData(response.data);
|
|
|
- });
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else if (row.parType == 3) {
|
|
|
+ this.dialog.deduct = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.deductPointsDialog.open("edit").setData(response.data);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
this.dialog.dic = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.dicDialog.open("edit").setData(response.data);
|
|
@@ -613,20 +606,20 @@ export default {
|
|
|
</div>
|
|
|
);
|
|
|
},
|
|
|
- renderHeader4() {
|
|
|
- return (
|
|
|
- <div>
|
|
|
- <span>操作</span>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- class="table-icon"
|
|
|
- size="mini"
|
|
|
- onClick={() => this.handleAddDeductPoints()}
|
|
|
- ></el-button>
|
|
|
- </div>
|
|
|
- );
|
|
|
- },
|
|
|
+ renderHeader4() {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <span>操作</span>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ class="table-icon"
|
|
|
+ size="mini"
|
|
|
+ onClick={() => this.handleAddDeductPoints()}
|
|
|
+ ></el-button>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ },
|
|
|
//本地更新数据
|
|
|
async handleDicSuccess(data, mode) {
|
|
|
this.getParList(data.parType);
|