|
|
@ -71,7 +71,12 @@ |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="巡查路线类型" prop="type" class="ml-24"> |
|
|
|
<el-select :disabled="!canEdit" class="w-240" v-model="formData.type"> |
|
|
|
<el-select |
|
|
|
:disabled="!canEdit" |
|
|
|
class="w-240" |
|
|
|
v-model="formData.type" |
|
|
|
@change="handleChangeLineType" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in xcClassfyOptions" |
|
|
|
:key="index" |
|
|
@ -138,6 +143,7 @@ |
|
|
|
remote |
|
|
|
reserve-keyword |
|
|
|
@change="handleChangeXcItem" |
|
|
|
@focus="handleGetRemoteProjectMethod('')" |
|
|
|
placeholder="请输入关键词搜索" |
|
|
|
:remote-method="handleGetRemoteProjectMethod" |
|
|
|
> |
|
|
@ -305,7 +311,7 @@ export default { |
|
|
|
timeView: { |
|
|
|
timeField: "create_time", |
|
|
|
}, |
|
|
|
type: "", |
|
|
|
type: this.formData.type || "", |
|
|
|
}, |
|
|
|
cv: { |
|
|
|
name: "name", |
|
|
@ -437,7 +443,15 @@ export default { |
|
|
|
this.checkTreeData = _treeData; |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 修改路线类型 |
|
|
|
handleChangeLineType() { |
|
|
|
if (this.formData.xcId) { |
|
|
|
this.formData.xcName = ""; |
|
|
|
this.formData.xcId = ""; |
|
|
|
this.xcProjectList = []; |
|
|
|
this.checkTreeData = []; |
|
|
|
} |
|
|
|
}, |
|
|
|
handleChangeXcItem(val) { |
|
|
|
const res = this.xcProjectList.find((item) => item.name === val); |
|
|
|
if (res.id) { |
|
|
|