This commit is contained in:
sjl
2025-01-13 21:26:12 +08:00
parent 1f3024eb91
commit edea30a406
2 changed files with 26 additions and 0 deletions

View File

@@ -471,6 +471,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
render: (scope) => { render: (scope) => {
// 查找设备类型名称 // 查找设备类型名称
const name = devTypeOptions.value.find(option => option.id === scope.row.devType); const name = devTypeOptions.value.find(option => option.id === scope.row.devType);
console.log('表格')
return <span>{name?.name}</span> return <span>{name?.name}</span>
}, },
}, },

View File

@@ -201,6 +201,11 @@ const tableRef1 = ref()
const tableRef2 = ref() const tableRef2 = ref()
const currentId = ref('') const currentId = ref('')
watch( watch(
() => form.value, () => form.value,
(val, oldVal) => { (val, oldVal) => {
@@ -238,6 +243,9 @@ watch(
deep: true, deep: true,
}, },
) )
const pieRef1 = ref(), const pieRef1 = ref(),
pieRef2 = ref(), pieRef2 = ref(),
pieRef3 = ref() pieRef3 = ref()
@@ -345,6 +353,8 @@ const planDetail = () => {
path: '/plan/planList', path: '/plan/planList',
}) })
} }
//功能选择css切换 //功能选择css切换
const handleCheckFunction = (val: any) => { const handleCheckFunction = (val: any) => {
editableTabsValue.value = '0' editableTabsValue.value = '0'
@@ -445,6 +455,21 @@ const handleBatchGenerate = () => {
console.log('批量生成按钮被点击了'); console.log('批量生成按钮被点击了');
// 在这里添加其他逻辑,比如显示对话框、更新状态等 // 在这里添加其他逻辑,比如显示对话框、更新状态等
getPieData(currentId.value) getPieData(currentId.value)
if (form.value.activeTabs === 0)//设备检测
{
const tabledata = deviceData.filter((item) => item.document_State === '未归档')
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
} else if (form.value.activeTabs === 4)//设备归档
{
const tabledata = deviceData.filter((item) => item.check_State === '检测完成' && item.document_State === '未归档')
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
} else if (form.value.activeTabs === 3 || form.value.activeTabs === 5)//报告生成、数据查询
{
const tabledata = deviceData.filter((item) => item.check_State === '检测完成')
tableRef1.value && tableRef1.value.changeActiveTabs(form.value.activeTabs, form.value.activeChildTabs, tabledata)
}
}; };
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>