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', method: 'get',
}) })
} }
export function getAllDagsName(params) {
return axios({
url: '/v1/dag/all_names',
method: 'GET',
params: params
})
}

View File

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