修改 企标制修订-技术标准 研究总院主管副院长 单选 改为 多选

This commit is contained in:
baoyu
2024-04-25 16:15:28 +08:00
parent 28fb4f5867
commit 0d609e2e07
2 changed files with 1767 additions and 1705 deletions
@@ -175,9 +175,9 @@
<span style="margin-left: 7px;">
<i class="el-icon-view" style="font-size: 18px" title="预览" @click="viewOnlyOffice(item)" />
</span>
<!-- <span v-if="item.id !== ''" style="margin-left: 7px;">-->
<!-- <i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')" />-->
<!-- </span>-->
<!-- <span v-if="item.id !== ''" style="margin-left: 7px;">-->
<!-- <i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')" />-->
<!-- </span>-->
</div>
</div>
<div style="width: 20%;">
@@ -832,7 +832,7 @@
:disabled="disabledXX"
readonly="readonly"
placeholder="选择研究总院主管副院长"
@click.native="choiceZRR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
@click.native="choiceZHR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
/>
</div>
</el-form-item>
@@ -1083,6 +1083,15 @@
:nodeList="nodeList"
@checkedRole="checkedRole"
/>
<!--选择研究总院主管副院长-->
<Role-tree
v-if="!disabledXX"
:is-title="drawerTitle"
:is-visible.sync="modalShowFlagZHR"
:nodeList="nodeList"
@checkedRole="checkedRoleZHR"
/>
<!-- 选择标准的弹框 -->
<el-drawer
v-if="!disabledXX"
@@ -1758,6 +1767,7 @@ export default {
modalShowFlag: false, // drawer开关
showreceive: false,
modalShowRoleFlag: false, // drawer开关
modalShowFlagZHR: false, // drawer开关
modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关
modalShowFlag3: false, // drawer开关
@@ -2294,6 +2304,20 @@ export default {
const res = new Map();
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
},
checkedRoleZHR (data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.roleForm.zhrUserId = idList
this.roleForm.zhrUserName = nameList
},
checkedRole (data) {
if (this.type === 0) {
this.roleForm.deptUserId = data[0].id
@@ -2759,6 +2783,13 @@ export default {
this.drawerTitle = title
this.modalShowFlag = true
},
choiceZHR (type, title, id) {
this.nodeList = []
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.userType = type
this.drawerTitle = title
this.modalShowFlagZHR = true
},
choiceZRRS (row, type, index) {
this.type = type
if (type === 1) {
@@ -3930,21 +3961,21 @@ export default {
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
@import '~@/assets/styles/style';
/deep/ .fileClass {
/deep/ .fileClass {
line-height: 22px !important;
}
}
.fileClassName {
.fileClassName {
margin-bottom: 10px;
}
}
/deep/ #active2 .el-form-item__content {
/deep/ #active2 .el-form-item__content {
margin-left: 0px !important;
}
}
.bzrkStep1 {
.bzrkStep1 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
@@ -4000,9 +4031,9 @@ export default {
}
}
}
}
}
.standard-content {
.standard-content {
height: 100%;
padding: 10px 0 0;
@@ -4025,9 +4056,9 @@ export default {
}
}
}
}
}
/deep/ .el-form-item__error {
/deep/ .el-form-item__error {
right: 50px !important;
}
}
</style>
@@ -254,14 +254,14 @@
style="color: #409eff;cursor:pointer;margin-left: 12px;"
class="fileClass"
>
<!-- @click="handleFilePreview(item)"-->
<!-- @click="handleFilePreview(item)"-->
<span style="" :title="item.name" @click="handleFilePreview2(item,'preview')"> {{ item.name }}</span>
<span style="margin-left: 7px;">
<i class="el-icon-view" style="font-size: 18px" title="预览" @click="viewOnlyOffice(item)" />
</span>
<!-- <span v-if="item.id !== ''" style="margin-left: 7px;">-->
<!-- <i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')" />-->
<!-- </span>-->
<!-- <span v-if="item.id !== ''" style="margin-left: 7px;">-->
<!-- <i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')" />-->
<!-- </span>-->
</div>
</div>
<div style="width: 20%;">
@@ -995,7 +995,7 @@
:disabled="disabledXX"
readonly="readonly"
placeholder="选择研究总院主管副院长"
@click.native="choiceZRR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
@click.native="choiceZHR('zhrUserId', '选择研究总院主管副院长', roleForm.zhrUserId)"
/>
</div>
</el-form-item>
@@ -1247,6 +1247,15 @@
:nodeList="nodeList"
@checkedRole="checkedRole"
/>
<!--选择研究总院主管副院长-->
<Role-tree
v-if="!disabledXX"
:is-title="drawerTitle"
:is-visible.sync="modalShowFlagZHR"
:nodeList="nodeList"
@checkedRole="checkedRoleZHR"
/>
<!-- <el-drawer v-if="!disabledXX" -->
<!-- :title="drawerTitle"-->
<!-- :visible.sync="modalShowFlag"-->
@@ -2000,6 +2009,7 @@ export default {
key3: 4,
treeData: [], // 人员数据
modalShowFlag: false, // drawer开关
modalShowFlagZHR: false, // drawer开关
modalShowRoleFlag: false, // drawer开关
modalShowFlag1: false, // drawer开关
modalShowFlag2: false, // drawer开关
@@ -2560,6 +2570,20 @@ export default {
const res = new Map();
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
},
checkedRoleZHR (data) {
let idList = ''
let nameList = ''
data.forEach(item => {
if (nameList.length > 0) {
nameList += ','
idList += ','
}
idList += item.id
nameList += item.name
})
this.roleForm.zhrUserId = idList
this.roleForm.zhrUserName = nameList
},
checkedRole (data) {
if (this.type === 0) {
this.roleForm.deptUserId = data[0].id
@@ -3124,6 +3148,13 @@ export default {
this.drawerTitle = title
this.modalShowFlag = true
},
choiceZHR (type, title, id) {
this.nodeList = []
this.nodeList = JSON.parse(JSON.stringify(id.split(',')))
this.userType = type
this.drawerTitle = title
this.modalShowFlagZHR = true
},
choiceZRRS (row, type, index) {
this.type = type
if (type === 1) {
@@ -4056,21 +4087,21 @@ export default {
</script>
<style lang="less" scoped>
@import '~@/assets/styles/style';
@import '~@/assets/styles/style';
/deep/ .fileClass {
/deep/ .fileClass {
line-height: 22px !important;
}
}
.fileClassName {
.fileClassName {
margin-bottom: 10px;
}
}
/deep/ #active2 .el-form-item__content {
/deep/ #active2 .el-form-item__content {
margin-left: 0px !important;
}
}
.bzrkStep1 {
.bzrkStep1 {
/deep/ .el-drawer__container {
.prc-content-border {
border: none;
@@ -4126,9 +4157,9 @@ export default {
}
}
}
}
}
.standard-content {
.standard-content {
height: 100%;
padding: 10px 0 0;
@@ -4151,15 +4182,15 @@ export default {
}
}
}
}
}
.process-manuscript /deep/ .el-form-item__error {
.process-manuscript /deep/ .el-form-item__error {
right: 45px !important;
}
}
.standard-table-search /deep/ .el-form-item span.el-input__suffix {
.standard-table-search /deep/ .el-form-item span.el-input__suffix {
position: absolute;
right: 10px
}
}
</style>