@@ -48,20 +48,18 @@ import Setting from "@/setting"
export default {
data () {
return {
- provinceId: this.$route.query.provinceId,
- provinces: [],
- cities: [],
isMobile: Util.isMobile(),
userName: this.$route.query.userName,
teamName: this.$route.query.teamName,
admin: this.$route.query.admin, // 是否是转让超管
form: {
- id: this.$route.query.accountId,
- partnerClassificationId: this.$route.query.id,
- isTeam: this.$route.query.isTeam, // 移动端创建的为成员(0),pc创建的为团队(1)
+ accountId: this.$route.query.accountId,
+ classificationId: this.$route.query.id,
+ platformId: this.$route.query.platformId,
+ // isTeam: this.$route.query.isTeam, // 移动端创建的为成员(0),pc创建的为团队(1)
phone: '',
code: '',
- userName: '',
+ name: '',
},
rules: {
phone: [
@@ -80,25 +78,9 @@ export default {
};
},
mounted () {
- this.getProvince()
- this.form.cityId && this.getCity()
+
},
methods: {
- // 获取省份
- getProvince () {
- this.$get(this.api.queryProvince).then(res => {
- this.provinces = res.list
- }).catch(res => { })
- },
- // 获取城市
- getCity (val) {
- this.$get(this.api.queryCity, {
- provinceId: this.form.provinceId
- }).then(res => {
- this.cities = res.list
- if (val) this.form.cityId = ''
- }).catch(res => { })
- },
// 验证手机号
verifyPhone (phone) {
if (!phone) {
@@ -134,7 +116,6 @@ export default {
const { phone } = this.form
if (!this.verifyPhone(phone)) return false
this.$post(this.api.sendPhoneOrEmailCode, {
- platform: Setting.platformId,
phone,
types: 2
}).then(({ message }) => {
@@ -146,34 +127,17 @@ export default {
}
}).catch(res => { })
},
- // 手机号输入完后,带出信息
- phoneChange () {
- const { form } = this
- this.$get(this.api.queryUserInfoByPhone, {
- phone: form.phone
- }).then(({ info }) => {
- // 返回了信息,则赋值,并禁止输入
- if (info) {
- this.repeat = true
- form.account = info.account
- form.userName = info.userName
- } else {
- this.repeat = false
- }
- }).catch(res => { })
- },
// 提交
submit () {
this.$refs.form.validate((valid) => {
if (valid) {
if (this.submiting) return false
if (this.phoneRepeat) return Util.warningMsg("该手机号已存在")
- if (this.emailRepeat) return Util.warningMsg("该邮箱已存在")
const { form } = this
form.uniqueIdentification = Date.now()
this.submiting = true
- this.$post(this.api[this.admin ? 'transferAdmin' : 'savePartnerAccount'], form).then(res => {
- this.$router.push('/success')
+ this.$post(this.api[this.admin ? 'transferAdmin' : 'inviteJoinOrganization'], form).then(res => {
+ this.$router.push('/join/success')
}).catch(res => {
this.submiting = false
})
diff --git a/src/pages/miniProgramMg/index/banner/list/index.vue b/src/pages/miniProgramMg/index/banner/list/index.vue
index cff791d..f7ddf6f 100644
--- a/src/pages/miniProgramMg/index/banner/list/index.vue
+++ b/src/pages/miniProgramMg/index/banner/list/index.vue
@@ -32,7 +32,12 @@
- 无
+ {{ scope.row.jumpLink }}
+ 小程序内链接
+ 无
\ No newline at end of file
diff --git a/src/pages/preschool/manage/member.vue b/src/pages/preschool/manage/member.vue
index 2d42211..4dbde25 100644
--- a/src/pages/preschool/manage/member.vue
+++ b/src/pages/preschool/manage/member.vue
@@ -42,29 +42,29 @@
{{ scope.row.isTeam === '1' ? '负责人' : '成员' }}
-
-
-
+
转让管理员
+
踢出
- -->
+
+
+
+
+ -
+
+
+
{{ item.userName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -93,6 +169,21 @@ export default {
page: 1,
pageSize: 10,
total: 0,
+
+ transferVisible: false,
+ chooseVisible: false,
+ members: [],
+ choosePartnerId: '',
+ curRow: '',
+ provinces: [],
+ cities: [],
+ editVisible: false,
+ form: {
+ userName: '',
+ provinceId: '',
+ cityId: '',
+ },
+ roles: []
};
},
watch: {
@@ -133,60 +224,95 @@ export default {
this.page = 1
this.getData()
},
- handleSelectionChange (val) {
- this.multipleSelection = val;
- },
handleCurrentChange (val) {
this.page = val;
this.getData();
},
- switchOff (val, row, index) {
- this.$put(`${this.api.disableActivityApplicant}?competitionRegistrationId=${row.id}&isDisable=${val}`).then(res => { }).catch(err => { });
+ // 编辑
+ edit (row) {
+ this.editVisible = true
+ this.form = JSON.parse(JSON.stringify(row))
},
- delData (row) {
- this.$confirm("此删除操作不可逆,是否确认删除选中项?", "提示", {
+ // 删除
+ del (row) {
+ this.$confirm("确定要删除吗?", "提示", {
type: "warning"
- })
- .then(() => {
- this.$post(`${this.api.delActivityApplicant}?id=${row.id}`).then(res => {
- util.successMsg("删除成功");
- this.getData();
- }).catch(res => {
- });
- })
- .catch(() => {
- });
- },
- // 排序回调
- sortChange (column) {
- // 1上2下
- if (column.prop === 'school') this.schoolOrder = column.order ? column.order === 'ascending' ? 2 : 1 : ''
- if (column.prop === 'teamName') this.teamOrder = column.order ? column.order === 'ascending' ? 2 : 1 : ''
- this.getData()
+ }).then(() => {
+ this.$post(`${this.api.delPartnerAccount}?accountId=${row.accountId}`).then(res => {
+ util.successMsg("删除成功")
+ this.getList()
+ }).catch(res => { })
+ }).catch(() => { })
},
- exportAll () {
- const data = this.multipleSelection
- if (data.length) {
- data.map((e, i) => e.id = i + 1)
- axios.post(this.api.exportDataInBatchesApplicant, data, {
- headers: {
- token: this.token
- },
- responseType: 'blob'
- }).then((res) => {
- util.downloadFileDirect(`报名人员.xls`, new Blob([res.data]))
+ // 移除
+ remove (row) {
+ this.$confirm("确定要移除吗?", "提示", {
+ type: "warning"
+ }).then(() => {
+ this.$get(this.api.removeOrganization, {
+ manageId: row.manageId,
+ teamId: row.classificationId,
+ }).then(res => {
+ util.successMsg("移除成功")
+ this.getData()
}).catch(res => { })
+ }).catch(() => { })
+ },
+ // 转让超管
+ transfer (row) {
+ this.curRow = row
+ this.chooseVisible = true
+ this.$post(this.api.platformTeamAccountList, {
+ type: 1,
+ classificationId: this.teamId,
+ keyWord: '',
+ platformId: 5,
+ pageNum: 1,
+ pageSize: 10000
+ }).then(({ pageList }) => {
+ this.members = pageList.records
+ }).catch(err => { })
+ },
+ // 选择成员提交
+ chooseSubmit () {
+ const { curRow } = this
+ const id = this.choosePartnerId
+ const member = this.members.find(e => e.manageId === id) // 获取选择的成员
+ if (member) {
+ this.$post(this.api.transferTeam, {
+ adminManageId: curRow.manageId,
+ adminTeamId: curRow.classificationId,
+ memberManageId: member.manageId,
+ memberName: member.userName,
+ memberTeamId: member.classificationId
+ }).then(res => {
+ this.chooseVisible = false
+ this.transferVisible = false
+ this.getData()
+ }).catch(err => { })
} else {
- axios.get(`${this.api.excelExportApplicant}?activityId=${this.id}`, {
- headers: {
- token: this.token
- },
- responseType: 'blob'
- }).then((res) => {
- util.downloadFileDirect(`报名人员.xls`, new Blob([res.data]))
- }).catch(res => { })
+ util.warningMsg('请选择成员!')
}
- }
+ },
+ // 编辑提交
+ submitEdit () {
+ if (this.submiting) return false
+ this.submiting = true
+ const form = JSON.parse(JSON.stringify(this.form))
+ form.classificationId = form.partnerClassificationId
+ this.$post(this.api.editProvinceCity, form).then(res => {
+ this.getList()
+ util.successMsg("编辑成功!")
+ this.editVisible = false
+ setTimeout(() => {
+ this.submiting = false
+ }, 2000)
+ }).catch(res => {
+ setTimeout(() => {
+ this.submiting = false
+ }, 2000)
+ })
+ },
}
};
@@ -202,4 +328,28 @@ export default {
align-items: center;
}
}
+/deep/.choose-dia {
+ .member-list {
+ li {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 10px;
+ }
+ .info {
+ display: inline-flex;
+ align-items: center;
+ }
+ img {
+ width: 40px;
+ height: 40px;
+ }
+ .name {
+ margin-left: 10px;
+ }
+ .el-radio__label {
+ display: none;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/pages/supplier/manage/member.vue b/src/pages/supplier/manage/member.vue
index e8bdca1..156fb92 100644
--- a/src/pages/supplier/manage/member.vue
+++ b/src/pages/supplier/manage/member.vue
@@ -42,29 +42,29 @@
{{ scope.row.isTeam === '1' ? '负责人' : '成员' }}
-