Commit 7b17965a authored by 黄奎's avatar 黄奎

页面修改

parent 8a56787f
......@@ -11,8 +11,8 @@
class="col-6 q-pr-lg q-pb-lg" label="项目名称" :rules="[val => !!val || '项目名称']" />
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.SupplierId" ref="Type"
:options="supplierList" label="供应商" :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
<a v-if="objOption.SupplierContract&&isHaveViewContractAction" style="margin-left:10px;color:#2961FE;text-decoration:none;"
:href="objOption.SupplierContract">查看合同</a>
<a v-if="objOption.SupplierContract&&isHaveViewContractAction"
style="margin-left:10px;color:#2961FE;text-decoration:none;" :href="objOption.SupplierContract">查看合同</a>
</div>
<div class="row wrap" style="display:none;">
<div class="col-12">
......@@ -22,7 +22,6 @@
:multiple="uploadMultple">
<q-btn color="accent" size="sm" icon="add" label="上传供应商合同" />
</el-upload>
</div>
</div>
</div>
......@@ -52,7 +51,7 @@
import {
UploadSelfFile
} from '../../api/common/common'
import {
import {
mapState
} from "vuex";
export default {
......@@ -90,7 +89,8 @@
computed: mapState({
//是否有查看合同权限
isHaveViewContractAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo && state.user.userInfo.ActionMenuList && state.user.userInfo.ActionMenuList.length >
0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") {
return x;
......
......@@ -461,7 +461,7 @@
computed: mapState({
//是否有查看合同权限
isHaveViewContractAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") {
return x;
......@@ -473,7 +473,7 @@
},
//是否有查看供应商权限
isHaveViewSupplierAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") {
return x;
......
......@@ -299,7 +299,7 @@
},
computed: mapState({
isHavePriceAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Edit_CoursePrice") {
return x;
......
......@@ -1394,7 +1394,7 @@
},
computed: mapState({
isHavePriceAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "SelectAllSchool") {
return x;
......
......@@ -313,7 +313,7 @@
},
computed: mapState({
isHavePriceAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "Edit_Offer_Price") {
return x;
......
......@@ -252,7 +252,7 @@
computed: mapState({
//是否有查看合同权限
isHaveViewContractAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") {
return x;
......@@ -264,7 +264,7 @@
},
//是否有查看供应商权限
isHaveViewSupplierAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") {
return x;
......
......@@ -288,7 +288,7 @@
computed: mapState({
//是否有查看合同权限
isHaveViewContractAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier_Contract") {
return x;
......@@ -300,7 +300,7 @@
},
//是否有查看供应商权限
isHaveViewSupplierAction(state) {
if (state.user.userInfo.ActionMenuList) {
if (state.user.userInfo&&state.user.userInfo.ActionMenuList&&state.user.userInfo.ActionMenuList.length>0) {
let action = state.user.userInfo.ActionMenuList.find(x => {
if (x.FunctionCode == "View_Supplier") {
return x;
......
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