优化
This commit is contained in:
parent
db396d943c
commit
7734eeb781
@ -53,7 +53,7 @@
|
||||
readonly>
|
||||
<i slot="suffix" class="el-input__icon el-icon-edit"></i>
|
||||
</el-input>
|
||||
<i @click="showData.list=[]" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
<i @click="handleClearList('showData')" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
</div>
|
||||
<div v-if="personnelList.list.length>0">
|
||||
<el-input
|
||||
@ -64,7 +64,7 @@
|
||||
readonly>
|
||||
<i slot="suffix" class="el-input__icon el-icon-edit"></i>
|
||||
</el-input>
|
||||
<i @click="personnelList.list=[]" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
<i @click="handleClearList('personnelList')" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
</div>
|
||||
<el-button size='mini' @click="handleGetChoose('isShow')" icon="el-icon-plus">选部门</el-button>
|
||||
<!-- <el-button size='mini' @click="handleGetChoose" icon="el-icon-plus">选角色</el-button> -->
|
||||
@ -83,7 +83,7 @@
|
||||
readonly>
|
||||
<i slot="suffix" class="el-input__icon el-icon-edit"></i>
|
||||
</el-input>
|
||||
<i @click="outIdsLsit.list=[]" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
<i @click="handleClearList('outIdsLsit')" style="margin-left:10px;cursor: pointer;" class="el-icon-delete"></i>
|
||||
</div>
|
||||
<!-- <el-button size='mini' @click="handleGetChoose(0)" icon="el-icon-plus">选部门</el-button> -->
|
||||
<!-- <el-button size='mini' @click="handleGetChoose" icon="el-icon-plus">选角色</el-button> -->
|
||||
@ -194,6 +194,18 @@ export default {
|
||||
this.form = this.basisForm
|
||||
},
|
||||
methods: {
|
||||
handleClearList (item) {
|
||||
this[item].list = []
|
||||
if (item === 'outIdsLsit') {
|
||||
this.form.outIds = ''
|
||||
}
|
||||
if (item === 'personnelList') {
|
||||
this.form.staffIds = ''
|
||||
}
|
||||
if (item === 'showData') {
|
||||
this.form.depIds = ''
|
||||
}
|
||||
},
|
||||
async handleCheckStaffIds (item) {
|
||||
const params = Object.assign({}, this.form, {staffIds: item.value})
|
||||
const bool = await this.handleCheckStaff(params)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user