|
@@ -83,11 +83,11 @@
|
|
|
getRoleInfo,
|
|
|
getTenantlist,
|
|
|
bindResources
|
|
|
- } from "@/api/permissionSettingManagement";
|
|
|
+ } from '@/api/permissionSettingManagement';
|
|
|
export default {
|
|
|
components: {
|
|
|
- "el-image-viewer": () =>
|
|
|
- import("element-ui/packages/image/src/image-viewer"),
|
|
|
+ 'el-image-viewer': () =>
|
|
|
+ import('element-ui/packages/image/src/image-viewer'),
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -121,8 +121,8 @@
|
|
|
async initDict() {
|
|
|
// 获取部门
|
|
|
const resp2 = await getDeptPageByCompId({
|
|
|
- compId: localStorage.getItem("enterprise-front-companyId"),
|
|
|
- vesselBankFlag: "V"
|
|
|
+ compId: localStorage.getItem('enterprise-front-companyId'),
|
|
|
+ vesselBankFlag: 'V'
|
|
|
});
|
|
|
this.deptList = resp2.records;
|
|
|
await this.getList();
|
|
@@ -173,13 +173,13 @@
|
|
|
_defaultOpeneds.push(value2.serviceId);
|
|
|
_defaultOpeneds.push(value.pluginId);
|
|
|
}
|
|
|
- this.$set(value2, "featureCheckeds", _featureCheckeds);
|
|
|
+ this.$set(value2, 'featureCheckeds', _featureCheckeds);
|
|
|
});
|
|
|
});
|
|
|
- this.$set(this, "defaultOpeneds", _defaultOpeneds);
|
|
|
+ this.$set(this, 'defaultOpeneds', _defaultOpeneds);
|
|
|
this.loadingRoleRan = false;
|
|
|
} catch (error) {
|
|
|
- if (error.code && error.code !== "200") this.$message(error.message);
|
|
|
+ if (error.code && error.code !== '200') this.$message(error.message);
|
|
|
}
|
|
|
},
|
|
|
// 初始化插件树
|
|
@@ -196,11 +196,11 @@
|
|
|
value2.featureCheckeds = [];
|
|
|
});
|
|
|
});
|
|
|
- this.$set(this, "queryList", resp4.data);
|
|
|
+ this.$set(this, 'queryList', resp4.data);
|
|
|
console.log('lsit', this.queryList)
|
|
|
}
|
|
|
} catch (error) {
|
|
|
- if (error.code && error.code !== "200") this.$message(error.message);
|
|
|
+ if (error.code && error.code !== '200') this.$message(error.message);
|
|
|
}
|
|
|
},
|
|
|
submit() {
|
|
@@ -211,18 +211,18 @@
|
|
|
|
|
|
if (this.deptTitle == '添加') {
|
|
|
let _obj = {
|
|
|
- compId: "2710b21efc1e4393930c5dc800010dc4",
|
|
|
- deptId: "3d7dbdc962ca4a96a48522c9ee528bc3",
|
|
|
+ compId: '2710b21efc1e4393930c5dc800010dc4',
|
|
|
+ deptId: '3d7dbdc962ca4a96a48522c9ee528bc3',
|
|
|
roleName: this.Info.newsTitle,
|
|
|
- underCompId: "2710b21efc1e4393930c5dc800010dc4",
|
|
|
- underCompName: "黑龙江中天昊元贸易有限公司",
|
|
|
- vesselBankFlag: "B"
|
|
|
+ underCompId: '2710b21efc1e4393930c5dc800010dc4',
|
|
|
+ underCompName: '黑龙江中天昊元贸易有限公司',
|
|
|
+ vesselBankFlag: 'B'
|
|
|
}
|
|
|
create(_obj).then((response) => {
|
|
|
this.$notify({
|
|
|
- title: "成功",
|
|
|
- message: "添加成功!",
|
|
|
- type: "success",
|
|
|
+ title: '成功',
|
|
|
+ message: '添加成功!',
|
|
|
+ type: 'success',
|
|
|
});
|
|
|
this.sendInfoClose();
|
|
|
this.listLoading = false;
|
|
@@ -230,9 +230,9 @@
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
this.$notify({
|
|
|
- title: "失败",
|
|
|
+ title: '失败',
|
|
|
message: error,
|
|
|
- type: "error",
|
|
|
+ type: 'error',
|
|
|
});
|
|
|
this.sendInfoClose();
|
|
|
});
|
|
@@ -240,9 +240,9 @@
|
|
|
this.selectRow.roleName = this.Info.newsTitle
|
|
|
changeInfo(this.selectRow).then((response) => {
|
|
|
this.$notify({
|
|
|
- title: "成功",
|
|
|
- message: "编辑成功!",
|
|
|
- type: "success",
|
|
|
+ title: '成功',
|
|
|
+ message: '编辑成功!',
|
|
|
+ type: 'success',
|
|
|
});
|
|
|
this.sendInfoClose();
|
|
|
this.listLoading = false;
|
|
@@ -250,9 +250,9 @@
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
this.$notify({
|
|
|
- title: "失败",
|
|
|
+ title: '失败',
|
|
|
message: error,
|
|
|
- type: "error",
|
|
|
+ type: 'error',
|
|
|
});
|
|
|
this.sendInfoClose();
|
|
|
});
|
|
@@ -275,10 +275,10 @@
|
|
|
},
|
|
|
getList() {
|
|
|
let _data = {
|
|
|
- compId: "2710b21efc1e4393930c5dc800010dc4",
|
|
|
+ compId: '2710b21efc1e4393930c5dc800010dc4',
|
|
|
pageSize: 10,
|
|
|
currentPage: 1,
|
|
|
- vesselBankFlag: "B"
|
|
|
+ vesselBankFlag: 'B'
|
|
|
}
|
|
|
getList(_data)
|
|
|
.then((res) => {
|
|
@@ -289,18 +289,18 @@
|
|
|
});
|
|
|
},
|
|
|
addJump() {
|
|
|
- this.deptTitle = "添加";
|
|
|
+ this.deptTitle = '添加';
|
|
|
this.sendInfo = true
|
|
|
},
|
|
|
editInfo(val) {
|
|
|
- this.deptTitle = "编辑";
|
|
|
+ this.deptTitle = '编辑';
|
|
|
this.Info.newsTitle = val.roleName
|
|
|
this.sendInfo = true
|
|
|
this.selectRow = val
|
|
|
|
|
|
},
|
|
|
setInfo(val) {
|
|
|
- debugger
|
|
|
+ // debugger
|
|
|
this.showRoleRan(val)
|
|
|
},
|
|
|
// 保存权限范围
|
|
@@ -326,13 +326,13 @@
|
|
|
};
|
|
|
await bindResources(data);
|
|
|
this.$message({
|
|
|
- message: "保存成功!",
|
|
|
- type: "success"
|
|
|
+ message: '保存成功!',
|
|
|
+ type: 'success'
|
|
|
});
|
|
|
this.addRoleRanFlag = false;
|
|
|
this.getList();
|
|
|
} catch (error) {
|
|
|
- if (error.code && error.code !== "200") this.$message(error.message);
|
|
|
+ if (error.code && error.code !== '200') this.$message(error.message);
|
|
|
}
|
|
|
},
|
|
|
allSelect(data) {
|
|
@@ -343,9 +343,9 @@
|
|
|
sour.forEach((value, index) => {
|
|
|
_selected.push(value.featureId);
|
|
|
});
|
|
|
- this.$set(data, "featureCheckeds", _selected);
|
|
|
+ this.$set(data, 'featureCheckeds', _selected);
|
|
|
} else {
|
|
|
- this.$set(data, "featureCheckeds", []);
|
|
|
+ this.$set(data, 'featureCheckeds', []);
|
|
|
}
|
|
|
}
|
|
|
},
|