diff --git a/test_client/package-lock.json b/test_client/package-lock.json index e5f68c7..2147fc9 100644 --- a/test_client/package-lock.json +++ b/test_client/package-lock.json @@ -4107,6 +4107,14 @@ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, + "cos-js-sdk-v5": { + "version": "0.5.27", + "resolved": "https://registry.npmjs.org/cos-js-sdk-v5/-/cos-js-sdk-v5-0.5.27.tgz", + "integrity": "sha512-kq5363l1TpU26AHRZTcWCibPfM5ykQ2zHsdpnP/Ax8SMuYQDNIP/BVWaA55Ks2r5JsELjqXLF516FeXQz3jEZw==", + "requires": { + "xmldom": "^0.1.27" + } + }, "cosmiconfig": { "version": "5.2.1", "resolved": "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-5.2.1.tgz?cache=0&sync_timestamp=1572710682964&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcosmiconfig%2Fdownload%2Fcosmiconfig-5.2.1.tgz", @@ -9577,6 +9585,11 @@ "easy-stack": "^1.0.0" } }, + "js-sha1": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/js-sha1/-/js-sha1-0.6.0.tgz", + "integrity": "sha512-01gwBFreYydzmU9BmZxpVk6svJJHrVxEN3IOiGl6VO93bVKYETJ0sIth6DASI6mIFdt7NmfX9UiByRzsYHGU9w==" + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npm.taobao.org/js-tokens/download/js-tokens-4.0.0.tgz", @@ -15363,8 +15376,7 @@ "uuid": { "version": "3.4.0", "resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz?cache=0&sync_timestamp=1579209051695&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-3.4.0.tgz", - "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=", - "dev": true + "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=" }, "validate-npm-package-license": { "version": "3.0.4", @@ -15405,6 +15417,38 @@ "integrity": "sha1-eGQcSIuObKkadfUR56OzKobl3aA=", "dev": true }, + "vod-js-sdk-v6": { + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/vod-js-sdk-v6/-/vod-js-sdk-v6-1.4.12.tgz", + "integrity": "sha512-JxUPuKWJI7nh6KZX333Q0rCljOpqi4Gp1NSGiR/vvV/CYGn+DIBuN0SiSvpHraOAdlABvlD+swPZYOeSXbCabA==", + "requires": { + "axios": "^0.21.1", + "cos-js-sdk-v5": "0.5.27", + "eventemitter3": "^4.0.7", + "js-sha1": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "requires": { + "follow-redirects": "^1.14.0" + } + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, + "follow-redirects": { + "version": "1.14.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", + "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==" + } + } + }, "vue": { "version": "2.6.10", "resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz", @@ -16191,6 +16235,11 @@ "integrity": "sha1-auc+Bt5NjG5H+fsYH3jWSK1FfGo=", "dev": true }, + "xmldom": { + "version": "0.1.31", + "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.31.tgz", + "integrity": "sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==" + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npm.taobao.org/xtend/download/xtend-4.0.2.tgz", diff --git a/test_client/package.json b/test_client/package.json index 38a1712..08c954f 100644 --- a/test_client/package.json +++ b/test_client/package.json @@ -24,6 +24,7 @@ "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", + "vod-js-sdk-v6": "^1.4.12", "vue": "2.6.10", "vue-count-to": "^1.0.13", "vue-router": "3.0.6", diff --git a/test_client/src/api/course.js b/test_client/src/api/course.js new file mode 100644 index 0000000..cc7726e --- /dev/null +++ b/test_client/src/api/course.js @@ -0,0 +1,29 @@ +import request from '@/utils/request' + +export function getCourseList(query) { + return request({ + url: '/vod/course/', + method: 'get', + params: query + }) +} +export function createCourse(data) { + return request({ + url: '/vod/course/', + method: 'post', + data + }) +} +export function updateCourse(id, data) { + return request({ + url: `/vod/course/${id}/`, + method: 'put', + data + }) +} +export function deleteCourse(id) { + return request({ + url: `/vod/course/${id}/`, + method: 'delete', + }) +} \ No newline at end of file diff --git a/test_client/src/api/examtest.js b/test_client/src/api/examtest.js index a415702..9acc506 100644 --- a/test_client/src/api/examtest.js +++ b/test_client/src/api/examtest.js @@ -142,6 +142,13 @@ export function exportwTest(id,data) { }) } +export function issue(id) { + return request({ + url: `/examtest/examtest/${id}/issue/`, + method: 'post', + }) +} + export function deleteExamtest(id) { return request({ url: `/examtest/examtest/${id}/`, diff --git a/test_client/src/api/video.js b/test_client/src/api/video.js new file mode 100644 index 0000000..bbb4250 --- /dev/null +++ b/test_client/src/api/video.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' + +export function getVideoList(query) { + return request({ + url: '/vod/video/', + method: 'get', + params: query + }) +} +export function createVideo(data) { + return request({ + url: '/vod/video/', + method: 'post', + data + }) +} +export function updateVideo(id, data) { + return request({ + url: `/vod/video/${id}/`, + method: 'put', + data + }) +} +export function deleteVideo(id) { + return request({ + url: `/vod/video/${id}/`, + method: 'delete', + }) +} + +export function getSignature() { + return request({ + url: '/vod/signature/', + method: 'get' + }) +} \ No newline at end of file diff --git a/test_client/src/router/index.js b/test_client/src/router/index.js index ddfd745..9d422d3 100644 --- a/test_client/src/router/index.js +++ b/test_client/src/router/index.js @@ -97,6 +97,21 @@ export const asyncRoutes = [ }, ] }, + { + path: '/vod', + component: Layout, + redirect: '/vod/index', + name: 'Vod', + meta: { title: '课程视频', icon: 'shopping', perms: ['vod'] }, + children: [ + { + path: 'index', + name: 'VodIndex', + component: () => import('@/views/vod/index.vue'), + meta: { title: '课程视频', icon: '', perms: ['vod'] } + }, + ] + }, { path: '/crm', component: Layout, diff --git a/test_client/src/views/analyse/examtest.vue b/test_client/src/views/analyse/examtest.vue index 1feede1..b622e18 100644 --- a/test_client/src/views/analyse/examtest.vue +++ b/test_client/src/views/analyse/examtest.vue @@ -99,6 +99,12 @@