| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="norightmenu" v-if="!isSearch"> |
| | | <avue-crud :addBtn="false" :option="option" :row-style="{height:'20px'}" :cell-style="{padding:'0px'}" :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="crud0" |
| | | 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-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" clearable 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> |
| | | </el-col> |
| | | <el-col :span="8" class="search-data-flex"> |
| | | <el-col :span="6" class="search-data-flex"> |
| | | <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" class="search-data-flex"> |
| | | <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 /> |
| | |
| | | style="margin-right: 6px;"> |
| | | <Delete /> |
| | | </el-icon>清空</el-button> |
| | | <el-button type="danger" @click="refresh('crud0')">重置表格</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | |
| | | </avue-crud> |
| | | </div> |
| | | <div class="norightmenu" v-else> |
| | | <avue-crud :addBtn="false" :option="option" :row-style="{height:'20px'}" :cell-style="{padding:'0px'}" :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="crud1" |
| | | 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-option v-for="item in drawingNoList" :key="item.value" :label="item.label" |
| | | :value="item.value" /></el-select> |
| | | </el-col> |
| | | <el-col :span="8" class="search-data-flex"> |
| | | <el-col :span="6" class="search-data-flex"> |
| | | <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="6" class="search-data-flex"> |
| | | <el-col :span="8" class="search-data-flex"> |
| | | <el-button type="primary" @click="searchTree" :loading="treeSearchLoad"><el-icon class="el-icon--right" |
| | | style="margin-right: 6px;"> |
| | | <Search /> |
| | |
| | | style="margin-right: 6px;"> |
| | | <Delete /> |
| | | </el-icon>清空</el-button> |
| | | <el-button type="danger" @click="refresh('crud1')">重置表格</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | |
| | | this.drawingNoList = drawingNoList; |
| | | }); |
| | | }, |
| | | refresh(refname){ |
| | | this.treeData=[]; |
| | | //this.$refs[refname].doLayout(); |
| | | this.$refs[refname].refreshTable(); |
| | | let curS = this.isSearch; |
| | | this.isSearch = null; |
| | | this.onLoad(); |
| | | this.isSearch = !curS |
| | | }, |
| | | showLockDlg(row){ |
| | | //this.lockForm = row; |
| | | this.lockForm.id = row.id; |