| | |
| | | </div> |
| | | <div class="section-actions" @click.stop> |
| | | <el-button v-if="!isView" type="primary" @click="openProductForm('add')">添加</el-button> |
| | | <el-button v-if="!isView" plain type="danger" @click="deleteProduct">删除</el-button> |
| | | <el-button v-if="!isView" plain type="danger" @click="deleteProduct" v-hasPermi="['projectManagement:Management:remove']">删除</el-button> |
| | | <el-icon class="toggle-icon" @click="toggleSection('product')"> |
| | | <ArrowDown v-if="sectionCollapsed.product" /> |
| | | <ArrowUp v-else /> |
| | |
| | | <el-input v-model="row.remark" placeholder="请输入" clearable :disabled="isView" /> |
| | | </template> |
| | | <template #teamAction="{ row, index }"> |
| | | <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)">删除</el-button> |
| | | <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)" v-hasPermi="['projectManagement:Management:remove']">删除</el-button> |
| | | <span v-else>—</span> |
| | | </template> |
| | | </PIMTable> |
| | |
| | | <el-input v-model="row.address" placeholder="请输入" clearable :disabled="isView" /> |
| | | </template> |
| | | <template #addressAction="{ row, index }"> |
| | | <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)">删除</el-button> |
| | | <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)" v-hasPermi="['projectManagement:Management:remove']">删除</el-button> |
| | | <span v-else>—</span> |
| | | </template> |
| | | </PIMTable> |
| | |
| | | } |
| | | |
| | | function downloadAttachment(att) { |
| | | if (att?.name) { |
| | | if (att) { |
| | | try { |
| | | proxy.$download.name(att.url); |
| | | proxy.$download.byUrl(att.url, att.originalFilename); |
| | | return |
| | | } catch (e) {} |
| | | } |