12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <el-dialog
- title="附加收费"
- width="300px"
- :visible.sync="visible"
- :before-close="_close"
- >
- <el-table :data="tableData" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
- <el-table-column align="center" type="selection" width="40"></el-table-column>
- <el-table-column align="center" prop="name" label="名称" width="100">
- <template slot-scope="scope">{{ scope.row.date }}</template>
- </el-table-column>
- <el-table-column align="center" prop="name" label="金额(元)">
- <template slot-scope="scope">
- <el-input v-model="input" placeholder=""></el-input>
- </template>
- </el-table-column>
- </el-table>
- <div slot="footer" class="dialog-footer">
- <el-button @click="hide">取 消</el-button>
- <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
- </div>
- </el-dialog>
- </template>
-
- <script>
- export default {
- data(){
- return{
- visible:false,
- form:{
- name:''
- },
- }
- },
- methods:{
- _close: function(done) {
- // this.clear()
- done()
- },
- clear: function() {
- this.form.id = 0;
- this.form.name = "";
- this.form.intro = "";
- },
- show() {
- // this.clear()
- this.visible = true
- },
- hide() {
- // this.clear()
- this.visible = false
- },
- }
- }
- </script>
-
|