From 7d93a844cb9d2757d7087c716b8f78e3b34baa81 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 26 八月 2025 21:29:45 +0800
Subject: [PATCH] 的地方
---
src/views/wel/shemi.vue | 35 +++++++++++++++++++++++------------
1 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index ba5c641..c7aa7f2 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -1,5 +1,6 @@
-<template>
+<template >
<basic-container>
+ <div class="norightmenu">
<avue-crud
:addBtn="false"
:option="option"
@@ -18,14 +19,14 @@
<template #search>
<el-row :gutter="24">
<el-col :span="6" class="search-data-flex">
- <span class="search-data-title">绋嬪簭鐘舵��:</span>
- <el-checkbox-group v-model="searchTreeData.programStatus">
+ <span class="search-data-title w68">绋嬪簭鐘舵��:</span>
+ <el-checkbox-group v-model="searchTreeData.programStatus" class="marginR12">
<el-checkbox value="1" label="璇曞垏" />
<el-checkbox value="2" label="鍥哄寲" />
<el-checkbox value="3" label="鍋忕" />
</el-checkbox-group>
</el-col>
- <el-col :span="6" class="search-data-flex">
+ <el-col :span="4" class="search-data-flex">
<span class="search-data-title">闆剁粍浠跺彿:</span>
<el-select v-model="searchTreeData.drawingNo" filterable remote reserve-keyword placeholder="闆剁粍浠跺彿" :remote-method="remoteMethod" :loading="searchLoading">
<el-option v-for="item in drawingNoList" :key="item.value" :label="item.label" :value="item.value"/></el-select>
@@ -34,8 +35,8 @@
<span class="search-data-title">鏃堕棿鑼冨洿:</span>
<el-date-picker v-model="searchTreeData.createTime" type="daterange" start-placeholder="寮�濮嬫椂闂�" end-placeholder="缁撴潫鏃堕棿" :size="size" format="YYYY-MM-DD" value-format="YYYY-MM-DD" @change="createTimeChange"/><!--:disabled-date="disabledDate" 涓嶉渶瑕佺鐢ㄦ棩鏈�-->
</el-col>
- <el-col :span="4">
- <el-button type="primary" @click="searchTree"><el-icon class="el-icon--right" style="margin-right: 6px;"><Search /></el-icon>鎼滅储</el-button>
+ <el-col :span="6" class="search-data-flex">
+ <el-button type="primary" @click="searchTree" :loading="treeSearchLoad"><el-icon class="el-icon--right" style="margin-right: 6px;"><Search /></el-icon>鎼滅储</el-button>
<el-button :icon="Delete" @click="setClearTree"><el-icon class="el-icon--right" style="margin-right: 6px;"><Delete /></el-icon>娓呯┖</el-button>
</el-col>
</el-row>
@@ -60,6 +61,7 @@
<el-button :size="size" text v-if="permission.lock_button && row.nodeType == 60 && row.parentIds.indexOf('0,2')>-1 && row.isLocked == 1" icon="el-icon-unlock" type="primary" @click="locked(row,false)" placeholder="瑙i攣" title="瑙i攣"></el-button>
</template>
</avue-crud>
+ </div>
<!-- 鏂板鑺傜偣 -->
<el-dialog :title="modalTitle" append-to-body v-model="modalBox">
<avue-form :option="modalOption" v-model="modalForm" @submit="modalSubmit" @reset-change="modalCancel"/>
@@ -124,6 +126,7 @@
data() {
let rejectText = '椹冲洖';//+this.row.categoryName;
return {
+ treeSearchLoad: false,
drawingNoList: [],
searchLoading: false,
searchTreeData: {
@@ -829,7 +832,7 @@
return null; // 鏈壘鍒�
},
highlightTargetRow() { // 楂樹寒鐩爣琛�
- const targetName = this.search.name;
+ const targetName = this.searchTreeData.drawingNo;
this.targetRow = this.findTargetRow(this.treeData, targetName);
if (this.targetRow && this.$refs.crud) {
this.$refs.crud.setCurrentRow(this.targetRow); // 楂樹寒鐩爣琛�
@@ -838,15 +841,16 @@
searchTree() {
if(this.searchTreeData.programStatus.length == 0) return;
if(this.searchTreeData.drawingNo == "") return;
-
+ this.treeSearchLoad = true;
this.searchTreeData.status = this.searchTreeData.programStatus.join();
axios({
url: '/blade-mdm/program/node/search-list2',
method: 'get',
params: this.searchTreeData
}).then(res => {
+ this.treeSearchLoad = false;
if(res.data.data.length == 0) return;
- this.option.defaultExpandAll = true;
+ this.option.defaultExpandAll = true;聽
this.treeData = this.removeHasChildren(res.data.data);
this.$nextTick(() => {
this.highlightTargetRow(); // 璁剧疆褰撳墠琛岄珮浜�
@@ -1267,8 +1271,9 @@
</script>
<style lang="scss">
-//闅愯棌琛ㄦ牸涓婃柟鑿滃崟鏉�
-
+.norightmenu .avue-crud .avue-crud__header {
+ display: none !important;
+ }
.delFile {
color: red;
margin-left: 12px;
@@ -1319,10 +1324,16 @@
font-size: 12px;
margin-right: 8px;
display: inline-block;
- width: 68px;
+ width: 95px;
}
.search-data-flex {
display: flex!important;
align-items: center;
}
+ .w68 {
+ width: 68px;
+ }
+ .marginR12 label {
+ margin-right: 12px;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.3