| | |
| | | <el-checkbox value="3" label="偏离" /> |
| | | </el-checkbox-group> |
| | | </el-col> |
| | | <el-col :span="4" class="search-data-flex"> |
| | | <el-col :span="6" 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> |
| | |
| | | end-placeholder="结束时间" :size="size" format="YYYY-MM-DD" value-format="YYYY-MM-DD" |
| | | @change="createTimeChange" /><!--:disabled-date="disabledDate" 不需要禁用日期--> |
| | | </el-col> |
| | | <el-col :span="6" class="search-data-flex"> |
| | | <el-col :span="4" class="search-data-flex"> |
| | | <el-button type="primary" @click="searchTree" :loading="treeSearchLoad"><el-icon class="el-icon--right" |
| | | style="margin-right: 6px;"> |
| | | <Search /> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import debounce from 'lodash/debounce'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import TodolistLeft from './components/TodolistLeft.vue'; |
| | | import TodolistRightTop from './components/TodolistRightTop.vue'; |
| | |
| | | this.searchTreeData.createTimeEnd = value[1]; |
| | | }, |
| | | remoteMethod(query) { |
| | | if (query) { |
| | | if (query && query.length>2) { |
| | | this.searchLoading = true; |
| | | this.getRemote(query); |
| | | /* |
| | | axios({ |
| | | url: '/blade-mdm/program/node/drawing-no-pick', |
| | | method: 'get', |
| | |
| | | }) |
| | | this.drawingNoList = drawingNoList; |
| | | }); |
| | | */ |
| | | } else { |
| | | this.drawingNoList = []; |
| | | } |
| | | }, |
| | | getRemote: debounce(function(query){ |
| | | //防抖,这里设置600毫秒请求一次后台 |
| | | this.getList(query) |
| | | },600), |
| | | async getList(query){ |
| | | this.searchLoading = false; |
| | | 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; |
| | | }); |
| | | }, |
| | | showLockDlg(row){ |
| | | this.lockForm = row; |
| | | //this.lockForm.name = row.name; |