|
|
@ -228,6 +228,7 @@ |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="scope.row.patrolpointName" |
|
|
v-model="scope.row.patrolpointName" |
|
|
@change="handleChangePointCode(scope.row)" |
|
|
@change="handleChangePointCode(scope.row)" |
|
|
|
|
|
@input="handlePatrolpointNameInput($event, scope.row)" |
|
|
placeholder="请输入点位名称" |
|
|
placeholder="请输入点位名称" |
|
|
class="table-input" |
|
|
class="table-input" |
|
|
:disabled="batchDeleteMode" |
|
|
:disabled="batchDeleteMode" |
|
|
@ -242,9 +243,12 @@ |
|
|
> |
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<a |
|
|
<a |
|
|
style="color: #1890ff" |
|
|
|
|
|
class="nowarp" |
|
|
|
|
|
@click="chooseAlgorithm(scope.row)" |
|
|
|
|
|
|
|
|
:class="[ |
|
|
|
|
|
'nowarp', |
|
|
|
|
|
'algorithm-setting-link', |
|
|
|
|
|
{ 'is-disabled': batchDeleteMode }, |
|
|
|
|
|
]" |
|
|
|
|
|
@click="!batchDeleteMode && chooseAlgorithm(scope.row)" |
|
|
:title="scope.row.algSubtypeName" |
|
|
:title="scope.row.algSubtypeName" |
|
|
> |
|
|
> |
|
|
{{ |
|
|
{{ |
|
|
@ -361,6 +365,7 @@ |
|
|
<el-form-item label="点位名称" prop="patrolpointName"> |
|
|
<el-form-item label="点位名称" prop="patrolpointName"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="formAdd.patrolpointName" |
|
|
v-model="formAdd.patrolpointName" |
|
|
|
|
|
@input="handlePatrolpointNameInput($event, formAdd)" |
|
|
placeholder="请输入点位名称" |
|
|
placeholder="请输入点位名称" |
|
|
></el-input> |
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -393,6 +398,7 @@ |
|
|
v-model="formAdd.patrolTypeId" |
|
|
v-model="formAdd.patrolTypeId" |
|
|
:options="listPatroltype" |
|
|
:options="listPatroltype" |
|
|
:show-count="true" |
|
|
:show-count="true" |
|
|
|
|
|
:no-results-text="'\u65e0\u5339\u914d\u7ed3\u679c'" |
|
|
placeholder="请选择巡检类型" |
|
|
placeholder="请选择巡检类型" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -1512,7 +1518,7 @@ export default { |
|
|
], |
|
|
], |
|
|
patrolContent: [ |
|
|
patrolContent: [ |
|
|
{ |
|
|
{ |
|
|
required: true, |
|
|
|
|
|
|
|
|
required: false, |
|
|
message: "必填", |
|
|
message: "必填", |
|
|
trigger: "blur", |
|
|
trigger: "blur", |
|
|
}, |
|
|
}, |
|
|
@ -1526,14 +1532,14 @@ export default { |
|
|
], |
|
|
], |
|
|
patrolTypeId: [ |
|
|
patrolTypeId: [ |
|
|
{ |
|
|
{ |
|
|
required: true, |
|
|
|
|
|
|
|
|
required: false, |
|
|
message: "必填", |
|
|
message: "必填", |
|
|
trigger: "blur", |
|
|
trigger: "blur", |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
pointImptLevel: [ |
|
|
pointImptLevel: [ |
|
|
{ |
|
|
{ |
|
|
required: true, |
|
|
|
|
|
|
|
|
required: false, |
|
|
message: "必填", |
|
|
message: "必填", |
|
|
trigger: "blur", |
|
|
trigger: "blur", |
|
|
}, |
|
|
}, |
|
|
@ -1695,6 +1701,13 @@ export default { |
|
|
document.removeEventListener("mouseup", this.stopResize); |
|
|
document.removeEventListener("mouseup", this.stopResize); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
handlePatrolpointNameInput(value, target) { |
|
|
|
|
|
const name = String(value || ""); |
|
|
|
|
|
if (name.length > 200) { |
|
|
|
|
|
target.patrolpointName = name.slice(0, 200); |
|
|
|
|
|
this.$message.warning("\u70b9\u4f4d\u540d\u79f0\u4e0d\u80fd\u8d85\u8fc7200\u4e2a\u5b57\u7b26"); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// 获取行的唯一key(用于表格多选) |
|
|
// 获取行的唯一key(用于表格多选) |
|
|
getRowKey(row) { |
|
|
getRowKey(row) { |
|
|
return row.patrolpointId; |
|
|
return row.patrolpointId; |
|
|
@ -2459,6 +2472,10 @@ export default { |
|
|
|
|
|
|
|
|
//点位列表,更换智能识别类型 |
|
|
//点位列表,更换智能识别类型 |
|
|
chooseAlgorithm(row) { |
|
|
chooseAlgorithm(row) { |
|
|
|
|
|
if (this.batchDeleteMode) { |
|
|
|
|
|
this.$message.warning("请先退出批量删除模式"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
this.currentRow = row; |
|
|
this.currentRow = row; |
|
|
this.showChooseAlg = true; |
|
|
this.showChooseAlg = true; |
|
|
}, |
|
|
}, |
|
|
@ -4798,4 +4815,13 @@ export default { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.nowarp.is-disabled { |
|
|
|
|
|
color: #000000 !important; |
|
|
|
|
|
cursor: not-allowed; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.algorithm-setting-link { |
|
|
|
|
|
color: #1890ff; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |