|
@@ -505,10 +505,13 @@ const formRules = {
|
|
|
|
|
|
//创建报告
|
|
|
const rowActionModal = ref(false)
|
|
|
+const creatRow = ref({})
|
|
|
const rowReports = async (row) => {
|
|
|
rowActionModal.value = true
|
|
|
const { data } = await mainApi.detail(row.id)
|
|
|
formModel.value = getObjValue(data)
|
|
|
+ creatRow.value = row
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//提交保存
|
|
@@ -522,7 +525,9 @@ const rowActionSave = async () => {
|
|
|
const { primaryKeyId } = nodeDataInfo.value
|
|
|
setStoreValue('testTreeItem', nodeDataInfo.value)
|
|
|
setStoreValue('prenodeDataInfo', nodeDataInfo.value)
|
|
|
- const { error, code, msg } = await mainApi.update({ id, expCount })
|
|
|
+ const { repealType, sampleStatus } = creatRow.value
|
|
|
+
|
|
|
+ const { error, code, msg } = await mainApi.update({ id, expCount, repealType, sampleStatus })
|
|
|
if (!error && code === 200) {
|
|
|
window.$message.success('创建成功')
|
|
|
rowActionLoading.value = false
|