Commit 65cc830f by xinla

修改bug

1 parent 42134635
......@@ -98,7 +98,7 @@ export default {
>
</el-form-item>
</el-form>
<el-table :data="tableData" border style="width: 100%">
<el-table :data="tableData">
<el-table-column prop="taskName" label="任务活动名称"> </el-table-column>
<el-table-column prop="fissNum" label="裂变客户数量"> </el-table-column>
<el-table-column prop="fissStatus" label="活动状态">
......@@ -111,7 +111,7 @@ export default {
<p>{{ scope.row.startTime }}-{{ scope.row.overTime }}</p>
</template>
</el-table-column>
<el-table-column prop="operation" label="操作">
<el-table-column prop="operation" label="操作" width="120">
<template slot-scope="scope">
<el-button
@click="toDetail(scope.row)"
......
......@@ -143,10 +143,9 @@ export default {
submit() {
this.loading = true
let form = JSON.parse(JSON.stringify(this.form))
form.messageType = this.activeName
Promise.resolve()
.then(() => {
if (form.messageType == 1) {
if (form.imageMessage.pic_url) {
// debugger
let dataMediaId = {
url: form.imageMessage.pic_url,
......@@ -160,6 +159,13 @@ export default {
}
})
.then(() => {
if (form.imageMessage.pic_url && form.textMessage.content) {
form.messageType = '4'
} else if (form.imageMessage.pic_url) {
form.messageType = '1'
} else if (form.textMessage.content) {
form.messageType = '0'
}
// debugger
form.tag = form.tag.map((d) => d.tagId) + ''
form.department += ''
......
......@@ -4,7 +4,7 @@ import TabContent from './TabContent'
export default {
components: {
TabContent,
TabContent
},
props: {},
data() {
......@@ -12,7 +12,7 @@ export default {
data: {},
activeName: '0',
total1: 0,
total0: 0,
total0: 0
}
},
watch: {},
......@@ -24,17 +24,27 @@ export default {
},
mounted() {},
methods: {
notice() {},
},
notice() {}
}
}
</script>
<template>
<div>
<div>
创建人:{{ data.sender }}
<div>消息内容:{{ data.content }}</div>
</div>
<el-card shadow="hover" class="mb10">
<span class="label">创建人:</span>
{{ data.sender }}
<div class="mt10 flex aic">
<span class="label">消息内容:</span>
<el-image
v-if="/^http.*\.(png|jpeg|jpg|gif)$/gi.test(data.content)"
style="width: 80px; height: 80px;border-radius:6px"
:src="data.content"
fit="fit"
></el-image>
<span v-else>{{ data.content }}</span>
</div>
</el-card>
<!-- <el-button class="notice" type="primary" @click="notice"
>通知员工发送</el-button
> -->
......@@ -49,4 +59,10 @@ export default {
</div>
</template>
<style lang="less" scoped></style>
<style lang="scss" scoped>
.label {
width: 70px;
display: inline-block;
text-align: right;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!