pull/74/head
lukeyan 1 year ago
parent 866c5ca47b
commit 1918f61fe1

@ -7,13 +7,14 @@
{{ this.input_text }}
</div>
<div class="input_body">
<el-input v-model="person_input" placeholder="请输入数量"></el-input>
<el-input v-model="person_input" placeholder="请输入数量" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
<el-button @click="add_detail"></el-button>
</div>
<div class="table_body">
<el-table
:data="detail_table_data"
class="company_table"
height="320"
:header-cell-style="table_header"
:cell-style="{ background: 'revert', 'text-align': 'center' }"
>
@ -221,6 +222,7 @@ export default {
//
refresh() {
this.get_detail_data()
this.person_input = ''
},
//
table_header({ row, rowIndex }) {
@ -325,7 +327,7 @@ export default {
}
/deep/.el-table {
// width: 85.2vw;
height: 29vh;
// height: 29vh;
background: rgba(0, 0, 0, 0);
border: 0.1px solid #3f5564;
thead {
@ -352,6 +354,23 @@ export default {
background: rgba(0, 0, 0, 0);
}
}
/deep/ .el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border: 0.1px solid #3f5564;
}
/deep/.el-table__body-wrapper::-webkit-scrollbar {
display: none;
width: 6px;
background-color: #5e666a;
border-radius: 4px;
}
/deep/.el-table__body-wrapper::-webkit-scrollbar-thumb {
display: none;
width: 5px;
background-color: #3c4b4a;
border-radius: 4px;
}
.table_pagination {
width: 51vw;
height: 5vh;

@ -11,7 +11,7 @@
<div class="main_text">
<div class="input_title">{{ this.input_title }}</div>
<div class="input">
<el-input v-model="input_num" placeholder="请输入数量"></el-input>
<el-input v-model="input_num" placeholder="请输入数量" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
</div>
</div>
<div class="form_btn" slot="footer">

Loading…
Cancel
Save