topic_bank
杨树林 6 years ago
parent 904ed0cbe1
commit 5743bb532c

@ -78,7 +78,7 @@ class Completetaskpage extends Component {
{to:`/banks/gtask/${workids}/${this.props.match.params.type}?tab=0`,content:'内容详情'}, {to:`/banks/gtask/${workids}/${this.props.match.params.type}?tab=0`,content:'内容详情'},
], ],
category:'gtask',//毕设选题 category:'gtask',//毕设选题
tos:`/banks/gtask/${workids}/edit/${this.props.match.params.type}`, tos:`/banks/gtask/${workids}/edit/${this.props.match.params.type}?tab=0`,
id:workids, id:workids,
is_public:response && response.data && response.data.is_public, is_public:response && response.data && response.data.is_public,
type:this.props.match.params.type, type:this.props.match.params.type,

@ -73,7 +73,7 @@ class CompletetopicdePage extends Component {
{to:`/banks/gtopic/${workids}/${this.props.match.params.type}?tab=0`,content:'内容详情'}, {to:`/banks/gtopic/${workids}/${this.props.match.params.type}?tab=0`,content:'内容详情'},
], ],
category:'gtopic',//毕设选题 category:'gtopic',//毕设选题
tos:`/banks/gtopic/${workids}/edit/${this.props.match.params.type}`, tos:`/banks/gtopic/${workids}/edit/${this.props.match.params.type}?tab=0`,
id:workids, id:workids,
is_public:response && response.data && response.data.is_public, is_public:response && response.data && response.data.is_public,
type:this.props.match.params.type, type:this.props.match.params.type,

@ -83,7 +83,7 @@ class GroupjobbankPage extends Component {
{to:`/banks/group/${workids}/${this.props.match.params.type}/answer?tab=1`,content:'参考答案'} {to:`/banks/group/${workids}/${this.props.match.params.type}/answer?tab=1`,content:'参考答案'}
], ],
category:'group',//毕设选题 category:'group',//毕设选题
tos:`/banks/group/${workids}/edit/${this.props.match.params.type}`, tos:`/banks/group/${workids}/edit/${this.props.match.params.type}?tab=0`,
id:workids, id:workids,
is_public:response && response.data && response.data.is_public, is_public:response && response.data && response.data.is_public,
type:this.props.match.params.type, type:this.props.match.params.type,

@ -83,7 +83,7 @@ class Generaljobbankdetails extends Component {
{to:`/banks/normal/${workids}/${this.props.match.params.type}/answer?tab=1`,content:'参考答案'} {to:`/banks/normal/${workids}/${this.props.match.params.type}/answer?tab=1`,content:'参考答案'}
], ],
category:'normal',//毕设选题 category:'normal',//毕设选题
tos:`/banks/normal/${workids}/edit/${this.props.match.params.type}`, tos:`/banks/normal/${workids}/edit/${this.props.match.params.type}?tab=0`,
id:workids, id:workids,
is_public:response && response.data && response.data.is_public, is_public:response && response.data && response.data.is_public,
type:this.props.match.params.type, type:this.props.match.params.type,

@ -524,8 +524,8 @@ class InfosTopics extends Component{
category==="group"?`/banks/group/${item.id}/${types}?tab=0`: category==="group"?`/banks/group/${item.id}/${types}?tab=0`:
category==="poll"?`/banks/poll/${item.id}/${types}`: category==="poll"?`/banks/poll/${item.id}/${types}`:
category==="exercise"?`/banks/exercise/${item.id}/${types}`: category==="exercise"?`/banks/exercise/${item.id}/${types}`:
category==="gtask"?`/banks/gtask/${item.id}/${types}`: category==="gtask"?`/banks/gtask/${item.id}/${types}?tab=0`:
category==="gtopic"?`/banks/gtopic/${item.id}/${types}`:"" category==="gtopic"?`/banks/gtopic/${item.id}/${types}?tab=0`:""
} }
> >
{item.name} {item.name}

@ -59,7 +59,7 @@ class GtaskBanksEdit extends Component {
}); });
} }
toWorkDetail = () => { toWorkDetail = () => {
this.props.history.push(`/banks/gtask/${this.props.match.params.workId}/${this.props.match.params.type}`); this.props.history.push(`/banks/gtask/${this.props.match.params.workId}/${this.props.match.params.type}?tab=0`);
this.props.initPublic(undefined); this.props.initPublic(undefined);
} }
onCancel = () => { onCancel = () => {

@ -47,7 +47,7 @@ class GtopicBanksEdit extends Component{
axios.put(url,params).then((result)=>{ axios.put(url,params).then((result)=>{
if(result){ if(result){
this.props.showNotification('保存成功!'); this.props.showNotification('保存成功!');
this.props.history.push(`/banks/gtopic/${bankId}/${this.props.match.params.type}`); this.props.history.push(`/banks/gtopic/${bankId}/${this.props.match.params.type}?tab=0`);
} }
}).catch((error)=>{ }).catch((error)=>{
console.log(error); console.log(error);
@ -56,7 +56,7 @@ class GtopicBanksEdit extends Component{
// 取消 // 取消
editCancel = () =>{ editCancel = () =>{
this.props.history.push(`/banks/gtopic/${this.props.match.params.bankId}/${this.props.match.params.type}`); this.props.history.push(`/banks/gtopic/${this.props.match.params.bankId}/${this.props.match.params.type}?tab=0`);
this.props.initPublic(undefined); this.props.initPublic(undefined);
} }

Loading…
Cancel
Save