Commit 480b5283 authored by danfuman's avatar danfuman

Merge branch 'zuhuduan' of http://192.168.60.201/root/dsk-operate-sys into zuhuduan

parents 76574188 c7b8bad2
...@@ -145,7 +145,7 @@ public class SysTenantController extends BaseController { ...@@ -145,7 +145,7 @@ public class SysTenantController extends BaseController {
/** /**
* 清除动态租户 * 清除动态租户
*/ */
@SaCheckRole(TenantConstants.SUPER_ADMIN_ROLE_KEY) @SaCheckRole({TenantConstants.SUPER_ADMIN_ROLE_KEY,TenantConstants.DSK_TENANT_ADMIN_ROLE_KEY})
@GetMapping("/dynamic/clear") @GetMapping("/dynamic/clear")
public R<Void> dynamicClear() { public R<Void> dynamicClear() {
TenantHelper.clearDynamic(); TenantHelper.clearDynamic();
...@@ -158,7 +158,7 @@ public class SysTenantController extends BaseController { ...@@ -158,7 +158,7 @@ public class SysTenantController extends BaseController {
* @param tenantId 租户id * @param tenantId 租户id
* @param packageId 套餐id * @param packageId 套餐id
*/ */
@SaCheckRole(TenantConstants.SUPER_ADMIN_ROLE_KEY) @SaCheckRole({TenantConstants.SUPER_ADMIN_ROLE_KEY,TenantConstants.DSK_TENANT_ADMIN_ROLE_KEY})
@SaCheckPermission("system:tenant:edit") @SaCheckPermission("system:tenant:edit")
@Log(title = "租户", businessType = BusinessType.UPDATE) @Log(title = "租户", businessType = BusinessType.UPDATE)
@GetMapping("/syncTenantPackage") @GetMapping("/syncTenantPackage")
......
...@@ -37,6 +37,16 @@ public interface TenantConstants { ...@@ -37,6 +37,16 @@ public interface TenantConstants {
*/ */
String TENANT_ADMIN_ROLE_NAME = "管理员"; String TENANT_ADMIN_ROLE_NAME = "管理员";
/**
* 大司空租户管理员角色
*/
String DSK_TENANT_ADMIN_ROLE_KEY = "accountAdmin";
/**
* 大司空租户管理员角色名称
*/
String DSK_TENANT_ADMIN_ROLE_NAME = "企业账号管理员";
/** /**
* 默认租户ID * 默认租户ID
*/ */
......
...@@ -91,12 +91,12 @@ ...@@ -91,12 +91,12 @@
iframeLoading() { iframeLoading() {
let iframeHeight = document.getElementById("companyIframe").clientHeight, number = 0 let iframeHeight = document.getElementById("companyIframe").clientHeight, number = 0
this.iframeTimer = setInterval(()=>{ this.iframeTimer = setInterval(()=>{
number ++ number = number+1000
if(document.getElementById("companyIframe").clientHeight != iframeHeight || number == 5000){ if(document.getElementById("companyIframe").clientHeight != iframeHeight || number == 3000){
this.loading = false this.loading = false
clearInterval(this.iframeTimer) clearInterval(this.iframeTimer)
} }
}) },1000)
} }
} }
} }
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
</template> </template>
<script> <script>
import { treeselect as qytreeselect} from "@/api/system/menu"; import { qytreeselect} from "@/api/system/menu";
import { addTenantPackage ,getTenantPackage,detailTenantPackage,saveTenantPackage,deleteTenantPackage} from "@/api/enterpriseManagement/enterpriseManagement"; import { addTenantPackage ,getTenantPackage,detailTenantPackage,saveTenantPackage,deleteTenantPackage} from "@/api/enterpriseManagement/enterpriseManagement";
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<el-form-item prop="captchaCode" v-if="captchaEnabled"> <el-form-item prop="captchaCode" v-if="captchaEnabled">
<el-input <el-input
v-model="dxform.captchaCode" v-model="dxform.captchaCode"
@focus="getCode"
auto-complete="off" auto-complete="off"
placeholder="请输入图形验证码" placeholder="请输入图形验证码"
style="width: 196px;float: left;" style="width: 196px;float: left;"
...@@ -92,6 +93,7 @@ ...@@ -92,6 +93,7 @@
v-model="loginForm.code" v-model="loginForm.code"
auto-complete="off" auto-complete="off"
placeholder="请输入图形验证码" placeholder="请输入图形验证码"
@focus="getCode"
style="width: 196px;float: left;" style="width: 196px;float: left;"
@keyup.enter.native="handleLogin" @keyup.enter.native="handleLogin"
> >
...@@ -130,6 +132,7 @@ ...@@ -130,6 +132,7 @@
<el-form-item prop="captchaCode" v-if="captchaEnabled && showcode"> <el-form-item prop="captchaCode" v-if="captchaEnabled && showcode">
<el-input <el-input
v-model="dxform.captchaCode" v-model="dxform.captchaCode"
@focus="getCode"
auto-complete="off" auto-complete="off"
placeholder="请输入验证码" placeholder="请输入验证码"
style="width: 196px;float: left;" style="width: 196px;float: left;"
...@@ -272,8 +275,8 @@ ...@@ -272,8 +275,8 @@
if(this.nosend == true){ if(this.nosend == true){
return false return false
} }
// logincaptchaSms(this.dxform).then(res=>{ logincaptchaSms(this.dxform).then(res=>{
// if(res.code == 200){ if(res.code == 200){
this.$message.success('已发送短信!') this.$message.success('已发送短信!')
let _this = this let _this = this
...@@ -288,14 +291,14 @@ ...@@ -288,14 +291,14 @@
_this.smstime = 60 _this.smstime = 60
} }
},1000) },1000)
// }else{ }else{
// this.$message.error(res.msg) this.$message.error(res.msg)
// this.getCode() this.getCode()
// this.showcode = true this.showcode = true
// } }
// }).catch(res=>{ }).catch(res=>{
// this.$message.error(res.msg) this.$message.error(res.msg)
// }) })
}, },
handleLogin() { handleLogin() {
this.$refs.loginForm.validate(valid => { this.$refs.loginForm.validate(valid => {
......
...@@ -167,6 +167,7 @@ ...@@ -167,6 +167,7 @@
getYears(){ getYears(){
getYears({}).then(res => { getYears({}).then(res => {
this.yearOptions=res.data.reverse(); this.yearOptions=res.data.reverse();
this.queryParams.year=this.yearOptions[0].year
}) })
}, },
//地区 //地区
......
...@@ -31,8 +31,12 @@ ...@@ -31,8 +31,12 @@
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="type" label="供应方式" :formatter="formatStatus"/> <el-table-column prop="type" label="供应方式" :formatter="formatStatus"/>
<el-table-column prop="count" label="土地交易项目 (个)" align="right" :formatter="formatStatus" sortable/> <el-table-column prop="count" label="土地交易项目" align="right" :formatter="formatStatus" sortable>
<el-table-column prop="rate" label="占比(%)" align="right" :formatter="formatStatus" width="100"/> <template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column prop="rate" label="占比" align="right" :formatter="formatStatus" width="90">
<template slot-scope="scope">{{ scope.row.rate }}%</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -70,8 +74,12 @@ ...@@ -70,8 +74,12 @@
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="type" label="供应方式" :formatter="formatStatus"/> <el-table-column prop="type" label="供应方式" :formatter="formatStatus"/>
<el-table-column prop="count" label="土地交易项目 (个)" align="right" :formatter="formatStatus" sortable/> <el-table-column prop="count" label="土地交易项目" align="right" :formatter="formatStatus" sortable>
<el-table-column prop="rate" label="占比(%)" align="right" :formatter="formatStatus" width="100"/> <template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column prop="rate" label="占比" align="right" :formatter="formatStatus" width="90">
<template slot-scope="scope">{{ scope.row.rate }}%</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -112,8 +120,12 @@ ...@@ -112,8 +120,12 @@
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="province" label="地区" :formatter="formatStatus"/> <el-table-column prop="province" label="地区" :formatter="formatStatus"/>
<el-table-column prop="count" label="土地交易项目 (个)" align="right" :formatter="formatStatus" sortable/> <el-table-column prop="count" label="土地交易项目" align="right" :formatter="formatStatus" sortable>
<el-table-column prop="rate" label="占比(%)" align="right" :formatter="formatStatus" width="100"/> <template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column prop="rate" label="占比" align="right" :formatter="formatStatus" width="90">
<template slot-scope="scope">{{ scope.row.rate }}%</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -147,8 +159,12 @@ ...@@ -147,8 +159,12 @@
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="type" label="年份" :formatter="formatStatus"/> <el-table-column prop="type" label="年份" :formatter="formatStatus"/>
<el-table-column prop="count" label="土地交易项目 (个)" align="right" :formatter="formatStatus" sortable/> <el-table-column prop="count" label="土地交易项目" align="right" :formatter="formatStatus" sortable>
<el-table-column prop="rate" label="占比(%)" align="right" :formatter="formatStatus" width="100"/> <template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column prop="rate" label="占比" align="right" :formatter="formatStatus" width="90">
<template slot-scope="scope">{{ scope.row.rate }}%</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -789,6 +805,9 @@ export default { ...@@ -789,6 +805,9 @@ export default {
width: 33%; width: 33%;
float: right; float: right;
::v-deep .el-table{ ::v-deep .el-table{
.caret-wrapper{
width: 13px;
}
.sort-caret.ascending{ .sort-caret.ascending{
border-bottom-color: rgba(0,129,255,0.5); border-bottom-color: rgba(0,129,255,0.5);
} }
......
...@@ -97,7 +97,7 @@ public class SysMenuServiceImpl implements ISysMenuService { ...@@ -97,7 +97,7 @@ public class SysMenuServiceImpl implements ISysMenuService {
menuList = baseMapper.selectList(new LambdaQueryWrapper<SysMenu>() menuList = baseMapper.selectList(new LambdaQueryWrapper<SysMenu>()
.like(StringUtils.isNotBlank(menu.getMenuName()), SysMenu::getMenuName, menu.getMenuName()) .like(StringUtils.isNotBlank(menu.getMenuName()), SysMenu::getMenuName, menu.getMenuName())
.eq(StringUtils.isNotBlank(menu.getVisible()), SysMenu::getVisible, menu.getVisible()) .eq(StringUtils.isNotBlank(menu.getVisible()), SysMenu::getVisible, menu.getVisible())
.eq(StringUtils.isNotBlank(menu.getStatus()), SysMenu::getStatus, menu.getStatus()) .eq(SysMenu::getStatus, "0")
.orderByAsc(SysMenu::getParentId) .orderByAsc(SysMenu::getParentId)
.orderByAsc(SysMenu::getOrderNum)); .orderByAsc(SysMenu::getOrderNum));
menuList = menuList.stream().filter(menu1 -> !menu1.getMenuName().equals("企业管理")).collect(Collectors.toList()); menuList = menuList.stream().filter(menu1 -> !menu1.getMenuName().equals("企业管理")).collect(Collectors.toList());
......
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