Commit 74156984 by xuyl

Merge branch 'v3.0.0' of http://192.168.3.233:8090/glsx-web/glsx-oss-task into xuyl_dev_v2.12.0

2 parents ef94948f 43f1454d
......@@ -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) => {
......
......@@ -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
......
......@@ -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')
})
},
// 根据日期获取天数
......
......@@ -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
>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!