mirror of
				https://github.com/veops/cmdb.git
				synced 2025-11-04 21:56:16 +08:00 
			
		
		
		
	前端更新 (#192)
* fix:add package * fix:notice_info为null的情况 * fix:2 bugs * feat:1.common增加通知配置 2.cmdb预定义值webhook&其他模型 * fix:json 不支持预定义值 * fix:json 不支持预定义值 * fix:删除代码
This commit is contained in:
		@@ -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
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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,9 +346,9 @@ 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
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    async getNoticeConfigAppBot() {
 | 
			
		||||
@@ -358,7 +358,6 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    createFromTriggerTable(attrList) {
 | 
			
		||||
      this.visible = true
 | 
			
		||||
      this.getDags()
 | 
			
		||||
      this.getNoticeConfigAppBot()
 | 
			
		||||
      this.attrList = attrList
 | 
			
		||||
      this.triggerId = null
 | 
			
		||||
@@ -378,7 +377,6 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    async open(property, attrList) {
 | 
			
		||||
      this.visible = true
 | 
			
		||||
      await this.getDags()
 | 
			
		||||
      this.getNoticeConfigAppBot()
 | 
			
		||||
      this.attrList = attrList
 | 
			
		||||
      if (property.has_trigger) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user