|
|
|
@ -27,8 +27,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<!-- 导入 --> |
|
|
|
<basic-import v-if="isShowImport" title="导入" :isShow="isShowImport" |
|
|
|
<basic-import v-if="isShowImport" title="导入" :isShow="isShowImport" |
|
|
|
templateUrl="/blade-safety/bsDosingRec/downloadExcelTemplate" templateName="废水排放记录模板.xlsx" |
|
|
|
templateUrl="/blade-desk/bsDischargeRec/downloadExcelTemplate" templateName="槽液排放记录模板.xlsx" |
|
|
|
importUrl="/blade-safety/bsDosingRec/importExcel" @closeDialog="closeDialog"></basic-import> |
|
|
|
importUrl="/blade-desk/bsDischargeRec/importExcel" @closeDialog="closeDialog"></basic-import> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
@ -51,6 +51,7 @@ export default { |
|
|
|
isShowImport: false, |
|
|
|
isShowImport: false, |
|
|
|
loading: false, |
|
|
|
loading: false, |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
|
|
|
|
handleManList: [], // 水处理工选项 |
|
|
|
option: { |
|
|
|
option: { |
|
|
|
addBtn: false, |
|
|
|
addBtn: false, |
|
|
|
height: "auto", |
|
|
|
height: "auto", |
|
|
|
@ -95,7 +96,6 @@ export default { |
|
|
|
gridBtn: false, |
|
|
|
gridBtn: false, |
|
|
|
searchMenuPosition: "right", |
|
|
|
searchMenuPosition: "right", |
|
|
|
align: "center", |
|
|
|
align: "center", |
|
|
|
handleManList: [], // 水处理工选项 |
|
|
|
|
|
|
|
column: [ |
|
|
|
column: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "报废槽液类型", |
|
|
|
label: "报废槽液类型", |
|
|
|
@ -161,10 +161,33 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "日期", |
|
|
|
label: "日期", |
|
|
|
prop: "dirDate", |
|
|
|
prop: "queryDirDate", |
|
|
|
search: true, |
|
|
|
search: true, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
|
|
|
|
hide: true, |
|
|
|
|
|
|
|
editDisplay:false, |
|
|
|
|
|
|
|
span: 12, |
|
|
|
|
|
|
|
type: "datetime", |
|
|
|
|
|
|
|
searchRange: true, |
|
|
|
|
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
|
|
startPlaceholder: "开始时间", |
|
|
|
|
|
|
|
endPlaceholder: "结束时间", |
|
|
|
|
|
|
|
rules: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: "请输入选择日期", |
|
|
|
|
|
|
|
trigger: "blur", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "日期", |
|
|
|
|
|
|
|
prop: "dirDate", |
|
|
|
|
|
|
|
// search: true, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
filter: true, |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
type: "datetime", |
|
|
|
type: "datetime", |
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
@ -186,7 +209,7 @@ export default { |
|
|
|
filter: true, |
|
|
|
filter: true, |
|
|
|
span: 12, |
|
|
|
span: 12, |
|
|
|
type: "select", |
|
|
|
type: "select", |
|
|
|
dicData: this.handleManList, |
|
|
|
dicData: [], |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
label: 'name', |
|
|
|
label: 'name', |
|
|
|
value: 'id', |
|
|
|
value: 'id', |
|
|
|
@ -245,7 +268,11 @@ export default { |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
const result = res.data.data.records |
|
|
|
const result = res.data.data.records |
|
|
|
this.handleManList = result |
|
|
|
this.handleManList = result |
|
|
|
|
|
|
|
this.option.column.forEach(col => { |
|
|
|
|
|
|
|
if (col.prop === 'handleMan') { |
|
|
|
|
|
|
|
col.dicData = this.handleManList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 新增 |
|
|
|
// 新增 |
|
|
|
@ -313,26 +340,28 @@ export default { |
|
|
|
this.onLoad(this.page, params) |
|
|
|
this.onLoad(this.page, params) |
|
|
|
done() |
|
|
|
done() |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//更新 |
|
|
|
}, |
|
|
|
|
|
|
|
//更新 |
|
|
|
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
update(row).then( |
|
|
|
console.log("aaaaaaaaaaaaaa") |
|
|
|
() => { |
|
|
|
update(row).then( |
|
|
|
this.onLoad(this.page); |
|
|
|
() => { |
|
|
|
this.$message({ |
|
|
|
this.onLoad(this.page); |
|
|
|
type: 'success', |
|
|
|
this.$message({ |
|
|
|
message: '操作成功!', |
|
|
|
type: 'success', |
|
|
|
}); |
|
|
|
message: '操作成功!', |
|
|
|
done(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
done(); |
|
|
|
error => { |
|
|
|
}, |
|
|
|
window.console.log(error); |
|
|
|
error => { |
|
|
|
loading(); |
|
|
|
window.console.log(error); |
|
|
|
} |
|
|
|
loading(); |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|