diff --git a/src/api/user.js b/src/api/user.js index 95a1050..537a5d2 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -165,10 +165,15 @@ export function UserInfo_List(params) { url: `/UserInfo/List`, method: 'get', params - }) - + }) +} - +export function GetTypeSetting(params={}) { + return request({ + url: `/userType/GetTypeSetting`, + method: 'get', + params + }) } //设置标签 export function ChangeTags(params) { @@ -177,4 +182,22 @@ export function UserInfo_List(params) { method: 'post', params }) -} \ No newline at end of file +} + + +//用户列表 +export function UserTypeSettings(params) { + return request({ + url: `/userType/GetSettings`, + method: 'post', + params + }) +} + +export function saveTypeSetting(data) { + return request({ + url: `/userType/saveTypeSetting`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/utils/routerList.js b/src/utils/routerList.js index bcaba53..5c57165 100644 --- a/src/utils/routerList.js +++ b/src/utils/routerList.js @@ -165,33 +165,33 @@ export function getRoutes() { ] }, - { - path: '/order', - component: Layout, - redirect: '/', - name: 'order', - meta: { - title: '订单管理', - icon: 'el-icon-s-marketing' - }, - children: [{ - path: 'recharge', - name: 'recharge', - component: () => - import('@/views/order/rechargeList'), - meta: { - title: '充值记录', - } - }, { - path: 'shop', - name: 'shop', - component: () => - import('@/views/order/shopList'), - meta: { - title: '购买记录', - } - }] - }, + // { + // path: '/order', + // component: Layout, + // redirect: '/', + // name: 'order', + // meta: { + // title: '订单管理', + // icon: 'el-icon-s-marketing' + // }, + // children: [{ + // path: 'recharge', + // name: 'recharge', + // component: () => + // import('@/views/order/rechargeList'), + // meta: { + // title: '充值记录', + // } + // }, { + // path: 'shop', + // name: 'shop', + // component: () => + // import('@/views/order/shopList'), + // meta: { + // title: '购买记录', + // } + // }] + // }, { path: '/user', component: Layout, @@ -230,6 +230,10 @@ export function getRoutes() { title: '图片导入用户', } }, + + + + { path: 'admin', name: 'admin', @@ -251,7 +255,18 @@ export function getRoutes() { title: '系统管理', icon: 'el-icon-s-platform' }, - children: [{ + children: [ + { + path: 'userdimset', + name: 'impouserdimsetrtuser', + + component: () => + import('@/views/user/userdimset'), + meta: { + title: '维度规则设置', + } + }, + { path: 'index', name: 'index', component: () => @@ -422,33 +437,33 @@ export function getRoutes() { ] }, - { - path: '/order', - component: Layout, - redirect: '/', - name: 'order', - meta: { - title: '订单管理', - icon: 'el-icon-s-marketing' - }, - children: [{ - path: 'recharge', - name: 'recharge', - component: () => - import('@/views/order/rechargeList'), - meta: { - title: '充值记录', - } - }, { - path: 'shop', - name: 'shop', - component: () => - import('@/views/order/shopList'), - meta: { - title: '购买记录', - } - }] - }, + // { + // path: '/order', + // component: Layout, + // redirect: '/', + // name: 'order', + // meta: { + // title: '订单管理', + // icon: 'el-icon-s-marketing' + // }, + // children: [{ + // path: 'recharge', + // name: 'recharge', + // component: () => + // import('@/views/order/rechargeList'), + // meta: { + // title: '充值记录', + // } + // }, { + // path: 'shop', + // name: 'shop', + // component: () => + // import('@/views/order/shopList'), + // meta: { + // title: '购买记录', + // } + // }] + // }, { path: '/user', component: Layout, diff --git a/src/views/TestPaper/ManualTestPaper.vue b/src/views/TestPaper/ManualTestPaper.vue index 65ce745..210e828 100644 --- a/src/views/TestPaper/ManualTestPaper.vue +++ b/src/views/TestPaper/ManualTestPaper.vue @@ -18,7 +18,7 @@ - +
  • {{ i.subject }}
  • 加载中...

    @@ -69,17 +69,24 @@ {{TestPaper.TotalScore || ''}} - - + + + + + + + + - - + @@ -120,19 +127,19 @@ - + +
    • 试题分类: - + 试题数量: - - + + +
    @@ -145,148 +152,171 @@ \ No newline at end of file diff --git a/src/views/TestPaper/TestPaperList.vue b/src/views/TestPaper/TestPaperList.vue index 3afb957..1803eca 100644 --- a/src/views/TestPaper/TestPaperList.vue +++ b/src/views/TestPaper/TestPaperList.vue @@ -100,6 +100,15 @@
    + + + + + + + + + { this.list = res.data.data; }); + + GetTypeSetting({}).then(res=>{ + if(res.data){ + this.usertypelist = res.data || []; + } + }); }, filters: { typeFilters(val) { diff --git a/src/views/live/index.vue b/src/views/live/index.vue index e41e60c..43c0c21 100644 --- a/src/views/live/index.vue +++ b/src/views/live/index.vue @@ -1,51 +1,55 @@ \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index eeab3d8..f378c39 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -88,6 +88,8 @@ $route: { handler: function(route) { this.redirect = route.query && route.query.redirect + if(this.redirect.indexOf('404') !=-1) + this.redirect = this.redirect.replace('404','dashboard') }, immediate: true } diff --git a/src/views/user/InterviewSchedule.vue b/src/views/user/InterviewSchedule.vue index 997277c..8efc55c 100644 --- a/src/views/user/InterviewSchedule.vue +++ b/src/views/user/InterviewSchedule.vue @@ -41,6 +41,16 @@ +
    + + + + +
    @@ -56,8 +66,8 @@ @@ -149,6 +159,7 @@ } }; return { + title: '添加管理员', buttonText: '立即创建', userList: [], @@ -173,18 +184,92 @@ Password: '', checkPass: '', }, + accountlist:[], Count: 0, query: { PageIndex: 1, PageSize: 1000, - + date: '', + month:0, + day:1 }, } }, created() { - this.GetUser() + this.GetUser(); + + this.$nextTick(() => { + // 点击前一个月 + let prevBtn = document.querySelector( + ".el-calendar__button-group .el-button-group>button:nth-child(1)" + ); + prevBtn.addEventListener("click", e => { + console.log(this.query.date); + this.handlemonth(1); + }); + + //点击下一个月 + let nextBtn = document.querySelector( + ".el-calendar__button-group .el-button-group>button:nth-child(3)" + ); + nextBtn.addEventListener("click", () => { + console.log(this.query.date); + this.handlemonth(-1); + }); + + //点击今天 + let todayBtn = document.querySelector( + ".el-calendar__button-group .el-button-group>button:nth-child(2)" + ); + todayBtn.addEventListener("click", () => { + this.handlemonth(0); + }); + }); }, methods: { + getContent(data,date){ + // {{ data.day.split('-').slice(1).join('-') }} {{ data.isSelected ? '✔️' : ''}} + var html = []; + html.push( data.day.split('-').slice(1).join('-')); + try { + var d = this.accountlist.filter(o=>o.startTime == data.day); + if(d){ + d.forEach((item)=>{ + html.push(`${item.qujian+':'+item.count}`); + }); + } + } catch (error) { + + } + return html.join('  '); + }, + handlemonth(val) { + switch (val) { + case -1: + this.query.day=0; + this.query.month--; + break; + case 0: + this.query.month = 0; + this.query.day =1; + break; + case 1: + this.query.month++; + this.query.day =0; + break; + } + this.GetUser(); + }, search() { this.GetUser(); }, @@ -229,7 +314,8 @@ GetUser() { GetCompanyInvitation(this.query).then(res => { - this.userList = res.data.data + this.userList = res.data.data.list || []; + this.accountlist = res.data.data.account || [] this.Count = res.data.records }) }, diff --git a/src/views/user/picuserimport.vue b/src/views/user/picuserimport.vue index 811e5f4..13c54f6 100644 --- a/src/views/user/picuserimport.vue +++ b/src/views/user/picuserimport.vue @@ -96,7 +96,7 @@ > {{ scope.row[item.prop] }}{{ scope.row.edit }}{{ scope.row[item.prop] }} @@ -298,6 +298,7 @@ export default { this.multipleSelection = val; console.log("selection:", this.multipleSelection); }, + //编辑 handleEdit(index, row) { if (row.ViewPath) { @@ -305,13 +306,21 @@ export default { }else{ this.currentFilePath = ''; } - this.table_data = this.table_data.map(t=>{ - delete t.edit; - return t; - }) - this.table_data[index].edit = true; - this.table_data.push(this.table_data.pop()); - this.$forceUpdate(); + // debugger; + // if(this.table_data) + // this.table_data = this.table_data.map(t=>{ + // t.edit = false; + // return t; + // }) + this.table_data.forEach((o,i)=>{ + this.$set(this.table_data[i],'edit',i==index) + }); + // this.table_data = Object.assign({},this.table_data); + // this.table_data[index].edit = true; + // this.table_data.push(this.table_data.pop()); + // this.$forceUpdate(); + + // this.$set(this.table_data[index],'edit',true) }, //删除 handleDelete(index, row) { @@ -423,7 +432,13 @@ export default { }, }; + \ No newline at end of file diff --git a/src/views/user/userdimset.vue b/src/views/user/userdimset.vue new file mode 100644 index 0000000..af91997 --- /dev/null +++ b/src/views/user/userdimset.vue @@ -0,0 +1,532 @@ + + + + \ No newline at end of file diff --git a/src/views/user/userlist.vue b/src/views/user/userlist.vue index 9fc8f23..c10b9dc 100644 --- a/src/views/user/userlist.vue +++ b/src/views/user/userlist.vue @@ -28,10 +28,10 @@
    - + - + 搜索 @@ -93,10 +93,14 @@ - + @@ -290,9 +294,9 @@ - - + +