123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /**
- * Created by xw on 2020/7/22.
- */
- var InformationPage = new Vue({
- el:"#informationPage",
- data: {
- clubId:0,
- clubInfo:{},
- saleName:''// 分配销售人名称
- },
- filters: {
- FirstFormat: function(type) {
- //处理金额
- let name = ''
- switch (type) {
- case 1:
- name = '医美'
- break
- case 2:
- name = '生美'
- break
- case 3:
- name = '项目公司'
- break
- case 4:
- name = '个人'
- break
- case 5:
- name = '其他'
- break
- }
- return name
- },
- TwoFormat: function(type) {
- //处理金额
- let text = ''
- switch (type) {
- case 1:
- text = '诊所'
- break
- case 2:
- text = '门诊'
- break
- case 3:
- text = '医院'
- break
- }
- return text
- }
- },
- methods: {
- userClubRecordLinkage: function () {
- var _this = this;
- UserApi.userClubRecordLinkage({clubId: _this.clubId}, function (response) {
- if (response.code == 0) {
- _this.saleName = response.data.saleName;
- _this.clubInfo = response.data.club;
- } else {
- console.log('获取机构信息异常')
- }
- })
- }
- },
- created: function () {
- },
- mounted: function () {
- var _this = this;
- _this.clubId = getUrlParam("clubId");
- _this.userClubRecordLinkage();
- }
- });
|