|
|
|
@ -278,9 +278,9 @@ |
|
|
|
|
<el-input placeholder="请输入系统名称" prefix-icon="el-icon-search" v-model.trim="systemKeyword" clearable></el-input> |
|
|
|
|
|
|
|
|
|
<ul class="systems"> |
|
|
|
|
<li v-for="(item, i) in systems" :key="i"> |
|
|
|
|
<li v-for="(item, i) in systems" :key="i" :title="item.systemName"> |
|
|
|
|
<el-checkbox v-model="item.check" @change="val => systemChange(val, item)"></el-checkbox> |
|
|
|
|
<div class="name" @click="getProject(item)"> |
|
|
|
|
<div :class="['name', {active: curSystem == item.systemId}]" @click="getProject(item)"> |
|
|
|
|
<span>{{ item.systemName }}</span> |
|
|
|
|
<i class="el-icon-arrow-right"></i> |
|
|
|
|
</div> |
|
|
|
@ -296,7 +296,7 @@ |
|
|
|
|
<el-input placeholder="请输入项目名称" prefix-icon="el-icon-search" v-model.trim="projectKeyword" clearable></el-input> |
|
|
|
|
|
|
|
|
|
<ul class="systems"> |
|
|
|
|
<li v-for="(item, i) in projects" :key="i"> |
|
|
|
|
<li v-for="(item, i) in projects" :key="i" :title="item.projectName"> |
|
|
|
|
<el-checkbox v-model="item.check" :label="item.projectName" @change="val => projectChange(val, item)"></el-checkbox> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
@ -308,20 +308,20 @@ |
|
|
|
|
<span>已选择项目({{ checkeds.length }}个)</span> |
|
|
|
|
</div> |
|
|
|
|
<el-input style="width: 200px;margin-bottom: 20px;" placeholder="请输入项目名称" prefix-icon="el-icon-search" v-model.trim="checkedKeyword" clearable></el-input> |
|
|
|
|
<el-table :data="checkeds" class="table" stripe header-align="center"> |
|
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table :data="checkeds" class="table" stripe header-align="center" max-height="470"> |
|
|
|
|
<el-table-column type="index" width="55" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="applicationName" label="系统名称" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ systemAll.find(e => e.systemId == scope.row.systemId).systemName }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="projectName" width="90" label="系统类型" align="center"> |
|
|
|
|
<el-table-column prop="projectName" width="80" label="系统类型" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.type }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="projectName" label="项目名称" align="center"></el-table-column> |
|
|
|
|
<el-table-column label="操作" align="center" width="60"> |
|
|
|
|
<el-table-column label="操作" align="center" width="55"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<i class="el-icon-delete rm" @click="delProject(scope.$index)"></i> |
|
|
|
|
</template> |
|
|
|
@ -443,6 +443,7 @@ export default { |
|
|
|
|
systemAll: [], |
|
|
|
|
systems: [], |
|
|
|
|
systemChecked: [], |
|
|
|
|
curSystem: '', |
|
|
|
|
projects: [], |
|
|
|
|
projectAll: [], |
|
|
|
|
projectKeyword: '', |
|
|
|
@ -625,6 +626,7 @@ export default { |
|
|
|
|
getProject(item) { |
|
|
|
|
const { check } = item // 项目选中状态跟随系统 |
|
|
|
|
const checked = this.permissions ? this.assessmentData : this.practiceData |
|
|
|
|
this.curSystem = item.systemId |
|
|
|
|
this.$get(`${this.api.getInternalProjectBySystemId}?permissions=${this.permissions}&systemId=${item.systemId}`).then(res => { |
|
|
|
|
this.projectAll = JSON.parse(JSON.stringify(res)) // 全部项目,另外保存 |
|
|
|
|
const result = [] |
|
|
|
@ -964,17 +966,19 @@ $avatar-width: 104px; |
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
} |
|
|
|
|
.item { |
|
|
|
|
width: 250px; |
|
|
|
|
max-height: 600px; |
|
|
|
|
padding: 10px; |
|
|
|
|
margin-right: 20px; |
|
|
|
|
overflow: auto; |
|
|
|
|
overflow: hidden; |
|
|
|
|
} |
|
|
|
|
.system { |
|
|
|
|
width: 280px; |
|
|
|
|
padding: 10px; |
|
|
|
|
background-color: #f9f9f9; |
|
|
|
|
} |
|
|
|
|
.systems { |
|
|
|
|
margin-top: 10px; |
|
|
|
|
max-height: 550px; |
|
|
|
|
overflow: auto; |
|
|
|
|
li { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
@ -987,16 +991,23 @@ $avatar-width: 104px; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-left: 5px; |
|
|
|
|
cursor: pointer; |
|
|
|
|
&:hover { |
|
|
|
|
&.active, &:hover { |
|
|
|
|
color: #9076FF; |
|
|
|
|
} |
|
|
|
|
span { |
|
|
|
|
max-width: 200px; |
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
overflow: hidden; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.project { |
|
|
|
|
width: 350px; |
|
|
|
|
} |
|
|
|
|
.checked { |
|
|
|
|
flex: 1; |
|
|
|
|
width: auto; |
|
|
|
|
.el-table .cell { |
|
|
|
|
font-size: 12px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.rm { |
|
|
|
|
font-size: 14px; |
|
|
|
|