自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (3)
  • 收藏
  • 关注

原创 odoo8 TreeView视图创建按钮旁添加按钮

由于最近工作需要,需要在Tree视图上面添加一个合并发货的按钮。在网上查找到相关资料(http://blog.csdn.net/vnsoft/article/details/49621373),并模仿添加上了合并发货的按钮。经过测试发现,这种方法添加的按钮在Tree视图上,但Tree视图已经不是我定义的视图,而且不能进入form视图。因此不能满足项目的要求,这下就尴尬了, 通过百度、google搜

2017-12-05 14:35:34 3072 1

原创 ElementUI el-tree实现单选功能

ElementUI el-tree实现单选功能

2022-07-08 17:16:29 2709

原创 解决Windows系统启动Postgres时出现无法找到匹配的 postgres 执行文件位置:getInstallationPaths

问题描述:致命错误: XX000: D:\soft\PostgreSQL\13\bin\postgres.exe: 无法找到匹配的 postgres 执行文件位置: getInstallationPaths, d:\pginstaller_13.auto\postgres.windows-x64\src\backend\postmaster\postmaster.c:1489解决办法: 我的情况是由于我安装tomecat服务器后,查看日志时,中文显示的是乱码,...

2021-09-24 14:10:43 1035 3

原创 Arcgis for javascript 4.20.2+VUE3+Typescript 离线使用指引

最近公司项目需要使用地图展示功能,地图图层由内网搭建的服务器提供,这儿主要记录本次使用地图的过程。为了在内网展示地图,本人尝试了leaflet+esri-leaflet, @supermap/iclient-leaflet, arcgis这几种技术,最终选择了arcgis。 为什么最终选择arcgis呢?我也是在开发中遇到了无数坑才最终确定的。 首先说说@supermap/iclient-leaflet, 通过npm install @supermap/i...

2021-08-31 18:36:50 788

原创 odoo 绕过点击按钮时对required字段的校验

最近项目中遇到一个问题,模型对象是通过代码创建的,其中有的required字段创建时没有没有数据,创建后模型对像为draft状态。通过菜单进入该模型的form视图,点击取消或者其他按钮,会对required字段进行校验,因为创建时,required字段没有数据。           因为需求有可以直接取消该对象,所以不能直接点击取消按钮,需要进入编辑模式,把没有数据required字段都填

2017-12-21 09:47:28 1820 1

原创 Odoo 使用do_action打开form视图,target为current时,直接到编辑界面

今天遇到一个需求,在上篇博客中做的合并发货功能,点击合并发货按钮后到达物流单的form视图,此时的物流单为临时保存状态,需要用户对物流单上的物流数据进行补全。此时就需要用户再点击编辑按钮,进入编辑状态,对物流单所需要的数据进行编辑。但产品给出的需求是,生成物流单后,显示的界面就是临时保存的编辑状态界面,本来想反对的这么做的,因为以前没做过,需要修改框架的js才能做到那种效果。最终在产品的要求下,我

2017-12-07 14:36:16 6271 3

fonts-arcgis.zip

可本地部署的字体文件,支持中文。

2021-09-03

PHP常用函数TOP100

在这里我们提供了使用频度最高的100个PHP原生函数,并且根据使用度从1到100标记,这一项分析来自于我们对1900个PHP开源项目的代码分析,使用的是 PHP static analysis 工具。

2019-03-11

ionic 实现商品分类

实现了首页商品分类,广告栏,分类菜单 <ion-view view-title="阿哥汇商城" hide-nav-bar="true"> <ion-header-bar align-title="left" class="bar-balanced"> <div class="buttons"> <!--ui-sref="category"--> <div class="button icon-left ion-navicon button-clear" ng-click="toggleCategory()"></div> <!--<div class="button icon-left ion-navicon button-clear" ng-click="modal.show()"></div>--> </div> <label class="item-input-wrapper" ui-sref="search" style="height: 33px;"> <i class="icon ion-ios-search placeholder-icon" style="margin: 20px 0px;color: #BBBBBB"></i> <input class="small-text" type="search" ng-model="searchStr" style="background: transparent;width: 100%" placeholder="请输入商品名称"> </label> <div class="buttons"> <div class="button icon-right ion-ios-cart-outline button-clear" ng-click="toCart()"></div> <i class="badge icon-right assertive" style="height:15px;font-size: 10px;margin-left: -10px;top: -8px;padding:0px 5px;float: inherit;background: #FFFFFF" ng-show="true">{{cartSize}}</i> </div> </ion-header-bar> <ion-content scroll="false" ng-show="isCategory" style="height:100%;background-color: rgba(0, 0, 0, 0.50);z-index: 900"> <div style="height: 85%;margin-bottom: 50px;"> <div class="row" style="width: 100%;height:100%;margin: 0;padding: 0;"> <div class="col-50" style="padding: 0;height: 100%;"> <div class="list" style="padding: 0"> <div class="item item-icon-right item-icon-left" ng-repeat="item in categoryAndProducts" ng-click="selectItem(item, $index)" ng-class="{active: activeItem == item}"> <i class="icon balanced" ng-class="iconArr[$index]"></i> {{item.cat_name}} <i class="icon ion-ios-arrow-right balanced" style="font-size: 24px;align-items:center"></i> </div> </div> </div> <div class="col-50" style="padding: 0;height: 100%;"> <div class="list" style="padding: 0;background: #dedede"> <div class="item active-item item-button-right" ng-repeat="cat in subCategory" ng-click="selectCategory(cat.cat_id)" style="background: #dedede"> {{cat.cat_name}} <button class="button button-clear">{{cat.goods_total}}ddd</button> </div> </div> </div> </div> </div> </ion-content> <ion-content class="false" overflow-scroll="true" style="overflow: hidden;"> <!-- <ion-refresher> 下拉刷新指令 --> <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()" spinner="android"></ion-refresher> <ion-slide-box active-slide="myActiveSlide" auto-play="true" does-continue="true" show-pager="true" slide-interval="2000" ng-if="ads" style="height: 108px;"> <ion-slide ng-repeat="ad in ads"> <div class="box blue"> <!--<h1>BLUE</h1>--> <img src="{{APPCONFIG.picURL}}/{{ad.src}}" style="width: 100%;height:inherit"> </div> </ion-slide> </ion-slide-box> <ion-list style=""> <ion-item style="padding: 0px;border-color:#FFF"> <!--<h2>{{item.id}}</h2>--> <div style="height: auto; width:100%;padding: 0"> <div class="row row-center" style="height: 40px;width: 100%;padding: 0;font-size: 16px" onclick="save($index)"> <i class="icon" style="width: 4px;height: 50%;background: {{colors[0]}}"></i> <div class="padding" style="width: 100%"><h2 style="font-size: 20px;color:{{colors[0]}}">热门店铺</h2></div> 更多<i class="icon icon-right ion-ios-arrow-right" style="font-size: 24px;margin-right: 20px;margin-left: 3px"></i> </div> <div class="row row-wrap" style="height:auto; width: 100%;padding: 0;margin-top: 0 "> <div class="col col-33 img" ng-repeat="image in hotsuppliers" style="margin: 0px;padding: 7px auto;height: 60px"> <img ng-src="{{APPCONFIG.picURL}}{{image.logo}}" style="height: 45px;width: 90px"/> </div> </div> <div style="background: #F3F3F3;height: 10px;width: 100%"></div> </div> </ion-item> <ion-item collection-repeat="item in categoryAndProducts" style="padding: 0;border-color:#FFF"> <!--<h2>{{item.id}}</h2>--> <div style="height: auto; width:100%;padding: 0"> <div class="row row-center" style="height: 40px;width: 100%;padding: 0;font-size: 16px" ng-click="selectCategory(item.cat_id)"> <i class="icon" style="width: 4px;height: 50%;background: {{colors[(item.cat_id%5)]}}"></i> <div class="padding" style="width: 100%"><h2 style="color: {{colors[(item.cat_id%5)]}};font-size: 20px"> {{item.cat_name}}</h2></div> 更多<i class="icon icon-left ion-ios-arrow-right" style="font-size: 24px;margin-right: 20px;margin-left: 3px"></i> </div> <div class="row row-center" style="padding: 0;margin-top: 0"> <div class="col-33" ng-repeat="product in item.goods" style="padding: 5px" ng-click="goProductDetail(product.goods_id)"> <div class="img" style="width: 100%"> <img class="item-product-img" ng-src="{{APPCONFIG.picURL}}/{{product.goods_thumb}}" style="width: 90px;height: 90px"> <div class="desc" style="text-overflow: ellipsis;white-space:nowrap; overflow:hidden;font-size: 16px;margin-top: 5px"> {{product.goods_name}} </div> <div style="background: #DEDFE0;height: 1px;margin: 2px"></div> <div class="desc assertive" style="text-overflow: ellipsis;overflow:hidden;font-size: 16px"><b>{{product.price | currency:"¥"}}</b></div> </div> </div> </div> <div style="background: #F3F3F3;height: 10px;width: 100%"></div> </div> </ion-item> </ion-list> </ion-content>

2016-01-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除