This commit is contained in:
2019-04-02 14:31:34 +08:00
parent cf32eb4fb3
commit d1156cc940
23 changed files with 75 additions and 56 deletions

View File

@@ -1,9 +1,12 @@
<style>
</style>
<row class="meta-list">
<div class="col-md-12" style="padding-top: 10px;">
<div class="input-group list-head">
<span class="input-group-btn">
<button class="btn btn-default" type="button">选择Table</button>
<button class="btn btn-default" type="button">选择Table{{status}}</button>
</span>
<select class="form-control" v-model="table" style="width: 180px;">
<option v-for="item in tables" :value="item.name"> {{item.name}}&nbsp;&nbsp;&nbsp;[{{item.comment}}]</option>
@@ -42,8 +45,7 @@
</div>
<div class="col-md-7">
<table class="table-bordered" style="width: 100%">
<thead>
<table :class="[{'table':status!=2},'table-bordered']" style="width: 100%">
<tr style="background-color: #f1f1f1">
<td v-show="status==3 || status==4 || status==5 || status==6"><input type="checkbox"></td>
<th v-show="status==1"></th>
@@ -54,8 +56,6 @@
<th>附加属性</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in meta.items">
<td v-show="status==3"><input type="checkbox" v-model="meta.exports" :value="item.name" class="form-control"></td>
<td v-show="status==4"><input type="checkbox" v-model="meta.imports" :value="item.name" class="form-control"></td>
@@ -86,7 +86,6 @@
<td v-show="status==2"><input v-model="item.inExt" class="form-control"></td>
<td v-show="status==2"><input v-model="item.remark" class="form-control"></td>
</tr>
</tbody>
</table>
</div>
@@ -300,7 +299,7 @@
filters: [{name:"", filterType:[""]}]
},//完整的元数据数据,
move: false,
status: 0, //页面默认状态
status: 7, //页面默认状态
table: "", //页面选择的业务类型
itemSort: [], //待保存的业务属性