|
@@ -577,7 +577,15 @@ export default {
|
|
|
// },
|
|
|
setJson(obj) {
|
|
|
let array = obj.worksArray;
|
|
|
- let name = obj.name;
|
|
|
+ let name = obj.name;
|
|
|
+ if(array.length==0){
|
|
|
+ console.log("没人提交")
|
|
|
+ return this.$emit("pushFileData", {
|
|
|
+ fileId: "",
|
|
|
+ name: name,
|
|
|
+ url: ""
|
|
|
+ });
|
|
|
+ }
|
|
|
const getAnswer = j => {
|
|
|
if (j.type === 1) {
|
|
|
return j.json.array
|
|
@@ -591,7 +599,6 @@ export default {
|
|
|
j.type === 8 ||
|
|
|
j.type === 11
|
|
|
) {
|
|
|
- console.log(j.json);
|
|
|
return typeof j.json.answer2 === "string"
|
|
|
? j.json.answer2.replace(/\n/g, " ")
|
|
|
: j.json.answer2;
|