Commit 2b1f187a by xue_wengang

用户权限

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