Merge branch 'master' of http://192.168.1.22:3000/frontend/pqs-9100_client
This commit is contained in:
@@ -37,7 +37,7 @@ export namespace Plan {
|
|||||||
testConfig?: PlanTestConfig;
|
testConfig?: PlanTestConfig;
|
||||||
importFlag?: number; // 导入标识,0-否,1-是
|
importFlag?: number; // 导入标识,0-否,1-是
|
||||||
leader?: string; // 负责人
|
leader?: string; // 负责人
|
||||||
memberIds?: string[]; //成员
|
memberIds?: string | string[]; //成员
|
||||||
members?: string; //成员字符串
|
members?: string; //成员字符串
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
prop: 'boundPlanName',
|
prop: 'boundPlanName',
|
||||||
label: '子计划',
|
label: '子计划',
|
||||||
minWidth: 150,
|
minWidth: 150,
|
||||||
|
isShow: planFormContent.value?.importFlag === 0,
|
||||||
render: scope => {
|
render: scope => {
|
||||||
console.log('boundPlanName', isTabPlanFather.value)
|
console.log('boundPlanName', isTabPlanFather.value)
|
||||||
const value = scope.row.boundPlanName
|
const value = scope.row.boundPlanName
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
<!-- 传递 footer 插槽到 el-card -->
|
<!-- 传递 footer 插槽到 el-card -->
|
||||||
<template #footer v-if="!props.disabled">
|
<template #footer v-if="$slots.footer">
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</template>
|
</template>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -273,7 +273,7 @@ interface Device {
|
|||||||
}
|
}
|
||||||
type Data = RenderContentContext['data']
|
type Data = RenderContentContext['data']
|
||||||
const modelValue = defineModel<string[]>({ default: [] })
|
const modelValue = defineModel<string[]>({ default: [] })
|
||||||
|
const slots = useSlots()
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
type: Array as unknown as PropType<Device[]>,
|
type: Array as unknown as PropType<Device[]>,
|
||||||
@@ -325,7 +325,7 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const leftHeight = computed(() => {
|
const leftHeight = computed(() => {
|
||||||
if (!props.disabled) {
|
if (!props.disabled && slots.footer) {
|
||||||
return props.height
|
return props.height
|
||||||
}
|
}
|
||||||
return props.height + 45.2
|
return props.height + 45.2
|
||||||
|
|||||||
@@ -205,7 +205,7 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="formContent.memberIds"
|
v-model="formContent.memberIds"
|
||||||
:disabled="allDisabled"
|
:disabled="allDisabled"
|
||||||
multiple
|
:multiple="planType == 0"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
clearable
|
clearable
|
||||||
collapse-tags
|
collapse-tags
|
||||||
@@ -232,9 +232,9 @@
|
|||||||
:data="devData"
|
:data="devData"
|
||||||
:height="selectByMode ? 325 : 220"
|
:height="selectByMode ? 325 : 220"
|
||||||
:disabled="allDisabled"
|
:disabled="allDisabled"
|
||||||
:expand-all="planType !== '0'"
|
:expand-all="planType != 0"
|
||||||
>
|
>
|
||||||
<template v-if="planType === 0 && !allDisabled" #footer>
|
<template v-if="planType == 0 && !allDisabled" #footer>
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<el-button
|
<el-button
|
||||||
v-if="modeStore.currentMode !== '比对式'"
|
v-if="modeStore.currentMode !== '比对式'"
|
||||||
@@ -662,10 +662,12 @@ const save = () => {
|
|||||||
if (planType.value == 1) {
|
if (planType.value == 1) {
|
||||||
formContent.fatherPlanId = formContent.id
|
formContent.fatherPlanId = formContent.id
|
||||||
formContent.id = ''
|
formContent.id = ''
|
||||||
|
formContent.memberIds = [formContent.memberIds?.toString()]
|
||||||
await addPlan(formContent)
|
await addPlan(formContent)
|
||||||
emit('update:tab')
|
emit('update:tab')
|
||||||
// 编辑子计划
|
// 编辑子计划
|
||||||
} else if (planType.value == 2) {
|
} else if (planType.value == 2) {
|
||||||
|
formContent.memberIds = [formContent.memberIds?.toString()]
|
||||||
await updatePlan(formContent)
|
await updatePlan(formContent)
|
||||||
emit('update:tab')
|
emit('update:tab')
|
||||||
console.log('更新子计划', formContent)
|
console.log('更新子计划', formContent)
|
||||||
@@ -824,19 +826,7 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
|
|||||||
} else {
|
} else {
|
||||||
//编辑时先给表单赋值(这会没接收被检设备),需要手动再给被检设备复制后整体表单赋值
|
//编辑时先给表单赋值(这会没接收被检设备),需要手动再给被检设备复制后整体表单赋值
|
||||||
|
|
||||||
if (plan == 1 || plan == 2) {
|
|
||||||
isSelectDisabled.value = true
|
|
||||||
} else {
|
|
||||||
isSelectDisabled.value = data.testState !== 0
|
isSelectDisabled.value = data.testState !== 0
|
||||||
if (data.importFlag === 1) {
|
|
||||||
allDisabled.value = true
|
|
||||||
formContent.leader = data.leader
|
|
||||||
if (data.members) {
|
|
||||||
formContent.memberIds = data.members.split(',')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Object.assign(formContent, { ...data })
|
Object.assign(formContent, { ...data })
|
||||||
|
|
||||||
let pqSource_Result: any,
|
let pqSource_Result: any,
|
||||||
@@ -849,7 +839,16 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
|
|||||||
user_Result: any
|
user_Result: any
|
||||||
|
|
||||||
if (mode.value === '比对式') {
|
if (mode.value === '比对式') {
|
||||||
|
if (data.importFlag === 1) {
|
||||||
|
allDisabled.value = true
|
||||||
|
formContent.leader = data.leader
|
||||||
|
}
|
||||||
|
if (plan == 0) {
|
||||||
formContent.memberIds = data.members ? data.members.split(',') : []
|
formContent.memberIds = data.members ? data.members.split(',') : []
|
||||||
|
} else {
|
||||||
|
isSelectDisabled.value = true
|
||||||
|
formContent.memberIds = data.members
|
||||||
|
}
|
||||||
;[
|
;[
|
||||||
PqErrSys_Result,
|
PqErrSys_Result,
|
||||||
boundPqDevList_Result,
|
boundPqDevList_Result,
|
||||||
|
|||||||
Reference in New Issue
Block a user