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