Commit 4bfa3d70 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent a5f2c726
......@@ -695,9 +695,11 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
console.log('this.queryParams.unitId', this.queryParams.unitId)
this.$router.push({
path: '/contentManagement/newsInformation/info/index',
query: {
unitId: this.queryParams.unitId,
isOperation: '1',
title: '新增新闻'
}
......
......@@ -407,6 +407,7 @@ export default {
// 编辑
form.flag = '1'
form.newsType = '1'
form.unitId = this.$route.query.unitId
updateSysContentNewsInformation(form).then(res => {
if (res.code === 200) {
this.$message({
......@@ -425,6 +426,7 @@ export default {
form.flag = '1'
form.newsType = '1'
form.tenant = this.userId
form.unitId = this.$route.query.unitId
addSysContentNewsInformation(form).then(res => {
if (res.code === 200) {
this.$message({
......
......@@ -544,7 +544,8 @@ export default {
path: '/contentManagement/videoInformation/info/index',
query: {
isOperation: '1',
title: '新增视频'
title: '新增视频',
unitId: this.queryParams.unitId
}
})
},
......
......@@ -451,6 +451,7 @@ export default {
// 编辑
form.flag = '1'
form.videoType = '1'
form.unitId = this.$route.query.unitId
updateSysContentNewsInformation(form).then(res => {
if (res.code === 200) {
this.$message({
......@@ -469,6 +470,7 @@ export default {
form.flag = '1'
form.videoType = '1'
form.tenant = this.userId
form.unitId = this.$route.query.unitId
addSysContentNewsInformation(form).then(res => {
if (res.code === 200) {
this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment