|
@@ -8,7 +8,7 @@
|
|
|
>
|
|
|
<template #buttons>
|
|
|
<el-button type="primary" @click="onUpload" v-auth="'buseiness:order:supplyFiles'">补传附件</el-button>
|
|
|
- <el-button type="primary" @click="onDownloadBatch" :disabled="isChecked"
|
|
|
+ <el-button type="primary" @click="onDownloadBatch" :disabled="isChecked" v-auth="'buseiness:order:downloadBatch'"
|
|
|
>批量下载<span v-if="checkTable.length">({{ checkTable.length }})</span></el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -38,8 +38,8 @@
|
|
|
</vxe-column>
|
|
|
<vxe-column title="操作" fixed="right" width="120" align="center">
|
|
|
<template #default="{ row }">
|
|
|
- <el-button link type="primary" @click="onDownload(row)" title="下载"> 下载 </el-button>
|
|
|
- <el-button link type="primary" @click="onPreview(row)" title="预览"> 预览 </el-button>
|
|
|
+ <el-button link type="primary" @click="onDownload(row)" title="下载" v-auth="'buseiness:order:file:download'"> 下载 </el-button>
|
|
|
+ <el-button link type="primary" @click="onPreview(row)" title="预览" v-auth="'buseiness:order:file:preview'"> 预览 </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -242,7 +242,11 @@ const selectStepId = (val: any) => {
|
|
|
stepFiles.value = [];
|
|
|
if (val) {
|
|
|
const item = traces.value.find((item) => item.id === val);
|
|
|
- stepFiles.value = item.files;
|
|
|
+ if(item.files){
|
|
|
+ stepFiles.value = item.files;
|
|
|
+ }else{
|
|
|
+ stepFiles.value = [];
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
const ruleFormRef = ref<RefType>();
|