Commit 2b1f187a by xue_wengang

用户权限

parent 0fa14a1b
...@@ -24,7 +24,7 @@ if ( ...@@ -24,7 +24,7 @@ if (
}else { }else {
//------------------------------服务器路径**测试**---------------------------------- //------------------------------服务器路径**测试**----------------------------------
base.alyIP = "/apialy"; base.alyIP = "/apialy";
base.alyIP2 = "/apiAjzb"; base.alyIP2 = "/apiAjzbXzGaw";
base.alyIP3 = "/apialy"; base.alyIP3 = "/apialy";
base.alyIP4 = 'http://39.99.155.173:8007' // 脑图链接 base.alyIP4 = 'http://39.99.155.173:8007' // 脑图链接
base.alyIP5 = 'http://39.99.155.173:8003' // 画像工厂 案件 base.alyIP5 = 'http://39.99.155.173:8003' // 画像工厂 案件
...@@ -35,9 +35,9 @@ if ( ...@@ -35,9 +35,9 @@ if (
// base.alyIP = "/apiXzxtGaw"; // base.alyIP = "/apialy";
// base.alyIP2 = "/apiAjzbGaw"; // base.alyIP2 = "/apiAjzbGaw";
// base.alyIP3 = "/apiXzxtGaw"; // base.alyIP3 = "/apialy";
// base.alyIP4 = 'http://74.6.54.153:8005' // 脑图链接 // base.alyIP4 = 'http://74.6.54.153:8005' // 脑图链接
// base.alyIP5 = 'http://74.6.54.153:8003' // 画像工厂 案件 // base.alyIP5 = 'http://74.6.54.153:8003' // 画像工厂 案件
// base.alyIP6 = 'http://10.184.14.193:9002' // 画像工厂 案件 // base.alyIP6 = 'http://10.184.14.193:9002' // 画像工厂 案件
......
...@@ -395,16 +395,17 @@ ...@@ -395,16 +395,17 @@
> >
</el-radio-group> </el-radio-group>
<div v-show="!!objectFs.unitcode"> <div v-show="!!objectFs.unitcode">
已选定的接受人:{{objectFs.unitname}}的{{objectFs.trueName}} 已选定的接受人:{{ objectFs.unitname }}的{{
objectFs.trueName
}}
<el-button <el-button
type="edit" type="edit"
size="mini" size="mini"
style="margin-left: 5px; margin-right: 0 !important" style="margin-left: 5px; margin-right: 0 !important"
@click="$emit('insertMessage', true)" @click="$emit('insertMessage', true)"
>更换接受员</el-button >更换接受员</el-button
> >
</div> </div>
</div> </div>
<div class="zdyInputW" v-else-if="item.type == 'radioBotton'"> <div class="zdyInputW" v-else-if="item.type == 'radioBotton'">
<el-radio-group <el-radio-group
...@@ -454,7 +455,7 @@ ...@@ -454,7 +455,7 @@
:sendId="item.id" :sendId="item.id"
:formData="formLabelAlign" :formData="formLabelAlign"
:currentItem="item" :currentItem="item"
@getDialogSeleted='getDialogSeleted' @getDialogSeleted="getDialogSeleted"
/> />
</div> </div>
...@@ -1027,7 +1028,8 @@ ...@@ -1027,7 +1028,8 @@
class="finish examine" class="finish examine"
v-if=" v-if="
pageBs == 'adjustRlqbxs' && pageBs == 'adjustRlqbxs' &&
((!formLabelAlign.spbz || formLabelAlign.spbz == '1') && formLabelAlign.editing != true) (!formLabelAlign.spbz || formLabelAlign.spbz == '1') &&
formLabelAlign.editing != true
" "
>保存并提交审核</el-button >保存并提交审核</el-button
> >
...@@ -1047,7 +1049,7 @@ ...@@ -1047,7 +1049,7 @@
<script> <script>
import LazySelectTreeDialog from "./lazy_treeCode_components.vue"; import LazySelectTreeDialog from "./lazy_treeCode_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue"; import SelectTreeDialog from "@c/treeCode_components.vue";
import { parse } from 'qs'; import { parse } from "qs";
export default { export default {
name: "formCommonPage", name: "formCommonPage",
components: { components: {
...@@ -1103,7 +1105,7 @@ export default { ...@@ -1103,7 +1105,7 @@ export default {
fileLists: {}, fileLists: {},
imageUrl: {}, imageUrl: {},
shade: false, shade: false,
unitname: '', unitname: "",
}; };
}, },
created() { created() {
...@@ -1286,7 +1288,10 @@ export default { ...@@ -1286,7 +1288,10 @@ export default {
if (item.type !== "file") { if (item.type !== "file") {
//1.1二级字典处理 //1.1二级字典处理
if (item.type == "lazyCodeTree" || item.type == "codeTree") { if (item.type == "lazyCodeTree" || item.type == "codeTree") {
if (item.multiple && self.formLabelAlign[item.id].length > 1) { if (
item.multiple &&
self.formLabelAlign[item.id].length > 1
) {
let str = `#${self.formLabelAlign[item.id].join("#")}`; let str = `#${self.formLabelAlign[item.id].join("#")}`;
if (item.id == "zljsdwdm" || item.id == "kyxsbshlx") { if (item.id == "zljsdwdm" || item.id == "kyxsbshlx") {
str = self.formLabelAlign[item.id].join(","); str = self.formLabelAlign[item.id].join(",");
...@@ -1343,7 +1348,6 @@ export default { ...@@ -1343,7 +1348,6 @@ export default {
} }
//1.2普通字段处理 //1.2普通字段处理
else { else {
params.append( params.append(
objStr + item.id, objStr + item.id,
self.formLabelAlign[item.id] self.formLabelAlign[item.id]
...@@ -1529,14 +1533,14 @@ export default { ...@@ -1529,14 +1533,14 @@ export default {
self.formLabelAlign[subItem.id].forEach((val5, index) => { self.formLabelAlign[subItem.id].forEach((val5, index) => {
//遍历每一个数组的值 //遍历每一个数组的值
for (var ite in val5) { for (var ite in val5) {
debugger debugger;
//数组里对象 在遍历对象 //数组里对象 在遍历对象
if (val5[ite]) { if (val5[ite]) {
//如果有值的话 //如果有值的话
var currentc = subItem.list[0].name.find((item) => { var currentc = subItem.list[0].name.find((item) => {
return item.id == ite; return item.id == ite;
}); });
var currentcs = subItem.list[0].name.find((item) => { var currentcs = subItem.list[0].name.find((item) => {
return item.ids == ite; return item.ids == ite;
}); });
if (currentc && currentc.type == "date") { if (currentc && currentc.type == "date") {
...@@ -1573,37 +1577,35 @@ export default { ...@@ -1573,37 +1577,35 @@ export default {
val5[ite] val5[ite]
); );
} }
} else if ( currentcs && } else if (currentcs && currentcs.type == "file") {
currentcs.type == "file") { if (val5[ite] instanceof Array) {
if (val5[ite] instanceof Array) { val5[ite].forEach(
val5[ite].forEach( (fuJianMessageItem, fuJianMessageIndex) => {
(fuJianMessageItem, fuJianMessageIndex) => { for (var fielMessageName in fuJianMessageItem) {
for (var fielMessageName in fuJianMessageItem) { if (fuJianMessageItem[fielMessageName]) {
if (fuJianMessageItem[fielMessageName]) { params.append(
params.append( subItem.id +
subItem.id + "[" +
"[" + index +
index + "]." +
"]." + ite +
ite + "[" +
"[" + fuJianMessageIndex +
fuJianMessageIndex + "]." +
"]." + fielMessageName,
fielMessageName, fuJianMessageItem[fielMessageName]
fuJianMessageItem[fielMessageName] );
); }
} }
} }
} );
);
}
} }
else if (ite == "xxzjbh") { } else if (ite == "xxzjbh") {
params.append( params.append(
subItem.id + "[" + index + "]." + ite, subItem.id + "[" + index + "]." + ite,
val5[ite] val5[ite]
); );
} else if (currentc && currentc.type != "file"){ } else if (currentc && currentc.type != "file") {
console.log( console.log(
"3)有子级表单数据处理." + "3)有子级表单数据处理." +
subItem.id + subItem.id +
...@@ -1628,7 +1630,9 @@ export default { ...@@ -1628,7 +1630,9 @@ export default {
var fileObject = {}; var fileObject = {};
for (var fileItem in self.fileLists) { for (var fileItem in self.fileLists) {
for (var i = 0; i < self.fileLists[fileItem].length; i++) { for (var i = 0; i < self.fileLists[fileItem].length; i++) {
if (self.fileLists[fileItem][i].raw) { if (self.pageBs == "addsqfbzl") {
params.append("file", self.fileLists[fileItem][i].raw);
} else if (self.fileLists[fileItem][i].raw) {
if (fileObject[fileItem]) { if (fileObject[fileItem]) {
fileObject[fileItem].push(self.fileLists[fileItem][i].raw); fileObject[fileItem].push(self.fileLists[fileItem][i].raw);
} else { } else {
...@@ -1740,11 +1744,11 @@ export default { ...@@ -1740,11 +1744,11 @@ export default {
}); });
console.log(this.formLabelAlign); console.log(this.formLabelAlign);
}, },
getDialogSeleted(label){ getDialogSeleted(label) {
// debugger // debugger
// this.unitname = label // this.unitname = label
// console.log('sadasdasdasdasdasda',label); // console.log('sadasdasdasdasdasda',label);
this.$emit('getDialogSeletesd', label) this.$emit("getDialogSeletesd", label);
}, },
handleChange(file, fileList, item, parentItem, itemIndex) { handleChange(file, fileList, item, parentItem, itemIndex) {
var self = this; var self = this;
...@@ -2019,7 +2023,7 @@ export default { ...@@ -2019,7 +2023,7 @@ export default {
axios axios
.get(`JsonData/${val5.codeTree}.json`) .get(`JsonData/${val5.codeTree}.json`)
.then((res) => { .then((res) => {
debugger debugger;
self.$set(val5, "codeOptions", res.data.data.rows); self.$set(val5, "codeOptions", res.data.data.rows);
}) })
.catch((err) => { .catch((err) => {
...@@ -2040,9 +2044,8 @@ export default { ...@@ -2040,9 +2044,8 @@ export default {
axios axios
.get(`JsonData/${val2.codeTree}.json`) .get(`JsonData/${val2.codeTree}.json`)
.then((res) => { .then((res) => {
debugger debugger;
self.$set(val2, "codeOptions", res.data.data.rows); self.$set(val2, "codeOptions", res.data.data.rows);
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
@editMenu="editMenu" @editMenu="editMenu"
@selectionChange="selectionChange" @selectionChange="selectionChange"
> >
<template #btnGroup="scope"> <template #btnGroup="scope" v-if="isPremission >= 0">
<span style="margin-right: 16px" @click="edit(scope.scope)" class="edit">编辑</span> <span style="margin-right: 16px" @click="edit(scope.scope)" class="edit">编辑</span>
<span @click="dele(scope.scope)" class="dele">删除</span> <span @click="dele(scope.scope)" class="dele">删除</span>
</template> </template>
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
this.isPremission = JSON.parse( this.isPremission = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).permission.findIndex((item) => item == "A0000"); ).permission.split(',').findIndex((item) => item == "A0000");
this.getTree(); this.getTree();
}, },
methods: { methods: {
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
@toInfor="toInfor" @toInfor="toInfor"
@selectionChange="selectionChange" @selectionChange="selectionChange"
> >
<template #listOperation="scope" v-if="isPremission"> <template #listOperation="scope" v-if="isPremission >= 0">
<span class="hbyps" @click="editMenu(scope.scope)"> 菜单配置</span> <span class="hbyps" @click="editMenu(scope.scope)"> 菜单配置</span>
</template> </template>
<template #btnGroup="scope"> <template #btnGroup="scope" v-if="isPremission >= 0">
<span style="margin-right: 16px" @click="edit(scope.scope)" class="edit">编辑</span> <span style="margin-right: 16px" @click="edit(scope.scope)" class="edit">编辑</span>
<span @click="dele(scope.scope)" class="dele">删除</span> <span @click="dele(scope.scope)" class="dele">删除</span>
</template> </template>
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
this.isPremission = JSON.parse( this.isPremission = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).permission.findIndex((item) => item == "A0000"); ).permission.split(',').findIndex((item) => item == "A0000");
this.getTree(); this.getTree();
}, },
methods: { methods: {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
@selectionChange="selectionChange" @selectionChange="selectionChange"
@handleSwitch="handleSwitch" @handleSwitch="handleSwitch"
> >
<template #listOperation="scope" v-if="isPremission"> <template #listOperation="scope" v-if="isPremission >= 0">
<span class="hbyps" @click="editRole(scope.scope)"> 角色配置</span> <span class="hbyps" @click="editRole(scope.scope)"> 角色配置</span>
</template> </template>
<template #btnGroup="scope"> <template #btnGroup="scope">
...@@ -27,9 +27,12 @@ ...@@ -27,9 +27,12 @@
@click="editMa(scope.scope)" @click="editMa(scope.scope)"
class="edit" class="edit"
style="margin-right: 16px" style="margin-right: 16px"
v-if="isPremission >= 0"
>修改密码</span >修改密码</span
> >
<span @click="dele(scope.scope)" class="dele">删除</span> <span @click="dele(scope.scope)" class="dele" v-if="isPremission >= 0"
>删除</span
>
<span @click="edit(scope.scope)" class="edit">编辑</span> <span @click="edit(scope.scope)" class="edit">编辑</span>
</template> </template>
</right-content> </right-content>
...@@ -214,15 +217,21 @@ export default { ...@@ -214,15 +217,21 @@ export default {
//全选 //全选
checkAll: false, checkAll: false,
isPremission: false, isPremission: false,
identitycard: "",
}; };
}, },
created() { created() {
this.$store.commit("user/SET_Menu", this.Menu); this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_LeftMenu", this.leftMenus); this.$store.commit("user/SET_LeftMenu", this.leftMenus);
this.$store.commit("user/SET_Header", this.header); this.$store.commit("user/SET_Header", this.header);
this.isPremission = JSON.parse( this.isPremission = JSON.parse(sessionStorage.getItem("userInfo"))
.permission.split(",")
.findIndex((item) => item == "A0000");
debugger;
this.identitycard = JSON.parse(
sessionStorage.getItem("userInfo") sessionStorage.getItem("userInfo")
).permission.findIndex((item) => item == "A0000"); ).identitycard;
debugger;
this.getTree(); this.getTree();
}, },
methods: { methods: {
...@@ -331,12 +340,16 @@ export default { ...@@ -331,12 +340,16 @@ export default {
}); });
}, },
edit(obj) { edit(obj) {
this.$router.pushToTab({ if (this.identitycard == obj.row.identitycard) {
path: "/addXg", this.$router.pushToTab({
query: { path: "/addXg",
xxzjbh: obj.row.id, query: {
}, xxzjbh: obj.row.id,
}); },
});
}else{
this.$message.error('暂无权限,只能修改本人信息')
}
}, },
dele(obj) { dele(obj) {
this.$confirm("此操作将永久删除该用户, 是否继续?", "提示", { this.$confirm("此操作将永久删除该用户, 是否继续?", "提示", {
......
...@@ -189,12 +189,7 @@ export default { ...@@ -189,12 +189,7 @@ export default {
} }
params.append("xsbh", this.xsbh); params.append("xsbh", this.xsbh);
params.append("xsType", this.xsType); params.append("xsType", this.xsType);
params.append("module", this.module); params.append("module", this.module);
for(let i = 0;i <this.$refs.formCompontent.fileLists.file.length;i++){
params.append("file",this.$refs.formCompontent.fileLists.file[i].raw);
}
doAddZczlxx(params).then((res) => { doAddZczlxx(params).then((res) => {
if (res.success && res.code == 200) { if (res.success && res.code == 200) {
this.$alert("保存成功!", "提示", { this.$alert("保存成功!", "提示", {
......
...@@ -66,14 +66,14 @@ module.exports = { ...@@ -66,14 +66,14 @@ module.exports = {
'^/apialy': '/' '^/apialy': '/'
} }
}, },
"/apiAjzbXzGaw": { // "/apiAjzbXzGaw": {
target: "https://155.1.33.10:20002/", // 基础查询、案件侦办 // target: "https://155.1.33.10:20002/", // 基础查询、案件侦办
changeOrigin: true, // changeOrigin: true,
secure: false, // secure: false,
pathRewrite: { // pathRewrite: {
"^/apiAjzbXzGaw": "/" // "^/apiAjzbXzGaw": "/"
} // }
}, // },
"/apiAjzbXzGaw": { "/apiAjzbXzGaw": {
target: "https://155.1.33.10:20002/", // 基础查询、案件侦办 target: "https://155.1.33.10:20002/", // 基础查询、案件侦办
changeOrigin: true, changeOrigin: true,
......
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