Commit 9b529726 authored by 徐来柯's avatar 徐来柯

update

parent a3f7bf5f
...@@ -141,4 +141,7 @@ ...@@ -141,4 +141,7 @@
.el-table .warning-row td { .el-table .warning-row td {
background: #ff4949 !important; background: #ff4949 !important;
color: #fff !important; color: #fff !important;
}
input {
border: 1px solid #DCDFE6;
} }
\ No newline at end of file
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
tableHead: { tableHead: {
NO: '序号', NO: '序号',
RoleName: '岗位名称', RoleName: '岗位名称',
RoleNo: '岗位编号', Scmsuserno: '岗位编号',
RoleDesc: '岗位描述', RoleDesc: '岗位描述',
UpdateUserName: '修改人', UpdateUserName: '修改人',
UpdateTime: '修改时间' UpdateTime: '修改时间'
......
...@@ -236,7 +236,6 @@ export default { ...@@ -236,7 +236,6 @@ export default {
}, },
conserve () { conserve () {
if (this.relateType) { if (this.relateType) {
// var flag = Object.prototype.toString.call(this.relateType)
if (this.relateType === 'VPID') { if (this.relateType === 'VPID') {
if (this.currentRow.DateType.indexOf('字符串') !== -1) { if (this.currentRow.DateType.indexOf('字符串') !== -1) {
return this.$emit('conserve', this.currentRow, this.relateType) return this.$emit('conserve', this.currentRow, this.relateType)
...@@ -279,7 +278,14 @@ export default { ...@@ -279,7 +278,14 @@ export default {
} }
} }
} else { } else {
this.$emit('conserve', this.currentRow) if (this.currentRow.DateType.indexOf('二进制') !== -1) {
return this.$emit('conserve', this.currentRow)
} else {
this.typeV = '5'
this.deleteShow = true
this.deletetext = '该变量不是二进制变量,请重新选择'
return
}
} }
}, },
......
...@@ -214,6 +214,12 @@ export default { ...@@ -214,6 +214,12 @@ export default {
//添加 //添加
addFun(value){ addFun(value){
let data = value let data = value
if (value.Proalert.trim() === '') {
this.typeV = '5'
this.deleteShow = true
this.deletetext = '请先关联变量'
return
}
this.$axios({ this.$axios({
method:"post", method:"post",
url:`/api/Device/Device_WindowAddSave`, url:`/api/Device/Device_WindowAddSave`,
...@@ -226,7 +232,7 @@ export default { ...@@ -226,7 +232,7 @@ export default {
this.typeV = '6' this.typeV = '6'
this.cancelFun() this.cancelFun()
} }
this.deletetext = res.data.msg this.deletetext = res.data.msg
this.query() this.query()
}).catch(function(err){ }).catch(function(err){
console.log('err',err) console.log('err',err)
......
...@@ -57,18 +57,19 @@ ...@@ -57,18 +57,19 @@
label="最近修改时间" label="最近修改时间"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
prop="UpdateTime" prop="UpdateTime"
width="320"> width="240">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="修改人" label="修改人"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
prop="UpdateUserName" prop="UpdateUserName"
width="310"> width="300">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
show-overflow-tooltip> show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="table_edit" @click="editFun(scope.row)" > <div class="table_edit" @click="editFun(scope.row)" >
<div class="edit_img"></div> <div class="edit_img"></div>
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<el-table-column <el-table-column
label="产品组成(BOM)" label="产品组成(BOM)"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
width="260"> width="210">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="BomBtn" @click="BomFun(scope.row)" > <div class="BomBtn" @click="BomFun(scope.row)" >
<div class="Bom_img"></div> <div class="Bom_img"></div>
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
<el-table-column <el-table-column
label="操作" label="操作"
show-overflow-tooltip> show-overflow-tooltip
width="170">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="table_edit" @click="editFun(scope.row)" > <div class="table_edit" @click="editFun(scope.row)" >
<div class="edit_img"></div> <div class="edit_img"></div>
......
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