Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
18741664
提交
18741664
编写于
3月 20, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改文件名
上级
dcb5c8d6
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
.gitignore
.gitignore
+0
-1
App.vue
src/App.vue
+1
-1
env-config.js
src/utils/env-config.js
+1
-1
fetch-qiniu.js
src/utils/fetch-qiniu.js
+0
-0
index.js
src/utils/index.js
+1
-1
qiniu-util.js
src/utils/qiniu-util.js
+1
-1
add-manager.vue
src/views/education/add-manager.vue
+1
-1
create-component.vue
src/views/education/create-component.vue
+7
-6
item-component.vue
src/views/education/item-component.vue
+1
-1
未找到文件。
.gitignore
浏览文件 @
18741664
...
@@ -7,4 +7,3 @@ dist/
...
@@ -7,4 +7,3 @@ dist/
node_modules/
node_modules/
.DS_Store
.DS_Store
.vscode
.vscode
src/utils/envConfig.js
\ No newline at end of file
src/App.vue
浏览文件 @
18741664
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
if
(
isNotEmptyUtils
(
paramMap
[
"token"
]))
{
if
(
isNotEmptyUtils
(
paramMap
[
"token"
]))
{
vm
.
token
=
paramMap
[
"token"
]
vm
.
token
=
paramMap
[
"token"
]
localStorage
.
setItem
(
'storageToken'
,
vm
.
token
)
localStorage
.
setItem
(
'storageToken'
,
vm
.
token
)
vm
.
$router
.
push
({
path
:
'home'
})
//
vm.$router.push({ path: 'home' })
}
else
{
}
else
{
window
.
location
.
href
=
getLoginUrl
()
// 没有token返回登录页面
window
.
location
.
href
=
getLoginUrl
()
// 没有token返回登录页面
return
return
...
...
src/utils/env
C
onfig.js
→
src/utils/env
-c
onfig.js
浏览文件 @
18741664
...
@@ -9,7 +9,7 @@ export const envConfig = {
...
@@ -9,7 +9,7 @@ export const envConfig = {
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
//baseUrl: 'https://uat-sc.yunqueyi.com/',
baseUrl
:
'http://
dev-sc.yunqueyi.com
/portal/'
,
baseUrl
:
'http://
localhost:11905
/portal/'
,
qiniuFileUrl
:
"http://localhost:10201/contents/admin/qiniu/token1"
,
qiniuFileUrl
:
"http://localhost:10201/contents/admin/qiniu/token1"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuResourceUrl
:
"https://test1-videos.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
qiniuImgUrl
:
"https://test1-file.yunqueyi.com"
,
...
...
src/utils/fetch
Q
iniu.js
→
src/utils/fetch
-q
iniu.js
浏览文件 @
18741664
文件已移动
src/utils/index.js
浏览文件 @
18741664
/**
/**
* Created by Anndy Yang on 18/09/18.
* Created by Anndy Yang on 18/09/18.
*/
*/
import
{
envConfig
}
from
'@/utils/env
C
onfig'
import
{
envConfig
}
from
'@/utils/env
-c
onfig'
export
function
setEventByModuleCode
(
itemData
){
export
function
setEventByModuleCode
(
itemData
){
let
modeCode
=
itemData
.
appModuleInfo
.
code
||
''
;
let
modeCode
=
itemData
.
appModuleInfo
.
code
||
''
;
...
...
src/utils/qiniu
U
til.js
→
src/utils/qiniu
-u
til.js
浏览文件 @
18741664
import
{
isEmptyUtils
,
isNotEmptyUtils
,
subString
}
from
"./utils"
;
import
{
isEmptyUtils
,
isNotEmptyUtils
,
subString
}
from
"./utils"
;
import
fetchQiniu
from
'./fetch
Q
iniu.js'
;
import
fetchQiniu
from
'./fetch
-q
iniu.js'
;
import
{
getQiniuToken1
,
uploadVideo
,
uploadImg
}
from
'./index'
import
{
getQiniuToken1
,
uploadVideo
,
uploadImg
}
from
'./index'
let
fileApiUrl
=
getQiniuToken1
()
let
fileApiUrl
=
getQiniuToken1
()
...
...
src/views/education/add-manager.vue
浏览文件 @
18741664
...
@@ -421,7 +421,7 @@
...
@@ -421,7 +421,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
U
til"
;
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
-u
til"
;
import
{
returnData
}
from
"../mock"
;
import
{
returnData
}
from
"../mock"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
...
...
src/views/education/create-component.vue
浏览文件 @
18741664
...
@@ -284,18 +284,18 @@
...
@@ -284,18 +284,18 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
BreadCrumb
from
'../../components/breadcrumb.vue'
import
BreadCrumb
from
'../../components/breadcrumb.vue'
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
U
til"
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
-u
til"
import
{
validateWord150
}
from
"../../utils/validate.js"
import
{
validateWord150
}
from
"../../utils/validate.js"
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
openLoading
,
closeLoading
,
isNotEmptyUtils
,
isEmptyList
}
from
'../../utils/utils'
;
import
{
openLoading
,
closeLoading
,
isNotEmptyUtils
,
isEmptyList
}
from
'../../utils/utils'
;
let
vm
=
null
let
vm
=
null
// 判断组件是否重名
// 判断组件是否重名
let
validateRepeatWord
=
function
(
rule
,
value
,
callback
,
message
)
{
let
validateRepeatWord
=
function
(
rule
,
value
,
callback
,
message
)
{
const
reg
=
/^
[\u
4e00-
\u
9fa5
]{2,20}
$/
//
const reg = /^[\u4e00-\u9fa5]{2,20}$/
if
(
!
reg
.
test
(
value
))
{
//
if(!reg.test(value)) {
callback
(
new
Error
(
message
))
//
callback(new Error(message))
return
//
return
}
//
}
let
req
=
{
let
req
=
{
token
:
vm
.
_token
,
token
:
vm
.
_token
,
name
:
value
,
name
:
value
,
...
@@ -412,6 +412,7 @@ export default {
...
@@ -412,6 +412,7 @@ export default {
rules
:
{
rules
:
{
"name"
:
[
"name"
:
[
{
required
:
true
,
message
:
'输入组件名称'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'输入组件名称'
,
trigger
:
'blur'
},
{
min
:
2
,
max
:
20
,
message
:
'输入长度为2-20个字符'
,
trigger
:
'blur'
},
{
validator
:
function
(
rule
,
value
,
callback
)
{
{
validator
:
function
(
rule
,
value
,
callback
)
{
validateRepeatWord
(
rule
,
value
,
callback
,
'输入长度为2-20个字符'
)
validateRepeatWord
(
rule
,
value
,
callback
,
'输入长度为2-20个字符'
)
},
},
...
...
src/views/education/item-component.vue
浏览文件 @
18741664
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</template>
</template>
<
script
>
<
script
>
import
BreadCrumb
from
'../../components/breadcrumb.vue'
import
BreadCrumb
from
'../../components/breadcrumb.vue'
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
U
til"
import
{
doUpload
,
getFilePath
}
from
"../../utils/qiniu
-u
til"
import
{
validateWord
}
from
"../../utils/validate.js"
import
{
validateWord
}
from
"../../utils/validate.js"
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
{
openLoading
,
closeLoading
}
from
'../../utils/utils'
;
import
{
openLoading
,
closeLoading
}
from
'../../utils/utils'
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录