| | |
| | | <div class="search-top"> |
| | | <div class="left"> |
| | | <el-button v-if="showAdd" type="primary" size="mini" @click="addBtn">{{ addTitle }}</el-button> |
| | | <el-button v-if="showDiscard" size="mini" @click="discardBtn" style="margin-left: 0px">{{ "取消" }}</el-button> |
| | | <div class="download" @click="downloadClick" :style="{ cursor: showDownload ? 'pointer' : 'no-drop' }"> |
| | | <img src="@/assets/img/xiazai.png" style="width: 13px" /> |
| | | </div> |
| | | <el-button v-if="showApply" type="text" size="mini" @click="addBtn" style="margin-left: 10px">{{ |
| | | "应用全部" |
| | | }}</el-button> |
| | | <slot name="leftButton" /> |
| | | </div> |
| | | <div v-if="amountView" class="amount"> |
| | |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | showDiscard: { |
| | | default: false |
| | | }, |
| | | showDownload: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | showApply: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | |
| | | addBtn() { |
| | | this.$emit("addCommonClick") |
| | | }, |
| | | // 丢弃 |
| | | discardBtn() { |
| | | this.$emit("discardBtnClick") |
| | | }, |
| | | // 下载 |
| | | downloadClick() { |
| | | this.$emit("downloadClick") |
| | | }, |
| | | // 丢弃 |
| | | applyBtn() { |
| | | this.$emit("applyBtnClick") |
| | | }, |
| | | // 模具-检查配置 |
| | | inspectionConfigClick() { |
| | |
| | | align-items: center; |
| | | .left { |
| | | display: flex; |
| | | width: 150px; |
| | | width: 210px; |
| | | margin-left: 20px; |
| | | .download { |
| | | width: 30px; |