Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/wangxy/hyp-front/commit/6d6a2cc3f3dd40cad5f2d83f9e7cc412cf64186b?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
16 additions and
5 deletions
@ -72,6 +72,7 @@
< Update
: applyId = "applyId"
: table - data = "fileData"
: isShowButton = "isShowButton"
>
< / Update >
< / e l - f o r m - i t e m >
@ -101,6 +102,7 @@
: applyId = "applyId"
: dialog - type = "dialogType"
: table - data = "fileData"
: isShowButton = "isShowButton"
ref = "childComponent"
>
< / Update >
@ -250,6 +252,7 @@ export default {
/ / 公 告 表 格 数 据
noticeList : [ ] ,
isReadOnly : false ,
isShowButton : true ,
isView : false ,
/ / 弹 出 层 标 题
title : "" ,
@ -354,13 +357,14 @@ export default {
} ,
/**查看按钮 */
handleView ( row ) {
this . o pen = true ;
this . editO pen = true ;
this . title = "查看奖项" ;
const applyId = row . applyId || this . ids
this . isShowButton = false
getDetail ( applyId ) . then ( response => {
this . form = response . data ;
console . log ( this . form )
this . o pen = true ;
this . editO pen = true ;
this . isReadOnly = true
this . isView = true
} ) ;
@ -370,6 +374,8 @@ export default {
this . reset ( ) ;
this . isView = false ;
this . open = true ;
this . isReadOnly = false
this . isShowButton = true
this . title = "添加奖项" ;
console . log ( this . applyParam )
if ( this . noticeList . length === 0 ) {
@ -385,6 +391,8 @@ export default {
this . reset ( ) ;
this . isView = false ;
this . applyId = row . applyId
this . isReadOnly = false
this . isShowButton = true
const applyId = row . applyId || this . ids
getDetail ( applyId ) . then ( response => {
this . form . isReward = response . data . isReward ;
@ -28,7 +28,7 @@
< / template >
< / e l - t a b l e - c o l u m n >
< el -table -column label = "操作" >
< template slot -scope = " scope " >
< template slot -scope = " scope " v-if ="isShowButton" >
< el -button size = "small" type = "text" @click ="downloadFile(scope.row.fileId,scope.row.name)" > 下 载 < / el -button >
< el -button size = "small" type = "text" @click ="deleteHandle(scope.row.fileId,scope)" > 删 除 < / el -button >
< / template >
@ -38,7 +38,7 @@
< / e l - t a b l e - c o l u m n >
< el -table -column label = "文件名称" prop = "name" > < / e l - t a b l e - c o l u m n >
< el -table -column label = "上传文件" >
< template v -slot :default ="scope" >
< template v -slot :default ="scope" v-if ="isShowButton" >
< el -upload
class = "upload-demo"
ref = "upload"
@ -89,6 +89,9 @@ export default {
type : Array ,
default : ( ) => [ ] ,
require : true ,
} ,
isShowButton : {
type : Boolean ,
}
} ,
data ( ) {
@ -99,7 +102,7 @@ export default {
}
} ,
mounted ( ) {
console . log ( this . isShowButton )
} ,
methods : {
getToken ,