Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 43f1454d
authored
Nov 04, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
紧急需求
1 parent
79ea6db2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
9 deletions
src/base.js
src/components/GLEditor/index.vue
src/views/task/addTask/components/activityDia.vue
src/views/task/addTask/index.vue
src/views/task/taskList/index.vue
src/base.js
View file @
43f1454
...
...
@@ -74,7 +74,7 @@ var mixin = {
},
}
const
URL
=
'https://oss-config.
test
.glsx.com.cn/mock/5be17454f31545347559d499/config'
'https://oss-config.
dev
.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/task-config'
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
({
url
}).
then
((
res
)
=>
{
...
...
src/components/GLEditor/index.vue
View file @
43f1454
...
...
@@ -218,9 +218,12 @@
</div>
</
template
>
<
template
v-else-if=
"itm.materialType == ATT_TYPE.LINK"
>
<el-tag
type=
"info"
closable
@
close=
"close(index)"
>
{{
itm
.
materialContent
}}
</el-tag>
<el-tag
type=
"info"
:closable=
"!linkStatus"
@
close=
"close(index)"
>
{{
itm
.
materialContent
}}
</el-tag
>
</
template
>
<!-- <i class="el-icon-circle-close" @click="close(index)"></i> -->
</div>
...
...
@@ -338,6 +341,7 @@ import Emotion from './emotionWords'
import
wTextarea
from
'./tag-textarea'
// import vuedraggable from 'vuedraggable'
import
{
utils
}
from
'glsx-common'
import
{
set
}
from
'vue'
export
default
{
name
:
'GLEditor'
,
components
:
{
...
...
@@ -363,6 +367,10 @@ export default {
type
:
Object
,
default
:
()
=>
ATT_TYPE
,
},
linkStatus
:
{
type
:
Boolean
,
default
:
true
,
},
},
data
()
{
return
{
...
...
@@ -385,8 +393,9 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
linkStatus
,
999
)
if
(
this
.
previewList
.
length
)
{
// this.updateList(this.previewList, 1
)
console
.
log
(
this
.
previewList
,
999
)
this
.
previewList
.
map
((
item
)
=>
{
if
(
item
.
materialType
==
ATT_TYPE
.
TEXT
)
{
this
.
textValue
=
this
.
changeText
(
item
.
materialContent
)
...
...
@@ -430,6 +439,7 @@ export default {
watch
:
{
previewList
:
{
handler
(
val
)
{
console
.
log
(
val
,
'previewList'
)
this
.
$emit
(
'shareMatrial'
,
val
)
this
.
$emit
(
'getEditor'
)
},
...
...
@@ -437,6 +447,15 @@ export default {
},
},
methods
:
{
resetItem
()
{
console
.
log
(
this
.
previewList
,
'previewList'
)
this
.
previewList
=
[]
this
.
textValue
=
''
console
.
log
(
this
.
previewList
,
this
.
linkStatus
,
'previewList2'
)
setTimeout
(()
=>
{
if
(
this
.
linkStatus
)
this
.
handleFun
({
type
:
'link'
})
})
},
isPreview
(
preview
,
type
)
{
return
type
?
preview
.
filter
((
item
)
=>
item
.
materialType
==
type
).
length
...
...
src/views/task/addTask/components/activityDia.vue
View file @
43f1454
...
...
@@ -101,15 +101,12 @@ export default {
item
.
startTime
=
dayjs
(
item
.
startTime
).
format
(
'YYYY-MM-DD'
)
item
.
endTime
=
dayjs
(
item
.
endTime
).
format
(
'YYYY-MM-DD'
)
if
(
this
.
isClone
)
{
console
.
log
(
this
.
taskDateNum
)
let
activityDays
=
this
.
getDateByDays
(
item
.
startTime
,
item
.
endTime
)
if
(
activityDays
!=
this
.
taskDateNum
)
{
item
.
taskStatus
=
1
}
}
})
console
.
log
(
this
.
activityData
,
'this.activityData'
)
})
},
// 根据日期获取天数
...
...
src/views/task/addTask/index.vue
View file @
43f1454
This diff is collapsed.
Click to expand it.
src/views/task/taskList/index.vue
View file @
43f1454
...
...
@@ -78,7 +78,7 @@
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus
== statusNum.UNPUBLISH
"
v-if=
"scope.scope.activityStatus
!= statusNum.FINISHIED
"
@
click=
"handleEdit(scope.scope, 1)"
>
编辑
</el-button
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment