|
|
@ -930,7 +930,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
changCode() { |
|
|
|
console.log(this.ruleForm.processesList, "输入的值"); |
|
|
|
if (this.ruleForm.processesList.length > 1) { |
|
|
|
for (var i = 0; i < this.ruleForm.processesList.length; i++) { |
|
|
|
let s = i + 1; |
|
|
@ -938,7 +937,6 @@ export default { |
|
|
|
s < this.ruleForm.processesList.length || |
|
|
|
s == this.ruleForm.processesList.length |
|
|
|
) { |
|
|
|
console.log(i, s); |
|
|
|
if ( |
|
|
|
this.ruleForm.processesList[i].code == |
|
|
|
this.ruleForm.processesList[s].code |
|
|
@ -960,12 +958,11 @@ export default { |
|
|
|
this.loading = true; |
|
|
|
try { |
|
|
|
let res = await queryJbInfo(this.queryParams); |
|
|
|
console.log(res); |
|
|
|
this.tableData = res.data.rows; |
|
|
|
this.total = res.data.total; |
|
|
|
this.loading = false; |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
//搜索 |
|
|
@ -996,10 +993,9 @@ export default { |
|
|
|
async queryFindList() { |
|
|
|
try { |
|
|
|
let res = await queryFindList({}); |
|
|
|
// console.log(res.data, "流程列表"); |
|
|
|
this.lcData = res.data; |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
//获取详情 |
|
|
@ -1026,7 +1022,6 @@ export default { |
|
|
|
this.radioVideo = 1; |
|
|
|
this.radioImg = 1; |
|
|
|
let res = await queryJbDetail(id); |
|
|
|
console.log(res, "详情"); |
|
|
|
this.ruleForm = res.data; |
|
|
|
if (this.ruleForm.imgUrl != null) { |
|
|
|
this.dataImg = this.ruleForm.imgUrl.split(","); |
|
|
@ -1051,10 +1046,8 @@ export default { |
|
|
|
img.push(res.data.resourcesList[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.radioImg); |
|
|
|
if (this.radioImg == 1) { |
|
|
|
this.imgData = img; |
|
|
|
console.log(this.imgData); |
|
|
|
} else if (this.radioImg == 2) { |
|
|
|
this.ruleForm.radioImg = img.map(n => { |
|
|
|
return { |
|
|
@ -1171,9 +1164,8 @@ export default { |
|
|
|
// this.radioVideo = 2; |
|
|
|
// } |
|
|
|
// }); |
|
|
|
console.log(this.ruleForm, "处理后详情"); |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
// 新增 |
|
|
@ -1277,7 +1269,6 @@ export default { |
|
|
|
processId: processId |
|
|
|
}; |
|
|
|
}); |
|
|
|
console.log(this.ruleForm, "参数"); |
|
|
|
try { |
|
|
|
this.$refs["ruleForm"].validate(async valid => { |
|
|
|
if (valid) { |
|
|
@ -1294,7 +1285,6 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} else if (this.type == "edit") { |
|
|
|
console.log(this.ruleForm, "参数"); |
|
|
|
var res = await updateJbInfo(this.ruleForm); |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("编辑成功"); |
|
|
@ -1310,7 +1300,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
subEsc() { |
|
|
@ -1384,14 +1374,14 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
handleAvatar(res, file, fileList) { |
|
|
|
console.log(res, file, "整个"); |
|
|
|
// console.log(res, file, "整个"); |
|
|
|
}, |
|
|
|
handleAvatarSuccess(res, file) { |
|
|
|
console.log(res, file, "成功了吗"); |
|
|
|
// console.log(res, file, "成功了吗"); |
|
|
|
}, |
|
|
|
//上传图片 |
|
|
|
async uploadImg(file, fileList) { |
|
|
@ -1403,9 +1393,8 @@ export default { |
|
|
|
let res = await uploadFile(formData); |
|
|
|
// this.ruleForm.cover = res.data.wjUrl; |
|
|
|
this.$set(this.ruleForm, "cover", res.data.wjUrl); |
|
|
|
console.log(this.ruleForm.cover); |
|
|
|
} catch (err) { |
|
|
|
console.log(err); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
changeImgs({file}) { |
|
|
@ -1417,7 +1406,6 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
beforeAvatarUpload(file) { |
|
|
|
console.log(file, 41231); |
|
|
|
const isJPG = file.type; |
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2; |
|
|
|
if (!isLt2M) { |
|
|
@ -1440,7 +1428,6 @@ export default { |
|
|
|
}, |
|
|
|
// 图片预览 |
|
|
|
dialogimg(e) { |
|
|
|
console.log(e); |
|
|
|
this.dialogVisible = true; |
|
|
|
this.dialogImageUrl = this.ruleForm.imgUrls[e]; |
|
|
|
}, |
|
|
@ -1455,7 +1442,6 @@ export default { |
|
|
|
this.ruleForm.radioVideo.splice(index, 1); |
|
|
|
}, |
|
|
|
handleRemove(file) { |
|
|
|
console.log(file); |
|
|
|
// delFile({ wjUrl: item.url }).then(res => { |
|
|
|
// if (res.code == 200) { |
|
|
|
// this.$message.success("删除成功"); |
|
|
@ -1511,7 +1497,6 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handleAddMusic() { |
|
|
|
console.log(this.$refs.music.data, 1231); |
|
|
|
this.ruleForm.radioMusic.push({ |
|
|
|
title: "", |
|
|
|
url: "", |
|
|
@ -1591,7 +1576,6 @@ export default { |
|
|
|
}, |
|
|
|
// 图片删除 |
|
|
|
deldialogimg(item, index, type) { |
|
|
|
console.log(index, type); |
|
|
|
if (type == "img") { |
|
|
|
this.imgData.splice(index, 1); |
|
|
|
} |
|
|
@ -1601,7 +1585,6 @@ export default { |
|
|
|
if (type == "video") { |
|
|
|
this.videoData.splice(index, 1); |
|
|
|
} |
|
|
|
console.log(item); |
|
|
|
delFile({ wjUrl: item.url }).then(res => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.$message.success("删除成功"); |
|
|
@ -1610,7 +1593,6 @@ export default { |
|
|
|
}, |
|
|
|
//关联流程 |
|
|
|
setLc(item, i, type) { |
|
|
|
console.log(item, i, this.imgData); |
|
|
|
if (this.ruleForm.processesList.length == 0) { |
|
|
|
this.$message({ |
|
|
|
message: "请新建流程", |
|
|
@ -1646,7 +1628,6 @@ export default { |
|
|
|
this.imgData[this.imgIndex].processId = this.processId; |
|
|
|
this.imgData[this.imgIndex].mediaType = 1; |
|
|
|
this.imgData[this.imgIndex].sourceType = this.radioImg; |
|
|
|
console.log(this.imgData, "处理后img数据"); |
|
|
|
} |
|
|
|
if (this.typeUrl == "music") { |
|
|
|
this.musicType = false; |
|
|
|