性能检验tabs改动及记录查看

This commit is contained in:
shijing 2023-11-23 11:23:45 +08:00
parent d137beb872
commit 74c37d903d
2 changed files with 73 additions and 64 deletions

View File

@ -19,10 +19,6 @@
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <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-group v-model="radio1" class="ml-4">
<el-radio <el-radio
v-for="item in behaviors" v-for="item in behaviors"
@ -33,13 +29,20 @@
{{ item.name }} {{ item.name }}
</el-radio> </el-radio>
</el-radio-group> --> </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 <scTable
ref="table" ref="table"
:data="tableData" :data="tableData"
:apiObj="apiObj" :apiObj="apiObj"
row-key="id" row-key="id"
stripe stripe
:height="600"
:params="query" :params="query"
> >
<el-table-column type="index" width="50"/> <el-table-column type="index" width="50"/>
@ -92,6 +95,9 @@
</el-table-column> </el-table-column>
</scTable> </scTable>
</el-main> </el-main>
</el-container>
</el-main>
<save-dialog v-if="visible" ref="saveDialog" :activeName="activeName" :activeId="activeId" <save-dialog v-if="visible" ref="saveDialog" :activeName="activeName" :activeId="activeId"
@success="handleSuccess" @closed="visible = false"> @success="handleSuccess" @closed="visible = false">
</save-dialog> </save-dialog>
@ -203,7 +209,10 @@ import saveDialog from './behavior_form.vue';
}, },
// //
table_show(row) { table_show(row) {
this.visible = true;
this.$nextTick(() => {
this.$refs.saveDialog.open("show").setData(row);
});
}, },
handleQuery() { handleQuery() {
this.$refs.table.queryData(this.query) this.$refs.table.queryData(this.query)

View File

@ -174,7 +174,7 @@
</el-row> </el-row>
</el-form> </el-form>
</el-main> </el-main>
<el-footer> <el-footer v-if="this.mode!=='show'">
<el-button type="primary" :loading="isSaveing" @click="submit">保存</el-button> <el-button type="primary" :loading="isSaveing" @click="submit">保存</el-button>
<el-button @click="visible = false">取消</el-button> <el-button @click="visible = false">取消</el-button>
</el-footer> </el-footer>