|
@@ -61,6 +61,13 @@
|
|
|
<el-button v-permissions="['base:agent:add']" icon="el-icon-plus" type="primary" @click="handleEdit($event)">
|
|
<el-button v-permissions="['base:agent:add']" icon="el-icon-plus" type="primary" @click="handleEdit($event)">
|
|
|
新建
|
|
新建
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ v-permissions="['base:distributor:sysadmin_transfer']"
|
|
|
|
|
+ icon="el-icon-refresh"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ @click="handleSysAdminTransfer">
|
|
|
|
|
+ 管理员转移
|
|
|
|
|
+ </el-button>
|
|
|
</vab-query-form-left-panel>
|
|
</vab-query-form-left-panel>
|
|
|
<vab-query-form-right-panel>
|
|
<vab-query-form-right-panel>
|
|
|
<table-tool :columns="columns" :show-columns.sync="showColumns" table-type="agentTable" />
|
|
<table-tool :columns="columns" :show-columns.sync="showColumns" table-type="agentTable" />
|
|
@@ -73,6 +80,8 @@
|
|
|
:data="list"
|
|
:data="list"
|
|
|
:height="$baseTableHeight(2)"
|
|
:height="$baseTableHeight(2)"
|
|
|
@selection-change="setSelectRows">
|
|
@selection-change="setSelectRows">
|
|
|
|
|
+ <el-table-column align="center" show-overflow-tooltip type="selection" />
|
|
|
|
|
+
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
v-for="(item, index) in showColumns"
|
|
v-for="(item, index) in showColumns"
|
|
|
:key="index"
|
|
:key="index"
|
|
@@ -137,6 +146,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<edit ref="edit" @fetch-data="fetchData" />
|
|
<edit ref="edit" @fetch-data="fetchData" />
|
|
|
<change-agent ref="changeAgent" @fetch-data="fetchData" />
|
|
<change-agent ref="changeAgent" @fetch-data="fetchData" />
|
|
|
|
|
+ <!-- 转移 -->
|
|
|
|
|
+ <transfer ref="transfer" @fetch-data="fetchData" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -148,10 +159,11 @@
|
|
|
import Edit from './components/AgentEdit'
|
|
import Edit from './components/AgentEdit'
|
|
|
import TableTool from '@/components/table/TableTool'
|
|
import TableTool from '@/components/table/TableTool'
|
|
|
import ChangeAgent from '@/views/base/distributor/components/ChangeAgent'
|
|
import ChangeAgent from '@/views/base/distributor/components/ChangeAgent'
|
|
|
|
|
+ import Transfer from '@/views/base/distributor/components/Transfer.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Distributor',
|
|
name: 'Distributor',
|
|
|
- components: { Edit, TableTool, ChangeAgent },
|
|
|
|
|
|
|
+ components: { Transfer, Edit, TableTool, ChangeAgent },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
tableKey: 0,
|
|
tableKey: 0,
|
|
@@ -395,6 +407,13 @@
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ handleSysAdminTransfer() {
|
|
|
|
|
+ if (this.selectRows.length === 0) {
|
|
|
|
|
+ this.$baseMessage('请选择代理商', 'warning')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs['transfer'].sysAdminOpen(this.selectRows)
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|