|
@@ -1,40 +1,56 @@
|
|
|
<template>
|
|
|
<div class="main">
|
|
|
- <div class="search">
|
|
|
- <el-input placeholder="输入楼栋名称" class="search-input" clearable v-model="mixins_query.buildingName"></el-input>
|
|
|
- <el-select v-model="mixins_query.communityId" placeholder="请选择所属社区" clearable>
|
|
|
- <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
|
|
|
- </el-select>
|
|
|
- <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
|
|
|
- </div>
|
|
|
- <div class="roles-wrap">
|
|
|
- <zz-table
|
|
|
- :cols="cols"
|
|
|
- :settings="{ showIndex: true, stripe: true }"
|
|
|
- :loading="mixins_onQuery"
|
|
|
- :data="mixins_list"
|
|
|
- :pageset="mixins_pageset"
|
|
|
- @page-change="pageChange"
|
|
|
- @selection-change="selectionChange"
|
|
|
- >
|
|
|
- <template slot-scope="scope" slot="SaleNums">
|
|
|
- {{ rwNumber(scope.row) }}
|
|
|
- </template>
|
|
|
- <template slot-scope="scope" slot="rate">
|
|
|
- {{ rwNumber(scope.row, '%') }}
|
|
|
- </template>
|
|
|
- </zz-table>
|
|
|
- </div>
|
|
|
+ <template v-if="!isLook">
|
|
|
+ <div class="search">
|
|
|
+ <el-input placeholder="输入楼栋名称" class="search-input" clearable v-model="mixins_query.buildingName"></el-input>
|
|
|
+ <el-select v-model="mixins_query.communityId" placeholder="请选择所属社区" clearable>
|
|
|
+ <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
|
|
|
+ </div>
|
|
|
+ <div class="roles-wrap">
|
|
|
+ <zz-table
|
|
|
+ :cols="cols"
|
|
|
+ :settings="{ showIndex: true, stripe: true }"
|
|
|
+ :loading="mixins_onQuery"
|
|
|
+ :data="mixins_list"
|
|
|
+ :pageset="mixins_pageset"
|
|
|
+ @page-change="pageChange"
|
|
|
+ @selection-change="selectionChange"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope" slot="SaleNums">
|
|
|
+ {{ rwNumber(scope.row) }}
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope" slot="rate">
|
|
|
+ {{ rwNumber(scope.row, '%') }}
|
|
|
+ </template>
|
|
|
+ <template slot-scope="scope" slot="opt">
|
|
|
+ <div class="opt">
|
|
|
+ <el-tooltip effect="light" placement="bottom" content="查看">
|
|
|
+ <i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetail(scope.row)"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </zz-table>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <look-details v-else :prData="thisObj"></look-details>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import list from '@utils/list.js';
|
|
|
+import lookDetails from './details.vue';
|
|
|
export default {
|
|
|
mixins: [list],
|
|
|
name: 'advertisingManagement',
|
|
|
+ components: {
|
|
|
+ lookDetails
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
+ isLook: false,
|
|
|
+ thisObj: {},
|
|
|
communityArr: [],
|
|
|
cols: [
|
|
|
{
|
|
@@ -68,6 +84,10 @@ export default {
|
|
|
{
|
|
|
label: '租售率',
|
|
|
slot: 'rate'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '操作',
|
|
|
+ slot: 'opt'
|
|
|
}
|
|
|
],
|
|
|
mixins_post: 'post'
|
|
@@ -80,6 +100,10 @@ export default {
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
+ lookDetail(row) {
|
|
|
+ this.thisObj = row;
|
|
|
+ this.isLook = !this.isLook;
|
|
|
+ },
|
|
|
getorgTree() {
|
|
|
this.$http
|
|
|
.get('/sc-community/assets/community/list')
|
|
@@ -98,7 +122,7 @@ export default {
|
|
|
Sold = SoldNumer / row.houseNumber;
|
|
|
}
|
|
|
if (!!fh) {
|
|
|
- return Math.floor(Sold * 100) + '%';
|
|
|
+ return Math.floor(Sold * 100) + '%';
|
|
|
} else {
|
|
|
return SoldNumer;
|
|
|
}
|