|
@@ -1,138 +1,189 @@
|
|
<template>
|
|
<template>
|
|
<div class="content main">
|
|
<div class="content main">
|
|
- <organ-tree @organId="currentOrganId"></organ-tree>
|
|
|
|
- <div class="content-right">
|
|
|
|
- <div class="search">
|
|
|
|
- <el-input
|
|
|
|
- clearable
|
|
|
|
- placeholder="商铺号/招商人员"
|
|
|
|
- class="search-input"
|
|
|
|
- v-trim
|
|
|
|
- v-model.trim="mixins_query.name"
|
|
|
|
- ></el-input>
|
|
|
|
- <el-select
|
|
|
|
- v-model="mixins_query.releaseStatus"
|
|
|
|
- placeholder="发布状态"
|
|
|
|
- clearable
|
|
|
|
|
|
+ <!-- <organ-tree @organId="currentOrganId"></organ-tree> -->
|
|
|
|
+ <!-- <div class="content-right"> -->
|
|
|
|
+ <div class="search">
|
|
|
|
+ <el-input
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="商铺号/招商人员"
|
|
|
|
+ class="search-input"
|
|
|
|
+ v-trim
|
|
|
|
+ v-model.trim="mixins_query.name"
|
|
|
|
+ ></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-select
|
|
|
|
+ v-model="mixins_query.salesType"
|
|
|
|
+ placeholder="房屋类型"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ label="住宅"
|
|
|
|
+ :value="1"
|
|
|
|
+ ></el-option>
|
|
|
|
+ <el-option
|
|
|
|
+ label="商业"
|
|
|
|
+ :value="2"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="mixins_query.releaseStatus"
|
|
|
|
+ placeholder="发布状态"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ label="未发布"
|
|
|
|
+ :value="0"
|
|
|
|
+ ></el-option>
|
|
|
|
+ <el-option
|
|
|
|
+ label="已发布"
|
|
|
|
+ :value="1"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <!-- <el-select
|
|
|
|
+ v-model="mixins_query.salesType"
|
|
|
|
+ placeholder="租售类型"
|
|
|
|
+ clearable
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ label="可租可售"
|
|
|
|
+ :value="1"
|
|
|
|
+ ></el-option>
|
|
|
|
+ <el-option
|
|
|
|
+ label="只租"
|
|
|
|
+ :value="2"
|
|
|
|
+ ></el-option>
|
|
|
|
+ <el-option
|
|
|
|
+ label="只售"
|
|
|
|
+ :value="3"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select> -->
|
|
|
|
+ <el-button
|
|
|
|
+ class="search-btn"
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="mixins_search()"
|
|
|
|
+ :disabled="mixins_onQuery"
|
|
|
|
+ :loading="mixins_onQuery"
|
|
|
|
+ icon="el-icon-search"
|
|
|
|
+ >查询</el-button>
|
|
|
|
+ <div class="search-icon">
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="light"
|
|
|
|
+ placement="bottom"
|
|
|
|
+ content="新增"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- label="未发布"
|
|
|
|
- :value="0"
|
|
|
|
- ></el-option>
|
|
|
|
- <el-option
|
|
|
|
- label="已发布"
|
|
|
|
- :value="1"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <el-select
|
|
|
|
- v-model="mixins_query.salesType"
|
|
|
|
- placeholder="租售类型"
|
|
|
|
- clearable
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="zoniot_font zoniot-icon-tianjia2"
|
|
|
|
+ @click="add('add','')"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="light"
|
|
|
|
+ placement="bottom"
|
|
|
|
+ content="分配招商人员"
|
|
>
|
|
>
|
|
- <el-option
|
|
|
|
- label="可租可售"
|
|
|
|
- :value="1"
|
|
|
|
- ></el-option>
|
|
|
|
- <el-option
|
|
|
|
- label="只租"
|
|
|
|
- :value="2"
|
|
|
|
- ></el-option>
|
|
|
|
- <el-option
|
|
|
|
- label="只售"
|
|
|
|
- :value="3"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <el-button
|
|
|
|
- class="search-btn"
|
|
|
|
- type="primary"
|
|
|
|
- @click="mixins_search()"
|
|
|
|
- :disabled="mixins_onQuery"
|
|
|
|
- :loading="mixins_onQuery"
|
|
|
|
- icon="el-icon-search"
|
|
|
|
- >查询</el-button>
|
|
|
|
- <div class="search-icon">
|
|
|
|
- <el-tooltip
|
|
|
|
- class="item"
|
|
|
|
- effect="light"
|
|
|
|
- placement="bottom"
|
|
|
|
- content="分配招商人员"
|
|
|
|
- >
|
|
|
|
- <i
|
|
|
|
- class="zoniot_font zoniot-icon-fenpeirenyuan"
|
|
|
|
- @click="distribution"
|
|
|
|
- ></i>
|
|
|
|
- </el-tooltip>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="zoniot_font zoniot-icon-fenpeirenyuan"
|
|
|
|
+ @click="distribution"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="light"
|
|
|
|
+ placement="bottom"
|
|
|
|
+ content="发布"
|
|
|
|
+ >
|
|
|
|
+ <i
|
|
|
|
+ class="zoniot_font zoniot-icon-fabu2"
|
|
|
|
+ @click="release"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="light"
|
|
|
|
+ placement="bottom"
|
|
|
|
+ content="下架"
|
|
|
|
+ >
|
|
|
|
+ <i
|
|
|
|
+ class="zoniot_font zoniot-icon-xiajia"
|
|
|
|
+ @click="offTheShelf"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <zz-table
|
|
|
|
+ :settings="{ showCheckbox: true, stripe: true }"
|
|
|
|
+ :cols="cols"
|
|
|
|
+ :loading="mixins_onQuery"
|
|
|
|
+ :data="mixins_list"
|
|
|
|
+ :pageset="mixins_pageset"
|
|
|
|
+ @page-change="pageChange"
|
|
|
|
+ @selection-change="selectionChange"
|
|
|
|
+ >
|
|
|
|
+ <template
|
|
|
|
+ slot-scope="scope"
|
|
|
|
+ slot="address"
|
|
|
|
+ >
|
|
|
|
+ {{
|
|
|
|
+ `${!!scope.row.buildingName ? scope.row.buildingName : ''}${!!scope.row.unitName ? '-' + scope.row.unitName : ''}${
|
|
|
|
+ !!scope.row.roomNumber ? '-' + scope.row.roomNumber : ''
|
|
|
|
+ }`
|
|
|
|
+ }}
|
|
|
|
+ </template>
|
|
|
|
+ <template
|
|
|
|
+ slot-scope="scope"
|
|
|
|
+ slot="buildingType"
|
|
|
|
+ >
|
|
|
|
+ {{ !!scope.row.buildingType ? `${buildingType[Number(scope.row.buildingType) - 1]}` : ''
|
|
|
|
+ }}
|
|
|
|
+ <!-- {{ !!scope.row.residenceType ? `-${residenceType[Number(scope.row.residenceType) + 1]['label']}` : '' }} -->
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <template
|
|
|
|
+ slot-scope="scope"
|
|
|
|
+ slot="opt"
|
|
|
|
+ >
|
|
|
|
+ <div class="opt">
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="item"
|
|
class="item"
|
|
effect="light"
|
|
effect="light"
|
|
placement="bottom"
|
|
placement="bottom"
|
|
- content="发布"
|
|
|
|
|
|
+ content="招商方案"
|
|
>
|
|
>
|
|
<i
|
|
<i
|
|
- class="zoniot_font zoniot-icon-fabu2"
|
|
|
|
- @click="release"
|
|
|
|
|
|
+ class="zoniot_font zoniot-icon-bianji"
|
|
|
|
+ @click="programme(scope.row)"
|
|
></i>
|
|
></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
+
|
|
<el-tooltip
|
|
<el-tooltip
|
|
- class="item"
|
|
|
|
effect="light"
|
|
effect="light"
|
|
placement="bottom"
|
|
placement="bottom"
|
|
- content="下架"
|
|
|
|
|
|
+ content="删除"
|
|
>
|
|
>
|
|
<i
|
|
<i
|
|
- class="zoniot_font zoniot-icon-xiajia"
|
|
|
|
- @click="offTheShelf"
|
|
|
|
|
|
+ class="zoniot_font zoniot-icon-shanchu redText"
|
|
|
|
+ @click="deleteOne(scope.row.id)"
|
|
></i>
|
|
></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <zz-table
|
|
|
|
- :settings="{ showCheckbox: true, stripe: true }"
|
|
|
|
- :cols="cols"
|
|
|
|
- :loading="mixins_onQuery"
|
|
|
|
- :data="mixins_list"
|
|
|
|
- :pageset="mixins_pageset"
|
|
|
|
- @page-change="pageChange"
|
|
|
|
- @selection-change="selectionChange"
|
|
|
|
- >
|
|
|
|
- <template
|
|
|
|
- slot-scope="scope"
|
|
|
|
- slot="address"
|
|
|
|
- >
|
|
|
|
- {{
|
|
|
|
- `${!!scope.row.buildingName ? scope.row.buildingName : ''}${!!scope.row.unitName ? '-' + scope.row.unitName : ''}${
|
|
|
|
- !!scope.row.roomNumber ? '-' + scope.row.roomNumber : ''
|
|
|
|
- }`
|
|
|
|
- }}
|
|
|
|
- </template>
|
|
|
|
- <template
|
|
|
|
- slot-scope="scope"
|
|
|
|
- slot="buildingType"
|
|
|
|
- >
|
|
|
|
- {{ !!scope.row.buildingType ? `${buildingType[Number(scope.row.buildingType) - 1]}` : ''
|
|
|
|
- }}{{ !!scope.row.residenceType ? `-${residenceType[Number(scope.row.residenceType) + 1]['label']}` : '' }}
|
|
|
|
- </template>
|
|
|
|
-
|
|
|
|
- <template
|
|
|
|
- slot-scope="scope"
|
|
|
|
- slot="opt"
|
|
|
|
- >
|
|
|
|
- <div class="opt">
|
|
|
|
- <el-tooltip
|
|
|
|
- class="item"
|
|
|
|
- effect="light"
|
|
|
|
- placement="bottom"
|
|
|
|
- content="招商方案"
|
|
|
|
- >
|
|
|
|
- <i
|
|
|
|
- class="zoniot_font zoniot-icon-bianji"
|
|
|
|
- @click="programme(scope.row)"
|
|
|
|
- ></i>
|
|
|
|
- </el-tooltip>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </zz-table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ </zz-table>
|
|
|
|
+ <!-- </div> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -145,7 +196,8 @@ export default {
|
|
return {
|
|
return {
|
|
currentId: '',
|
|
currentId: '',
|
|
thisLeftData: {},
|
|
thisLeftData: {},
|
|
- selectRow: []
|
|
|
|
|
|
+ selectRow: [],
|
|
|
|
+ communityArr: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -235,31 +287,75 @@ export default {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.mixins_search();
|
|
this.mixins_search();
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ add (title, data) {
|
|
|
|
+ new Promise((resolve) => {
|
|
|
|
+ this.$store.dispatch('addPopup', {
|
|
|
|
+ url: '/businessManagement/InvestmentResources/stepPage/add.vue',
|
|
|
|
+ width: '880px',
|
|
|
|
+ height: '600px',
|
|
|
|
+ props: {
|
|
|
|
+ title,
|
|
|
|
+ data,
|
|
|
|
+ callback: resolve,
|
|
|
|
+ arrData: this.findUser
|
|
|
|
+ },
|
|
|
|
+ title: title == 'add' ? '添加招商信息' : '修改招商信息'
|
|
|
|
+ });
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.mixins_search();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ deleteOne (id) {
|
|
|
|
+ // this.$msgBox(`删除`, '删除后将无法恢复,请问是否继续?')
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // this.$http.get('/czc-community/patrol/point/delete', { id: id }).then(({ status, data, msg }) => {
|
|
|
|
+ // if (0 === status) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // type: 'success',
|
|
|
|
+ // message: '删除成功!'
|
|
|
|
+ // });
|
|
|
|
+ // this.mixins_search();
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => { });
|
|
|
|
+ },
|
|
|
|
+ getorgTree () {
|
|
|
|
+ this.$http
|
|
|
|
+ .get('/czc-community/assets/community/list')
|
|
|
|
+ .then((data) => {
|
|
|
|
+ this.communityArr = data.data;
|
|
|
|
+ // this.$store.commit('setAreaSelect', data.data);
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ .catch(function () { });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- currentId (newValue, oldValue) {
|
|
|
|
- this.mixins_query.communityId = '';
|
|
|
|
- this.mixins_query.buildingId = '';
|
|
|
|
- this.mixins_query.unitName = '';
|
|
|
|
- this.mixins_query.houseId = '';
|
|
|
|
- if (newValue.type) {
|
|
|
|
- if (newValue.type === 'community') {
|
|
|
|
- this.mixins_query.communityId = newValue.communityId;
|
|
|
|
- } else if (newValue.type === 'building') {
|
|
|
|
- this.mixins_query.buildingId = newValue.buildingId;
|
|
|
|
- } else if (newValue.type === 'unit') {
|
|
|
|
- this.mixins_query.buildingId = newValue.buildingId;
|
|
|
|
- this.mixins_query.unitName = newValue.unitId;
|
|
|
|
- } else if (newValue.type === 'room') {
|
|
|
|
- this.mixins_query.houseId = newValue.houseId;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- this.thisLeftData = newValue;
|
|
|
|
- this.mixins_search();
|
|
|
|
- }
|
|
|
|
|
|
+ // currentId (newValue, oldValue) {
|
|
|
|
+ // this.mixins_query.communityId = '';
|
|
|
|
+ // this.mixins_query.buildingId = '';
|
|
|
|
+ // this.mixins_query.unitName = '';
|
|
|
|
+ // this.mixins_query.houseId = '';
|
|
|
|
+ // if (newValue.type) {
|
|
|
|
+ // if (newValue.type === 'community') {
|
|
|
|
+ // this.mixins_query.communityId = newValue.communityId;
|
|
|
|
+ // } else if (newValue.type === 'building') {
|
|
|
|
+ // this.mixins_query.buildingId = newValue.buildingId;
|
|
|
|
+ // } else if (newValue.type === 'unit') {
|
|
|
|
+ // this.mixins_query.buildingId = newValue.buildingId;
|
|
|
|
+ // this.mixins_query.unitName = newValue.unitId;
|
|
|
|
+ // } else if (newValue.type === 'room') {
|
|
|
|
+ // this.mixins_query.houseId = newValue.houseId;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // this.thisLeftData = newValue;
|
|
|
|
+ // this.mixins_search();
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
|
|
+ this.getorgTree();
|
|
this.mixins_dataUrl = '/czc-community/merchants/page'; // 分页查询接口
|
|
this.mixins_dataUrl = '/czc-community/merchants/page'; // 分页查询接口
|
|
this.mixins_search();
|
|
this.mixins_search();
|
|
}
|
|
}
|