|
|
@@ -52,10 +52,22 @@
|
|
|
placeholder="按设备分类查询"
|
|
|
@change="ProjectTypeChangeHandler"
|
|
|
@clear="ProjectTypeClearHandler">
|
|
|
- <el-option v-for="item in projectTypeList"
|
|
|
- :key="item.id"
|
|
|
- :label="item.FullName"
|
|
|
- :value="item.Id"></el-option>
|
|
|
+ <el-option-group
|
|
|
+ v-for="group in options"
|
|
|
+ :key="group.label"
|
|
|
+ :label="group.label">
|
|
|
+ <el-option
|
|
|
+ v-for="item in group.options"
|
|
|
+ :key="item.Id"
|
|
|
+ :label="item.FullName"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-option-group>
|
|
|
+
|
|
|
+ <!--<el-option v-for="item in projectTypeList"-->
|
|
|
+ <!--:key="item.id"-->
|
|
|
+ <!--:label="item.FullName"-->
|
|
|
+ <!--:value="item.Id"></el-option>-->
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
@@ -422,6 +434,26 @@ export default {
|
|
|
detectionCycleList: [],
|
|
|
FileItems: [],
|
|
|
waituploads: [],
|
|
|
+ options: [{
|
|
|
+ label: '特检',
|
|
|
+ options: [
|
|
|
+ {Id: 179, FullName: '电气接地装置检测'},
|
|
|
+ {Id: 286, FullName: '防雷装置检测'},
|
|
|
+ {Id: 187, FullName: '防雷装置(等电位)检测'},
|
|
|
+ {Id: 181, FullName: '漏电保护器检测'}
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ label: '宇信',
|
|
|
+ options: [
|
|
|
+ {Id: 156, FullName: '阻火器检测'},
|
|
|
+ {Id: 183, FullName: '呼吸阀检测'},
|
|
|
+ {Id: 154, FullName: '液压安全阀检测'},
|
|
|
+ {Id: 189, FullName: '空气泡沫产生器检测'},
|
|
|
+ {Id: 141, FullName: '游梁式抽油机检测'},
|
|
|
+ {Id: 173, FullName: '无游梁式抽油机检测'}
|
|
|
+ ]
|
|
|
+ }],
|
|
|
+
|
|
|
statusValue: '',
|
|
|
addoredittitle: '添加',
|
|
|
QueryProjectTypeId: '',
|
|
|
@@ -770,14 +802,16 @@ export default {
|
|
|
_this.$axios.get('/testtype/testypetreeall', {})
|
|
|
.then(res => {
|
|
|
_this.testTypeList = res.data.items
|
|
|
+ console.log(_this.testTypeList, '_this.testTypeList')
|
|
|
if (!_this.testTypeList) {
|
|
|
return false
|
|
|
}
|
|
|
for (var i = 0; i < _this.testTypeList.length; i++) {
|
|
|
- if (_this.testTypeList[i].ParentId == 0) {
|
|
|
+ if (_this.testTypeList[i].ParentId === 0) {
|
|
|
_this.projectTypeList.push(_this.testTypeList[i])
|
|
|
}
|
|
|
}
|
|
|
+ console.log(_this.projectTypeList, '_this.projectTypeList')
|
|
|
})
|
|
|
.catch(err => {
|
|
|
// handle error
|