|
|
@@ -16,6 +16,7 @@
|
|
|
@click="exportFile"
|
|
|
/>
|
|
|
<base-button
|
|
|
+ v-if="projectInfo.can_update"
|
|
|
class="ml-10"
|
|
|
:title="btnTitle"
|
|
|
icon="upload"
|
|
|
@@ -50,7 +51,13 @@
|
|
|
@row-del="rowDel"
|
|
|
>
|
|
|
<template #menu="{ row }">
|
|
|
- <el-button icon="Upload" type="primary" text @click="openFile(row)">
|
|
|
+ <el-button
|
|
|
+ v-if="projectInfo.can_update"
|
|
|
+ icon="Upload"
|
|
|
+ type="primary"
|
|
|
+ text
|
|
|
+ @click="openFile(row)"
|
|
|
+ >
|
|
|
上传
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
@@ -89,6 +96,7 @@
|
|
|
<div class="flex flex-center">
|
|
|
<base-button
|
|
|
type="0"
|
|
|
+ v-if="projectInfo.can_update"
|
|
|
title="上传"
|
|
|
icon="upload"
|
|
|
@click="
|
|
|
@@ -138,6 +146,10 @@ export default {
|
|
|
name: 'dispatch',
|
|
|
components: { BasicContainer, baseButton },
|
|
|
props: {
|
|
|
+ projectInfo: {
|
|
|
+ type: Object,
|
|
|
+ default: {}
|
|
|
+ },
|
|
|
year: {
|
|
|
type: Number,
|
|
|
default: 0
|
|
|
@@ -148,6 +160,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ projectInfo: {
|
|
|
+ handler(val) {
|
|
|
+ this.option.delBtn = val.can_update
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ },
|
|
|
year: {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
@@ -263,6 +281,7 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.progress = res.data.processDescribe
|
|
|
this.info = res.data
|
|
|
+ console.log(this.info)
|
|
|
} else {
|
|
|
this.$message.error(res.msg)
|
|
|
}
|