Commit f1f8a184 authored by tianhongyang's avatar tianhongyang

fix bug

parent 8c0f16e4
......@@ -4,7 +4,7 @@
<!-- 查询功能 -->
<div class="search-form-container">
<div class="left-form-title">开标记录</div>
<div class="right-form-btn-box" v-if="projectDetail.isPrivate === 0">
<div class="right-form-btn-box" v-if="!notHasPermission">
<div class="search-btn add" @click.stop="addBidOpeningRecord">
<img src="@/assets/images/project/project-bid-opening-record-add.svg" alt="">
<span>新增</span>
......@@ -76,6 +76,10 @@ export default {
projectData: {
type: Object,
default: () => ({})
},
isDisabled: {
type: Boolean,
default: false
}
},
watch: {
......@@ -83,6 +87,11 @@ export default {
handler(newValue, oldValue) {
this.projectDetail = newValue;
}
},
isDisabled: {
handler(newValue, oldValue) {
this.notHasPermission = newValue;
}
}
},
data() {
......@@ -137,6 +146,8 @@ export default {
return {
// 项目详情
projectDetail: this.projectData,
// 是否拥有权限
notHasPermission: this.isDisabled,
title: "新增开标记录",
// 加载状态
isLoadingData: false,
......@@ -215,9 +226,13 @@ export default {
methods: {
async dataInit() {
try {
if (this.projectDetail.isPrivate === 0) {
this.needSelection = false;
if (!this.notHasPermission) {
this.formColum.push({ label: '操作', prop: 'action-field-bar', width: "151px", fixed: "right" });
} else {
this.needSelection = {
flag: false,
width: "39px",
};
}
await this.getTableList();
} catch (error) {
......
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