Commit b0ab5ea9 by 岑成威

fix: ccw更新

1 parent a30999f7
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
width: "88px", width: "88px",
height: "88px", height: "88px",
isClose: true, isClose: true,
limitSize: 1 limitSize: 15
}, },
} }
}, },
......
<!-- 销售管理 - 组织架构管理 - 列表 --> <!-- 销售管理 - 组织架构管理 - 列表 -->
<template> <template>
<div> <div>
<div class="d2-container-content" style="margin-top: 0;padding: 20px;padding-top: 5px;"> <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"> <d2-table ref="organizeTable"
<div slot="userList" slot-scope="scope"> :get-list-api="getListApi"
<el-tooltip v-if="scope.scope.userList && scope.scope.userList.length" effect="dark" placement="top"> :table-params="tableParams">
<div slot="content" class="tooltip-content-max"> <div slot="userList" slot-scope="scope">
<div>{{ scope.columnsObj.formatter(scope.scope) }}</div> <el-tooltip v-if="scope.scope.userList && scope.scope.userList.length"
</div> effect="dark"
<span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span> placement="top">
</el-tooltip> <div slot="content" class="tooltip-content-max">
<div v-else>-</div> <div>{{ scope.columnsObj.formatter(scope.scope) }}</div>
</div> </div>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <span class="one-line-ellipsis">{{ scope.columnsObj.formatter(scope.scope) }}</span>
</d2-table> </el-tooltip>
<div v-else>
-
</div>
</div> </div>
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
</d2-table>
</div> </div>
</template> </div>
</template>
<script>
import { busTypeOpt, cooperModeOpt, flowSituateOpt } from '../constant/baseData' <script>
import { organizationUserList } from '@api/salesManagement' import { organizationUserList } from "@api/salesManagement";
export default { import { busTypeOpt, cooperModeOpt, flowSituateOpt } from "../constant/baseData";
name: 'Customer',
data() { export default {
return { name: "Customer",
recordInfo: {}, data() {
userInfo: this.$store.state.d2admin.user.info, return {
getListApi: organizationUserList, recordInfo: {},
tableParams: { userInfo: this.$store.state.d2admin.user.info,
btnId: new Date().getTime() + parseInt(Math.random() * 1000), getListApi: organizationUserList,
listName: 'list', tableParams: {
tableOption: true, btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
tableColumns: [{ listName: "list",
label: '省份名称', tableOption: true,
prop: 'provinceName' tableColumns: [{
},{ label: "省份名称",
label: '区域运营大区经理', prop: "provinceName",
prop: 'areaManagerName', }, {
}, { label: "区域运营大区经理",
label: '区域运营', prop: "areaManagerName",
prop: 'regionalOperationsName', }, {
}, { label: "1.1区域运营",
label: '修改时间', prop: "regionalOperationsName",
prop: 'updatedDate', }, {
width: '150px' label: "2.1区域运营",
}] prop: "regionalOperationsTwoOneName",
}, }, {
baseData: { label: "2.3区域运营",
tmplTypeList: [], prop: "regionalOperationsTwoThreeName",
provinceInfoList: [], }, {
cityList: [], label: "修改时间",
brandList: [], prop: "updatedDate",
busTypeOpt: busTypeOpt, width: "150px",
cooperModeOpt: cooperModeOpt, }],
flowSituateOpt: flowSituateOpt },
} baseData: {
} tmplTypeList: [],
}, provinceInfoList: [],
mounted() { cityList: [],
}, brandList: [],
busTypeOpt,
methods: { cooperModeOpt,
handleEdit(row = {}) { flowSituateOpt,
console.log("CS1220"); },
};
this.$router.push({ },
name: "editOrganize", mounted() {
query: { },
source: 'regional',
activeTab: 'regional', methods: {
id: row?.id || '', handleEdit(row = {}) {
regionName: row?.provinceName || '', console.log("CS1220");
regionalOperationsAreaManager: row?.regionalOperationsAreaManager || '',
regionalOperations: row?.regionalOperations || '', this.$router.push({
userList: row?.userList || [] name: "editOrganize",
} query: {
}) source: "regional",
} activeTab: "regional",
} id: row?.id || "",
} regionName: row?.provinceName || "",
regionalOperationsAreaManager: row?.regionalOperationsAreaManager || "",
</script> regionalOperations: row?.regionalOperations || "",
regionalOperationsTwoOne: row?.regionalOperationsTwoOne || "",
regionalOperationsTwoThree: row?.regionalOperationsTwoThree || "",
userList: row?.userList || [],
},
});
},
},
};
</script>
<style scoped> <style scoped>
.tabs-container { .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 \ 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!