From c3f7a0f86009efe7fd2a568b743232499f95132d Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期四, 19 十月 2023 15:20:15 +0800 Subject: [PATCH] 人员、组织机构,查询接口调试 --- Source/UBCS-WEB/src/views/wel/Statistic.vue | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/views/wel/Statistic.vue b/Source/UBCS-WEB/src/views/wel/Statistic.vue index 33a7d3a..e94e248 100644 --- a/Source/UBCS-WEB/src/views/wel/Statistic.vue +++ b/Source/UBCS-WEB/src/views/wel/Statistic.vue @@ -1,10 +1,9 @@ <template> - <div> + <div class="App" v-loading="this.loading"> <div style="display: flex; justify-content: flex-end;margin-bottom: 10px"> <el-button icon="el-icon-more" plain size="small" type="primary" @click="MoreHandler">鏇村</el-button> </div> - <avue-data-box :animation="true" :option="option"></avue-data-box> -<!-- <avue-data-panel :animation="true":option="option"></avue-data-panel>--> + <avue-data-box ref="dataBox" :animation="true" :option="option" ></avue-data-box> <el-dialog :visible.sync="dialogTableVisible" append-to-body class="avue-dialog avue-dialog--top" title="涓绘暟鎹厤缃�" top="0"> <avue-crud ref="crud" @@ -21,14 +20,12 @@ </template> <script> -import {validatenull} from "@/util/validate"; import {getList, save} from "@/api/system/statistic"; -import {flowRoute} from "@/util/flow"; - export default { name: "Statistic", data() { return { + loading:true, Crud: { form: '', data: [], @@ -84,12 +81,37 @@ } }, created() { - this.MasterGetList() + this.MasterGetList(); + }, + mounted() { + this.FontInfo() }, computed() { }, methods: { + FontInfo(){ + this.$nextTick(() => { + const dataFatherBox = this.$refs.dataBox.$el; + console.log(dataFatherBox); + this.$nextTick(() => { + setTimeout(() => { + //瀛椾綋 + const info = dataFatherBox.querySelectorAll('.item-info .info'); + //杈规 + const items = dataFatherBox.querySelectorAll('.item'); + // console.log('info', info); + info.forEach((info) => { + info.style.fontSize = '16px'; + }); + items.forEach((item) => { + item.style.border = '1px solid rgb(200, 200, 200, 1)'; + }); + this.loading=false; + }, 1000); // 寤惰繜1绉掓煡鎵緄nfo鍏冪礌 + }); + }); + }, selectionChange(row) { // console.log(row) this.SelectRow = row; @@ -108,10 +130,15 @@ console.log(res) if (res.data.code === 200) { this.$message.success('淇濆瓨鎴愬姛锛�') + //娓呴櫎宸叉湁鏁扮粍涓璸ush鏁版嵁 this.option.data = []; this.newData=[]; + this.MasterGetList() this.dialogTableVisible = false; + //瀛椾綋鍜岃竟妗嗛噸鏂板姞杞� + this.loading=true; + this.FontInfo() } }) }, @@ -145,6 +172,7 @@ isDefault: item.isDefault, color: this.hexColor, uiUrl: item.menuRoute, + id: 'custom-title' }); } else if (item.isDefault === 0) { this.newData.push(item); -- Gitblit v1.9.3