Commit f1a11709 authored by zhangyichen's avatar zhangyichen

修改bug

parent a6c44cb4
...@@ -819,7 +819,6 @@ export default { ...@@ -819,7 +819,6 @@ export default {
this.endMaterialList.forEach(item => { this.endMaterialList.forEach(item => {
this.addMaterialMap[item.businessId] = item this.addMaterialMap[item.businessId] = item
}) })
this.endMaterialList = []
this.selectPartNum.forEach(item => { this.selectPartNum.forEach(item => {
if (this.addMaterialMap[item.businessId]) { if (this.addMaterialMap[item.businessId]) {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -1189,6 +1188,9 @@ export default { ...@@ -1189,6 +1188,9 @@ export default {
} else if (this.htmlType === '3') { } else if (this.htmlType === '3') {
nltmodelAdd(params).then(res => { nltmodelAdd(params).then(res => {
this.$message.success('新增成功') this.$message.success('新增成功')
this.queryParams = this.$options.data().queryParams
this.positionList = this.$options.data().positionList
this.form = this.$options.data().form
this.$router.push({ this.$router.push({
name: '/productionInfo/ProductionModel' name: '/productionInfo/ProductionModel'
}) })
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
:total="totalMater" :total="totalMater"
:page.sync="queryParam.page" :page.sync="queryParam.page"
:limit.sync="queryParam.rows" :limit.sync="queryParam.rows"
@pagination="partNum" @pagination="partNum(1)"
/> />
</el-col> </el-col>
</el-row> </el-row>
...@@ -413,9 +413,9 @@ export default { ...@@ -413,9 +413,9 @@ export default {
this.queryParam.page = 1 this.queryParam.page = 1
this.queryParam.rows = 10 this.queryParam.rows = 10
this.openPartNo = true this.openPartNo = true
this.partNum() this.partNum(1)
}, },
partNum() { partNum(flag) {
this.loadingCode = true this.loadingCode = true
const params = { const params = {
...this.queryParam ...this.queryParam
...@@ -425,7 +425,9 @@ export default { ...@@ -425,7 +425,9 @@ export default {
this.selectPartNum = res.rows this.selectPartNum = res.rows
this.totalMater = res.total this.totalMater = res.total
this.loadingCode = false this.loadingCode = false
this.getList() if (flag !== 1) {
this.getList()
}
}) })
}, },
// 删除生产模型 // 删除生产模型
......
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