Browse Source

init

newStyle
lancer 3 years ago
parent
commit
dffb28844b
10 changed files with 129 additions and 37 deletions
  1. +18
    -6
      src/views/Customer/AgentManagement.vue
  2. +18
    -6
      src/views/Customer/CompanyRecord.vue
  3. +10
    -2
      src/views/Customer/Companymanagement.vue
  4. +13
    -3
      src/views/Customer/SalesStage.vue
  5. +14
    -4
      src/views/Customer/index.vue
  6. +12
    -3
      src/views/ReceivingRecords/index.vue
  7. +8
    -1
      src/views/building/Count.vue
  8. +12
    -3
      src/views/building/area.vue
  9. +23
    -8
      src/views/building/index.vue
  10. +1
    -1
      vue.config.js

+ 18
- 6
src/views/Customer/AgentManagement.vue View File

@@ -44,7 +44,7 @@
<div class="app-titel" style="margin-top: 15px">
<div class="label" style="color: #ffffff">筛选相关:</div>
<div>
<el-button @click="infoadd()" style="background: #2671e2; color: #ffffff"
<el-button v-if="cus_ag_add" @click="infoadd()" style="background: #2671e2; color: #ffffff"
>新增</el-button
>
</div>
@@ -135,11 +135,11 @@
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="scope">
<el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button>
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button>
<el-button type="text" size="small" @click="editOpera(scope.row)">管理系统运营</el-button>
<el-button type="text" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button>
<el-button type="text" v-if="cus_ag_edit" size="small" @click="infoeditor(scope.row)">编辑</el-button>
<el-button type="text" v-if="cus_ag_change" size="small" @click="inforeplace(scope.row)">更换账号</el-button>
<el-button type="text" v-if="cus_ag_del" size="small" @click="toinifodelete(scope)">删除</el-button>
<el-button type="text" v-if="cus_ag_manage" size="small" @click="editOpera(scope.row)">管理系统运营</el-button>
<el-button type="text" v-if="cus_ag_open" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button>
</template>
</el-table-column>
</el-table>
@@ -339,6 +339,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -480,6 +481,17 @@ export default {
}

};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_ag_add = this.permissions["cus_ag_add"];
this.cus_ag_edit = this.permissions["cus_ag_edit"];
this.cus_ag_change = this.permissions["cus_ag_change"];
this.cus_ag_del = this.permissions["cus_ag_del"];
this.cus_ag_manage = this.permissions["cus_ag_manage"];
this.cus_ag_open = this.permissions["cus_ag_open"];
},
mounted() {
this.getAgentList()


+ 18
- 6
src/views/Customer/CompanyRecord.vue View File

@@ -21,7 +21,7 @@
<div class="app-titel" style="margin-top: 15px">
<div class="label" style="color: #ffffff">筛选相关:</div>
<div>
<el-button @click="infoadd()" style="background: #2671e2; color: #ffffff"
<el-button v-if="cus_crd_add" @click="infoadd()" style="background: #2671e2; color: #ffffff"
>新增</el-button
>
</div>
@@ -96,13 +96,13 @@
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="scope">
<el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button>
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button>
<el-button type="text" v-if="cus_crd_edit" size="small" @click="infoeditor(scope.row)">编辑</el-button>
<el-button type="text" v-if="cus_crd_change" size="small" @click="inforeplace(scope.row)">更换账号</el-button>
<el-button type="text" v-if="cus_crd_del" size="small" @click="toinifodelete(scope)">删除</el-button>
<!-- <el-button type="text" size="small" @click="editOpera(scope.row,0)">管理系统运营</el-button>
<el-button type="text" size="small" @click="editOpera(scope.row,1)">管理代理商运营</el-button> -->
<el-button type="text" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button>
<el-button type="text" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button>
<el-button type="text" v-if="cus_crd_bindAgent" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button>
<el-button type="text" v-if="cus_crd_open" size="small" @click="toDisable(scope.row)">{{scope.row.lockFlag==0?'禁用':'启用'}}</el-button>
</template>
</el-table-column>
</el-table>
@@ -296,6 +296,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -434,6 +435,17 @@ export default {
}
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_crd_add = this.permissions["cus_crd_add"];
this.cus_crd_edit = this.permissions["cus_crd_edit"];
this.cus_crd_change = this.permissions["cus_crd_change"];
this.cus_crd_del = this.permissions["cus_crd_del"];
this.cus_crd_bindAgent = this.permissions["cus_crd_bindAgent"];
this.cus_crd_open = this.permissions["cus_crd_open"];
},
mounted() {
this.orgType=localStorage.getItem('orgType')
this.getcompanyList()


+ 10
- 2
src/views/Customer/Companymanagement.vue View File

@@ -93,8 +93,8 @@
<!-- <el-button type="text" size="small" @click="infoeditor(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="inforeplace(scope.row)">更换账号</el-button>
<el-button type="text" size="small" @click="toinifodelete(scope)">删除</el-button> -->
<el-button type="text" size="small" @click="editOpera(scope.row,0)">管理系统运营</el-button>
<el-button type="text" size="small" @click="editOpera(scope.row,1)">管理代理商运营</el-button>
<el-button type="text" size="small" v-if="cus_com_sys" @click="editOpera(scope.row,0)">管理系统运营</el-button>
<el-button type="text" size="small" v-if="cus_com_sys1" @click="editOpera(scope.row,1)">管理代理商运营</el-button>
<!-- <el-button type="text" size="small" @click="bindAgent(scope.row)">绑定代理商</el-button> -->
</template>
</el-table-column>
@@ -289,6 +289,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -426,6 +427,13 @@ export default {
// ],
}
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_com_sys = this.permissions["cus_com_sys"];
this.cus_com_sys1 = this.permissions["cus_com_sys1"];
},
mounted() {
this.orgType=localStorage.getItem('orgType')


+ 13
- 3
src/views/Customer/SalesStage.vue View File

@@ -14,7 +14,7 @@
<el-select
v-model="houseId"
@change="houseChange"
filterable
filterable
placeholder="请选择"
>
<el-option
@@ -28,6 +28,7 @@
</div>
<div style="margin-left: 20px">
<el-button
v-if="cus_sal_add"
@click="infoadd()"
style="background: #2671e2; color: #ffffff"
>新增</el-button
@@ -49,8 +50,8 @@

<el-table-column label="操作" align="center" width="150">
<template slot-scope="{ row }">
<el-button type="text" @click="edit(row)">编辑</el-button>
<el-button type="text" @click="toinifodelete(row)">删除</el-button>
<el-button type="text" v-if="cus_sal_edit" @click="edit(row)">编辑</el-button>
<el-button type="text" v-if="cus_sal_del" @click="toinifodelete(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -87,6 +88,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -111,6 +113,14 @@ export default {
value: "",
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_sal_add = this.permissions["cus_sal_add"];
this.cus_sal_edit = this.permissions["cus_sal_edit"];
this.cus_sal_del = this.permissions["cus_sal_del"];
},
mounted() {
// 获取楼盘列表
this.zkhousePage();


+ 14
- 4
src/views/Customer/index.vue View File

@@ -266,11 +266,11 @@
</el-table-column>
<el-table-column label="操作" align="center" width="250" fixed="right">
<template slot-scope="{row}">
<el-button type="text">客户详情</el-button>
<el-button type="text">接待详情</el-button>
<el-button type="text" v-if="cus_index_detail">客户详情</el-button>
<el-button type="text" v-if="cus_index_visit">接待详情</el-button>
<!-- <el-button type="text">更多</el-button> -->
<el-button type="text" @click="tranfser(row)">转交</el-button>
<el-button type="text">删除</el-button>
<el-button type="text" @click="tranfser(row)" v-if="cus_index_take">转交</el-button>
<el-button type="text" v-if="cus_index_del">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -291,6 +291,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -406,6 +407,15 @@ export default {
},
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_index_detail = this.permissions["cus_index_detail"];
this.cus_index_take = this.permissions["cus_index_take"];
this.cus_index_del = this.permissions["cus_index_del"];
this.cus_index_visit = this.permissions["cus_index_visit"];
},
mounted() {
// 获取楼盘列表
this.zkhousePage();


+ 12
- 3
src/views/ReceivingRecords/index.vue View File

@@ -240,9 +240,9 @@
<!-- scope -->
<el-table-column label="操作" align="center" width="200" fixed="right">
<template slot-scope="{ row }">
<el-button type="text">查看</el-button>
<el-button type="text">下载文本</el-button>
<el-button type="text">下载录音</el-button>
<el-button type="text" v-if="rec_index_look">查看</el-button>
<el-button type="text" v-if="rec_index_text">下载文本</el-button>
<el-button type="text" v-if="rec_index_voice">下载录音</el-button>
</template>
</el-table-column>
</el-table>
@@ -263,6 +263,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -363,6 +364,14 @@ export default {
projectId: "",
},
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.rec_index_look = this.permissions["rec_index_look"];
this.rec_index_text = this.permissions["rec_index_text"];
this.rec_index_voice = this.permissions["rec_index_voice"];
},
mounted() {
this.tabtimetap(0);


+ 8
- 1
src/views/building/Count.vue View File

@@ -161,7 +161,7 @@
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="{ row }">
<el-button type="text" @click="goEquiment(row)"
<el-button type="text" v-if="cus_build_area_record" @click="goEquiment(row)"
>设备使用统计</el-button
>
</template>
@@ -187,6 +187,7 @@
</template>

<script>
import { mapGetters } from "vuex";
import { getAreaList } from "@/api/modules/api";
export default {
data() {
@@ -245,6 +246,12 @@ export default {
size: 10,
total: 10,
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_build_area_record = this.permissions["cus_build_area_record"];
},
mounted() {
// 获取楼盘列表


+ 12
- 3
src/views/building/area.vue View File

@@ -21,7 +21,7 @@
</el-select>
</div>
</div>
<el-button class="app-titel-btn" type="primary" @click="addClick"
<el-button v-if="cus_build_area_add" class="app-titel-btn" type="primary" @click="addClick"
>新增</el-button
>
</div>
@@ -39,8 +39,8 @@
</el-table-column>
<el-table-column label="操作" width="250">
<template slot-scope="scope">
<el-button type="text" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" @click="del(scope.row)">删除</el-button>
<el-button type="text" v-if="cus_build_area_edit" @click="edit(scope.row)">编辑</el-button>
<el-button type="text" v-if="cus_build_area_del" @click="del(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -102,6 +102,7 @@
</template>

<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
@@ -133,6 +134,14 @@ export default {
options: [],
roleFlag: "",
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_build_area_add = this.permissions["cus_build_area_add"];
this.cus_build_area_del = this.permissions["cus_build_area_del"];
this.cus_build_area_edit = this.permissions["cus_build_area_edit"];
},
mounted() {
// 获取公司列表


+ 23
- 8
src/views/building/index.vue View File

@@ -143,6 +143,7 @@
</div>
<div style="margin-left: auto; margin-right: 20px" v-if="orgType != 2">
<el-button
v-if="cus_build_index_add"
style="background: #2671e2; color: #ffffff"
@click="addHouse"
>新增</el-button
@@ -223,20 +224,20 @@
<!-- scope -->
<el-table-column label="操作" align="center" fixed="right" width="200">
<template slot-scope="{ row }">
<el-button type="text" @click="edit(row)">编辑</el-button>
<el-button type="text" v-if="cus_build_index_edit" @click="edit(row)">编辑</el-button>
<el-button
type="text"
v-if="orgType != 2"
v-if="orgType != 2&&cus_build_index_change"
@click="changeAccount(row)"
>更换账号</el-button
>
<el-button type="text" v-if="orgType == 2">添加员工</el-button>
<el-button type="text" size="small" @click="editOpera(row,0)">管理系统运营人员</el-button>
<el-button type="text" size="small" @click="editOpera(row,1)">管理代理商运营</el-button>
<!-- <el-button type="text" v-if="orgType == 2">添加员工</el-button> -->
<el-button type="text" size="small" v-if="cus_build_index_sys" @click="editOpera(row,0)">管理系统运营人员</el-button>
<el-button type="text" size="small" v-if="cus_build_index_agent" @click="editOpera(row,1)">管理代理商运营</el-button>
<!-- <el-button type="text">添加员工</el-button> -->
<el-button type="text" size="small" @click="bindAgent(row)">绑定代理商</el-button>
<el-button type="text" @click="del(row)">删除</el-button>
<el-button type="text" size="small" @click="toDisable(row)">{{row.lockFlag==0?'禁用':'启用'}}</el-button>
<el-button type="text" size="small" v-if="cus_build_index_bindAgent" @click="bindAgent(row)">绑定代理商</el-button>
<el-button type="text" v-if="cus_build_index_del" @click="del(row)">删除</el-button>
<el-button type="text" v-if="cus_build_index_open" size="small" @click="toDisable(row)">{{row.lockFlag==0?'禁用':'启用'}}</el-button>
</template>
</el-table-column>
</el-table>
@@ -514,6 +515,7 @@
</template>

<script>
import { mapGetters } from "vuex";
import { getAreaList } from "@/api/modules/api";
export default {
data() {
@@ -667,6 +669,19 @@ export default {
agentId:'',
},
};
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.cus_build_index_add = this.permissions["cus_build_index_add"];
this.cus_build_index_edit = this.permissions["cus_build_index_edit"];
this.cus_build_index_change = this.permissions["cus_build_index_change"];
this.cus_build_index_sys = this.permissions["cus_build_index_sys"];
this.cus_build_index_agent = this.permissions["cus_build_index_agent"];
this.cus_build_index_bindAgent = this.permissions["cus_build_index_bindAgent"];
this.cus_build_index_del = this.permissions["cus_build_index_del"];
this.cus_build_index_open = this.permissions["cus_build_index_open"];
},
mounted() {
this.orgType = localStorage.getItem("orgType");


+ 1
- 1
vue.config.js View File

@@ -7,7 +7,7 @@
// const url = 'http://192.168.31.169:9999' //长龙
// const url = 'http://192.168.31.133:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
const url = 'http://mrra2f.natappfree.cc' //王笑
const url = 'http://ea28ma.natappfree.cc' //王笑

const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css']


Loading…
Cancel
Save