|
@@ -188,6 +188,14 @@ function formatCellValue(row, prop) {
|
|
|
|
|
|
|
|
function handleDeptCellClick(row) {
|
|
function handleDeptCellClick(row) {
|
|
|
const rowType = String(row?.type || selectedDeptType.value || '1')
|
|
const rowType = String(row?.type || selectedDeptType.value || '1')
|
|
|
|
|
+
|
|
|
|
|
+ if (rowType === '2' && row?.projectDeptId) {
|
|
|
|
|
+ query.value.deptId = row.projectDeptId
|
|
|
|
|
+ currentDeptName.value = row.projectDeptName || row.deptDisplayName || '5号国'
|
|
|
|
|
+ selectedDeptType.value = '1'
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const targetQuery = {
|
|
const targetQuery = {
|
|
|
deptId: String(query.value.deptId || defaultDeptId),
|
|
deptId: String(query.value.deptId || defaultDeptId),
|
|
|
createTime: Array.isArray(query.value.createTime) ? query.value.createTime : undefined,
|
|
createTime: Array.isArray(query.value.createTime) ? query.value.createTime : undefined,
|