| | |
| | | <el-button v-if="scope.row.filePath" link type="primary" @click="openFile(scope.row.filePath)" >查看模板</el-button> |
| | | <el-button v-if="scope.row.filePath" link type="primary" @click="downloadFile(scope.row)" >下载模板</el-button> |
| | | <el-button v-if="scope.row.isFile == 1" link type="primary" v-hasPermi="['productFileNew:add']" @click="openDataDialog('add',{},scope.row)">新增</el-button> |
| | | <el-button v-if="scope.row.isFile == 1 && scope.row.projectDocuments && scope.row.projectDocuments.length>0" link type="primary" v-hasPermi="['productFileNew:add']" @click="openDataDialog('edit',scope.row,scope.row)">编辑</el-button> |
| | | <el-button v-if="scope.row.isFile == 1 && scope.row.projectDocuments && scope.row.projectDocuments.length>0" link type="primary" v-hasPermi="['productFileNew:edit']" @click="openDataDialog('edit',scope.row,scope.row)">编辑</el-button> |
| | | </div> |
| | | <div v-else>--</div> |
| | | </template> |