| | |
| | | data: params, |
| | | }); |
| | | }, |
| | | |
| | | addStrandedWireDish(data: any) { |
| | | return request<BaseResult<any>>({ |
| | | url: "/app/addStrandedWireDish", |
| | | method: "POST", |
| | | data: data, |
| | | }); |
| | | }, |
| | | }; |
| | | |
| | | export default TwistApi; |
| | |
| | | <ProductCard |
| | | v-for="(item, index) in list" |
| | | :key="index" |
| | | :data="item" |
| | | :data="{ |
| | | deviceModel: item.deviceModel, |
| | | model: item.model, |
| | | totalAmount: item.totalLength, |
| | | amount: item.length, |
| | | unAmount: item.unLength, |
| | | }" |
| | | @click="toDetail(item.id, item.type)" |
| | | /> |
| | | </z-paging> |
| | |
| | | } |
| | | }; |
| | | |
| | | const save = () => {}; |
| | | const save = async () => { |
| | | const { code } = await TwistApi.addStrandedWireDish(cardList.value); |
| | | if (code == 200) { |
| | | toast.success("保存成功"); |
| | | } else { |
| | | toast.error("保存失败"); |
| | | } |
| | | }; |
| | | |
| | | onLoad((options: any) => { |
| | | // 开启广播监听事件 |