/* * @Author: Pengjiantian * @Date: 2020-02-27 16:48:14 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-02-27 17:48:07 */ import ApiModel from "@/utils/core/apiModel"; // 公共码值字典接口 export default options => { // 接口地址: required const api = "server/queryProductList"; return new ApiModel({ api, request(body) { return this.post(body); }, computedItem(item) { let { productName, productCode } = item; return { label: productName, value: productCode }; } }); };