Commit 8fbf42af authored by zhengke's avatar zhengke

no message

parent f94a3e4d
...@@ -13,7 +13,8 @@ export default { ...@@ -13,7 +13,8 @@ export default {
Vue.prototype.domainManager = function() { Vue.prototype.domainManager = function() {
//CRM API //CRM API
let domainUrl = ""; let domainUrl = "";
domainUrl = "http://192.168.10.36:8098"; domainUrl = "http://192.168.10.46:8500";
// domainUrl = "http://192.168.10.36:8098";
//domainUrl = "http://localhost:5003"; //domainUrl = "http://localhost:5003";
let locationName = window.location.hostname; let locationName = window.location.hostname;
//旅游ERPApi //旅游ERPApi
......
...@@ -28,7 +28,10 @@ ...@@ -28,7 +28,10 @@
</div> </div>
<div class="page-content" style="padding-bottom:20px;"> <div class="page-content" style="padding-bottom:20px;">
<el-table :data="tableData" tooltip-effect="dark" v-loading="loading" style="width: 100%;height:100%;" border :cell-class-name="tableCellClassName" :row-class-name="tableRowClassName"> <el-table :data="tableData" tooltip-effect="dark" v-loading="loading" style="width: 100%;height:100%;" border :cell-class-name="tableCellClassName" :row-class-name="tableRowClassName">
<el-table-column prop="DateStr" label=""> <el-table-column>
<template slot-scope="scope">
<span class="pointer" @click="seeDetails(scope.row)">{{scope.row.DateStr}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="PushCount" label="引流总数"> <el-table-column prop="PushCount" label="引流总数">
</el-table-column> </el-table-column>
...@@ -64,13 +67,23 @@ ...@@ -64,13 +67,23 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-drawer :with-header="false" size='70%' :visible.sync="drawer" direction="rtl" :before-close="handleClose">
<clueComponent :isDrawer="isDrawer" :queryTime="queryTime"></clueComponent>
</el-drawer>
</div> </div>
</template> </template>
<script> <script>
import clueComponent from "@/components/clueManagement/clueComponent";
export default { export default {
components: {
clueComponent
},
data() { data() {
return { return {
queryTime:'',
drawer: false,
isDrawer: true,
msg: { msg: {
month: "", month: "",
YearStr: "", YearStr: "",
...@@ -91,6 +104,14 @@ export default { ...@@ -91,6 +104,14 @@ export default {
this.init(); this.init();
}, },
methods: { methods: {
handleClose(done) {
done();
},
// 查看详情
seeDetails(row){
this.drawer = true
this.queryTime = this.msg.YearStr+'-'+row.DateStr
},
init() { init() {
if (this.loading) return; if (this.loading) return;
this.loading = true; this.loading = true;
...@@ -122,7 +143,7 @@ export default { ...@@ -122,7 +143,7 @@ export default {
}, },
tableCellClassName({ row, column }) { tableCellClassName({ row, column }) {
if ( if (
row[column.property].toString().indexOf("-") != -1 && row[column.property]&&row[column.property].toString().indexOf("-") != -1 &&
column.property != "DateStr" column.property != "DateStr"
) { ) {
return "warning-col"; return "warning-col";
...@@ -181,4 +202,10 @@ export default { ...@@ -181,4 +202,10 @@ export default {
.el-table .warning-col { .el-table .warning-col {
background: red; background: red;
} }
.pointer{
cursor: pointer;
}
.pointer:hover{
color: #00b0f0;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment