去除团队相关

This commit is contained in:
dengbw
2023-05-31 11:53:55 +08:00
parent b08088f833
commit 79afdee6dc
6 changed files with 18 additions and 42 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export async function getCaptcha() {
* 获取手机验证码
*/
export async function getCode(params) {
const res = await request.get('/login/code/', {
const res = await request.get('/login/code', {
params
});
if (res.data.code === 0) {
+5 -3
View File
@@ -76,10 +76,12 @@ export async function updateActivity(data) {
/**
* 复制活动
* @param id 活动id
* @param activityId 活动id
*/
export async function copyActivity(id) {
const res = await request.get('/sylive/activity/copy/' + id);
export async function copyActivity(activityId) {
const res = await request.get('/sylive/activity/copy', {
params: { activityId }
});
if (res.data.code === 0) {
return res.data.message;
}
@@ -299,13 +299,15 @@
return;
}
this.activityId = activityId;
if (!this.itemId && this.data.goods[0]) {
this.itemId = this.data.goods[0]['value'];
}
this.getStatisticsStackedArea();
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
setTimeout(() => {
if (!this.itemId && this.data.goods[0]) {
this.itemId = this.data.goods[0]['value'];
}
this.getStatisticsStackedArea();
if (this.$refs.table) {
this.$refs.table.reload({ page: 1 });
}
}, 1300);
},
immediate: true
}
@@ -41,22 +41,13 @@
</el-form-item>
</el-col>
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
<el-form-item label="用户来源:">
<el-radio-group v-model="form.userFrom">
<el-radio :label="0">机构</el-radio>
<el-radio :label="1">团队</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="form.userFrom == 0 ? '是否门店:' : '是否团队:'">
<el-form-item label="是否门店">
<el-radio-group v-model="form.ifBiz">
<el-radio :label="0"></el-radio>
<el-radio :label="1"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if="form.userFrom == 0 && form.ifBiz == 1"
label="原始门店:"
>
<el-form-item v-if="form.ifBiz == 1" label="原始门店:">
<ele-tree-select
:data="organizationList"
label-key="organizationName"
-19
View File
@@ -69,7 +69,6 @@
:data="current"
:groups-id="current.groupsId"
:organization-list="organizationList"
:team-list="teamList"
/>
</template>
</ele-split-layout>
@@ -97,7 +96,6 @@
exportGroupsConsultant
} from '@/api/sylive/groups';
import { listOrganizations } from '@/api/institution/organization';
import { listTeams } from '@/api/institution/team';
import { listDictionaries } from '@/api/system/dictionary';
import { utils, writeFile } from 'xlsx';
const ROUTE_PATH = '/sylive/groups';
@@ -115,8 +113,6 @@
current: null,
// 机构数据
organizationList: [],
// 团队数据
teamList: [],
// 统计类型数据
statisticsTypeList: [],
// 是否显示表单弹窗
@@ -131,7 +127,6 @@
},
created() {
this.organizationQuery();
this.teamQuery();
this.statisticsTypeQuery();
},
methods: {
@@ -172,20 +167,6 @@
this.$message.error(e.message);
});
},
/* 查询团队 */
teamQuery() {
listTeams({ unTeamType: 3 })
.then((list) => {
this.teamList = this.$util.toTreeData({
data: list,
idField: 'teamId',
parentIdField: 'parentId'
});
})
.catch((e) => {
this.$message.error(e.message);
});
},
/* 查询统计类型 */
statisticsTypeQuery() {
listDictionaries({ dictCode: 'groups_level' })
@@ -82,7 +82,7 @@
{{ data.url }}
</div>
</el-form-item>
<el-form-item label="调用方法:">
<el-form-item label="调用方法:" v-show="false">
<div class="ele-text-secondary">
{{ data.method }}
</div>