diff --git a/src/views/components/TaskForm.vue b/src/views/components/TaskForm.vue index 782c91f..b256fae 100644 --- a/src/views/components/TaskForm.vue +++ b/src/views/components/TaskForm.vue @@ -9,7 +9,7 @@ autosize label="项目名称" type="textarea" - disabled="true" + :disabled="true" /> { AllData.showPicker = false; - AllData.userId = []; + AllData.userId = ''; AllData.checkBox = []; }; // 问题类型关闭 const closeProblem = () => { AllData.showPicker = false; - AllData.problemN = []; + AllData.problemN = ''; AllData.problemBox = []; }; @@ -233,7 +233,8 @@ problemName.push(element.text); Typeb.push(element.value); }); - AllData.problemN = problemName; + AllData.problemN = String(problemName); + console.log(AllData.problemN, '123'); AllData.formData.problemTypeName = problemName.join(','); AllData.formData.problemType = Typeb.join(','); }; @@ -248,7 +249,7 @@ problemName.push(element.text); Typeb.push(element.value); }); - AllData.userId = problemName; + AllData.userId = String(problemName); AllData.formData.checkItemName = problemName.join(','); AllData.formData.checkItem = Typeb.join(','); };