|
@@ -199,6 +199,10 @@ const filedialogTableSelection1 = (rows) => {
|
|
|
//试验文件节点下的数据
|
|
|
|
|
|
const getfileNodeData = async () => {
|
|
|
+ if (!filenodeDataInfo.value?.pkeyId) {
|
|
|
+ window.$message.warning('请先选择节点')
|
|
|
+ return
|
|
|
+ }
|
|
|
// 获取数据
|
|
|
filedialogTableLoading.value = true
|
|
|
|
|
@@ -281,9 +285,11 @@ const savesubmitRelationFile = async (ids) => {
|
|
|
const { error, code, data, msg } = await samplingApi.submitRelationFile({
|
|
|
projectId: projectId.value,
|
|
|
contractId: contractId.value,
|
|
|
- nodeId: isPrimaryKeyId.value,
|
|
|
- type: fileModalradio.value === 'test' ? 4 : fileModalradio.value === 0 ? 5 : 6,
|
|
|
+ nodeId: filenodeDataInfo.value?.pkeyId,
|
|
|
+ type: fileModalradio.value === 'test' ? 11 : fileModalradio.value === 0 ? 12 : 13,
|
|
|
ids,
|
|
|
+ qualityTestPKeyld:isPrimaryKeyId.value,
|
|
|
+
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success('操作成功')
|