用户等修复

dev_2022-04-07
yujialong 3 years ago
parent 9ccbec3875
commit 45504f258c
  1. 4
      src/setting.js
  2. 48
      src/views/course/contentSettings.vue
  3. 1
      src/views/serve/backstage/index.vue
  4. 2
      src/views/setting/info.vue
  5. 1
      src/views/user/AddUser.vue
  6. 3
      src/views/user/User.vue

@ -9,8 +9,8 @@ let jumpPath = `${location.origin}/judgmentPoint`
let host = `${location.origin}:9000/` let host = `${location.origin}:9000/`
if (isDev) { if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统 jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统
host = 'http://39.108.250.202:9000/' // host = 'http://39.108.250.202:9000/'
// host = 'http://192.168.31.151:9000/'// 榕 host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://192.168.31.137:9000/'// 赓 // host = 'http://192.168.31.137:9000/'// 赓
} else if (isPro) { } else if (isPro) {
jumpPath = "http://www.huorantech.cn/judgmentPoint/"; jumpPath = "http://www.huorantech.cn/judgmentPoint/";

@ -200,7 +200,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="moveVisible = false">取消</el-button> <el-button @click="moveVisible = false">取消</el-button>
<el-button type="primary" @click="moveSubmit">确定</el-button> <el-button type="primary" @click="moveConfirm">确定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
@ -255,10 +255,19 @@ export default {
showProgress: false, showProgress: false,
progressPercent: 0, progressPercent: 0,
moveVisible: false, moveVisible: false,
sortList: [], sortList: [
{
id: 'bottom',
name: '置末'
},
{
id: 'top',
name: '置顶'
}
],
moveForm: { moveForm: {
id: '', id: '',
sort: '' sort: 'bottom'
} }
}; };
}, },
@ -292,9 +301,13 @@ export default {
goBack() { goBack() {
if (this.previewing) { if (this.previewing) {
this.closeIframe(); this.closeIframe();
} else {
if (this.sorting) {
this.sorting = false
} else { } else {
this.$router.back() this.$router.back()
} }
}
}, },
iframeOnload() { iframeOnload() {
document.querySelector("#fileIframe").onload = e => { document.querySelector("#fileIframe").onload = e => {
@ -413,9 +426,18 @@ export default {
if (this.multipleSelection.length) { if (this.multipleSelection.length) {
this.moveForm = { this.moveForm = {
id: '', id: '',
sort: '' sort: 'bottom'
} }
this.sortList = [] this.sortList = [
{
id: 'bottom',
name: '置末'
},
{
id: 'top',
name: '置顶'
}
]
this.moveVisible = true this.moveVisible = true
} else { } else {
this.$message.warning('请选择小节!') this.$message.warning('请选择小节!')
@ -448,8 +470,6 @@ export default {
moveSubmit() { moveSubmit() {
const { moveForm } = this const { moveForm } = this
let { id, sort } = moveForm let { id, sort } = moveForm
if (!id) return this.$message.warning('请选择目标章节')
if (sort === '') return this.$message.warning('请选择目标排序')
if (typeof sort === 'string') sort = sort === 'top' ? 0 : this.sortList.length - 2 // if (typeof sort === 'string') sort = sort === 'top' ? 0 : this.sortList.length - 2 //
const list = this.multipleSelection const list = this.multipleSelection
const promises = [] const promises = []
@ -481,12 +501,19 @@ export default {
chapterVOList: chapterList chapterVOList: chapterList
}).then(res => { }).then(res => {
this.$message.success('移动成功!') this.$message.success('移动成功!')
this.moveVisible = false
this.getData() this.getData()
}).catch(res => {}) }).catch(res => {})
}).catch(err => {}) }).catch(err => {})
}) })
}, },
//
moveConfirm() {
const { moveForm } = this
let { id, sort } = moveForm
if (!id) return this.$message.warning('请选择目标章节')
if (sort === '') return this.$message.warning('请选择目标排序')
this.moveVisible = false
},
cancelSort() { cancelSort() {
this.sorting = false; this.sorting = false;
}, },
@ -502,9 +529,8 @@ export default {
}; };
this.$post(this.api.reorder, data).then(res => { this.$post(this.api.reorder, data).then(res => {
this.sorting = false; this.sorting = false;
this.getData(); this.moveSubmit()
}).catch(res => { }).catch(res => {})
});
}, },
editChapter(item) { editChapter(item) {
this.chapterId = item.id; this.chapterId = item.id;

@ -42,6 +42,7 @@ export default {
path: 'backstage', path: 'backstage',
query: { query: {
...this.$route.query, ...this.$route.query,
page: 1,
type: index, type: index,
categoryId: '' categoryId: ''
} }

@ -184,7 +184,7 @@
<el-dialog :title="form.phone ? '更换手机号' : '绑定手机号'" :visible.sync="phoneVisible" :close-on-click-modal="false" @close="closePhone" width="30%"> <el-dialog :title="form.phone ? '更换手机号' : '绑定手机号'" :visible.sync="phoneVisible" :close-on-click-modal="false" @close="closePhone" width="30%">
<el-form ref="form" :model="form" label-width="60px"> <el-form ref="form" :model="form" label-width="60px">
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input placeholder="请输入手机号" v-model="phone" maxlength="11"></el-input> <el-input style="width: 404px;" placeholder="请输入手机号" v-model="phone" maxlength="11"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="验证码"> <el-form-item label="验证码">
<div class="flex"> <div class="flex">

@ -87,6 +87,7 @@
value="1" value="1"
clearable clearable
placeholder="请选择证件类型" placeholder="请选择证件类型"
style="width: 100%"
> >
<el-option <el-option
label="身份证" label="身份证"

@ -361,7 +361,8 @@ export default {
switchUser(val,row) { switchUser(val,row) {
this.$get(this.api.updateAccountAllEnable, { this.$get(this.api.updateAccountAllEnable, {
id: row.userId, id: row.userId,
isEnable: val isEnable: val,
phone: row.phone
}).then(res => { }).then(res => {
this.$message.success(val ? '启用成功' : '禁用成功') this.$message.success(val ? '启用成功' : '禁用成功')
}).catch(res => {}) }).catch(res => {})

Loading…
Cancel
Save