方案数据统计指标选择后谐波次数下拉框问题修改
This commit is contained in:
@@ -455,21 +455,7 @@ const getData = (rightData: any) => {
|
||||
}
|
||||
checkedIdList.value = [...new Set(checkedIdList.value)]
|
||||
}
|
||||
const loading = ref(false)
|
||||
const defaultCheckedKeys: any = ref([])
|
||||
const tableData = ref([])
|
||||
defineOptions({
|
||||
name: 'govern/tourist/index'
|
||||
})
|
||||
const treeIds: any = ref([])
|
||||
const pids: any = ref([])
|
||||
|
||||
//绑定选择的数据
|
||||
const selectedBindList: any = ref([])
|
||||
//未绑定选择的数据
|
||||
const selectedUnBindList: any = ref([])
|
||||
const deviceInfoTreeRef1 = ref()
|
||||
const deviceInfoTreeRef2 = ref()
|
||||
//判断是否显示新增页面 false显示详情页面和删除按钮隐藏确定按钮 true显示新增页面与确定按钮隐藏删除按钮
|
||||
const addFlag = ref(false)
|
||||
const selectId: any = ref('')
|
||||
@@ -511,11 +497,13 @@ const submit = () => {
|
||||
itemName: form.value.itemName,
|
||||
describe: form.value.describe
|
||||
}
|
||||
addPlan(subForm).then(res => {
|
||||
ElMessage.success('新增方案成功')
|
||||
initForm()
|
||||
emit('onSubmit')
|
||||
close()
|
||||
addPlan(subForm).then((res: any) => {
|
||||
if (res.code == 'A0000') {
|
||||
ElMessage.success('新增方案成功')
|
||||
initForm()
|
||||
emit('onSubmit')
|
||||
close()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('表单验证失败')
|
||||
@@ -525,7 +513,7 @@ const submit = () => {
|
||||
}
|
||||
//修改方案
|
||||
if (activeFormIndex.value == 1) {
|
||||
ruleFormRef1.value.validate(valid => {
|
||||
ruleFormRef1.value.validate((valid: boolean) => {
|
||||
if (valid) {
|
||||
const subForm = {
|
||||
id: planId.value,
|
||||
@@ -542,7 +530,7 @@ const submit = () => {
|
||||
}
|
||||
//新增测试项
|
||||
if (activeFormIndex.value == 2) {
|
||||
ruleFormRef2.value.validate(valid => {
|
||||
ruleFormRef2.value.validate((valid: boolean) => {
|
||||
if (valid) {
|
||||
let subForm = {
|
||||
id: planId.value,
|
||||
@@ -574,11 +562,13 @@ const submit = () => {
|
||||
// return item.id
|
||||
// })
|
||||
subForm.list = checkedIdList.value
|
||||
updateRecord(subForm).then(res => {
|
||||
ElMessage.success('修改测试项成功')
|
||||
initForm()
|
||||
emit('onSubmit')
|
||||
close()
|
||||
updateRecord(subForm).then((res:any) => {
|
||||
if (res.code == 'A0000') {
|
||||
ElMessage.success('修改测试项成功')
|
||||
initForm()
|
||||
emit('onSubmit')
|
||||
close()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('校验不通过')
|
||||
|
||||
Reference in New Issue
Block a user