mirror of https://github.com/veops/cmdb.git
delete:删除getwx
This commit is contained in:
parent
968ef93153
commit
b58230fd56
|
@ -194,7 +194,6 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import { getWX } from '../../api/perm'
|
|
||||||
import { addTrigger, updateTrigger, deleteTrigger, getAllDagsName } from '../../api/CIType'
|
import { addTrigger, updateTrigger, deleteTrigger, getAllDagsName } from '../../api/CIType'
|
||||||
import FilterComp from '@/components/CMDBFilterComp'
|
import FilterComp from '@/components/CMDBFilterComp'
|
||||||
import EmployeeTreeSelect from '@/views/setting/components/employeeTreeSelect.vue'
|
import EmployeeTreeSelect from '@/views/setting/components/employeeTreeSelect.vue'
|
||||||
|
@ -264,16 +263,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
filterWxUsers() {
|
|
||||||
if (!this.filterValue) {
|
|
||||||
return this.WxUsers
|
|
||||||
}
|
|
||||||
return this.WxUsers.filter(
|
|
||||||
(user) =>
|
|
||||||
user.nickname.toLowerCase().indexOf(this.filterValue.toLowerCase()) >= 0 ||
|
|
||||||
user.username.toLowerCase().indexOf(this.filterValue.toLowerCase()) >= 0
|
|
||||||
)
|
|
||||||
},
|
|
||||||
canAddTriggerAttr() {
|
canAddTriggerAttr() {
|
||||||
return this.attrList.filter((attr) => attr.value_type === '3' || attr.value_type === '4')
|
return this.attrList.filter((attr) => attr.value_type === '3' || attr.value_type === '4')
|
||||||
},
|
},
|
||||||
|
@ -299,7 +288,6 @@ export default {
|
||||||
},
|
},
|
||||||
createFromTriggerTable(attrList) {
|
createFromTriggerTable(attrList) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.getWxList()
|
|
||||||
// this.getDags()
|
// this.getDags()
|
||||||
this.attrList = attrList
|
this.attrList = attrList
|
||||||
this.triggerId = null
|
this.triggerId = null
|
||||||
|
@ -319,7 +307,6 @@ export default {
|
||||||
},
|
},
|
||||||
async open(property, attrList) {
|
async open(property, attrList) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.getWxList()
|
|
||||||
// await this.getDags()
|
// await this.getDags()
|
||||||
this.attrList = attrList
|
this.attrList = attrList
|
||||||
if (property.has_trigger) {
|
if (property.has_trigger) {
|
||||||
|
@ -393,11 +380,6 @@ export default {
|
||||||
this.filterExp = ''
|
this.filterExp = ''
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
getWxList() {
|
|
||||||
getWX().then((res) => {
|
|
||||||
this.WxUsers = res.filter((item) => item.wx_id)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
filterChange(value) {
|
filterChange(value) {
|
||||||
this.filterValue = value
|
this.filterValue = value
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue