Commit 2c4d2b76 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 5b8aa538 e05a71e8
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="text"> <template slot="appType" slot-scope="text">
{{ text.appType === 1 ? "应用程序" : "URL" }} {{ appType[text.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="text"> <template slot="shelves" slot-scope="text">
...@@ -150,6 +150,13 @@ import { ...@@ -150,6 +150,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import { pageSizeOptions } from "@/config/pageConfig.js"; import { pageSizeOptions } from "@/config/pageConfig.js";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -211,6 +218,7 @@ export default { ...@@ -211,6 +218,7 @@ export default {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
columns, columns,
appType,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="text"> <template slot="appType" slot-scope="text">
{{ text.appType === 1 ? "应用程序" : "URL" }} {{ appType[text.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="text"> <template slot="shelves" slot-scope="text">
...@@ -150,6 +150,13 @@ import { ...@@ -150,6 +150,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import { pageSizeOptions } from "@/config/pageConfig.js"; import { pageSizeOptions } from "@/config/pageConfig.js";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -211,6 +218,7 @@ export default { ...@@ -211,6 +218,7 @@ export default {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
columns, columns,
appType,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
<a-radio :value="2"> URL </a-radio> <a-radio :value="2"> URL </a-radio>
<a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio> <a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio>
<a-radio :value="4" v-if="form.type != 2"> 天府通办 </a-radio> <a-radio :value="4" v-if="form.type != 2"> 天府通办 </a-radio>
<a-radio :value="5"> Router </a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
...@@ -406,6 +407,7 @@ export default { ...@@ -406,6 +407,7 @@ export default {
// 改变类型 // 改变类型
changeAppType(e) { changeAppType(e) {
let val = e.target.value; let val = e.target.value;
this.$refs.form.clearValidate(["url", "filePath"]);
if (val == 1) { if (val == 1) {
this.form.url = ""; this.form.url = "";
} else { } else {
......
package com.mortals.xhx.module.area.service.impl; package com.mortals.xhx.module.area.service.impl;
import com.mortals.framework.common.Rest; import com.mortals.framework.common.Rest;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.xhx.module.area.model.AreaEntity;
import com.mortals.xhx.module.area.model.AreaQuery;
import com.mortals.xhx.module.area.model.AreaTreeSelect;
import com.mortals.xhx.module.base.service.BaseAreaService;
import com.mortals.xhx.module.site.service.SiteService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.xhx.common.code.SatusEnum; import com.mortals.xhx.common.code.SatusEnum;
import com.mortals.xhx.module.area.dao.AreaDao; import com.mortals.xhx.module.area.dao.AreaDao;
import com.mortals.xhx.module.area.model.AreaEntity;
import com.mortals.xhx.module.area.model.AreaQuery;
import com.mortals.xhx.module.area.model.AreaTreeSelect;
import com.mortals.xhx.module.area.service.AreaService; import com.mortals.xhx.module.area.service.AreaService;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.*; import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -195,12 +194,12 @@ public class AreaServiceImpl extends AbstractCRUDCacheServiceImpl<AreaDao, AreaE ...@@ -195,12 +194,12 @@ public class AreaServiceImpl extends AbstractCRUDCacheServiceImpl<AreaDao, AreaE
@Override @Override
public List<AreaTreeSelect> getListByParentId(String parentId, Context context) { public List<AreaTreeSelect> getListByParentId(String parentId, Context context) {
if (ObjectUtils.isEmpty(parentId)) { if (ObjectUtils.isEmpty(parentId)) {
parentId = "0"; parentId = "%0%";
} }
//只做一层 //只做一层
List<AreaTreeSelect> collect = this.find(new AreaQuery().pid(parentId), context).stream().map(item -> new AreaTreeSelect(item) List<AreaTreeSelect> collect = this.find(new AreaQuery().pid(parentId), context).stream().map(item -> new AreaTreeSelect(item)
).collect(Collectors.toList()); ).collect(Collectors.toList());
if ("0".equals(parentId)) { if ("%0%".equals(parentId)) {
return collect; return collect;
} }
// AreaEntity areaEntity = this.selectOne(new AreaQuery().iid(parentId)); // AreaEntity areaEntity = this.selectOne(new AreaQuery().iid(parentId));
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
<property name="showSql" value="false" /> <property name="showSql" value="false" />
</plugin> </plugin>
<!-- <plugin interceptor="com.mortals.framework.thirty.dm.DmTransInterceptor"> <plugin interceptor="com.mortals.framework.thirty.dm.DmTransInterceptor">
<property name="showSql" value="false" />
</plugin>--> </plugin>
</plugins> </plugins>
</configuration> </configuration>
\ No newline at end of file
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<setting name="useColumnLabel" value="true" /> <setting name="useColumnLabel" value="true" />
<setting name="useGeneratedKeys" value="false" /> <setting name="useGeneratedKeys" value="false" />
<setting name="defaultExecutorType" value="REUSE" /> <setting name="defaultExecutorType" value="REUSE" />
</settings> </settings>
<plugins> <plugins>
<plugin interceptor="com.mortals.framework.thirty.mybatis.MortalsPagePlugin"> <plugin interceptor="com.mortals.framework.thirty.mybatis.MortalsPagePlugin">
...@@ -18,5 +19,8 @@ ...@@ -18,5 +19,8 @@
<property name="enableExecutorTime" value="true" /> <property name="enableExecutorTime" value="true" />
<property name="showSql" value="false" /> <property name="showSql" value="false" />
</plugin> </plugin>
<plugin interceptor="com.mortals.framework.thirty.dm.DmTransInterceptor">
<property name="showSql" value="false" />
</plugin>
</plugins> </plugins>
</configuration> </configuration>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment