Commit 439435a5 by liangzhen

暂存下

1 parent 99c1dc91
Showing with 20 additions and 6 deletions
...@@ -290,6 +290,7 @@ export default { ...@@ -290,6 +290,7 @@ export default {
valuesel: '', valuesel: '',
dialogzhanshi: false, dialogzhanshi: false,
wtmx: '', wtmx: '',
hgx:"",
docxOptions: { docxOptions: {
className: 'kaimo-docx-666', // string:默认和文档样式类的类名/前缀 className: 'kaimo-docx-666', // string:默认和文档样式类的类名/前缀
...@@ -479,6 +480,9 @@ export default { ...@@ -479,6 +480,9 @@ export default {
...this.clqparams, ...this.clqparams,
} }
if(type=='work'){ if(type=='work'){
this.hgx='hgx'
}
if( this.hgx='hgx'){
params.hgx='hgx' params.hgx='hgx'
} }
Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => { Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => {
...@@ -633,15 +637,17 @@ export default { ...@@ -633,15 +637,17 @@ export default {
} }
}, },
change(id) { change(id) {
console.log( console.log(this.hgx,'2222')
JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList),
'完全相同么',
)
if (JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList)) { if (JSON.stringify(this.questionList) == JSON.stringify(this.oldQuestionList)) {
this.active = id * 1 this.active = id * 1
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.working(this.clqparams) if(this.hgx=='hgx'){
this.working(this.clqparams)
}else{
this.init(this.clqparams)
}
return return
} }
this.$confirm('是否保存?', '提示', { this.$confirm('是否保存?', '提示', {
...@@ -658,7 +664,11 @@ export default { ...@@ -658,7 +664,11 @@ export default {
if (action === 'cancel') { if (action === 'cancel') {
this.active = id * 1 this.active = id * 1
// this.tabListKY = MaterialsListKY(id * 1 + 1); // this.tabListKY = MaterialsListKY(id * 1 + 1);
this.working(this.clqparams) if(this.hgx=='hgx'){
this.working(this.clqparams)
}else{
this.init(this.clqparams)
}
} else { } else {
} }
}) })
...@@ -762,7 +772,11 @@ export default { ...@@ -762,7 +772,11 @@ export default {
}) })
} else { } else {
this.active = id * 1 this.active = id * 1
if(this.hgx=='hgx'){
this.working(this.clqparams) this.working(this.clqparams)
}else{
this.init(this.clqparams)
}
} }
} else { } else {
this.$message('保存失败') this.$message('保存失败')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!