用户等修复

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/`
if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统
host = 'http://39.108.250.202:9000/'
// host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://39.108.250.202:9000/'
host = 'http://192.168.31.151:9000/'// 榕
// host = 'http://192.168.31.137:9000/'// 赓
} else if (isPro) {
jumpPath = "http://www.huorantech.cn/judgmentPoint/";

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

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

@ -184,7 +184,7 @@
<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-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 label="验证码">
<div class="flex">

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

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

Loading…
Cancel
Save