Commit b0ab5ea9 by 岑成威

fix: ccw更新

1 parent a30999f7
......@@ -63,7 +63,7 @@ export default {
width: "88px",
height: "88px",
isClose: true,
limitSize: 1
limitSize: 15
},
}
},
......
<!-- 销售管理 - 组织架构管理 - 列表 -->
<template>
<div>
<div class="d2-container-content" style="margin-top: 0;padding: 20px;padding-top: 5px;">
<d2-table ref="organizeTable" :get-list-api="getListApi" :table-params="tableParams">
<div slot="userList" slot-scope="scope">
<el-tooltip v-if="scope.scope.userList && scope.scope.userList.length" effect="dark" placement="top">
<div slot="content" class="tooltip-content-max">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>-</div>
<div>
<div class="d2-container-content" style="margin-top: 0;padding: 20px;padding-top: 5px;">
<d2-table ref="organizeTable"
:get-list-api="getListApi"
:table-params="tableParams">
<div slot="userList" slot-scope="scope">
<el-tooltip v-if="scope.scope.userList && scope.scope.userList.length"
effect="dark"
placement="top">
<div slot="content" class="tooltip-content-max">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</el-tooltip>
<div v-else>
-
</div>
</div>
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table>
</div>
</template>
<script>
import { busTypeOpt, cooperModeOpt, flowSituateOpt } from '../constant/baseData'
import { organizationUserList } from '@api/salesManagement'
export default {
name: 'Customer',
data() {
return {
recordInfo: {},
userInfo: this.$store.state.d2admin.user.info,
getListApi: organizationUserList,
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableColumns: [{
label: '省份名称',
prop: 'provinceName'
},{
label: '区域运营大区经理',
prop: 'areaManagerName',
}, {
label: '区域运营',
prop: 'regionalOperationsName',
}, {
label: '修改时间',
prop: 'updatedDate',
width: '150px'
}]
},
baseData: {
tmplTypeList: [],
provinceInfoList: [],
cityList: [],
brandList: [],
busTypeOpt: busTypeOpt,
cooperModeOpt: cooperModeOpt,
flowSituateOpt: flowSituateOpt
}
}
},
mounted() {
},
methods: {
handleEdit(row = {}) {
console.log("CS1220");
this.$router.push({
name: "editOrganize",
query: {
source: 'regional',
activeTab: 'regional',
id: row?.id || '',
regionName: row?.provinceName || '',
regionalOperationsAreaManager: row?.regionalOperationsAreaManager || '',
regionalOperations: row?.regionalOperations || '',
userList: row?.userList || []
}
})
}
}
}
</script>
</div>
</template>
<script>
import { organizationUserList } from "@api/salesManagement";
import { busTypeOpt, cooperModeOpt, flowSituateOpt } from "../constant/baseData";
export default {
name: "Customer",
data() {
return {
recordInfo: {},
userInfo: this.$store.state.d2admin.user.info,
getListApi: organizationUserList,
tableParams: {
btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
listName: "list",
tableOption: true,
tableColumns: [{
label: "省份名称",
prop: "provinceName",
}, {
label: "区域运营大区经理",
prop: "areaManagerName",
}, {
label: "1.1区域运营",
prop: "regionalOperationsName",
}, {
label: "2.1区域运营",
prop: "regionalOperationsTwoOneName",
}, {
label: "2.3区域运营",
prop: "regionalOperationsTwoThreeName",
}, {
label: "修改时间",
prop: "updatedDate",
width: "150px",
}],
},
baseData: {
tmplTypeList: [],
provinceInfoList: [],
cityList: [],
brandList: [],
busTypeOpt,
cooperModeOpt,
flowSituateOpt,
},
};
},
mounted() {
},
methods: {
handleEdit(row = {}) {
console.log("CS1220");
this.$router.push({
name: "editOrganize",
query: {
source: "regional",
activeTab: "regional",
id: row?.id || "",
regionName: row?.provinceName || "",
regionalOperationsAreaManager: row?.regionalOperationsAreaManager || "",
regionalOperations: row?.regionalOperations || "",
regionalOperationsTwoOne: row?.regionalOperationsTwoOne || "",
regionalOperationsTwoThree: row?.regionalOperationsTwoThree || "",
userList: row?.userList || [],
},
});
},
},
};
</script>
<style scoped>
.tabs-container {
background: #ffffff;
padding: 0 20px;
margin-bottom: 0;
}
.tooltip-content-max {
max-height: 320px;
overflow-y: scroll;
}
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
.fields-txt {
width: 346px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
</style>
\ No newline at end of file
background: #ffffff;
padding: 0 20px;
margin-bottom: 0;
}
.tooltip-content-max {
max-height: 320px;
overflow-y: scroll;
}
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
margin-right: 10px;
}
.fields-txt {
width: 346px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!