Commit 89aab90c authored by zhengke's avatar zhengke

修改

parent c5453bea
...@@ -168,6 +168,8 @@ ...@@ -168,6 +168,8 @@
import { import {
queryCourseOfferPage, queryCourseOfferPage,
} from '../../api/course/index' } from '../../api/course/index'
import { mapState } from "vuex";
export default { export default {
meta: { meta: {
title: "报价单" title: "报价单"
...@@ -187,6 +189,7 @@ ...@@ -187,6 +189,7 @@
rowsPerPage: 10, rowsPerPage: 10,
Name: "", Name: "",
IsGetDetails: 1, IsGetDetails: 1,
CreateBy:0
}, },
pageCount: 0, pageCount: 0,
showForm: false, //是否显示报价单弹窗 showForm: false, //是否显示报价单弹窗
...@@ -270,10 +273,30 @@ ...@@ -270,10 +273,30 @@
} }
], ],
showOrderForm: false, //是否显示转订单表单 showOrderForm: false, //是否显示转订单表单
commonId:0
} }
}, },
computed: mapState({
isHavePriceAction(state) {
if (state.user.userInfo.ActionMenuList) {
let commonNum=0;
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Query_All_Offer") {
commonNum+=1;
}
});
this.commonId=state.user.userInfo.Id;
return commonNum;
}
}
}),
mounted() { mounted() {
this.currentUrl = this.$route.path this.currentUrl = this.$route.path;
if(this.isHavePriceAction>0){
this.msg.CreateBy=0;
}else{
this.msg.CreateBy=this.commonId;
}
this.getcourseofferpage(); this.getcourseofferpage();
}, },
methods: { methods: {
......
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