|
@@ -23,7 +23,7 @@
|
|
|
:disabled="item.disabled"></el-option>
|
|
|
</el-select> -->
|
|
|
<avue-input-tree :check-strictly="true" @change="corpTypeChange" multiple v-model="formData.corpTypeList"
|
|
|
- placeholder="请选择内容" :props="{ label: 'cnName', value: 'id' , disabled: 'status'}" :dic="customTypeData"
|
|
|
+ placeholder="请选择内容" :props="{ label: 'cnName', value: 'id', disabled: 'status' }" :dic="customTypeData"
|
|
|
:style="{ width: '100%' }"></avue-input-tree>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -131,7 +131,8 @@
|
|
|
<el-form-item label="国家" prop="cntyCode">
|
|
|
<search-query ref="SearchQuery" :datalist="cntyOptions" title="国家" :filterable="true" :clearable="true"
|
|
|
:remote="true" :forParameter="{ key: 'id', label: 'cnName', value: 'code', disabled: 'status' }"
|
|
|
- :disabledStatus="1":selectValue="formData.cntyCode" @remoteMethod="bcountrysListfun" @corpChange="bcountrysChange">
|
|
|
+ :disabledStatus="1" :selectValue="formData.cntyCode" @remoteMethod="bcountrysListfun"
|
|
|
+ @corpChange="bcountrysChange">
|
|
|
<bcountrys></bcountrys>
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
@@ -227,6 +228,16 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
+ <el-form-item label="分管员" prop="adminProfiles">
|
|
|
+ <el-select v-model="formData.adminProfilesList" multiple @change="adminProfilesChange" filterable
|
|
|
+ placeholder="请选择分管员" :style="{ width: '100%' }">
|
|
|
+ <el-option v-for="item in userOptions" :key="index" :label="item.realName" :value="item.id"
|
|
|
+ :disabled="item.disabled">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
<el-form-item label="存在HP/S" prop="isPs">
|
|
|
<el-switch v-model="formData.isPs" :active-value="1" :inactive-value="0" active-text="开启"
|
|
|
inactive-text="关闭"></el-switch>
|
|
@@ -960,6 +971,7 @@ export default {
|
|
|
getBcorpsDetail(this.detailData.id).then(res => {
|
|
|
this.formData = res.data.data
|
|
|
this.formData.corpTypeList = res.data.data.corpType.split(',')
|
|
|
+ this.$set(this.formData, 'adminProfilesList', res.data.data.adminProfiles.split(','))
|
|
|
})
|
|
|
}
|
|
|
if (this.detailData.corpType != null) {
|
|
@@ -979,7 +991,7 @@ export default {
|
|
|
this.customTypeData = res.data.data.records
|
|
|
})
|
|
|
// 查询用户信息
|
|
|
- userList().then((res) => {
|
|
|
+ userList(1, 9999999).then((res) => {
|
|
|
this.userOptions = res.data.data
|
|
|
});
|
|
|
// 查询字典
|
|
@@ -1022,10 +1034,10 @@ export default {
|
|
|
},
|
|
|
bcountrysChange(value) {
|
|
|
this.formData.cntyCode = value
|
|
|
- for(let item of this.cntyOptions) {
|
|
|
- if (item.code == value) {
|
|
|
- this.formData.cntyName = item.cnName
|
|
|
- }
|
|
|
+ for (let item of this.cntyOptions) {
|
|
|
+ if (item.code == value) {
|
|
|
+ this.formData.cntyName = item.cnName
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
rateChange(value) {
|
|
@@ -1036,6 +1048,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ adminProfilesChange(value) {
|
|
|
+ if (value != null && value != []) {
|
|
|
+ this.formData.adminProfiles = value.join(",")
|
|
|
+ }
|
|
|
+ var userName = [];
|
|
|
+ for (var userId of value) {
|
|
|
+ for (var user of this.userOptions) {
|
|
|
+ if (user.id == userId) {
|
|
|
+ userName.push(user.realName)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (userName != null && userName != []) {
|
|
|
+ this.formData.adminProfilesName = userName.join(',')
|
|
|
+ }
|
|
|
+ },
|
|
|
submitForm() {
|
|
|
this.$refs['userDataForm'].validate(valid => {
|
|
|
if (!valid) return
|
|
@@ -1239,7 +1268,7 @@ export default {
|
|
|
corpsBankList: [],
|
|
|
corpsFilesList: [],
|
|
|
}
|
|
|
- this.detailData= {}
|
|
|
+ this.detailData = {}
|
|
|
this.corpsAttnForm = {}
|
|
|
this.corpsAttnDialogVisible = false,
|
|
|
this.corpsAttnDialogIndex = null,
|