From dfd77a2f5f905e27216b87d207f9fe8c4035e797 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 24 七月 2024 18:21:19 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue | 239 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 235 insertions(+), 4 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue index 2da0423..871f037 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue @@ -1,13 +1,244 @@ <template> -<p>灞炴�ф睜</p> + <el-container> + <el-main> + <basic-container> + <avue-crud + ref="userCrud" + :data="tableData" + :option="option" + :page.sync="page" + :table-loading="tableLoading" + @on-load="getTableList" + @refresh-change="handleRefresh" + @search-change="handleSearch" + @search-reset="handleReset" + @selection-change="selectChange" + @row-click="rowClickHandler" + @size-change="sizeChange" + @current-change="currentChange" + > + <template slot="menuLeft" slot-scope="scope"> + <el-button icon="el-icon-plus" size="small" type="primary" @click="rowSaveHandlerClick">鍒涘缓</el-button> + <el-button icon="el-icon-delete" plain size="small" type="danger" @click="allDelHandler">鍒犻櫎</el-button> + <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">鏌ョ湅浣跨敤鑼冨洿</el-button> + </template> + + <template slot="menu" slot-scope="scope"> + <el-button icon="el-icon-edit" size="small" type="text" @click="editBtnClick(scope.row)">缂栬緫 + </el-button> + <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">鍒犻櫎 + </el-button> + </template> + </avue-crud> + </basic-container> + </el-main> + + <el-aside width="30%"> + <basic-container> + <div style="height: 85vh; overflow-y: auto"> + <el-descriptions :column="1" border size="medium" title="灞炴�ч」"> + <el-descriptions-item> + <template slot="label"> + 鍚嶇О + </template> + 鍚嶇О + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 鏍囩 + </template> + 鏍囩 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 鎻忚堪 + </template> + 鎻忚堪 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 鎿嶄綔绫诲瀷 + </template> + 鎿嶄綔绫诲瀷 + </el-descriptions-item> + </el-descriptions> + + <el-descriptions :column="1" border class="margin-top" size="medium" title="VTString"> + <el-descriptions-item> + <template slot="label"> + 鍏佽涓虹┖ + </template> + <el-tag type="success">鏄�</el-tag> + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 绮惧害 + </template> + 绮惧害 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 闀垮害 + </template> + 闀垮害 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 榛樿鍊� + </template> + 榛樿鍊� + </el-descriptions-item> + </el-descriptions> + + <el-descriptions :column="1" border class="margin-top" size="medium" title="鍊煎煙"> + <el-descriptions-item> + <template slot="label"> + 褰撳墠绫诲瀷 + </template> + 涓氬姟绫诲瀷 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 褰撳墠绫诲瀷鍊� + </template> + + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 褰撳墠鐗堟湰娆� + </template> + + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 浣跨敤鏋氫妇 + </template> + <el-tag type="success">鏄�</el-tag> + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 鏋氫妇绫诲瀷 + </template> + 鏋氫妇绫诲瀷 + </el-descriptions-item> + <el-descriptions-item> + <template slot="label"> + 鏋氫妇鍊� + </template> + + </el-descriptions-item> + + </el-descriptions> + + </div> + </basic-container> + </el-aside> + </el-container> </template> <script> +import {gridAttribute} from "@/api/modeling/attributePool/api"; +import basicOption from '@/util/basic-option'; +import {column} from "./option" + export default { -name: "index" + name: "index", + data() { + return { + tableData: [], + option: { + ...basicOption, + searchMenuSpan: 8, + calcHeight: -60, + addBtn: false, + editBtn: false, + delBtn: false, + column + }, + tableLoading: false, + page: { + currentPage: 1, + pageSize: 10, + total: 0, + pageSizes: [10, 30, 50, 100], + }, + searchParams: {}, + selectList: [] + } + }, + methods: { + //琛ㄦ牸鏌ヨ璇锋眰 + getTableList() { + this.tableLoading = true; + gridAttribute(this.page.currentPage, this.page.pageSize, this.searchParams).then(res => { + const data = res.data.data; + this.tableData = data; + this.page.total = res.data.total; + this.tableLoading = false; + }).catch(err => { + this.$message.error(err) + }); + }, + + // 琛ㄦ牸澶撮儴鍒锋柊 + handleRefresh() { + this.getTableList(); + }, + + // 鎼滅储 + handleSearch() { + + }, + + // 閲嶇疆鎼滅储鏉′欢 + handleReset() { + + }, + + // 閫夋嫨妗� + selectChange(row) { + this.selectList = row; + }, + + // 鐐瑰嚮琛� + rowClickHandler(row) { + this.$refs.userCrud.toggleRowSelection(row); + }, + + // 鏉℃暟 + sizeChange(val) { + this.page.pageSize = val; + }, + + // 椤电爜 + currentChange(val) { + this.page.currentPage = val; + }, + + rowSaveHandlerClick() { + }, + + allDelHandler() { + + }, + + chekView() { + + }, + + editBtnClick() { + + }, + + rowDeleteHandler() { + + } + } } </script> -<style scoped> - +<style lang="scss" scoped> +.margin-top{ + margin-top: 25px; +} </style> -- Gitblit v1.9.3