|
@@ -46,6 +46,9 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div class="btnStartSeach">
|
|
|
+ <div class="seachFor" v-if="userMes.deptId === '23031009'">
|
|
|
+ <el-input v-model="compNameSa" placeholder="请输入部门名称" @keyup.enter="getDetails(importId)"></el-input>
|
|
|
+ </div>
|
|
|
<div class="detaTableBtns">
|
|
|
<div class="tableBtn add" @click="addTableDetail">
|
|
|
<img :src="addIcon" alt="">
|
|
@@ -222,7 +225,8 @@ export default {
|
|
|
departData: [],
|
|
|
instanceChild: {},
|
|
|
importId: '',
|
|
|
- userMes: {}
|
|
|
+ userMes: {},
|
|
|
+ compNameSa: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -255,6 +259,7 @@ export default {
|
|
|
// 查询部门
|
|
|
getDepartmentFromTreeData(datas) {
|
|
|
let that = this
|
|
|
+ that.departData = []
|
|
|
// let params = {
|
|
|
// superKey: 'BM0001'
|
|
|
// }
|
|
@@ -343,7 +348,8 @@ export default {
|
|
|
let userMes = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
let params = {
|
|
|
id: id,
|
|
|
- deptId: userMes.deptId
|
|
|
+ deptId: userMes.deptId,
|
|
|
+ com: that.compNameSa
|
|
|
}
|
|
|
apiGetevaluationdeptplanDetailHeader(id).then(datas =>{
|
|
|
if (datas && datas.data) {
|
|
@@ -370,7 +376,7 @@ export default {
|
|
|
addTableDetail() {
|
|
|
let obj = {
|
|
|
showInput: true,
|
|
|
- businessPlanId: this.rowMsg.id,
|
|
|
+ businessPlanId: this.importId,
|
|
|
serialNumber: '1',
|
|
|
deptName: '',
|
|
|
targetName: '',
|
|
@@ -410,7 +416,7 @@ export default {
|
|
|
message: '保存成功',
|
|
|
type: 'success'
|
|
|
});
|
|
|
- that.getDetails(that.rowMsg.id)
|
|
|
+ that.getDetails(that.importId)
|
|
|
} else {
|
|
|
that.$message({
|
|
|
message: datas.data,
|
|
@@ -496,7 +502,7 @@ export default {
|
|
|
this.$refs.importPage.upload.url = '/evaluation-dept-plan/import'
|
|
|
},
|
|
|
successImport(val) {
|
|
|
- this.getDetails(this.rowMsg.id)
|
|
|
+ this.getDetails(this.importId)
|
|
|
},
|
|
|
handleExport() {
|
|
|
let data = this.quantifiedList //接口返回数据
|
|
@@ -593,10 +599,24 @@ export default {
|
|
|
top: 32px;
|
|
|
// left: 50vw;
|
|
|
width: 100%;
|
|
|
+ .seachFor{
|
|
|
+ .el-input{
|
|
|
+ height: 30px;
|
|
|
+ .el-input__inner{
|
|
|
+ height:30px;
|
|
|
+ }
|
|
|
+ .el-input__suffix{
|
|
|
+ .el-select__caret{
|
|
|
+ line-height:30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.detaTableBtns{
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
- width: 300px;
|
|
|
+ // width: 300px;
|
|
|
+ width: fit-content;
|
|
|
margin-top: 5px;
|
|
|
.tableBtn {
|
|
|
display: flex;
|