refactor: 重构并添加版权信息

- 在多个 Java 文件中添加了版权信息的代码块
- 更新了部分文件中的导入路径
- 重命名了一些工具类,如 FileUtil 改为 CsFileUtil
- 完善流水线机制,新增重启流水线、停止流水线功能
This commit is contained in:
2025-07-28 20:18:19 +08:00
parent 4673ca356c
commit cbb5223c0e
179 changed files with 2752 additions and 751 deletions
@@ -0,0 +1,75 @@
<template>
<el-cascader
v-model="value"
:disabled="disabled"
:options="deptOptions"
@change="handleChange"
/>
</template>
<script>
import { queryDeptSelectProDataSource } from '@/api/system/component'
import CsMessage from '@/utils/elementui/CsMessage'
export default {
name: 'CuteProductLineSelectPro',
props: {
value: {
type: Array,
default: null
},
disabled: {
type: Boolean,
default: false
}
},
data() {
return {
deptOptions: [],
selectedValue: this.value
}
},
watch: {
value(newVal) {
this.selectedValue = newVal
}
},
created() {
this.fetchDeptData()
},
methods: {
// 递归清理空的children属性
cleanEmptyChildren(data) {
return data.map(item => {
const newItem = { ...item }
if (newItem.children && newItem.children.length > 0) {
// 递归处理子节点
newItem.children = this.cleanEmptyChildren(newItem.children)
} else {
// 删除空的children属性
delete newItem.children
}
return newItem
})
},
fetchDeptData() {
queryDeptSelectProDataSource().then(data => {
this.deptOptions = this.cleanEmptyChildren(data)
console.error('deptOptions', this.deptOptions)
}).catch(error => {
console.error('获取部门数据失败:', error)
CsMessage.Error('获取部门数据失败')
})
},
handleChange(value) {
this.selectedValue = value
// 绑定change事件
this.$emit('change', value)
// 绑定form value
this.$emit('input', value)
}
}
}
</script>