fix:删除代码

This commit is contained in:
wang-liang0615 2023-10-09 19:50:16 +08:00
parent 9ba4c9a1f9
commit 9ad5380c20
2 changed files with 1 additions and 16 deletions

View File

@ -205,11 +205,3 @@ export function ciTypeFilterPermissions(type_id) {
method: 'get',
})
}
export function getAllDagsName(params) {
return axios({
url: '/v1/dag/all_names',
method: 'GET',
params: params
})
}

View File

@ -256,7 +256,7 @@
<script>
import _ from 'lodash'
import { addTrigger, updateTrigger, deleteTrigger, getAllDagsName } from '../../api/CIType'
import { addTrigger, updateTrigger, deleteTrigger } from '../../api/CIType'
import FilterComp from '@/components/CMDBFilterComp'
import EmployeeTreeSelect from '@/views/setting/components/employeeTreeSelect.vue'
import Webhook from '../../components/webhook'
@ -346,11 +346,6 @@ export default {
},
mounted() {},
methods: {
async getDags() {
await getAllDagsName().then((res) => {
this.dags = res.map((dag) => ({ id: dag[1], label: dag[0] }))
})
},
async getNoticeConfigAppBot() {
await getNoticeConfigAppBot().then((res) => {
this.appBot = res
@ -358,7 +353,6 @@ export default {
},
createFromTriggerTable(attrList) {
this.visible = true
this.getDags()
this.getNoticeConfigAppBot()
this.attrList = attrList
this.triggerId = null
@ -378,7 +372,6 @@ export default {
},
async open(property, attrList) {
this.visible = true
await this.getDags()
this.getNoticeConfigAppBot()
this.attrList = attrList
if (property.has_trigger) {