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