|
@@ -26,7 +26,7 @@
|
|
|
<j-search-select-tag
|
|
|
placeholder="请选择部门"
|
|
|
v-model="queryParam.department"
|
|
|
- dict="view_department,department,department">
|
|
|
+ :dictOptions="cdepNameOption">
|
|
|
</j-search-select-tag>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -36,7 +36,7 @@
|
|
|
<j-search-select-tag
|
|
|
placeholder="请选择客户"
|
|
|
v-model="queryParam.customer"
|
|
|
- dict="view_customer,customername,customername">
|
|
|
+ :dictOptions="ccusNameOption">
|
|
|
</j-search-select-tag>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -70,11 +70,11 @@
|
|
|
<div class="chart">
|
|
|
<!-- 部门 -->
|
|
|
<div class="depChartStyle" style="background:rgba(255, 165, 0,.09);">
|
|
|
- <departmentChart ref="departmentChart" />
|
|
|
+ <departmentChart ref="departmentChart" @option="getCdepNameOption"/>
|
|
|
</div>
|
|
|
<!-- 客户 -->
|
|
|
- <div class="cusChartStyle" style="background:rgba(134, 151, 201,.08);">
|
|
|
- <customerChart ref="customerChart" />
|
|
|
+ <div class="cusChartStyle" style="background:rgba(134, 151, 201,.08);" >
|
|
|
+ <customerChart ref="customerChart" @option-ccusName="getCcusNameOption"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-card>
|
|
@@ -157,6 +157,8 @@ export default {
|
|
|
{ title: '本币金额', width: 150, dataIndex: 'inatMoney', className: 'replacecolor' }
|
|
|
],
|
|
|
data: [],
|
|
|
+ cdepNameOption: [], //部门下拉数据
|
|
|
+ ccusNameOption: [],//客户下拉数据
|
|
|
loading: false, // 表格加载
|
|
|
|
|
|
// 查询条件
|
|
@@ -336,6 +338,20 @@ export default {
|
|
|
handleTableChange(pagination, filters, sorter) {
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
this.getExternalData()
|
|
|
+ },
|
|
|
+
|
|
|
+ //整理部门下拉框数据
|
|
|
+ getCdepNameOption(val){
|
|
|
+ val.map(item=>{
|
|
|
+ this.cdepNameOption.push({text:item,value:item})
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ //整理客户下拉框数据
|
|
|
+ getCcusNameOption(index) {
|
|
|
+ index.map(item=>{
|
|
|
+ this.ccusNameOption.push({text:item,value:item})
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|