|
|
@ -199,27 +199,27 @@ |
|
|
|
<span class="role-span">交互相关:</span> |
|
|
|
</div> |
|
|
|
<div class="crud-opts2" style="margin-bottom: 5px;"> |
|
|
|
<span class="crud-opts-right2"> |
|
|
|
<!--左侧插槽--> |
|
|
|
<slot name="left" /> |
|
|
|
<el-button |
|
|
|
slot="left" |
|
|
|
class="filter-item" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
size="mini" |
|
|
|
@click="insertdtl()" |
|
|
|
> |
|
|
|
新增一行 |
|
|
|
</el-button> |
|
|
|
</span> |
|
|
|
<span class="crud-opts-right2"> |
|
|
|
<!--左侧插槽--> |
|
|
|
<slot name="left" /> |
|
|
|
<el-button |
|
|
|
slot="left" |
|
|
|
class="filter-item" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
size="mini" |
|
|
|
@click="insertdtl()" |
|
|
|
> |
|
|
|
新增一行 |
|
|
|
</el-button> |
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="app-container"> |
|
|
|
<el-table :data="modeform.tableData" border fit highlight-current-row style="width: 100%;" class="tb-edit"> |
|
|
|
<el-table-column label="mode" prop="模式" width="180"> |
|
|
|
<template scope="scope"> |
|
|
|
<el-input-number value="3" :min="3" v-model="scope.row.mode" size="mini" /> |
|
|
|
<el-input-number v-model="scope.row.mode" value="3" :min="3" size="mini" /> |
|
|
|
<span v-show="scope.row.edit">{{ scope.row.mode }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -241,7 +241,7 @@ |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="操作" width="170" > |
|
|
|
<el-table-column align="center" label="操作" width="170"> |
|
|
|
<template scope="scope"> |
|
|
|
<el-button |
|
|
|
type="danger" |
|
|
@ -389,7 +389,6 @@ export default { |
|
|
|
configLoading: false, |
|
|
|
dataOpcservers: [], |
|
|
|
dataOpcPlcs: [], |
|
|
|
deviceList: [], |
|
|
|
data1: [], |
|
|
|
data2: [], |
|
|
|
requestMethodList: [], |
|
|
@ -453,11 +452,14 @@ export default { |
|
|
|
link_three_lamp: '', |
|
|
|
manual_create_task: true, |
|
|
|
is_pickup: true, |
|
|
|
is_release: true, |
|
|
|
link_device_code: [], |
|
|
|
link_three_lamp: [] |
|
|
|
is_release: true |
|
|
|
// link_device_code: [], |
|
|
|
// link_three_lamp: [], |
|
|
|
// link_get_station: [], |
|
|
|
// link_put_station: [] |
|
|
|
}, |
|
|
|
rules: {} |
|
|
|
rules: {}, |
|
|
|
deviceList: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -505,13 +507,6 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
insertdtl() { |
|
|
|
this.modeform.tableData.push({mode: '', request: '' }) |
|
|
|
}, |
|
|
|
deleteRow(index, rows) { |
|
|
|
debugger |
|
|
|
rows.splice(index, 1) |
|
|
|
}, |
|
|
|
finishReadEdit(data) { |
|
|
|
// 编辑的是code列,并且值包含mode |
|
|
|
if (data.code.indexOf('mode') !== -1) { |
|
|
@ -624,7 +619,7 @@ export default { |
|
|
|
parentForm.is_route = true |
|
|
|
parentForm.plc_id = this.plc_id |
|
|
|
parentForm.opc_id = this.opc_id |
|
|
|
updateConfig(parentForm, this.form, this.modeform, this.data1, this.data2).then(res => { |
|
|
|
updateConfig(parentForm, this.form, this.modeform, this.data1, this.data2).then(res => { |
|
|
|
this.notify('保存成功', 'success') |
|
|
|
this.configLoading = false |
|
|
|
}).catch(err => { |
|
|
|