Commit ed5691be by 姜鹏凯

朋友圈更新

1 parent b2b2e6cd
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
type="daterange" type="daterange"
range-separator="——" range-separator="——"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"></el-date-picker> end-placeholder="结束日期"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<!-- v-hasPermi="['wecom:code:list']" --> <!-- v-hasPermi="['wecom:code:list']" -->
...@@ -23,7 +24,7 @@ ...@@ -23,7 +24,7 @@
</el-form> </el-form>
<div class="g-card"> <div class="g-card">
<div class="mid-action"> <div class="mid-action">
<el-button type="primary" @click="gotoRoute" style="margin-right: 10px">发表动态</el-button> <el-button type="primary" @click="gotoRoute" style="margin-right: 10px;">发表动态</el-button>
<div> <div>
<span class="desc" v-if="lastSyncTime">最近同步:{{ lastSyncTime }}</span> <span class="desc" v-if="lastSyncTime">最近同步:{{ lastSyncTime }}</span>
<span class="desc" v-else>暂无记录,请手动点击同步</span> <span class="desc" v-else>暂无记录,请手动点击同步</span>
...@@ -38,11 +39,13 @@ ...@@ -38,11 +39,13 @@
:src="row.content" :src="row.content"
fit="fit" fit="fit"
:preview-src-list="[row.content]" :preview-src-list="[row.content]"
style="width: 100px; height: 100px"></el-image> style="width: 100px; height: 100px;"
></el-image>
<video <video
v-else-if="row.contentType === 'video'" v-else-if="row.contentType === 'video'"
style="width: 100px; height: 100px" style="width: 100px; height: 100px;"
:src="row.content"></video> :src="row.content"
></video>
<div v-else>{{ row.content }}</div> <div v-else>{{ row.content }}</div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -67,6 +70,22 @@ ...@@ -67,6 +70,22 @@
<div v-if="row.noAddUserName"> <div v-if="row.noAddUserName">
<TagEllipsis :list="row.noAddUserName.split(',')" /> <TagEllipsis :list="row.noAddUserName.split(',')" />
</div> </div>
<div v-else>全部</div>
</template>
</el-table-column>
<el-table-column label="任务状态" prop="status">
<template slot-scope="{ row }">
<span>
{{
row.status == 1
? '开始创建任务'
: row.status == 2
? '正在创建任务'
: row.status == 3
? '创建任务完成'
: ''
}}
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="createTime" width="170px" label="创建时间"></el-table-column> <el-table-column show-overflow-tooltip prop="createTime" width="170px" label="创建时间"></el-table-column>
...@@ -83,22 +102,23 @@ ...@@ -83,22 +102,23 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
title="组织架构" title="组织架构"
:defaultValues="userArray" :defaultValues="userArray"
@success="getSelectUser"></SelectUser> @success="getSelectUser"
></SelectUser>
<el-dialog title="详情" :visible.sync="detailDialogVisible" width="40%"> <el-dialog title="详情" :visible.sync="detailDialogVisible" width="40%">
<el-form label-position="right" label-width="100px"> <el-form label-position="right" label-width="100px">
<span style="margin-left: 40px; font-size: 16px">内容:</span> <span style="margin-left: 40px; font-size: 16px;">内容:</span>
<template v-for="(data, index) in detail.otherContent"> <template v-for="(data, index) in detail.otherContent">
<el-form-item label=" " v-if="data.annexType === 'text'"> <el-form-item label=" " v-if="data.annexType === 'text'">
{{ data.other }} {{ data.other }}
</el-form-item> </el-form-item>
<el-form-item label=" " v-if="data.annexType === 'video'"> <el-form-item label=" " v-if="data.annexType === 'video'">
<div style="display: inline-block; margin-right: 10px"> <div style="display: inline-block; margin-right: 10px;">
<video style="width: 200px; height: 200px" :src="data.annexUrl" controls></video> <video style="width: 200px; height: 200px;" :src="data.annexUrl" controls></video>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label=" " v-if="data.annexType === 'link'"> <el-form-item label=" " v-if="data.annexType === 'link'">
<div style="display: inline-block; margin-right: 10px"> <div style="display: inline-block; margin-right: 10px;">
<span style="width: 100px; height: 100px">{{ data.annexUrl }}</span> <span style="width: 100px; height: 100px;">{{ data.annexUrl }}</span>
</div> </div>
</el-form-item> </el-form-item>
</template> </template>
...@@ -107,10 +127,11 @@ ...@@ -107,10 +127,11 @@
<div v-for="(data, index) in detail.otherContent"> <div v-for="(data, index) in detail.otherContent">
<el-image <el-image
class="item" class="item"
style="width: 100px; height: 100px" style="width: 100px; height: 100px;"
:preview-src-list="[data.annexUrl]" :preview-src-list="[data.annexUrl]"
v-if="data.annexType === 'image'" v-if="data.annexType === 'image'"
:src="data.annexUrl"></el-image> :src="data.annexUrl"
></el-image>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
...@@ -129,9 +150,9 @@ ...@@ -129,9 +150,9 @@
</div> </div>
</template> </template>
<script> <script>
import moment from 'moment' import moment from 'moment'
import { getEnterpriceList, syncHMoments, getDetail } from '@/api/circle' import { getEnterpriceList, syncHMoments, getDetail } from '@/api/circle'
export default { export default {
name: 'enterprise', name: 'enterprise',
components: {}, components: {},
data() { data() {
...@@ -146,14 +167,14 @@ export default { ...@@ -146,14 +167,14 @@ export default {
beginTime: '', beginTime: '',
endTime: '', endTime: '',
creator: '', creator: '',
type: 0, type: 0
}, },
loading: false, loading: false,
tableData: [], tableData: [],
total: 0, total: 0,
lastSyncTime: '', lastSyncTime: '',
detailDialogVisible: false, detailDialogVisible: false,
detail: {}, detail: {}
} }
}, },
methods: { methods: {
...@@ -190,7 +211,7 @@ export default { ...@@ -190,7 +211,7 @@ export default {
}, },
gotoRoute() { gotoRoute() {
this.$router.push({ this.$router.push({
path: '/customerMaintain/friendCircle/publish', path: '/customerMaintain/friendCircle/publish'
}) })
}, },
setTimeChange(e) { setTimeChange(e) {
...@@ -233,7 +254,7 @@ export default { ...@@ -233,7 +254,7 @@ export default {
beginTime: '', beginTime: '',
endTime: '', endTime: '',
creator: '', creator: '',
type: 0, type: 0
}), }),
(this.userArray = []) (this.userArray = [])
this.value1 = [] this.value1 = []
...@@ -267,7 +288,7 @@ export default { ...@@ -267,7 +288,7 @@ export default {
this.disable = true this.disable = true
} }
} }
}, }
}, },
mounted() {}, mounted() {},
created() { created() {
...@@ -276,11 +297,11 @@ export default { ...@@ -276,11 +297,11 @@ export default {
this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD') this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD')
this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD') this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD')
this.getList() this.getList()
}, }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.img_list { .img_list {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
width: 330px; width: 330px;
...@@ -290,5 +311,5 @@ export default { ...@@ -290,5 +311,5 @@ export default {
height: 100px; height: 100px;
margin-right: 5px; margin-right: 5px;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!