| | |
| | | // 获取URL参数 |
| | | const pages = getCurrentPages(); |
| | | const currentPage = pages[pages.length - 1]; |
| | | operationType.value = currentPage.options.operationType || 'add'; |
| | | const options = currentPage && currentPage.options ? currentPage.options : {}; |
| | | operationType.value = options.operationType || 'add'; |
| | | |
| | | // 如果是编辑模式,从本地存储获取数据 |
| | | if (operationType.value === 'edit') { |
| | |
| | | <view v-else class="no-data"> |
| | | <text>暂无审批数据</text> |
| | | </view> |
| | | <van-floating-bubble icon="plus" @click="handleAdd"/> |
| | | <!-- <van-floating-bubble icon="plus" @click="handleAdd"/>--> |
| | | <!-- 浮动操作按钮 --> |
| | | <!-- <view class="fab-button" @click="handleAdd"> |
| | | <view class="fab-button" @click="handleAdd"> |
| | | <up-icon name="plus" size="24" color="#ffffff"></up-icon> |
| | | </view> --> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |