From 04aebc72652a16ff79c0bdac0d4bd4d8f99d870d Mon Sep 17 00:00:00 2001 From: wesley <470822125@qq.com> Date: Wed, 18 May 2022 00:52:11 +0800 Subject: [PATCH] 11 --- src/api/user.js | 31 +++++++++++++++++++++++++++---- src/utils/routerList.js | 17 ++++++++++++++++- src/views/TestPaper/ManualTestPaper.vue | 932 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ src/views/TestPaper/TestPaperList.vue | 19 +++++++++++++++++++ src/views/live/index.vue | 1 - src/views/login/index.vue | 2 ++ src/views/user/picuserimport.vue | 31 +++++++++++++++++++++++-------- src/views/user/userdimset copy.vue | 384 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/user/userdimset.vue | 532 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/user/userlist.vue | 20 ++++++++++++-------- 10 files changed, 1503 insertions(+), 466 deletions(-) create mode 100644 src/views/user/userdimset copy.vue create mode 100644 src/views/user/userdimset.vue 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 46ae74e..5c57165 100644 --- a/src/utils/routerList.js +++ b/src/utils/routerList.js @@ -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: () => 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 4e319c2..43c0c21 100644 --- a/src/views/live/index.vue +++ b/src/views/live/index.vue @@ -16,7 +16,6 @@ }, mounted() { this.$nextTick(function () { - var player = new TcPlayer("id_test_video", { m3u8: `http://watch.t1j2.com/live/${this.streaName}.m3u8`, flv: `http://watch.t1j2.com/live/${this.streaName}.flv`, //增加了一个 flv 的播放地址,用于PC平台的播放 请替换成实际可用的播放地址 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/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 @@ - - + + -- libgit2 0.21.4