|
@@ -27,6 +27,7 @@ const props = defineProps({
|
|
|
pkeyId: [String, Number],
|
|
|
keyName: [String, Number],
|
|
|
formparentId: [String, Number],
|
|
|
+ checkKeys:[Array],
|
|
|
})
|
|
|
|
|
|
|
|
@@ -35,6 +36,7 @@ const contractId = ref(props.contractId)
|
|
|
const pkey_id = ref(props.pkeyId)
|
|
|
const key_name = ref(props.keyName)
|
|
|
const formparent_id = ref(props.formparentId)
|
|
|
+const checkKeys = ref(props.checkKeys)
|
|
|
|
|
|
//监听
|
|
|
watch(() => [
|
|
@@ -43,12 +45,14 @@ watch(() => [
|
|
|
props.pkeyId,
|
|
|
props.keyName,
|
|
|
props.formparentId,
|
|
|
-], ([pid, cid, pkeyId, keyName, formparentId]) => {
|
|
|
+ props.checkKeys,
|
|
|
+], ([pid, cid, pkeyId, keyName, formparentId, ckeys]) => {
|
|
|
projectId.value = pid
|
|
|
contractId.value = cid
|
|
|
pkey_id.value = pkeyId
|
|
|
key_name.value = keyName
|
|
|
formparent_id.value = formparentId
|
|
|
+ checkKeys.value = ckeys
|
|
|
getPanel()
|
|
|
})
|
|
|
|
|
@@ -91,9 +95,10 @@ const getPanel = async () => {
|
|
|
}
|
|
|
|
|
|
const panelSave = async () => {
|
|
|
- const { error, code, msg } = await wbsApi.savePanel({
|
|
|
+ const { error, code, msg } = await wbsApi.savePanelList({
|
|
|
parentId: formparent_id.value,
|
|
|
- key: key_name.value,
|
|
|
+ // key: key_name.value,
|
|
|
+ keys:checkKeys.value,
|
|
|
contractId: contractId.value,
|
|
|
value: formulaModalinfo.value?.type,
|
|
|
pkeyId: pkey_id.value,
|
|
@@ -102,9 +107,7 @@ const panelSave = async () => {
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success('操作成功')
|
|
|
- } else {
|
|
|
- window?.$message?.error(msg || '操作失败')
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 暴露出去
|