Commit 621d9565 authored by liqiuyu's avatar liqiuyu

fix(*): 修改布袋更换弹框问题

parent e03d73a0
...@@ -601,9 +601,9 @@ ...@@ -601,9 +601,9 @@
<el-form-item label="第几行:"> <el-form-item label="第几行:">
<el-select v-model="bagRow" placeholder="请选择第几行" @change="getCol"> <el-select v-model="bagRow" placeholder="请选择第几行" @change="getCol">
<el-option <el-option
v-for="item in rowList" :key="item.id" v-for="item in rowList" :key="item"
:label="item.name" :label="item"
:value="item.id" :value="item"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -611,9 +611,9 @@ ...@@ -611,9 +611,9 @@
<el-form-item label="第几列:"> <el-form-item label="第几列:">
<el-select v-model="bagCol" placeholder="请选择第几列"> <el-select v-model="bagCol" placeholder="请选择第几列">
<el-option <el-option
v-for="item in colList" :key="item.id" v-for="item in colList" :key="item"
:label="item.name" :label="item"
:value="item.id" :value="item"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -736,7 +736,7 @@ const getBagRowLine = (no) => { ...@@ -736,7 +736,7 @@ const getBagRowLine = (no) => {
const params = { const params = {
deviceNo: no deviceNo: no
} }
getDataFun((url,params).then(res => { getDataFun(url,params).then(res => {
if (res.code === 1) { if (res.code === 1) {
rowLineMap.value = res.data; rowLineMap.value = res.data;
res.data.forEach(item => { res.data.forEach(item => {
...@@ -744,13 +744,12 @@ const getBagRowLine = (no) => { ...@@ -744,13 +744,12 @@ const getBagRowLine = (no) => {
}); });
} }
}) })
)
} }
const getCol = ()=>{ const getCol = ()=>{
rowLineMap.value.forEach(item => { rowLineMap.value.forEach(item => {
if (item.row === bagRow.value) { if (item.row === bagRow.value) {
colList.value.push(item.columns); colList.value = item.columns;
} }
}); });
} }
......
...@@ -711,9 +711,9 @@ ...@@ -711,9 +711,9 @@
<el-form-item label="第几行:"> <el-form-item label="第几行:">
<el-select v-model="bagRow" placeholder="请选择第几行" @change="getCol"> <el-select v-model="bagRow" placeholder="请选择第几行" @change="getCol">
<el-option <el-option
v-for="item in rowList" :key="item.id" v-for="item in rowList" :key="item"
:label="item.name" :label="item"
:value="item.id" :value="item"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -721,9 +721,9 @@ ...@@ -721,9 +721,9 @@
<el-form-item label="第几列:"> <el-form-item label="第几列:">
<el-select v-model="bagCol" placeholder="请选择第几列"> <el-select v-model="bagCol" placeholder="请选择第几列">
<el-option <el-option
v-for="item in colList" :key="item.id" v-for="item in colList" :key="item"
:label="item.name" :label="item"
:value="item.id" :value="item"
> >
</el-option> </el-option>
</el-select> </el-select>
...@@ -817,7 +817,7 @@ const getBagRowLine = (no) => { ...@@ -817,7 +817,7 @@ const getBagRowLine = (no) => {
const params = { const params = {
deviceNo: no deviceNo: no
} }
getDataFun((url,params).then(res => { getDataFun(url,params).then(res => {
if (res.code === 1) { if (res.code === 1) {
rowLineMap.value = res.data; rowLineMap.value = res.data;
res.data.forEach(item => { res.data.forEach(item => {
...@@ -825,13 +825,12 @@ const getBagRowLine = (no) => { ...@@ -825,13 +825,12 @@ const getBagRowLine = (no) => {
}); });
} }
}) })
)
} }
const getCol = ()=>{ const getCol = ()=>{
rowLineMap.value.forEach(item => { rowLineMap.value.forEach(item => {
if (item.row === bagRow.value) { if (item.row === bagRow.value) {
colList.value.push(item.columns); colList.value = item.columns;
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment