Browse Source

优化

master
陈裕财 3 years ago
parent
commit
150daad84e
  1. 2
      src/views/xm/core/xmIteration/index.vue
  2. 2
      src/views/xm/core/xmProduct/XmProductOverview.vue
  3. 2
      src/views/xm/core/xmProduct/index.vue
  4. 2
      src/views/xm/core/xmProject/XmProjectForLink.vue
  5. 6
      src/views/xm/core/xmQuestion/XmQuestionMng.vue

2
src/views/xm/core/xmIteration/index.vue

@ -31,7 +31,7 @@ export default {
// //
}, },
mounted() { mounted() {
debugger;
if(!this.$route.query.iterationId){ if(!this.$route.query.iterationId){
this.$message.error("地址不合规") this.$message.error("地址不合规")
this.$route.back(-1) this.$route.back(-1)

2
src/views/xm/core/xmProduct/XmProductOverview.vue

@ -581,7 +581,7 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
debugger;
this.maxTableHeight=util.calcTableMaxHeight(this.$refs.pageMainRef.$el) this.maxTableHeight=util.calcTableMaxHeight(this.$refs.pageMainRef.$el)
}); });
initSimpleDicts('all',['xmProductPstatus'] ).then(res=>{ initSimpleDicts('all',['xmProductPstatus'] ).then(res=>{

2
src/views/xm/core/xmProduct/index.vue

@ -31,7 +31,7 @@ export default {
// //
}, },
mounted() { mounted() {
debugger;
if(!this.$route.query.productId){ if(!this.$route.query.productId){
this.$message.error("地址不合规") this.$message.error("地址不合规")
this.$route.back(-1) this.$route.back(-1)

2
src/views/xm/core/xmProject/XmProjectForLink.vue

@ -144,7 +144,7 @@
total: this.pageInfo.total, total: this.pageInfo.total,
count:this.pageInfo.count, count:this.pageInfo.count,
}; };
debugger;
if(this.xmProduct){ if(this.xmProduct){
params.linkProductId=this.xmProduct.id params.linkProductId=this.xmProduct.id
} }

6
src/views/xm/core/xmQuestion/XmQuestionMng.vue

@ -408,7 +408,7 @@
}, },
// XmQuestion xm_question // XmQuestion xm_question
getXmQuestions() { getXmQuestions() {
debugger;
let params = { let params = {
pageSize: this.pageInfo.pageSize, pageSize: this.pageInfo.pageSize,
pageNum: this.pageInfo.pageNum, pageNum: this.pageInfo.pageNum,
@ -974,7 +974,7 @@
}, },
editXmQuestionSomeFields(row,fieldName,$event){ editXmQuestionSomeFields(row,fieldName,$event){
debugger;
var params={ids:[row.id]}; var params={ids:[row.id]};
if(this.sels.length>0){ if(this.sels.length>0){
if(!this.sels.some(k=>k.id==row.id)){ if(!this.sels.some(k=>k.id==row.id)){
@ -1006,7 +1006,7 @@
}else{ }else{
params[fieldName]=$event params[fieldName]=$event
} }
debugger;
editXmQuestionSomeFields(params).then(res=>{ editXmQuestionSomeFields(params).then(res=>{
var tips = res.data.tips; var tips = res.data.tips;
if(tips.isOk){ if(tips.isOk){

Loading…
Cancel
Save