Commit b56e4377 authored by 徐来柯's avatar 徐来柯

fix bug

parent 662681ef
......@@ -29,6 +29,12 @@
width="185"
prop="NO">
</el-table-column>
<el-table-column
label="线体编号"
:show-overflow-tooltip="true"
prop="Nuber"
width="300">
</el-table-column>
<el-table-column
label="线体名称"
:show-overflow-tooltip="true"
......
......@@ -228,11 +228,11 @@ export default {
},
//查询
query(){
for(let i=0;i<this.productNameArr.length;i++){
if(this.value == this.productNameArr[i].name){
this.argID = this.productNameArr[i].id
this.$parent.idFun(this.argID)
var $this = this
for(let i=0;i<$this.productNameArr.length;i++){
if($this.value == $this.productNameArr[i].name){
$this.argID = $this.productNameArr[i].id
$this.$parent.idFun($this.argID)
}
}
this.$parent.query()
......
......@@ -8,7 +8,7 @@
<template>
<div class="deviceManage">
<div class="deviceCenten">
<Head type="11"></Head>
<Head type="11" ref="head" ></Head>
<div class="conterFool_middle" style="width:98%;margin:auto">
<el-table
border
......@@ -147,9 +147,10 @@ export default {
methods:{
//查询
query(){
this.$nextTick(() => {
this.$axios({
method:"post",
url:`/api/Device/Device_Query?argKeyWord=${this.argKeyWord}&argWhere=${this.argWhere}`,
url:`/api/Device/Device_Query?argKeyWord=${this.argKeyWord}&argWhere=${this.$refs.head.argWhere}`,
}).then((res)=>{
if(res.data.data.length != 0 ){
this.AllTableData = res.data.data
......@@ -170,6 +171,7 @@ export default {
}).catch(function(err){
console.log('err',err)
})
})
},
openRelate () {
......
......@@ -191,6 +191,18 @@ export default {
//添加
addFun(value){
console.log('value',value)
if (value.Nuber.trim() == '') {
this.typeV = '5'
this.deleteShow = true
this.deletetext = '工艺编号不能为空'
return
}
if (value.Desc.trim() == '') {
this.typeV = '5'
this.deleteShow = true
this.deletetext = '工艺描述不能为空'
return
}
var data = {
No:0,
ID:value.ID,
......
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