性能检验tabs改动及记录查看
This commit is contained in:
parent
d137beb872
commit
74c37d903d
|
|
@ -19,10 +19,6 @@
|
|||
</div>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<el-tabs v-model="activeId" class="demo-tabs" @tab-click="handleClick" type="card">
|
||||
<el-tab-pane v-for="item in behaviors" v-bind:key="item.id" :label="item.name" :name="item.id">
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<!-- <el-radio-group v-model="radio1" class="ml-4">
|
||||
<el-radio
|
||||
v-for="item in behaviors"
|
||||
|
|
@ -33,13 +29,20 @@
|
|||
{{ item.name }}
|
||||
</el-radio>
|
||||
</el-radio-group> -->
|
||||
<el-container>
|
||||
<el-header style="padding:13px 15px 7px;">
|
||||
<el-tabs v-model="activeId" class="demo-tabs" @tab-click="handleClick" type="card">
|
||||
<el-tab-pane v-for="item in behaviors" v-bind:key="item.id" :label="item.name" :name="item.id">
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<scTable
|
||||
ref="table"
|
||||
:data="tableData"
|
||||
:apiObj="apiObj"
|
||||
row-key="id"
|
||||
stripe
|
||||
:height="600"
|
||||
:params="query"
|
||||
>
|
||||
<el-table-column type="index" width="50"/>
|
||||
|
|
@ -92,6 +95,9 @@
|
|||
</el-table-column>
|
||||
</scTable>
|
||||
</el-main>
|
||||
</el-container>
|
||||
|
||||
</el-main>
|
||||
<save-dialog v-if="visible" ref="saveDialog" :activeName="activeName" :activeId="activeId"
|
||||
@success="handleSuccess" @closed="visible = false">
|
||||
</save-dialog>
|
||||
|
|
@ -203,7 +209,10 @@ import saveDialog from './behavior_form.vue';
|
|||
},
|
||||
//查看
|
||||
table_show(row) {
|
||||
|
||||
this.visible = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.saveDialog.open("show").setData(row);
|
||||
});
|
||||
},
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.query)
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@
|
|||
</el-row>
|
||||
</el-form>
|
||||
</el-main>
|
||||
<el-footer>
|
||||
<el-footer v-if="this.mode!=='show'">
|
||||
<el-button type="primary" :loading="isSaveing" @click="submit">保存</el-button>
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
</el-footer>
|
||||
|
|
|
|||
Loading…
Reference in New Issue