Commit b1c08492 authored by jingnan's avatar jingnan 👀

样式修改及代码格式化

parent a29419ec
<template> <template>
<div class="addAoInGeberalExperRecord-dialog"> <div class="addAoInGeberalExperRecord">
<dee-as-com :basicData="basicData" ref="tablelists" class="list-table" table-height="50vh" :lay-config="{ <dee-as-com
ref="tablelists"
:basic-data="basicData"
class="list-table"
table-height="50vh"
:lay-config="{
typeName: 'ExtProcessPlan', typeName: 'ExtProcessPlan',
layKey: 'addAoInGeberalExperRecord', layKey: 'addAoInGeberalExperRecord',
}" @selectionChange="selectionChange" /> }"
@selectionChange="selectionChange"
/>
<div slot="footer" class="foot-btn-box"> <div slot="footer" class="foot-btn-box">
<el-button type="primary" @click="submitEvent">确认</el-button> <el-button type="primary" @click="submitEvent">确认</el-button>
<el-button @click="cancelEvent">取消</el-button> <el-button @click="cancelEvent">取消</el-button>
...@@ -20,7 +27,7 @@ export default { ...@@ -20,7 +27,7 @@ export default {
basicData: { basicData: {
type: Object, type: Object,
default: () => { } default: () => { }
}, }
}, },
data() { data() {
return { return {
...@@ -35,7 +42,7 @@ export default { ...@@ -35,7 +42,7 @@ export default {
this.selection = val this.selection = val
}, },
submitEvent() { submitEvent() {
if (!this.selection||!this.selection.length ) return this.$utils.showMessageWarning('请选择数据!') if (!this.selection || !this.selection.length) return this.$utils.showMessageWarning('请选择数据!')
const params = this.selection.map((item) => { const params = this.selection.map((item) => {
return { return {
sourceId: this.basicData.id, sourceId: this.basicData.id,
...@@ -58,4 +65,11 @@ export default { ...@@ -58,4 +65,11 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.addAoInGeberalExperRecord{
.foot-btn-box{
display: flex;
justify-content: center;
padding: 20px
}
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment