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

fix bug

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