|
@@ -819,6 +819,7 @@
|
|
|
},
|
|
},
|
|
|
// 新增保存
|
|
// 新增保存
|
|
|
handleAddSave() {
|
|
handleAddSave() {
|
|
|
|
|
+ console.log(this.surveyTemplateId, 'shuju1')
|
|
|
this.$refs.addFormRef.validate(async (valid) => {
|
|
this.$refs.addFormRef.validate(async (valid) => {
|
|
|
if (!valid) return
|
|
if (!valid) return
|
|
|
try {
|
|
try {
|
|
@@ -828,7 +829,10 @@
|
|
|
const auditedUnitId = this.auditedUnitId || sd.auditedUnitId || ''
|
|
const auditedUnitId = this.auditedUnitId || sd.auditedUnitId || ''
|
|
|
const catalogId = this.catalogId || sd.catalogId || ''
|
|
const catalogId = this.catalogId || sd.catalogId || ''
|
|
|
const surveyTemplateId =
|
|
const surveyTemplateId =
|
|
|
- this.surveyTemplateId || sd.surveyTemplateId || ''
|
|
|
|
|
|
|
+ this.surveyTemplateId ||
|
|
|
|
|
+ (this.currentRow && this.currentRow.surveyTemplateId) ||
|
|
|
|
|
+ sd.surveyTemplateId ||
|
|
|
|
|
+ ''
|
|
|
const taskId = this.taskId || sd.taskId || ''
|
|
const taskId = this.taskId || sd.taskId || ''
|
|
|
const projectId = this.projectId || sd.projectId || ''
|
|
const projectId = this.projectId || sd.projectId || ''
|
|
|
// if (!uploadId || !auditedUnitId) {
|
|
// if (!uploadId || !auditedUnitId) {
|
|
@@ -836,6 +840,11 @@
|
|
|
// this.adding = false
|
|
// this.adding = false
|
|
|
// return
|
|
// return
|
|
|
// }
|
|
// }
|
|
|
|
|
+ // if (!surveyTemplateId) {
|
|
|
|
|
+ // Message.error('缺少必要参数:surveyTemplateId')
|
|
|
|
|
+ // this.adding = false
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
const now = this.formatDateTime(new Date())
|
|
const now = this.formatDateTime(new Date())
|
|
|
const payload = {
|
|
const payload = {
|
|
|
uploadId,
|
|
uploadId,
|