拆分人员回显
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
checkable
|
||||
:loading="loading"
|
||||
:tree-data="gData"
|
||||
v-model:checkedKeys="selectedKey"
|
||||
@select="onSelect"
|
||||
@check="onCheck"
|
||||
@expand="onExpand"
|
||||
@@ -69,7 +70,7 @@
|
||||
userIds: [],
|
||||
searchModel:'',
|
||||
defaultExpandedKeys: [],
|
||||
defaultCheckedKeys: []
|
||||
defaultCheckedKeys: [],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -167,6 +168,7 @@
|
||||
this.gData = res.result
|
||||
this.defaultExpandedKeys = [this.departId]
|
||||
this.defaultCheckedKeys = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : []
|
||||
this.selectedKey = this.personneQuery[this.query.db_field_name + '_id'] ? this.personneQuery[this.query.db_field_name + '_id'].split(',') : []
|
||||
console.log(this.defaultCheckedKeys)
|
||||
this.treeVisible = true
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="ocr-upload">
|
||||
<div class="split-upload">
|
||||
<!-- <a-modal v-model="visible" :maskClosable="false" :footer="[]" :title="title" class="ocr-upload-modal">-->
|
||||
<a-upload
|
||||
:accept='accept'
|
||||
@@ -234,4 +234,9 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.upload-split {
|
||||
.import{
|
||||
margin-right: 3px!important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -4,7 +4,7 @@
|
||||
<a-upload-dragger
|
||||
:accept='accept'
|
||||
:disabled="disabled"
|
||||
class="ant-upload-list"
|
||||
class="split-upload-list"
|
||||
name="file"
|
||||
:file-list="myfileList"
|
||||
:multiple="true"
|
||||
|
||||
@@ -709,7 +709,10 @@
|
||||
|
||||
params.info_id=this.infoId
|
||||
params.menu_id=this.menuId
|
||||
console.log(this.contentList,'this.contentListthis.contentList')
|
||||
if (this.formInline.id) {
|
||||
params.menu_id=this.itemVal.menu_id
|
||||
}
|
||||
// console.log(this.contentList,'this.contentListthis.contentList')
|
||||
let contentList=JSON.parse(JSON.stringify(this.contentList))
|
||||
contentList.forEach((item,index)=>{
|
||||
if(item.type==='IMG'){
|
||||
@@ -722,8 +725,6 @@
|
||||
params.itemValEOList=contentList
|
||||
// console.log('paramsformInline',params)
|
||||
params.delItemIds=this.deleteIds.join(',')
|
||||
console.log(params,'paramsparams,paramsparams')
|
||||
console.log()
|
||||
axios({
|
||||
url: url,
|
||||
method: 'post',
|
||||
@@ -1079,6 +1080,7 @@
|
||||
this.visible=true
|
||||
this.type = 'edit'
|
||||
this.itemVal=item
|
||||
|
||||
// this.getForm(() => {
|
||||
// this.formInline=item
|
||||
// })
|
||||
|
||||
@@ -62,8 +62,7 @@
|
||||
{{ $t('add') }}
|
||||
</div>
|
||||
<div class="operator-text upload-split" @click="handleImportManage" v-has="'split:sarFileSplitItems:import'">
|
||||
<a-icon type="import" :rotate="-90" v-if="uploadMenuId===undefined||uploadMenuId===''" />
|
||||
{{ (uploadMenuId===''||uploadMenuId===undefined)? $t('import'):'' }}
|
||||
<a-icon type="import" :rotate="-90" v-if="uploadMenuId===undefined||uploadMenuId===''" />{{ (uploadMenuId===''||uploadMenuId===undefined)? $t('import'):'' }}
|
||||
<upload v-if="menuId" ref="uploadSplit":infoId="infoId" :menuId="uploadMenuId" @uploadSuccess="uploadSuccess"></upload>
|
||||
<!-- <ImportFile :url="url"/>-->
|
||||
|
||||
@@ -1234,10 +1233,11 @@
|
||||
.upload-split{
|
||||
.ant-upload{
|
||||
color:#040B29;
|
||||
i.import{
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
}
|
||||
.anticon-import{
|
||||
display: inline-block;
|
||||
margin-right: 3px!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ export default {
|
||||
this.form.isModel='0'
|
||||
this.moduleShow=false
|
||||
}
|
||||
// this.disabledEdit=false
|
||||
this.disabledEdit=false
|
||||
}else if(this.submitEdit==='edit'){
|
||||
if(this.submitKey==='1'){
|
||||
this.form.isModel='1'
|
||||
@@ -344,7 +344,7 @@ export default {
|
||||
this.form.isModel='0'
|
||||
this.moduleShow=false
|
||||
}
|
||||
// this.disabledEdit=true
|
||||
this.disabledEdit=true
|
||||
|
||||
}
|
||||
this.form={...this.editData}
|
||||
|
||||
Reference in New Issue
Block a user