|
@@ -1,81 +1,33 @@
|
|
|
<template>
|
|
|
<div class="lot-authorization-wrap">
|
|
|
<div class="lot-authorization-header">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="btnSaveHandler"
|
|
|
- >保存</el-button>
|
|
|
+ <el-button type="primary" @click="btnSaveHandler">保存</el-button>
|
|
|
</div>
|
|
|
- <el-row
|
|
|
- class="lot-authorization-body"
|
|
|
- :gutter="24"
|
|
|
- >
|
|
|
- <el-col :span="6">
|
|
|
+ <el-row class="lot-authorization-body" :gutter="24">
|
|
|
+ <el-col :span="18">
|
|
|
<div class="body-card">
|
|
|
- <CheckCardList
|
|
|
- ref="userList"
|
|
|
- title="用户列表"
|
|
|
- label="OfficerName"
|
|
|
- check-id="OfficerId"
|
|
|
- search-placeholder="请输入用户名称"
|
|
|
- :data-list="userList"
|
|
|
- @load="loadUserList"
|
|
|
- @check-change="userCheckChangeHandler"
|
|
|
- />
|
|
|
+ <CheckCardList ref="userList" title="用户列表" label="OfficerName" :column="6" check-id="OfficerId" search-placeholder="请输入用户名称" :data-list="userList" @load="loadUserList" @check-change="userCheckChangeHandler" />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="6">
|
|
|
+ <!-- <el-col :span="6">
|
|
|
<div class="body-card">
|
|
|
- <MultipleTree
|
|
|
- ref="sectionTree"
|
|
|
- :default-props="{
|
|
|
+ <MultipleTree ref="sectionTree" :default-props="{
|
|
|
children: 'children',
|
|
|
label: 'SessionName'
|
|
|
- }"
|
|
|
- :data="sectionTree"
|
|
|
- :checked-keys-duo="sectionCheckedKeys"
|
|
|
- :org-list="sectionList"
|
|
|
- :default-multiple="true"
|
|
|
- node-key="SessionId"
|
|
|
- up-node-key="UpSessionId"
|
|
|
- title="选择标段"
|
|
|
- @getTreeDataDuo="sectionCheckChangeHandler"
|
|
|
- />
|
|
|
+ }" :data="sectionTree" :checked-keys-duo="sectionCheckedKeys" :org-list="sectionList" :default-multiple="true" node-key="SessionId" up-node-key="UpSessionId" title="选择标段" @getTreeDataDuo="sectionCheckChangeHandler" />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<div class="body-card">
|
|
|
- <CheckCardList
|
|
|
- ref="regulatorList"
|
|
|
- title="监管单位"
|
|
|
- label="OrganName"
|
|
|
- check-id="OrganId"
|
|
|
- :with-search="false"
|
|
|
- search-placeholder="请输入单位名称"
|
|
|
- :data-list="regulatorList"
|
|
|
- :check-disabled="regulatorCheckDisabled"
|
|
|
- @load="loadRegulatorList"
|
|
|
- @check-change="regulatorCheckChangeHandler"
|
|
|
- />
|
|
|
+ <CheckCardList ref="regulatorList" title="监管单位" label="OrganName" check-id="OrganId" :with-search="false" search-placeholder="请输入单位名称" :data-list="regulatorList" :check-disabled="regulatorCheckDisabled" @load="loadRegulatorList" @check-change="regulatorCheckChangeHandler" />
|
|
|
</div>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col :span="6">
|
|
|
<div class="body-card">
|
|
|
- <MultipleTree
|
|
|
- ref="organizationTree"
|
|
|
- :default-props="{
|
|
|
+ <MultipleTree ref="organizationTree" :default-props="{
|
|
|
children: 'children',
|
|
|
label: 'OrganName'
|
|
|
- }"
|
|
|
- :data="orgTree"
|
|
|
- :checked-keys-duo="orgCheckedKeys"
|
|
|
- :org-list="orgList"
|
|
|
- :default-multiple="true"
|
|
|
- node-key="OrganId"
|
|
|
- up-node-key="OrganUpid"
|
|
|
- title="选择组织"
|
|
|
- @getTreeDataDuo="orgCheckChangeHandler"
|
|
|
- />
|
|
|
+ }" :data="orgTree" :checked-keys-duo="orgCheckedKeys" :org-list="orgList" :default-multiple="true" node-key="OrganId" up-node-key="OrganUpid" title="选择组织" @getTreeDataDuo="orgCheckChangeHandler" />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -95,23 +47,23 @@ import { translateDataToTreeAll } from '@/utils/validate'
|
|
|
export default {
|
|
|
components: { CheckCardList, MultipleTree },
|
|
|
mixins: [userList, sectionTree, regulatorList, orgTree],
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
regulatorCheckDisabled: false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
- checkedSections(arr) {
|
|
|
+ checkedSections (arr) {
|
|
|
this.hasChecked('section', !!arr.length)
|
|
|
},
|
|
|
- checkedRegulators(arr) {
|
|
|
+ checkedRegulators (arr) {
|
|
|
this.hasChecked('regulator', !!arr.length)
|
|
|
},
|
|
|
- checkedOrgs(arr) {
|
|
|
+ checkedOrgs (arr) {
|
|
|
this.hasChecked('org', !!arr.length)
|
|
|
},
|
|
|
sectionList: {
|
|
|
- handler(arr) {
|
|
|
+ handler (arr) {
|
|
|
const obj = {
|
|
|
SessionId: -1,
|
|
|
SessionName: '标段',
|
|
@@ -124,7 +76,7 @@ export default {
|
|
|
deep: true
|
|
|
},
|
|
|
orgList: {
|
|
|
- handler(arr) {
|
|
|
+ handler (arr) {
|
|
|
const obj = {
|
|
|
AuthCount: 0,
|
|
|
JobCount: 0,
|
|
@@ -143,7 +95,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- hasChecked(type, checked) {
|
|
|
+ hasChecked (type, checked) {
|
|
|
switch (type) {
|
|
|
case 'section':
|
|
|
this.regulatorCheckDisabled = checked
|
|
@@ -173,7 +125,7 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
},
|
|
|
- btnSaveHandler() {
|
|
|
+ btnSaveHandler () {
|
|
|
if (this.checkedUsers.length === 0) {
|
|
|
this.$message.error('请选择用户')
|
|
|
return
|
|
@@ -237,7 +189,7 @@ export default {
|
|
|
// console.log(mixedDatas)
|
|
|
this.saveSection(mixedDatas)
|
|
|
},
|
|
|
- async saveSection(params) {
|
|
|
+ async saveSection (params) {
|
|
|
try {
|
|
|
const res = await SaveSection(params)
|
|
|
if (res.code === 0) {
|