Commit d2983c1f authored by 黄奎's avatar 黄奎
parents 929a5b39 e411b7b6
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<div> <div>
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="改价" <q-btn flat size="xs" icon="edit" color="accent" v-if="isHavePriceAction" style="font-weight:400" label="改价"
@click="editOrderPrice(props.row)" /> @click="editOrderPrice(props.row)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情"
@click="gotoDetails(props.row)" /> @click="gotoDetails(props.row)" />
...@@ -320,25 +320,19 @@ ...@@ -320,25 +320,19 @@
}, },
computed: mapState({ computed: mapState({
isHavePriceAction(state) { isHavePriceAction(state) {
if (state.user.userInfo && state.user.userInfo.ActionMenuList) { if (state.user.userInfo.ActionMenuList) {
let commonNum = 0;
let action = state.user.userInfo.ActionMenuList.find(x => { let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Query_All_Offer") { if (x.FunctionCode == "Edit_Offer_Price") {
commonNum += 1; return x;
} }
}); });
this.commonId = state.user.userInfo.Id; return action && action.FunctionCode;
return commonNum;
} }
return false;
} }
}), }),
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.Employee(); this.Employee();
this.getcourseofferpage(); this.getcourseofferpage();
}, },
......
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