|
|
|
@ -2,18 +2,18 @@ |
|
|
|
<div class="mod-config customer-tab"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-form-item label="工厂"> |
|
|
|
<el-input v-model="searchData.site" style="width: 160px"></el-input> |
|
|
|
<el-input v-model="searchData.site" style="width: 80px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="工具编码"> |
|
|
|
<el-input v-model="searchData.toolId" style="width: 160px"></el-input> |
|
|
|
<el-input v-model="searchData.toolId" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="工具类型"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1016)"><a herf="#">工具类型</a></span> |
|
|
|
<el-input v-model="searchData.toolType" style="width: 160px"></el-input> |
|
|
|
<el-input v-model="searchData.toolType" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="日历标识"> |
|
|
|
<span slot="label" style="" @click="getBaseList(1018)"><a herf="#">日历标识</a></span> |
|
|
|
<el-input v-model="searchData.calendarId"></el-input> |
|
|
|
<el-input v-model="searchData.calendarId" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button> |
|
|
|
@ -822,7 +822,7 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.height = window.innerHeight - 520; |
|
|
|
this.height = window.innerHeight / 2 - 50; |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -1033,16 +1033,11 @@ export default { |
|
|
|
this.totalPage = data.total; |
|
|
|
if (this.dataList.length > 0) { |
|
|
|
this.$refs.mainTable.setCurrentRow(this.dataList[0]); |
|
|
|
//如果已经存在则 不修改默认数值 不然修改默认选择行为第一行 |
|
|
|
if (this.currentRow && Object.keys(this.currentRow).length > 0) { |
|
|
|
//已经存在 不需要修改 |
|
|
|
} else { |
|
|
|
this.currentRow = JSON.parse(JSON.stringify(this.dataList[0])); |
|
|
|
} |
|
|
|
this.currentRow = JSON.parse(JSON.stringify(this.dataList[0])); |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
} else { |
|
|
|
this.currentRow = {} |
|
|
|
} |
|
|
|
this.refreshCurrentTabTable() |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
|
|
|
|
|