提交 2ac36d8c 编写于 作者: zhentian.jia's avatar zhentian.jia

次级管理员不能编辑基础信息

上级 a298c993
......@@ -34,6 +34,7 @@
v-model="formData.projectName"
placeholder="请输入项目名称"
style="width:83%;"
:disabled="peopleLevel == 'L3'"
></el-input>
<span class="word-num">{{(formData.projectName).replace(/\s+/g,"").length}}/20</span>
</el-col>
......@@ -49,6 +50,7 @@
value-format="yyyy-MM-dd HH:mm:ss"
:picker-options="pickerOptions0"
style="width: 100%;"
:disabled="peopleLevel == 'L3'"
></el-date-picker>
</el-form-item>
</el-col>
......@@ -64,6 +66,7 @@
:picker-options="pickerOptions1"
default-time="23:59:59"
style="width: 100%;"
:disabled="peopleLevel == 'L3'"
></el-date-picker>
</el-form-item>
</el-col>
......@@ -77,6 +80,7 @@
placeholder="请输入项目简介"
v-model="formData.projectIntro"
style="width:83%;"
:disabled="peopleLevel == 'L3'"
></el-input>
<span class="word-num">{{(formData.projectIntro).replace(/\s+/g,"").length}}/150</span>
</el-col>
......@@ -90,6 +94,7 @@
action="#"
:show-file-list="false"
:before-upload="beforeUploadListPic"
:disabled="peopleLevel == 'L3'"
>
<img v-if="formData.attachmentUrl1" :src="formData.attachmentUrl1" class="bg-img">
<img
......@@ -108,7 +113,7 @@
<p class="upload-message" v-if="uploadImgMessage">请选择列表图片</p>
</div>
<el-form-item label="封面类型:">
<el-radio-group size="mini" v-model="formData.type" @change="changeCover">
<el-radio-group size="mini" v-model="formData.type" @change="changeCover" :disabled="peopleLevel == 'L3'">
<el-radio :label="1">图片</el-radio>
<el-radio :label="2">视频</el-radio>
</el-radio-group>
......@@ -122,6 +127,7 @@
action="#"
:show-file-list="false"
:before-upload="beforeUploadCoverPic"
:disabled="peopleLevel == 'L3'"
>
<img
v-if="formData.type == 1 && formData.attachmentUrl2"
......@@ -170,6 +176,7 @@
multiple
:on-exceed="handleExceed"
:file-list="fileList"
:disabled="peopleLevel == 'L3'"
>
<el-button class="choose-button" plain icon="el-icon-document">选择文件</el-button>
<div slot="tip" class="el-upload__tip">支持文件类型:pdf</div>
......@@ -504,6 +511,7 @@ export default {
itemOrganization: itemOrganization,
itemPerson: itemPerson,
projectId: null,
peopleLevel: null,
//面包屑
curmbFirst: "教培项目",
curmbSecond: "新建项目",
......@@ -688,7 +696,8 @@ export default {
created() {
vm = this;
(this.projectId = vm.getUrlSearch(window.location.href, "projectId")),
this.editManager();
(this.peopleLevel = vm.getUrlSearch(window.location.href, "level"));
this.editManager();
this.changeOnStep(this.active);
this.getComponentInfo();
this.idTypeValue = vm.idType;
......@@ -885,13 +894,15 @@ export default {
//查询上次设定范围
operationLast() {
let req = {};
vm.GET("portal/scope/v1/"+this.projectId+"/operation/last", req).then(res => {
if (res.code == "000000") {
this.scopeReq = res.data.scopeReq;
console.log(this.scopeReq);
//operationData.getAdministrative(res.data.scopeReq.scopeOfAdministrative);
vm.GET("portal/scope/v1/" + this.projectId + "/operation/last", req).then(
res => {
if (res.code == "000000") {
this.scopeReq = res.data.scopeReq;
console.log(this.scopeReq);
//operationData.getAdministrative(res.data.scopeReq.scopeOfAdministrative);
}
}
});
);
},
//查询组件证书信息
getComponentInfo() {
......@@ -1454,17 +1465,17 @@ export default {
}
},
//子节点选中
appendCheck(administrative,checked) {
appendCheck(administrative, checked) {
//console.log(checked,administrative)
let checkList = [];
checkList = this.$refs.tree.getCheckedKeys();
if(checked) {
for(let i=0;i<administrative.length;i++) {
if (checked) {
for (let i = 0; i < administrative.length; i++) {
checkList.push(administrative[i].id);
// console.log(checkList);
}
}
this.$nextTick(function(){
this.$nextTick(function() {
this.$refs.tree.setCheckedKeys(checkList);
});
},
......@@ -1479,8 +1490,8 @@ export default {
{ id: id, label: "22", children: [] }
];
let statusValue = 0;
if(node.checked == true) {
statusValue = 1
if (node.checked == true) {
statusValue = 1;
}
//data.children.push(newChild);
let req = {
......@@ -1494,7 +1505,7 @@ export default {
//console.log(administrative);
data.children = administrative;
//data.children.push(newChild);
this.appendCheck(administrative,node.checked);
this.appendCheck(administrative, node.checked);
}
});
}
......@@ -1854,7 +1865,6 @@ export default {
this.changedOrganization[this.formOrganization.pageNum] !=
undefined
) {
let rowCheck = this.changedOrganization[
this.formOrganization.pageNum
][0];
......@@ -2100,7 +2110,7 @@ export default {
},
//选择组件数据绑定
handleCloseComponent(tag) {
if(this.projectStatus != 4) {
if (this.projectStatus != 4) {
this.tagsComponent.splice(this.tagsComponent.indexOf(tag), 1);
this.formComponent.component = [];
for (let j = 0; j < this.tagsComponent.length; j++) {
......
......@@ -333,9 +333,10 @@ export default {
//改变状态
changeStatus(row, type) {
let projectId = row.id;
let level = row.level;
if (type === 0) {
//编辑
this.$router.push("add-manager?projectId=" + projectId);
this.$router.push("add-manager?projectId=" + projectId +"&level="+level);
} else if (type === 7) {
//提醒审核
let req = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册