|
|
@@ -91,7 +91,8 @@
|
|
|
<a-button style="margin-left: 8px"
|
|
|
v-if="($auth('check-spot-jobs-export') || $auth('check-polling-jobs-export'))" type="primary" icon="download"
|
|
|
@click="doExport">导出</a-button>
|
|
|
- <a-button style="margin-left:8px;" type="primary" @click="doImportForUpdate">
|
|
|
+ <!-- 修改导入按钮:由父页面通过 hide-import-update 控制是否隐藏(仅保养任务/保养记录/延期任务三个页面传 true) -->
|
|
|
+ <a-button v-if="!hideImportUpdate" style="margin-left:8px;" type="primary" @click="doImportForUpdate">
|
|
|
<a-icon type="upload" />
|
|
|
修改导入
|
|
|
</a-button>
|
|
|
@@ -248,6 +249,13 @@ export default {
|
|
|
mineFlag: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 是否隐藏“修改导入”按钮,默认不隐藏;仅保养任务/保养记录/延期任务页面传 true
|
|
|
+ */
|
|
|
+ hideImportUpdate: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
}
|
|
|
},
|
|
|
data() {
|