权限相关优化修改

master
anthonywj 2 years ago
parent 29c55b0221
commit 200bae5efe

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

@ -1,68 +1,78 @@
<template> <template>
<!-- 本企业资质页面 --> <!-- 本企业资质页面 -->
<div> <div>
<div slot="header" style="font-weight: bold"> <div slot="header" style="font-weight: bold;margin-top: 35px">
<div style="text-align: center"> <div style="text-align: center">
<img <img
alt="element-logo" alt="element-logo"
style="width: 10%" style="width: 8%"
src="../assets/logo/logo.png" src="../assets/logo/logo.png"
/> />
</div> </div>
<h3 style="text-align: center;font-size: larger ;color:#707070 ">协调平台注册</h3> <h3 style="text-align: center;font-size: larger ;color:#707070 ">UDI协调平台企业信息登记</h3>
</div> </div>
<el-form <el-form
:model="inputQuery" :model="inputQuery"
:rules="rules" :rules="rules"
style="margin-top: 35px"
ref="inputQuery" ref="inputQuery"
label-width="500px" label-width="150px"
> >
<el-card class="el-card"> <el-card class="el-card">
<div> <div slot="header" class="clearfix">
<span> <span>企业信息:</span>
企业信息 <div>
</span> <div style="float: right;margin-top: -20px ">
</div> <el-button
<div style=" margin-left: 40%"> type="primary"
<span> size="mini"
本企业信息审核状态 icon="search"
<el-tag :type="inputQuery.ucstatus | statusFilterType" > @click="onModifySubmit()"
{{checkSupFlag[inputQuery.ucstatus] }} :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
</el-tag> >草稿保存
</span> </el-button>
<el-button
type="primary"
size="mini"
icon="search"
@click="onModifySubmit('key')"
:disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
>提交审核
</el-button>
</div>
</div>
</div> </div>
<el-row
:gutter="20"
class="el-row"
type="flex"
>
<el-col :span="20" class="el-col">
<div style="float: right; margin-top: -20px"> <el-form-item
<el-button label="本企业信息审核状态:"
type="primary" prop="reason"
size="mini" >
icon="search" <span>
@click="onModifySubmit()" <el-tag :type="inputQuery.ucstatus | statusFilterType">
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" {{ checkSupFlag[inputQuery.ucstatus] }}
>草稿保存 </el-tag>
</el-button> </span>
</el-form-item>
<el-button
type="primary"
size="mini"
icon="search"
@click="onModifySubmit('key')"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
>提交审核
</el-button>
</div>
</el-col>
</el-row>
<el-row <el-row
:gutter="20" :gutter="20"
class="el-row" class="el-row"
type="flex" type="flex"
style="margin-top: 25px"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label=" 说明:" label="审核说明:"
label-width="150px"
prop="reason" prop="reason"
> >
<el-input <el-input
@ -80,15 +90,15 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label=" 企业名称:" label=" 企业名称:"
label-width="150px"
prop="companyName" prop="companyName"
> >
<el-input <el-input
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="inputQuery.companyName" v-model="inputQuery.companyName"
></el-input> ></el-input>
@ -104,16 +114,15 @@
type="flex" type="flex"
> >
<el-col :span="20" class="el-col">
<el-col :span="10" class="el-col">
<el-form-item <el-form-item
label=" 社会信用号:" label=" 社会信用号:"
label-width="150px"
prop="creditNum" prop="creditNum"
> >
<el-input <el-input
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="inputQuery.creditNum" v-model="inputQuery.creditNum"
></el-input> ></el-input>
@ -124,11 +133,11 @@
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item label="企业类型:" label-width="150px" prop="bussinessStatus"> <el-form-item label="企业类型:" prop="bussinessStatus">
<el-select <el-select
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.bussinessStatus" v-model="inputQuery.bussinessStatus"
placeholder="企业类型" placeholder="企业类型"
style="width: 100%" style="width: 100%"
@ -149,16 +158,16 @@
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label=" 法人名称 :" label=" 法人名称 :"
label-width="150px"
prop="legalPerson" prop="legalPerson"
> >
<el-input <el-input
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="inputQuery.legalPerson" v-model="inputQuery.legalPerson"
></el-input> ></el-input>
@ -171,15 +180,15 @@
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="法人身份证号 :" label="法人身份证号 :"
label-width="150px"
prop="legalIdCard" prop="legalIdCard"
> >
<el-input <el-input
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="inputQuery.legalIdCard" v-model="inputQuery.legalIdCard"
></el-input> ></el-input>
@ -189,30 +198,29 @@
</el-row> </el-row>
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px"> <el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="注册地址:" label="注册地址:"
label-width="150px"
prop="registerAddress"
>
<el-input
size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容"
v-model="inputQuery.registerAddress"
></el-input>
</el-form-item>
</el-col> prop="registerAddress"
>
<el-input
size="small"
:disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容"
v-model="inputQuery.registerAddress"
></el-input>
</el-form-item>
</el-col>
</el-row> </el-row>
<!--<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">--> <!--<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 0px">-->
<!-- <el-col :span="10" class="el-col">--> <!-- <el-col :span="20" class="el-col">-->
<!-- <el-form-item label="备注:" label-width="150px" prop="remark">--> <!-- <el-form-item label="备注:" prop="remark">-->
<!-- <el-input--> <!-- <el-input-->
<!-- size="small"--> <!-- size="small"-->
<!-- v-model="inputQuery.remark"--> <!-- v-model="inputQuery.remark"-->
@ -224,9 +232,11 @@
</el-card> </el-card>
<el-card class="el-card"> <el-card class="el-card">
<div>
<div slot="header" class="clearfix">
<span> <span>
个人基本信息 企业系统负责人信息
</span> </span>
</div> </div>
<el-row <el-row
@ -235,12 +245,12 @@
type="flex" type="flex"
style="margin-top: 25px" style="margin-top: 25px"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item label="注册手机:" label-width="150px" prop="mobile"> <el-form-item label="注册手机:" prop="mobile">
<el-input <el-input
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.mobile" v-model="inputQuery.mobile"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -251,12 +261,12 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item label="注册人名称:" label-width="150px" prop="realName"> <el-form-item label="注册人名称:" prop="realName">
<el-input <el-input
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.realName" v-model="inputQuery.realName"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -268,12 +278,12 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item label="法人联系电话:" label-width="150px" prop="fmobile"> <el-form-item label="法人联系电话:" prop="fmobile">
<el-input <el-input
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.fmobile" v-model="inputQuery.fmobile"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -285,12 +295,12 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item label="邮箱:" label-width="150px" prop="email"> <el-form-item label="邮箱:" prop="email">
<el-input <el-input
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.email" v-model="inputQuery.email"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -298,23 +308,21 @@
</el-row> </el-row>
<el-row <el-row
:gutter="20" :gutter="20"
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="系统负责人姓名:" label="系统负责人姓名:"
label-width="150px"
prop="name" prop="name"
> >
<el-input <el-input
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.name" v-model="inputQuery.name"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -326,16 +334,16 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="系统负责人电话:" label="系统负责人电话:"
label-width="150px"
prop="tel" prop="tel"
> >
<el-input <el-input
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.tel" v-model="inputQuery.tel"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -346,15 +354,15 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="系统负责人QQ:" label="系统负责人QQ:"
label-width="150px"
prop="qq" prop="qq"
> >
<el-input <el-input
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
splaceholder="请输入内容" splaceholder="请输入内容"
v-model="inputQuery.qq" v-model="inputQuery.qq"
></el-input> ></el-input>
@ -367,16 +375,16 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="系统负责人微信:" label="系统负责人微信:"
label-width="150px"
prop="weChat" prop="weChat"
> >
<el-input <el-input
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.weChat" v-model="inputQuery.weChat"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -388,16 +396,16 @@
class="el-row" class="el-row"
type="flex" type="flex"
> >
<el-col :span="10" class="el-col"> <el-col :span="20" class="el-col">
<el-form-item <el-form-item
label="系统负责人邮箱:" label="系统负责人邮箱:"
label-width="150px"
prop="xemail" prop="xemail"
> >
<el-input <el-input
size="small" size="small"
splaceholder="请输入内容" splaceholder="请输入内容"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
v-model="inputQuery.xemail" v-model="inputQuery.xemail"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -408,12 +416,6 @@
</el-card> </el-card>
<el-card> <el-card>
<div style="float: right; text-align: right; margin-bottom: 8px"> <div style="float: right; text-align: right; margin-bottom: 8px">
<el-button <el-button
@ -421,7 +423,7 @@
size="mini" size="mini"
icon="search" icon="search"
@click="addCert()" @click="addCert()"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
style="text-align: right" style="text-align: right"
>添加资质证书 >添加资质证书
</el-button> </el-button>
@ -446,7 +448,7 @@
<el-table-column label="确认状态" prop="checkStatus" width="120"> <el-table-column label="确认状态" prop="checkStatus" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.checkStatus | statusFilterType"> <el-tag :type="scope.row.checkStatus | statusFilterType">
{{ checkFlag[scope.row.checkStatus]}} {{ checkFlag[scope.row.checkStatus] }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -458,7 +460,7 @@
<el-table-column label="状态" prop="status" width="120"> <el-table-column label="状态" prop="status" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="scope.row.status | statusFilterType"> <el-tag :type="scope.row.status | statusFilterType">
{{ statusFlag[scope.row.status]}} {{ statusFlag[scope.row.status] }}
</el-tag> </el-tag>
</template> </template>
@ -471,22 +473,25 @@
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
@click.native="addCert(scope.row)" @click.native="addCert(scope.row)"
>编辑</el-button >编辑
</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native="showImgViewer(scope.row)" @click.native="showImgViewer(scope.row)"
>预览</el-button >预览
</el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled ="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3" :disabled="inputQuery.ucstatus == 1 || inputQuery.ucstatus ==3"
@click.native="deleteCompanyCert(scope.row)" @click.native="deleteCompanyCert(scope.row)"
>删除</el-button >删除
</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
@ -529,37 +534,29 @@
/> />
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import companyAddCert from "@/views/purchase/cert/supCertAddDialog"; import companyAddCert from "@/views/purchase/cert/supCertAddDialog";
import {insertInitial,saveAllInfo} from "@/api/auth/registComPer"; import {insertInitial, saveAllInfo} from "@/api/auth/registComPer";
import {filterCompanyCert,deleteCert,updateCert} from "@/api/sup/userCert"; import {filterCompanyCert, deleteCert, updateCert} from "@/api/sup/userCert";
import { previewImage } from "@/api/purchase/supCompany"; import {previewImage} from "@/api/purchase/supCompany";
import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import ElImageViewer from "element-ui/packages/image/src/image-viewer";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {encrypts} from "@/api/login"; import {encrypts} from "@/api/login";
export default { export default {
name: "supCompanyEdit", name: "supCompanyEdit",
data() { data() {
return { return {
BASE_URL: process.env.VUE_APP_BASE_API, BASE_URL: process.env.VUE_APP_BASE_API,
inputQuery: { inputQuery: {
ucstatus:0, ucstatus: 0,
formData:{}, formData: {},
}, },
headers: {}, headers: {},
imgViewerVisible: false, imgViewerVisible: false,
@ -567,15 +564,15 @@ export default {
fromOptions: [], fromOptions: [],
classesDisplay: false, classesDisplay: false,
corpLoading: false, corpLoading: false,
mobile:"", mobile: "",
selectedOptions: [], selectedOptions: [],
query:{ query: {
page: 1, page: 1,
limit: 20, limit: 20,
}, },
upId:"", upId: "",
urId:"", urId: "",
ucId:"", ucId: "",
rules: { rules: {
companyName: [ companyName: [
{ {
@ -758,114 +755,117 @@ export default {
created() { created() {
this.yz(); this.yz();
// this.getInfo(); // this.getInfo();
}, },
components: { companyAddCert,ElImageViewer components: {
companyAddCert, ElImageViewer
}, },
methods: { methods: {
onModifySubmit(val){ onModifySubmit(val) {
let mess =""; let mess = "";
if(this.$isNotBlank(val)){ if (this.$isNotBlank(val)) {
mess='审核提交'; mess = '审核提交';
}else{ } else {
mess='草稿保存' mess = '草稿保存'
} }
this.$confirm("是否"+mess, "提示", { this.$refs["inputQuery"].validate((valid) => {
confirmButtonText: "确定", if (valid) {
cancelButtonText: "取消", this.$confirm("是否" + mess, "提示", {
type: "warning", confirmButtonText: "确定",
}).then(()=>{ cancelButtonText: "取消",
this.inputQuery.upId=this.upId; type: "warning",
this.inputQuery.urId=this.urId; }).then(() => {
this.inputQuery.ucId=this.ucId; this.inputQuery.upId = this.upId;
this.inputQuery.list=this.certList; this.inputQuery.urId = this.urId;
if(this.$isNotBlank(val)){ this.inputQuery.ucId = this.ucId;
this.inputQuery.key=val; this.inputQuery.list = this.certList;
} if (this.$isNotBlank(val)) {
saveAllInfo(this.inputQuery) this.inputQuery.key = val;
.then((res)=>{ }
if(res.code = 20000){ saveAllInfo(this.inputQuery)
this.$message.success("提交成功"); .then((res) => {
this.getInfo(); if (res.code = 20000) {
}else{ this.$message.success("提交成功");
this.$message.error(res.message); this.getInfo();
} } else {
}) this.$message.error(res.message);
}) }
})
})
}
});
}, },
deleteCompanyCert(row) {
deleteCompanyCert(row){
this.$confirm("是否删除?", "提示", { this.$confirm("是否删除?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(()=>{ }).then(() => {
this.certLoading = true; this.certLoading = true;
let tquery = { let tquery = {
id: row.id, id: row.id,
filePath: row.filePath, filePath: row.filePath,
}; };
deleteCert(tquery).then((res)=>{ deleteCert(tquery).then((res) => {
this.certLoading = false; this.certLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
this.$message({ this.$message({
type: "success", type: "success",
message: "删除成功!", message: "删除成功!",
}); });
this. getCert(); this.getCert();
}else{ } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}).catch(()=>{ }).catch(() => {
this.certLoading = false; this.certLoading = false;
}) })
}).catch(()=>{ }).catch(() => {
}) })
}, },
yz(){ yz() {
var phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/; var phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/;
let param={ let param = {
mobile:this.$route.query.mobile, mobile: this.$route.query.mobile,
captcha:this.$route.query.captcha, captcha: this.$route.query.captcha,
} }
encrypts(param).then((res)=>{ encrypts(param).then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
if(phoneReg.test(res.data.mobile) && res.data.captcha.length == 6) { if (phoneReg.test(res.data.mobile) && res.data.captcha.length == 6) {
this.mobile = res.data.mobile; this.mobile = res.data.mobile;
this.inputQuery.mobile = res.data.mobile; this.inputQuery.mobile = res.data.mobile;
this.getInfo(); this.getInfo();
} }
}else{ } else {
this.$router.push({path:"/404"}) this.$router.push({path: "/404"})
} }
}) })
}, },
getInfo(){ getInfo() {
let param ={ let param = {
mobile :this.mobile mobile: this.mobile
} }
insertInitial(param) insertInitial(param)
.then((res)=>{ .then((res) => {
if(!isBlank(res.data['registComPerResponse'])){ if (!isBlank(res.data['registComPerResponse'])) {
this.inputQuery =res.data['registComPerResponse']; this.inputQuery = res.data['registComPerResponse'];
// this.upId=res.data['registComPerResponse'].upId; // this.upId=res.data['registComPerResponse'].upId;
this.urId=res.data['registComPerResponse'].id; this.urId = res.data['registComPerResponse'].id;
this.ucId=res.data['registComPerResponse'].ucId; this.ucId = res.data['registComPerResponse'].ucId;
}else{ } else {
// this.upId=res.data['upId']; // this.upId=res.data['upId'];
this.urId=res.data['urId']; this.urId = res.data['urId'];
this.ucId=res.data['ucId']; this.ucId = res.data['ucId'];
} }
this.getCert(); this.getCert();
}) })
@ -873,28 +873,28 @@ export default {
}, },
getCert(){ getCert() {
this.query.businessId=this.ucId; this.query.businessId = this.ucId;
filterCompanyCert( this.query) filterCompanyCert(this.query)
.then((res)=>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.certList= res.data.list || []; this.certList = res.data.list || [];
this.certTotal = res.data.total; this.certTotal = res.data.total;
} }
}) })
}, },
certHandleCurrentChange(val){ certHandleCurrentChange(val) {
this.query.page = val.page; this.query.page = val.page;
this.getCert(); this.getCert();
}, },
addCert(row){ addCert(row) {
if (this.$isNotBlank(row)) { if (this.$isNotBlank(row)) {
this.formName = 2; this.formName = 2;
this.inputQuery.formData = row; this.inputQuery.formData = row;
this.editTye = 2; this.editTye = 2;
}else{ } else {
this.formName = 1; this.formName = 1;
this.inputQuery.formData = {}; this.inputQuery.formData = {};
this.editTye = 1; this.editTye = 1;
@ -909,7 +909,7 @@ export default {
this.addCertVisible = false; this.addCertVisible = false;
}, },
showImgViewer(row){ showImgViewer(row) {
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="; "/udiwms/image/register/file/getImage?type=image2&name=";
@ -976,9 +976,8 @@ export default {
} }
.el-card { .el-card {
margin: 15px 25%; margin: 15px 20%;
width: 50%; width: 60%;
/*transition: all .5s;*/ /*transition: all .5s;*/
} }

@ -3,15 +3,15 @@
<el-card class="el-card"> <el-card class="el-card">
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" v-show="showSearch"> <el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" v-show="showSearch">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="8">
<el-form-item class="query-form-item" label="接口名称:"> <el-form-item class="query-form-item" label="接口分类名称:">
<el-input v-model="filterQuery.name" placeholder="接口名称" <el-input v-model="filterQuery.name" placeholder="接口分类名称"
style="width: 90%" style="width: 90%"
clearable="true"></el-input> clearable="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="8">
<el-form-item class="query-form-item" label="创建时间:"> <el-form-item class="query-form-item" label="创建时间:">
<el-date-picker <el-date-picker
:picker-options="pickerOptions" :picker-options="pickerOptions"
@ -28,7 +28,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="8">
<el-form-item class="query-form-item" label="更新时间:"> <el-form-item class="query-form-item" label="更新时间:">
<el-date-picker <el-date-picker
:picker-options="pickerOptions" :picker-options="pickerOptions"
@ -72,18 +72,13 @@
border border
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="接口分类名称" prop="name" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="接口分类名称" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip>
<el-table-column label="创建时间" prop="createTime" width="140" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="更新时间" prop="updateTime" width="140" show-overflow-tooltip> <el-table-column label="更新时间" prop="updateTime" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="reemark" width="140" show-overflow-tooltip> <el-table-column label="备注" prop="reemark" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -123,6 +118,7 @@
<el-tabs type="border-card" style="margin: 15px"> <el-tabs type="border-card" style="margin: 15px">
<!--单据业务详情--> <!--单据业务详情-->
<el-tab-pane> <el-tab-pane>
<span slot="label"> {{ currentRow == null ? '' : currentRow.name }}</span>
<el-form :inline="true" :model="bizQuery" class="query-form" size="mini"> <el-form :inline="true" :model="bizQuery" class="query-form" size="mini">
<el-form-item class="query-form-item" label="接口名称:"> <el-form-item class="query-form-item" label="接口名称:">
<el-input <el-input
@ -156,46 +152,47 @@
<el-table-column <el-table-column
label="接口名称" label="接口名称"
prop="name" prop="name"
width="150"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="接口地址" label="接口地址"
width="150"
prop="path" prop="path"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="权限标识" label="权限标识"
width="100"
prop="perms" prop="perms"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="接口文档" label="接口文档"
prop="docUrl" prop="docUrl"
width="100"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link v-if="scope.row.docUrl != '' && scope.row.docUrl != null" type="primary" :href="scope.row.docUrl" target="_blank"></el-link> <el-link v-if="scope.row.docUrl != '' && scope.row.docUrl != null" type="primary" :href="scope.row.docUrl"
target="_blank">文档链接
</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="createTime" prop="createTime"
width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="更新时间" label="更新时间"
prop="updateTime" prop="updateTime"
width="100"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="备注" label="备注"
prop="remark" prop="remark"
width="100"
></el-table-column>
></el-table-column>
<el-table-column label="操作" width="160" fixed="right"> <el-table-column label="操作" width="160" fixed="right">
@ -245,13 +242,13 @@
> >
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="接口名称" prop="name" class="query-form-item"> <el-form-item label="接口名称" prop="name" class="query-form-item">
<el-input <el-input
v-model="subData.name" v-model="subData.name"
style="width: 80%" style="width: 80%"
auto-complete="off" auto-complete="off"
placeholder="请输入接口名称" placeholder="请输入接口名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -327,7 +324,6 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button> <el-button @click.native="hideForm">取消</el-button>
@ -342,8 +338,7 @@
</template> </template>
<script> <script>
import { getSortList,insertLicense,deleteLicense,updateLicense } from "@/api/system/sysicense"; import {getSortList, insertLicense, deleteLicense, updateLicense} from "@/api/system/sysicense";
const formJson = { const formJson = {
@ -357,11 +352,12 @@ export default {
name: "IoSupSearchOrder", name: "IoSupSearchOrder",
data() { data() {
return { return {
check:{}, check: {},
subData: {}, subData: {},
formName: null, formName: null,
subFormVisible: false, subFormVisible: false,
showSearch: true, showSearch: true,
currentRow: null,
filterQuery: { filterQuery: {
name: "", name: "",
page: 1, page: 1,
@ -369,7 +365,7 @@ export default {
startTime: null, startTime: null,
endTime: null, endTime: null,
startAduditTime: null, startAduditTime: null,
endAduditTime:null, endAduditTime: null,
}, },
invList: [], invList: [],
@ -459,7 +455,7 @@ export default {
}, },
components: {}, components: {},
methods: { methods: {
onReset(){ onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
@ -470,8 +466,8 @@ export default {
startTime: null, startTime: null,
endTime: null, endTime: null,
startAduditTime: null, startAduditTime: null,
endAduditTime:null, endAduditTime: null,
parentId:0, parentId: 0,
}; };
this.actDateRange = []; this.actDateRange = [];
@ -479,9 +475,9 @@ export default {
this.getList(); this.getList();
}, },
onBizReset(){ onBizReset() {
this.bizQuery = { this.bizQuery = {
parentId: this.bizQuery.parentId, parentId: this.bizQuery.parentId,
name: null, name: null,
page: 1, page: 1,
limit: 10 limit: 10
@ -490,18 +486,16 @@ export default {
}, },
onBizSubmit(){ onBizSubmit() {
this.bizQuery.page = 1; this.bizQuery.page = 1;
this.getlower(); this.getlower();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;
}, },
onSubmit(){ onSubmit() {
this.loading = true; this.loading = true;
if (this.actDateRange !== null) { if (this.actDateRange !== null) {
this.filterQuery.startTime = this.actDateRange[0]; this.filterQuery.startTime = this.actDateRange[0];
@ -524,7 +518,7 @@ export default {
// //
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.parentId=0; this.filterQuery.parentId = 0;
getSortList(this.filterQuery) getSortList(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -542,17 +536,18 @@ export default {
this.total = 0; this.total = 0;
}); });
}, },
handleSelectionChange(val){ handleSelectionChange(val) {
this.bizQuery.page=1; this.bizQuery.page = 1;
this.bizQuery.parentId=val.id; this.bizQuery.parentId = val.id;
this.currentRow = val;
this.getlower(); this.getlower();
}, },
getlower(){ getlower() {
this.bizDetailLoading=true; this.bizDetailLoading = true;
getSortList(this.bizQuery).then((res)=>{ getSortList(this.bizQuery).then((res) => {
this.bizDetailLoading=false; this.bizDetailLoading = false;
if(res.code == 20000){ if (res.code == 20000) {
this.bizDetailList = res.data.list || []; this.bizDetailList = res.data.list || [];
this.bizTotal = res.data.total || 0; this.bizTotal = res.data.total || 0;
} else { } else {
@ -560,7 +555,7 @@ export default {
this.bizDetailList = []; this.bizDetailList = [];
this.bizTotal = 0; this.bizTotal = 0;
} }
}).catch((error)=>{ }).catch((error) => {
this.bizDetailLoading = false; this.bizDetailLoading = false;
this.$message.error(error.message); this.$message.error(error.message);
this.bizDetailList = []; this.bizDetailList = [];
@ -569,106 +564,104 @@ export default {
}) })
}, },
rollback(row,val){ rollback(row, val) {
this.$confirm("此操作将删除该接口信息, 是否继续?", "提示", { this.$confirm("此操作将删除该接口信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(()=>{ }).then(() => {
let param={ let param = {
parentId:row.parentId, parentId: row.parentId,
id:row.id id: row.id
} }
deleteLicense(param).then((res)=>{ deleteLicense(param).then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
if(val == 1){ if (val == 1) {
this.getlower(); this.getlower();
} }
this.getList(); this.getList();
}else{ } else {
this.$message.error(res.message); this.$message.error(res.message);
} }
}) })
}).catch(()=>{ }).catch(() => {
}) })
}, },
upload(row,formName){ upload(row, formName) {
this.formName = formName; this.formName = formName;
this.check=row; this.check = row;
this.subData=row; this.subData = row;
this.subFormVisible=true; this.subFormVisible = true;
}, },
reviewOrder(row,formName){ reviewOrder(row, formName) {
this.formName = formName; this.formName = formName;
this.check=row; this.check = row;
this.subData=row; this.subData = row;
this.subFormVisible=true; this.subFormVisible = true;
}, },
printOrder(row,formName){ printOrder(row, formName) {
this.formName = formName; this.formName = formName;
this.check=row; this.check = row;
this.subData={}; this.subData = {};
this.subFormVisible=true; this.subFormVisible = true;
}, },
add(data,formName){ add(data, formName) {
this.subFormVisible=true; this.subFormVisible = true;
this.subData={}; this.subData = {};
this.formName = formName; this.formName = formName;
this.check=data; this.check = data;
}, },
hideForm(){ hideForm() {
this.subFormVisible=false; this.subFormVisible = false;
}, },
forInvSubmit(){ forInvSubmit() {
if(this.formName === "add" && this.check == null){ if (this.formName === "add" && this.check == null) {
// //
this.subData.parentId=0; this.subData.parentId = 0;
insertLicense(this.subData) insertLicense(this.subData)
.then((res)=>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("添加成功!") this.$message.success("添加成功!")
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
} }
}) })
}else if(this.formName === "add" && this.check != null){ } else if (this.formName === "add" && this.check != null) {
// //
this.subData.parentId=this.check.id; this.subData.parentId = this.check.id;
insertLicense(this.subData) insertLicense(this.subData)
.then((res)=>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("添加成功!") this.$message.success("添加成功!")
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
} }
}) })
}else if(this.formName === "edit" && this.check.parentId == 0){ } else if (this.formName === "edit" && this.check.parentId == 0) {
// //
updateLicense(this.subData).then((res)=>{ updateLicense(this.subData).then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("修改成功!") this.$message.success("修改成功!")
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
} }
}) })
}else{ } else {
updateLicense(this.subData).then((res)=>{ updateLicense(this.subData).then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("修改成功!") this.$message.success("修改成功!")
this.subFormVisible=false; this.subFormVisible = false;
this.getlower(); this.getlower();
} }
@ -677,19 +670,16 @@ export default {
} }
}, },
}, },
filters: {}, filters: {},
mounted() { mounted() {
}, },
created() { created() {
this.getList(); this.getList();
}, },
}; };
</script> </script>

@ -1,8 +1,8 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form :inline="true" :model="filterQuery" class="query-form" label-width="100px" size="mini"> <el-form :inline="true" :model="filterQuery" class="query-form" label-width="100px" size="mini">
<el-form-item class="query-form-item" label="角色名称:" prop="name"> <el-form-item class="query-form-item" label="角色名称:" prop="name">
<el-input <el-input
v-model="filterQuery.name" v-model="filterQuery.name"
clearable clearable
@ -15,24 +15,27 @@
placeholder="请选择状态" placeholder="请选择状态"
style="width: 90%" style="width: 90%"
> >
<el-option label="全部" value="" /> <el-option label="全部" value=""/>
<el-option label="启用" :value="0" /> <el-option label="启用" :value="0"/>
<el-option label="禁用" :value="1" /> <el-option label="禁用" :value="1"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="margin-left: 10px; display: flex"> <el-button-group style="margin-left: 10px; display: flex">
<el-button type="primary" icon="el-icon-refresh" @click="onReset" <el-button type="primary" icon="el-icon-refresh" @click="onReset"
>重置</el-button >重置
</el-button
> >
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit"
>查询</el-button >查询
</el-button
> >
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@click="handleSubForm(null, 'add')" @click="handleSubForm(null, 'add')"
>新增</el-button >新增
</el-button
> >
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
@ -42,20 +45,18 @@
border border
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="角色名称" prop="name" show-overflow-tooltip width="140"></el-table-column> <el-table-column label="角色名称" prop="name" show-overflow-tooltip></el-table-column>
<el-table-column label="编码" prop="code" width="140" show-overflow-tooltip> <el-table-column label="编码" prop="code" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="状态" prop="status" width="140" show-overflow-tooltip> <el-table-column label="状态" prop="status" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag> <el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createTime" width="140" show-overflow-tooltip> <el-table-column label="创建时间" prop="createTime" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -110,7 +111,7 @@
> >
<el-row :gutter="20" class="el-row" type="flex"> <el-row :gutter="20" class="el-row" type="flex">
<el-col :span="12" class="el-col"> <el-col :span="12" class="el-col">
<el-form-item label="角色名称" prop="name" class="query-form-item"> <el-form-item label="角色名称" prop="name" class="query-form-item">
<el-input <el-input
v-model="subData.name" v-model="subData.name"
style="width: 80%" style="width: 80%"
@ -149,7 +150,6 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button> <el-button @click.native="hideForm">取消</el-button>
@ -160,8 +160,7 @@
</el-dialog> </el-dialog>
<el-dialog title="授权" :visible.sync="roleMenuDialog.visible">
<el-dialog title="授权" :visible.sync = "roleMenuDialog.visible">
<el-tree <el-tree
:data="roleMenuDialog.detail" :data="roleMenuDialog.detail"
show-checkbox show-checkbox
@ -182,11 +181,10 @@
</template> </template>
<script> <script>
import {getRolelist, insertRole, updateRole, deleteRole, treeselect,saveRoleMenu} import {getRolelist, insertRole, updateRole, deleteRole, treeselect, saveRoleMenu}
from "@/api/system/srole" from "@/api/system/srole"
const formJson = { const formJson = {
site_id: "", site_id: "",
site_name: "", site_name: "",
@ -198,9 +196,9 @@ export default {
name: "IoSupSearchOrder", name: "IoSupSearchOrder",
data() { data() {
return { return {
rId:"", rId: "",
visible:false, visible: false,
check:{}, check: {},
subData: {}, subData: {},
formName: null, formName: null,
subFormVisible: false, subFormVisible: false,
@ -210,18 +208,18 @@ export default {
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
status:"", status: "",
}, },
status: { status: {
0: "正常", 0: "正常",
1: "禁用", 1: "禁用",
}, },
roleMenuDialog:{ roleMenuDialog: {
visible: false, visible: false,
detail:{}, detail: {},
roleId:0, roleId: 0,
checkKeys:[], checkKeys: [],
defaultProps: { defaultProps: {
children: "children", children: "children",
label: "name" label: "name"
@ -283,7 +281,7 @@ export default {
}, },
components: {}, components: {},
methods: { methods: {
onReset(){ onReset() {
this.$router.push({ this.$router.push({
path: "", path: "",
}); });
@ -293,7 +291,7 @@ export default {
limit: 10, limit: 10,
startTime: null, startTime: null,
endTime: null, endTime: null,
status:"", status: "",
}; };
this.actDateRange = []; this.actDateRange = [];
this.auditDateRange = []; this.auditDateRange = [];
@ -301,10 +299,7 @@ export default {
}, },
onSubmit() {
onSubmit(){
this.loading = true; this.loading = true;
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
@ -330,88 +325,86 @@ export default {
}); });
}, },
hideForm(){ hideForm() {
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
}, },
reviewOrder(data,formName){ reviewOrder(data, formName) {
this.subFormVisible=true; this.subFormVisible = true;
this.formName=formName; this.formName = formName;
this.subData=data; this.subData = data;
}, },
handleSubForm(data,formName){ handleSubForm(data, formName) {
this.formName=formName; this.formName = formName;
this.subData={}; this.subData = {};
this.subFormVisible=true; this.subFormVisible = true;
}, },
forInvSubmit(){ forInvSubmit() {
if(this.formName === "add"){ if (this.formName === "add") {
insertRole(this.subData) insertRole(this.subData)
.then((res) =>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("添加成功!"); this.$message.success("添加成功!");
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
} }
}) })
}else{ } else {
updateRole(this.subData) updateRole(this.subData)
.then((res) =>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("修改成功!"); this.$message.success("修改成功!");
this.subFormVisible=false; this.subFormVisible = false;
this.getList(); this.getList();
} }
}) })
} }
}, },
rollback(row){ rollback(row) {
this.$confirm("此操作将删除角色,是否继续?","提示",{ this.$confirm("此操作将删除角色,是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(()=>{ }).then(() => {
this.subData=row; this.subData = row;
deleteRole(this.subData) deleteRole(this.subData)
.then((res)=>{ .then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("删除成功!"); this.$message.success("删除成功!");
this.getList(); this.getList();
} }
})
})
})
})
}, },
printOrder(id){ printOrder(id) {
this.rId=id; this.rId = id;
let param={ let param = {
roleId:id roleId: id
} }
treeselect(param).then((res)=>{ treeselect(param).then((res) => {
this.roleMenuDialog.detail = res.data.data.menuTrees; this.roleMenuDialog.detail = res.data.data.menuTrees;
this.roleMenuDialog.checkKeys = res.data.data.roleMenuIds; this.roleMenuDialog.checkKeys = res.data.data.roleMenuIds;
this.roleMenuDialog.visible=true; this.roleMenuDialog.visible = true;
}) })
}, },
saveRoleMenu(){ saveRoleMenu() {
let param={ let param = {
roleId: this.rId, roleId: this.rId,
menuIds:this.getMenuAllCheckedKeys() menuIds: this.getMenuAllCheckedKeys()
} }
saveRoleMenu(param).then((res)=>{ saveRoleMenu(param).then((res) => {
if(res.code == 20000){ if (res.code == 20000) {
this.$message.success("修改成功!"); this.$message.success("修改成功!");
this.roleMenuDialog.visible = false; this.roleMenuDialog.visible = false;
this.getList(); this.getList();
@ -443,7 +436,7 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
}, },
}; };
</script> </script>

Loading…
Cancel
Save