Merge branch 'api' into hive2.0
| | |
| | | <exclude>config/xcx/*</exclude> |
| | | |
| | | <!-- |
| | | |
| | | <exclude>config/config.json</exclude> |
| | | <exclude>config/application.properties</exclude> |
| | | <exclude>config/system.properties</exclude> |
| | | |
| | | --> |
| | | |
| | | |
| | |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.system.app.dto.ArticleListDto; |
| | | import com.matrix.system.hive.action.BaseController; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.Article; |
| | | import com.matrix.system.hive.bean.ArticleType; |
| | | import com.matrix.system.hive.bean.SysShopInfo; |
| | | import com.matrix.system.hive.dao.ArticleDao; |
| | | import com.matrix.system.hive.dao.SysShopInfoDao; |
| | | import com.matrix.system.hive.service.ArticleService; |
| | | import com.matrix.system.hive.service.ArticleTypeService; |
| | |
| | | @Autowired |
| | | private ArticleTypeService articleTypeService; |
| | | |
| | | |
| | | @Autowired |
| | | private ArticleService articleService; |
| | | |
| | |
| | | public AjaxResult findKnowledgeType() { |
| | | ArticleType type = new ArticleType(); |
| | | type.setCompanyId(getMe().getCompanyId()); |
| | | type.setParentId(0L); |
| | | return AjaxResult.buildSuccessInstance(articleTypeService.findByModel(type)); |
| | | } |
| | | |
| | |
| | | pageVo.setLimit(articleListDto.getPageSize()); |
| | | |
| | | Article article = new Article(); |
| | | QueryUtil.setQueryLimitCom(article); |
| | | article.setTypeId(articleListDto.getTypeId()); |
| | | return AjaxResult.buildSuccessInstance(articleService.findApiArticleListInPage(article, pageVo)); |
| | | } |
| | |
| | | @PostMapping(value = "/findShoppingGoods") |
| | | public AjaxResult findShoppingGoods(@RequestBody @Validated ShoppingGoodsListDto shoppingGoodsListDto) { |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | shoppingGoodsListDto.setShopId(user.getShopId()); |
| | | if (!DataAuthUtil.hasAllShopAuth()) { |
| | | shoppingGoodsListDto.setShopId(user.getShopId()); |
| | | } |
| | | QueryUtil.setQueryLimitCom(shoppingGoodsListDto); |
| | | return AjaxResult.buildSuccessInstance(shoppingGoodsService.findShoppingGoodsListForApi(shoppingGoodsListDto), shoppingGoodsService.findShoppingGoodsListTotalForApi(shoppingGoodsListDto)); |
| | | } |
| | | |
| | |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.SysBeauticianState; |
| | | import com.matrix.system.hive.bean.SysProjServices; |
| | | import com.matrix.system.hive.bean.SysProjUse; |
| | |
| | | if (!DataAuthUtil.hasAllShopAuth()) { |
| | | SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | orderListDto.setShopId(user.getShopId()); |
| | | orderListDto.setUserId(user.getSuId()); |
| | | } |
| | | QueryUtil.setQueryLimitCom(orderListDto); |
| | | return AjaxResult.buildSuccessInstance(projServicesService.findApiServiceOrderListInPage(orderListDto, pageVo), projServicesService.findApiServiceOrderListTotal(orderListDto)); |
| | | } |
| | | |
| | |
| | | import com.matrix.system.common.tools.DataAuthUtil; |
| | | import com.matrix.system.common.tools.PasswordUtil; |
| | | import com.matrix.system.hive.action.BaseController; |
| | | import com.matrix.system.hive.action.util.QueryUtil; |
| | | import com.matrix.system.hive.bean.*; |
| | | import com.matrix.system.hive.dao.MoneyCardUseDao; |
| | | import com.matrix.system.hive.dao.VipAnswerDao; |
| | |
| | | if(!DataAuthUtil.hasAllShopAuth()) { |
| | | sysVipInfo.setShopId(user.getShopId()); |
| | | } |
| | | |
| | | QueryUtil.setQueryLimitCom(sysVipInfo); |
| | | return AjaxResult.buildSuccessInstance(sysVipInfoService.findAll(sysVipInfo)); |
| | | } |
| | | |
| | |
| | | AjaxResult showList(Article article, PaginationVO pageVo) { |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_SCWZ); |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | } |
| | | |
| | |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_MDXY); |
| | | |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | //return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findInPage(article, pageVo),currentService.findTotal(article)); |
| | | } |
| | |
| | | public @ResponseBody AjaxResult queryAll(Article article, PaginationVO pageVo) { |
| | | article.setType(Dictionary.ARTICEL_TYPE_NAME_WXXMWZ); |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | return showList(currentService, article, pageVo); |
| | | //return new AjaxResult(AjaxResult.STATUS_SUCCESS, currentService.findInPage(article, pageVo),currentService.findTotal(article)); |
| | | } |
| | |
| | | @RemoveRequestToken |
| | | public @ResponseBody AjaxResult addOrModify(Article article) { |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | article.setShopId(users.getShopId()); |
| | | article.setCompanyId(users.getCompanyId()); |
| | | if (article.getId() != null) { |
| | | return modify(currentService, article, "文章"); |
| | | } else { |
| | |
| | | */ |
| | | private Integer commentNum; |
| | | |
| | | private Long shopId; |
| | | private Long companyId; |
| | | |
| | | public Long getShopId() { |
| | | return shopId; |
| | | public Long getCompanyId() { |
| | | return companyId; |
| | | } |
| | | |
| | | public void setShopId(Long shopId) { |
| | | this.shopId = shopId; |
| | | public void setCompanyId(Long companyId) { |
| | | this.companyId = companyId; |
| | | } |
| | | |
| | | public Integer getCommentNum() { |
| | |
| | | |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.system.hive.bean.Article; |
| | | import com.matrix.system.hive.bean.ArticleType; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | public SysVipInfo selectById(Long id); |
| | | |
| | | public List<SysVipInfo> selectByVipNoOrTel(@Param("key") String key, @Param("shopId") Long shopId); |
| | | public List<SysVipInfo> selectByVipNoOrTel(@Param("key") String key); |
| | | |
| | | /** |
| | | * 查询是否唯一 @Title: selectTotalByField |
| | |
| | | * @param keyWord |
| | | * @return |
| | | */ |
| | | public List<SysVipInfo> selectUserByKey(@Param("keyWord") String keyWord, @Param("shopId") Long shopId); |
| | | public List<SysVipInfo> selectUserByKey(@Param("keyWord") String keyWord); |
| | | |
| | | /** |
| | | * 会员活跃状态自动修改 |
| | |
| | | |
| | | @Override |
| | | public List<SysVipInfo> findByVipNoOrTel(String key) { |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | return sysVipInfoDao.selectByVipNoOrTel(key, users.getShopId()); |
| | | return sysVipInfoDao.selectByVipNoOrTel(key); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public List<SysVipInfo> findUserByKey(String keyWord) { |
| | | SysUsers users = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); |
| | | return sysVipInfoDao.selectUserByKey(keyWord, users.getShopId()); |
| | | return sysVipInfoDao.selectUserByKey(keyWord); |
| | | } |
| | | |
| | | |
| | |
| | | <result property="sort" column="sort" /> |
| | | <result property="createtiem" column="createtiem" /> |
| | | <result property="url" column="url" /> |
| | | <result property="shopId" column="shop_id"/> |
| | | <result property="companyId" column="company_id"/> |
| | | |
| | | |
| | | <result property="articleTypeName" column="article_type_name" /> |
| | |
| | | url, |
| | | like_number, |
| | | classify, |
| | | shop_id |
| | | company_id |
| | | ) |
| | | VALUES ( |
| | | #{id}, |
| | |
| | | #{url}, |
| | | #{likeNumber}, |
| | | #{classify}, |
| | | #{shopId} |
| | | #{companyId} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | url, |
| | | classify, |
| | | like_number, |
| | | shop_id, |
| | | company_id, |
| | | (select article_type_name from article_type c where type_id = c.id) articleTypeName, |
| | | (select type from article_type c where type_id = c.id) type |
| | | from article |
| | |
| | | <if test="record.likeNumber != null and record.likeNumber !='' "> |
| | | and like_number = #{record.likeNumber} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | and shop_id = #{record.shopId} |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and company_id = #{record.companyId} |
| | | </if> |
| | | <if test="record.type != null and record.type !='' "> |
| | | and (select type from article_type c where type_id = c.id) = #{record.type} |
| | |
| | | url, |
| | | classify, |
| | | like_number, |
| | | shop_id, |
| | | company_id, |
| | | (select article_type_name from article_type c where type_id = c.id) articleTypeName, |
| | | (select type from article_type c where type_id = c.id) type |
| | | from article |
| | |
| | | <if test="record.articleTypeName != null and record.url !='' "> |
| | | and (select article_type_name from article_type c where type_id = c.id) = #{record.articleTypeName} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | and shop_id = #{record.shopId} |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and company_id = #{record.companyId} |
| | | </if> |
| | | </if> |
| | | order by type_id,sort,createtiem desc |
| | |
| | | <if test="record.articleTypeName != null and record.url !='' "> |
| | | and (select article_type_name from article_type c where type_id = c.id) = #{record.articleTypeName} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | and shop_id = #{record.shopId} |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and company_id = #{record.companyId} |
| | | </if> |
| | | </if> |
| | | </select> |
| | |
| | | url, |
| | | like_number, |
| | | classify, |
| | | shop_id, |
| | | company_id, |
| | | (select article_type_name from article_type c where type_id = c.id) articleTypeName<!-- 所属门店名称 --> |
| | | from article |
| | | where id=#{id} |
| | | </select> |
| | | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 根据对象查询--> |
| | | <select id="selectByModel" resultMap="ArticleMap"> |
| | |
| | | a.url, |
| | | a.classify, |
| | | a.like_number, |
| | | a.shop_id, |
| | | a.company_id, |
| | | (select article_type_name from article_type c where a.type_id = c.id) articleTypeName,<!-- 所属门店名称 --> |
| | | (select count(*) from article_comment ac where ac.article_id=a.id) commentNum |
| | | from article a |
| | |
| | | <if test="record.articleTypeName != null and record.url !='' "> |
| | | and (select article_type_name from article_type c where a.type_id = c.id) = #{record.articleTypeName} |
| | | </if> |
| | | <if test="record.shopId != null and record.shopId !='' "> |
| | | and a.shop_id = #{record.shopId} |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | | </if> |
| | | order by type_id,sort,createtiem desc |
| | |
| | | <select id="selectApiArticleListInPage" resultMap="ArticleMap"> |
| | | select * from article a |
| | | inner join article_type b on a.type_id=b.id |
| | | where a.type_id=#{record.typeId} or find_in_set(#{record.typeId}, b.parent_ids) |
| | | where a.company_id=#{record.companyId} and (a.type_id=#{record.typeId} or find_in_set(#{record.typeId}, b.parent_ids)) |
| | | order by a.createtiem desc |
| | | <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> |
| | | <if test="pageVo.offset >=0 and pageVo.limit >0"> |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <if test="record.articleTypeName != null and record.articleTypeName !='' "> |
| | | and article_type_name = #{record.articleTypeName} |
| | | </if> |
| | | <if test="record.parentId != null and record.parentId !='' "> |
| | | <if test="record.parentId != null or record.parentId ==0 "> |
| | | and parent_id = #{record.parentId} |
| | | </if> |
| | | <if test="record.sort != null and record.sort !='' "> |
| | |
| | | <![CDATA[ and ( a.shop_id = #{record.shopId} or |
| | | ( a.headquarters=1 and ( ISNULL(a.use_shop) or LENGTH(trim(a.use_shop))<1 or FIND_IN_SET(#{record.shopId},a.use_shop))))]]> |
| | | </if> |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | a.company_id=#{record.companyId} |
| | | </if> |
| | | <if test="record.goodType!=null"> |
| | | and a.good_type=#{record.goodType} |
| | | </if> |
| | |
| | | EMAIL,CREATE_TIME,UUID,BALANCE,blood,sfCard,link,marry,vocation |
| | | from sys_vip_info |
| | | where |
| | | SHOP_ID=#{shopId} |
| | | and ( |
| | | instr(PHONE,#{keyWord}) |
| | | or instr(VIP_NAME ,#{keyWord}) |
| | | or instr(zjm ,#{keyWord}) |
| | | or instr(VIP_NO ,#{keyWord}) |
| | | ) |
| | | limit 0,15 |
| | | </select> |
| | | |
| | |
| | | and |
| | | (a.VIP_NO =#{key} or |
| | | a.VIP_NAME =#{key} or |
| | | a.PHONE =#{key}) and a.shop_id=#{shopId} |
| | | a.PHONE =#{key}) |
| | | </select> |
| | | |
| | | <select id="getLevelIdByMoney" resultMap="SysVipInfoMap"> |
| | |
| | | </el-col> |
| | | <el-col :span="14" style="text-align: right;"> |
| | | <label>¥ {{order.total}}</label> |
| | | <label>¥ {{order.zkTotal - order.total}}</label> |
| | | <label>¥ {{(order.zkTotal - order.total).toFixed(2)}}</label> |
| | | <label>¥ {{order.zkTotal}}</label> |
| | | <label>¥ {{order.arrears}}</label> |
| | | <label>¥ {{order.repay}}</label> |
| | |
| | | </button> |
| | | <button matrix:fn="mdhyzl-gjjl" onclick="openFollow()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 跟进记录</button> |
| | | <button matrix:fn="mdhyzl-khda" onclick="openArchieves()" type="button" class="btn btn-info btn-sm"><i class="fa fa-edit" ></i> 客户档案</button> |
| | | <button matrix:btn="mdhyzl-projTaocan" onclick="openProj()" type="button" class="btn btn-info btn-sm"><i class="fa fa-cube"></i> 项目管理</button> |
| | | <button matrix:btn="mdhyzl-projTaocan" onclick="openTc()" type="button" class="btn btn-info btn-sm"><i class="fa fa-cubes"></i> 套餐管理</button> |
| | | <button matrix:btn="mdhyzl-projTaocan" onclick="openMoneyCard()" type="button" class="btn btn-info btn-sm"><i class="fa fa-credit-card"></i> 充值卡管理</button> |
| | | <button matrix:fn="mdhyzl-xfdd" onclick="openOrder()" type="button" class="btn btn-info btn-sm"><i class="fa fa-history"></i> 消费订单</button> |
| | | <button matrix:fn="mdhyzl-fwd" onclick="openServiceOrder()" type="button" class="btn btn-info btn-sm"><i class="fa fa-history"></i> 服务单</button> |
| | | <button matrix:btn="mdhyzl-excelOut" onclick="exportExcel()" type="button" class="btn btn-info btn-sm"><i class="fa fa-download" ></i> 导出</button> |
| | | </div> |
| | | |
| | |
| | | <th data-field="arrivalWay">到店途径</th> |
| | | <th data-field="staffName">健康顾问</th> |
| | | <th data-field="shopName">所属门店</th> |
| | | <th data-field="phone" data-formatter="buildOperation">操作</th> |
| | | </tr> |
| | | </thead> |
| | | </table> |
| | |
| | | var delUrl=""; |
| | | delUrl=basePath+"/hiveErp/vipInfo/del"; |
| | | |
| | | |
| | | myGrid= |
| | | MGrid.initGrid({ |
| | | url : basePath+"/hiveErp/vipInfo/showVipInfoList", |
| | |
| | | }); |
| | | }); |
| | | |
| | | function openOrder(){ |
| | | var vipName=myGrid.getSelectItemId("vipName"); |
| | | layer.full(layer.open({ |
| | | type : 2, |
| | | title : "消费记录", |
| | | area : [ MUI.SIZE_L, '450px' ], |
| | | maxmin : true, |
| | | content : [ basePath+'/admin/redirect/hive/operate/sysOrder-list?vipName=' + vipName ] |
| | | })); |
| | | } |
| | | |
| | | /** |
| | | * 构建会员名称 |
| | | */ |
| | |
| | | return value; |
| | | } |
| | | } |
| | | function openServiceOrder(){ |
| | | var vipName=myGrid.getSelectItemId("vipName"); |
| | | layer.full(layer.open({ |
| | | type : 2, |
| | | title : "服务单", |
| | | area : [ MUI.SIZE_L, '450px' ], |
| | | maxmin : true, |
| | | content : [ basePath+'/admin/redirect/hive/store/projService-list?vipName=' + vipName ] |
| | | })); |
| | | } |
| | | |
| | | |
| | | function openArchieves(){ |
| | | var id=myGrid.getSelectItemId(); |
| | |
| | | content : [ basePath+'/admin/serviceRecord/toServicefollowListForZd?id=' + id ] |
| | | }); |
| | | } |
| | | function createDateDictionary() { |
| | | $(".dds").each( |
| | | function() { |
| | | var type = $(this).attr("cc"); |
| | | var _this = $(this); |
| | | //取服务器请求数据 |
| | | $.AjaxProxy({ |
| | | p : { |
| | | type : type |
| | | } |
| | | }) |
| | | .invoke( |
| | | basePath+"/admin/dds/showDataDictionary", |
| | | function(loj) { |
| | | var html = ''; |
| | | console.log(loj.getRowCount()); |
| | | for (var i = 0; i < loj |
| | | .getRowCount(); i++) { |
| | | html += '<option value="' |
| | | + loj |
| | | .getString(i, |
| | | "id") |
| | | + '">' |
| | | + loj.getString(i, |
| | | "name") |
| | | + "</option>"; |
| | | } |
| | | _this.html(html); |
| | | }); |
| | | |
| | | }); |
| | | } |
| | | function openTc() { |
| | | var id=myGrid.getSelectItemId(); |
| | | layer.open({ |
| | | type: 2, |
| | | title: "会员套餐管理", |
| | | area: MUI.SIZE_M, |
| | | content : [ basePath+'/admin/redirect/hive-erp/vip/viptc-list?vipId=' + id] |
| | | }); |
| | | } |
| | | |
| | | function openProj() { |
| | | var id=myGrid.getSelectItemId(); |
| | | layer.open({ |
| | | type: 2, |
| | | title: "会员项目管理", |
| | | area: MUI.SIZE_M, |
| | | content : [ basePath+'/admin/redirect/hive-erp/vip/projUse-list?vipId=' + id] |
| | | }); |
| | | } |
| | | function openMoneyCard() { |
| | | var id=myGrid.getSelectItemId(); |
| | | layer.open({ |
| | | type: 2, |
| | | title: "会员充值卡管理", |
| | | area: MUI.SIZE_M, |
| | | content : [ basePath+'/admin/redirect/hive-erp/vip/moneyCardUse-list?vipId=' + id] |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | function buildOperation(value, row, index) { |
| | | var html = ""; |
| | | html += '<a class="text-info" href="javascript:void(0)" onClick="openVipDetail(\''+row.phone+'\')">查看详情</a> ' |
| | | return html; |
| | | } |
| | | function openVipDetail(value) { |
| | | debugger |
| | | layer.full(layer.open({ |
| | | type : 2, |
| | | title : "会员详情", |
| | | area : [ MUI.SIZE_L, '450px' ], |
| | | maxmin : true, |
| | | content : [ basePath+'/admin/redirect/hive/beautySalon/vip?vipPhone=' + value ] |
| | | })); |
| | | } |
| | | |
| | | </script> |
| | | |
| | |
| | | <el-row style="line-height: 50px;" v-for="(item, index) in payMoneys"> |
| | | <el-col :span="6" style="text-align: right; padding-right: 10px; font-size: 12px;">{{item.value}}</el-col> |
| | | <el-col :span="8"><el-input v-model="item.money"></el-input></el-col> |
| | | <el-col :span="6" style="margin-left: 10px;" v-if="item.type == '储值卡'">{{item.isGift == 1 ? '赠送余额' : '余额' }}:<span class="arrears">¥ {{item.balance}}</span></el-col> |
| | | <el-col :span="8" style="margin-left: 10px;" v-if="item.type == '储值卡'">{{item.isGift == 1 ? '赠送余额' : '余额' }}:<span class="arrears">¥ {{item.balance}}</span></el-col> |
| | | </el-row> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | _this.order.payMoney = _this.order.payMoney.toFixed(2); |
| | | //计算欠款 |
| | | // _this.order.arrears = _this.order.zkTotal - _this.order.payMoney; |
| | | // if (_this.order.arrears < 0) { |
| | |
| | | </el-col> |
| | | <el-col :span="14" style="text-align: right;"> |
| | | <label>¥ {{order.total}}</label> |
| | | <label>¥ {{order.zkTotal - order.total}}</label> |
| | | <label>¥ {{(order.zkTotal - order.total).toFixed(2)}}</label> |
| | | <label>¥ {{order.zkTotal}}</label> |
| | | <label>¥ {{order.arrears}}</label> |
| | | <label>¥ {{order.repay}}</label> |
| | |
| | | th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> |
| | | <script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script> |
| | | <!-- 富文本编辑器 --> |
| | | <link rel="stylesheet" |
| | | th:href="@{/plugin/kindeditor/themes/default/default.css}"/> |
| | | <link rel="stylesheet" |
| | | th:href="@{/plugin/kindeditor/plugins/code/prettify.css}"/> |
| | | <script th:src="@{/plugin/kindeditor/kindeditor.js}"></script> |
| | | <script th:src="@{/plugin/kindeditor/lang/zh_CN.js}"></script> |
| | | <script |
| | | th:src="@{/plugin/kindeditor/plugins/code/prettify.js}"></script> |
| | | <script type="text/javascript" charset="utf-8" |
| | | th:src="@{/plugin/beditor/ueditor.config.js}"></script> |
| | | <script type="text/javascript" charset="utf-8" |
| | | th:src="@{/plugin/beditor/ueditor.all.js}"> |
| | | </script> |
| | | <script type="text/javascript" charset="utf-8" |
| | | th:src="@{/plugin/beditor/lang/zh-cn/zh-cn.js}"></script> |
| | | |
| | | <style type="text/css"> |
| | | #projBox { |
| | | max-height: 400px; |
| | |
| | | th:value="${obj?.title }" datatype="*" nullmsg="标题不能为空"> |
| | | </div> |
| | | <div class="Validform_checktip"></div> |
| | | <label class="col-sm-2 control-label">排序<span class="text-danger">*</span></label> |
| | | <label class="col-sm-2 control-label">排序</label> |
| | | <div class="col-sm-3"> |
| | | <input autocomplete="off" type="text" class="form-control" name="sort" |
| | | th:value="${obj?.sort }" datatype="n" nullmsg="序号不能为空" |
| | | th:value="${obj?.sort }" datatype="n" ignore="ignore" |
| | | errormsg="序号只能为数字"> |
| | | </div> |
| | | <div class="Validform_checktip"></div> |
| | |
| | | <div class="col-sm-3"> |
| | | |
| | | <div th:if="${obj ne null }" class="checkbox checkbox-inline"> |
| | | <input autocomplete="off" name="isPublish" type="radio" id="inlineCheckbox1" value="是" > |
| | | |
| | | <input autocomplete="off" th:if="${obj.isPublish eq '是' }" checked name="isPublish" type="radio" id="inlineCheckbox1" value="是" > |
| | | <input autocomplete="off" th:if="${obj.isPublish eq '否' }" name="isPublish" type="radio" id="inlineCheckbox1" value="是" > |
| | | <label for="inlineCheckbox1">是 </label> |
| | | <input autocomplete="off" name="isPublish" type="radio" id="inlineCheckbox2" value="否"> |
| | | |
| | | <input autocomplete="off" th:if="${obj.isPublish eq '是' }" name="isPublish" type="radio" id="inlineCheckbox2" value="否"> |
| | | <input autocomplete="off" th:if="${obj.isPublish eq '否' }" checked name="isPublish" type="radio" id="inlineCheckbox2" value="否"> |
| | | <label for="inlineCheckbox2">否 </label> |
| | | |
| | | |
| | | </div> |
| | | |
| | | <div th:if="${obj eq null }" class="checkbox checkbox-inline"> |
| | |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">文章内容</label> |
| | | <div class="col-sm-8"> |
| | | <textarea name="content" id="artcontent" th:text="${obj?.content}"> |
| | | |
| | | </textarea> |
| | | <script style="width: 100%; height: 500px" id="artcontent" name="content" |
| | | type="text/plain" th:utext="${obj?.content}" ></script> |
| | | </div> |
| | | <div class="Validform_checktip"></div> |
| | | </div> |
| | | <!-- |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">上传图片</label> |
| | | <div class="col-sm-9"> |
| | | <input autocomplete="off" onclick="MTools.chooesFile('#fileText')" |
| | | class="input-text upload-url radius form-control" type="text" id="showFileName" |
| | | readonly style="width: 30%;display: inline;"> |
| | | <a onclick="MTools.chooesFile('#fileText')" class="btn btn-success radius"> |
| | | <i class="fa fa-cloud-upload"></i> 浏览文件 </a> |
| | | <input autocomplete="off" type="button" class='btn btn-success radius' |
| | | onclick="MTools.upFile('#submitBtn')" value="上传"> |
| | | <a id="selectInServices" class="btn btn-success radius"> |
| | | <i class="fa fa-cloud"></i> 远程图库 |
| | | </a> |
| | | </div> |
| | | </div> --> |
| | | |
| | | |
| | | |
| | | <div class="form-group "> |
| | | <div class="col-sm-12 text-center"> |
| | |
| | | <script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script> |
| | | <script th:inline="javascript"> |
| | | var obj=[[${obj}]]; |
| | | var editor = null; |
| | | |
| | | //百度编辑器 |
| | | var ue = {}; |
| | | |
| | | var myForm=MForm.initForm({ |
| | | invokeUrl:basePath+"/admin/article/addOrModify", |
| | | beforeSubmit:function(){ |
| | | editor.sync(); |
| | | |
| | | }, |
| | | afterSubmit:function(){ |
| | | parent.myGrid.serchData(); |
| | |
| | | |
| | | $(function() { |
| | | $(".select2").select2({'width':'100%'}); |
| | | MUI.createEdit("content", '100%', '400px', 'editor'); |
| | | MUI.openServiceImgSpace(function(url) { |
| | | $("#img_1").attr("src", url).show(); |
| | | $("#hiddenImg").val(url); |
| | | }, "#selectInServices"); |
| | | |
| | | //初始化编辑器 |
| | | ue = UE.getEditor('artcontent'); |
| | | |
| | | initFunctionList(); |
| | | }); |
| | | |
| | |
| | | |
| | | |
| | | function autoZy() { |
| | | var text = editor.text(); |
| | | var text = ue.getContentTxt(); |
| | | $("#zy-input").val(text.substring(0, 100)); |
| | | } |
| | | function cleanZy() { |
| | |
| | | "simulatorType": "wechat", |
| | | "simulatorPluginLibVersion": {}, |
| | | "condition": { |
| | | "search": { |
| | | "list": [] |
| | | }, |
| | | "conversation": { |
| | | "list": [] |
| | | }, |
| | | "plugin": { |
| | | "list": [] |
| | | }, |
| | | "game": { |
| | | "currentL": -1, |
| | | "list": [] |
| | | }, |
| | | "gamePlugin": { |
| | |
| | | "pathName": "pages/shalong/shalongDetail", |
| | | "query": "id=6", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "pages/yuyue/showYyInfo", |
| | | "pathName": "pages/yuyue/showYyInfo", |
| | | "query": "id=3004", |
| | | "scene": null |
| | | } |
| | | ] |
| | | } |