修复食谱计划获取id错误
This commit is contained in:
		| @@ -21,8 +21,8 @@ | ||||
|               >外食计算器</el-button | ||||
|             > | ||||
|           </el-col> | ||||
|           <el-popover :placement="bottom" trigger="click"> | ||||
|             <VueQr :text="copyValue" :logoSrc="logo" size="256"/> | ||||
|           <el-popover placement="bottom" trigger="click"> | ||||
|             <VueQr :text="copyValue" :logoSrc="logo" size="256" /> | ||||
|             <el-button slot="reference">二维码</el-button> | ||||
|           </el-popover> | ||||
|         </el-row> | ||||
|   | ||||
| @@ -41,10 +41,7 @@ | ||||
|               > | ||||
|                 {{ scope.row.reviewStatus === "yes" ? "已审核" : "未审核" }} | ||||
|               </el-tag> | ||||
|               <el-tag | ||||
|                 v-if="scope.row.type === 'virtual'" | ||||
|                 disable-transitions | ||||
|               > | ||||
|               <el-tag v-if="scope.row.type === 'virtual'" disable-transitions> | ||||
|                 分单 | ||||
|               </el-tag> | ||||
|             </template> | ||||
| @@ -55,11 +52,13 @@ | ||||
|             align="center" | ||||
|             width="160" | ||||
|           ></el-table-column> | ||||
|           <el-table-column | ||||
|             label="成交时间" | ||||
|             prop="orderTime" | ||||
|             align="center" | ||||
|           ></el-table-column> | ||||
|           <el-table-column label="成交时间" prop="orderTime" align="center" | ||||
|             ><template slot-scope="scope"> | ||||
|               <div v-for="time in scope.row.orderTime.split(' ')" :key="time"> | ||||
|                 {{ time }} | ||||
|               </div> | ||||
|             </template> | ||||
|           </el-table-column> | ||||
|           <el-table-column | ||||
|             label="成交金额" | ||||
|             prop="amount" | ||||
| @@ -128,7 +127,7 @@ export default { | ||||
|   components: { | ||||
|     "edit-order-dialog": OrderEdit, | ||||
|     "order-detail": OrderDetail, | ||||
|     "create-order-dialog": OrderAdd | ||||
|     "create-order-dialog": OrderAdd, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|   | ||||
| @@ -19,7 +19,12 @@ | ||||
|             @click="handleOnRecipesLinkClick" | ||||
|             >食谱链接 | ||||
|           </el-button> | ||||
|           <el-popover placement="top" trigger="click" v-if="cusOutId" style="margin: 0 12px"> | ||||
|           <el-popover | ||||
|             placement="top" | ||||
|             trigger="click" | ||||
|             v-if="cusOutId" | ||||
|             style="margin: 0 12px" | ||||
|           > | ||||
|             <VueQr :text="copyValue" :logoSrc="logo" size="256" /> | ||||
|             <el-button | ||||
|               slot="reference" | ||||
| @@ -142,8 +147,8 @@ export default { | ||||
|     }, | ||||
|     handleOnRecipesEditClick(data) { | ||||
|       // console.log(data); | ||||
|       const { id, name } = this.data; | ||||
|       window.open("/recipes/build/" + name + "/" + id, "_blank"); | ||||
|       // const { id, name } = this.data; | ||||
|       window.open("/recipes/build/" + this.data.name + "/" + data.id, "_blank"); | ||||
|     }, | ||||
|   }, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user