Commit f1f8a184 authored by tianhongyang's avatar tianhongyang

fix bug

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