| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="norightmenu" v-if="!isSearch"> |
| | | <avue-crud :addBtn="false" :option="option" :table-loading="loading" :data="treeData" ref="crud" |
| | | <avue-crud :addBtn="false" :option="option" :row-style="{height:'20px'}" :cell-style="{padding:'0px'}" :table-loading="loading" :data="treeData" ref="crud" |
| | | v-model:search="search" v-model:page="mypage" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad" @tree-load="treeLoad" @row-click="rowClick"> |
| | | <template #search> |
| | |
| | | </avue-crud> |
| | | </div> |
| | | <div class="norightmenu" v-else> |
| | | <avue-crud :addBtn="false" :option="option" :table-loading="loading" :data="treeData" ref="crud" |
| | | <avue-crud :addBtn="false" :option="option" :row-style="{height:'20px'}" :cell-style="{padding:'0px'}" :table-loading="loading" :data="treeData" ref="crud" |
| | | v-model:search="search" v-model:page="mypage" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad" @tree-load="treeLoad" @row-click="rowClick"> |
| | | <template #search> |
| | |
| | | </el-col> |
| | | <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="零组件号" |
| | | <el-select v-model="searchTreeData.drawingNo" filterable remote reserve-keyword placeholder="输入至少3个字符过滤数据" |
| | | :remote-method="remoteMethod" :loading="searchLoading"> |
| | | <el-option v-for="item in drawingNoList" :key="item.value" :label="item.label" |
| | | :value="item.value" /></el-select> |
| | |
| | | if (query && query.length>2) { |
| | | this.searchLoading = true; |
| | | this.getRemote(query); |
| | | /* |
| | | axios({ |
| | | url: '/blade-mdm/program/node/drawing-no-pick', |
| | | method: 'get', |
| | | params: { drawingNo: query } |
| | | }).then(resp => { |
| | | this.searchLoading = false; |
| | | var drawingNoList = []; |
| | | resp.data.data.forEach(item => { |
| | | drawingNoList.push({ label: item, value: item }) |
| | | }) |
| | | this.drawingNoList = drawingNoList; |
| | | }); |
| | | */ |
| | | } else { |
| | | this.drawingNoList = []; |
| | | } |
| | |
| | | }); |
| | | }, |
| | | searchTree() { |
| | | if (this.searchTreeData.programStatus.length == 0) return; |
| | | if (this.searchTreeData.drawingNo == "") return; |
| | | if (this.searchTreeData.programStatus.length == 0 || this.searchTreeData.drawingNo == ""){ |
| | | this.$message.warning('请输入程序状态和零组件号进行搜索'); |
| | | return; |
| | | } |
| | | |
| | | this.treeSearchLoad = true; |
| | | this.isSearch = !this.isSearch |
| | | this.searchTreeData.status = this.searchTreeData.programStatus.join(); |
| | |
| | | } |
| | | |
| | | .search-data-title { |
| | | font-size: 12px; |
| | | font-size: 14px; |
| | | margin-right: 8px; |
| | | display: inline-block; |
| | | width: 95px; |