协同宣发
This commit is contained in:
@@ -34,12 +34,7 @@
|
|||||||
<div class="AppAnnounceDetail-select">
|
<div class="AppAnnounceDetail-select">
|
||||||
<el-input size="small" class="AppAnnounceDetail-select__input" placeholder="请选择..." disabled v-model="form.wxGroupsName"></el-input>
|
<el-input size="small" class="AppAnnounceDetail-select__input" placeholder="请选择..." disabled v-model="form.wxGroupsName"></el-input>
|
||||||
<div class="select-left" v-if="form.wxGroups.length">
|
<div class="select-left" v-if="form.wxGroups.length">
|
||||||
<span v-for="(item, index) in form.wxGroups" :key="index" v-if="index < 9">
|
<span v-for="(item, index) in form.wxGroups" :key="index" v-if="index < 9">{{ item.groupOwnerName }}</span>
|
||||||
<ai-open-data
|
|
||||||
type="userName"
|
|
||||||
:openid="item.groupOwnerId">
|
|
||||||
</ai-open-data>
|
|
||||||
</span>
|
|
||||||
<em v-if="form.wxGroups.length > 9">等{{ form.wxGroups.length }}个</em>
|
<em v-if="form.wxGroups.length > 9">等{{ form.wxGroups.length }}个</em>
|
||||||
</div>
|
</div>
|
||||||
<i v-if="!form.wxGroups.length">请选择</i>
|
<i v-if="!form.wxGroups.length">请选择</i>
|
||||||
@@ -150,18 +145,16 @@
|
|||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="form.enableExamine === '1'" label="审批人员" prop="examines" style="width: 100%;" :rules="[{ required: true, message: '请选择审批人员', trigger: 'change' }]">
|
<el-form-item v-if="form.enableExamine === '1'" label="审批人员" prop="examines" style="width: 100%;" :rules="[{ required: true, message: '请选择审批人员', trigger: 'change' }]">
|
||||||
<ai-user-get :instance="instance" v-model="form.examines" @change="onUserChange">
|
<ai-wechat-selecter :instance="instance" v-model="form.examines" @change="onUserChange">
|
||||||
<div class="AppAnnounceDetail-select">
|
<div class="AppAnnounceDetail-select">
|
||||||
<el-input class="AppAnnounceDetail-select__input" size="small" placeholder="请选择..." v-model="form.examinesName"></el-input>
|
<el-input class="AppAnnounceDetail-select__input" size="small" placeholder="请选择..." v-model="form.examinesName"></el-input>
|
||||||
<div class="select-left" v-if="form.examines.length">
|
<div class="select-left" v-if="form.examines.length">
|
||||||
<span v-for="(item, index) in form.examines" :key="index">
|
<span v-for="(item, index) in form.examines" :key="index">{{ item.name }}</span>
|
||||||
<ai-open-data type="userName" :openid="item.wxOpenUserId"></ai-open-data>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<i v-if="!form.examines.length">请选择</i>
|
<i v-if="!form.examines.length">请选择</i>
|
||||||
<div class="select-right">{{ form.examines.length ? '重新选择' : '选择' }}</div>
|
<div class="select-right">{{ form.examines.length ? '重新选择' : '选择' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</ai-user-get>
|
</ai-wechat-selecter>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -25,15 +25,15 @@
|
|||||||
<ai-info-item label="创建人" isLine>
|
<ai-info-item label="创建人" isLine>
|
||||||
<div class="user">
|
<div class="user">
|
||||||
<img src="https://cdn.cunwuyun.cn/dvcp/announce/user.png" />
|
<img src="https://cdn.cunwuyun.cn/dvcp/announce/user.png" />
|
||||||
<span><ai-open-data type="userName" :openid="info.createUserId"></ai-open-data></span>
|
<span>{{ info.createUserName }}</span>
|
||||||
(<span><ai-open-data type="departmentName" :openid="info.createUserDept"></ai-open-data></span>)
|
(<span>{{ info.createUserDeptName }}</span>)
|
||||||
</div>
|
</div>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
<ai-info-item label="审批人" isLine v-if="info.enableExamine === '1'">
|
<ai-info-item label="审批人" isLine v-if="info.enableExamine === '1'">
|
||||||
<div class="user-wrapper">
|
<div class="user-wrapper">
|
||||||
<div class="user" v-for="(item, index) in info.examines" :key="index">
|
<div class="user" v-for="(item, index) in info.examines" :key="index">
|
||||||
<img src="https://cdn.cunwuyun.cn/dvcp/announce/user.png" />
|
<img src="https://cdn.cunwuyun.cn/dvcp/announce/user.png" />
|
||||||
<span><ai-open-data type="userName" :openid="item.examineUserId"></ai-open-data></span>
|
<span>{{ item.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ai-info-item>
|
</ai-info-item>
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
:instance="instance"
|
:instance="instance"
|
||||||
@pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1">
|
@pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1">
|
||||||
<div class="userSelcet">
|
<div class="userSelcet">
|
||||||
<span style="color: #606266;" v-if="search1.deptartId"><ai-open-data type="departmentName" :openid="search1.deptartId"></ai-open-data></span>
|
<span style="color: #606266;" v-if="search1.deptartId">{{ name1 }}</span>
|
||||||
<span v-else>部门</span>
|
<span v-else>部门</span>
|
||||||
<i class="el-icon-arrow-up" v-if="!search1.deptartId"></i>
|
<i class="el-icon-arrow-up" v-if="!search1.deptartId"></i>
|
||||||
<i class="el-icon-circle-close" v-if="search1.deptartId" @click.stop="user1 = [], search1.deptartId = '', search1.current = 1, getMemberInfo()"></i>
|
<i class="el-icon-circle-close" v-if="search1.deptartId" @click.stop="user1 = [], search1.deptartId = '', search1.current = 1, getMemberInfo()"></i>
|
||||||
@@ -142,12 +142,8 @@
|
|||||||
<el-table-column slot="user" label="成员" align="left">
|
<el-table-column slot="user" label="成员" align="left">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="userinfo">
|
<div class="userinfo">
|
||||||
<span>
|
<span>{{ row.groupOwnerName }}</span>
|
||||||
<ai-open-data type="userName" :openid="row.groupOwnerId"></ai-open-data>
|
<span style="color: #999">{{ row.mainDepartmentName }}</span>
|
||||||
</span>
|
|
||||||
<span style="color: #999">
|
|
||||||
<ai-open-data type="departmentName" :openid="row.mainDepartment"></ai-open-data>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -195,7 +191,7 @@
|
|||||||
:instance="instance"
|
:instance="instance"
|
||||||
@pick="e => onUserChange(e, 'search2')" :multiple="false" v-model="user2">
|
@pick="e => onUserChange(e, 'search2')" :multiple="false" v-model="user2">
|
||||||
<div class="userSelcet">
|
<div class="userSelcet">
|
||||||
<span style="color: #606266;" v-if="search2.deptartId"><ai-open-data type="departmentName" :openid="search2.deptartId"></ai-open-data></span>
|
<span style="color: #606266;" v-if="search2.deptartId">{{ name2 }}</span>
|
||||||
<span v-else>部门</span>
|
<span v-else>部门</span>
|
||||||
<i class="el-icon-arrow-up" v-if="!search2.deptartId"></i>
|
<i class="el-icon-arrow-up" v-if="!search2.deptartId"></i>
|
||||||
<i class="el-icon-circle-close" v-if="search2.deptartId" @click.stop="user1 = [], search2.deptartId = '', search2.current = 1, getGroupInfo()"></i>
|
<i class="el-icon-circle-close" v-if="search2.deptartId" @click.stop="user1 = [], search2.deptartId = '', search2.current = 1, getGroupInfo()"></i>
|
||||||
@@ -216,12 +212,8 @@
|
|||||||
<el-table-column slot="user" label="群主" align="center">
|
<el-table-column slot="user" label="群主" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="userinfo">
|
<div class="userinfo">
|
||||||
<span>
|
<span>{{ row.groupOwnerName }}</span>
|
||||||
<ai-open-data type="userName" :openid="row.groupOwnerId"></ai-open-data>
|
<span style="color: #999">{{ row.mainDepartmentName }}</span>
|
||||||
</span>
|
|
||||||
<span style="color: #999">
|
|
||||||
<ai-open-data type="departmentName" :openid="row.mainDepartment"></ai-open-data>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -276,6 +268,8 @@
|
|||||||
total2: 0,
|
total2: 0,
|
||||||
user1: [],
|
user1: [],
|
||||||
user2: [],
|
user2: [],
|
||||||
|
name1: '',
|
||||||
|
name2: '',
|
||||||
radio1: '未执行',
|
radio1: '未执行',
|
||||||
search1: {
|
search1: {
|
||||||
current: 1,
|
current: 1,
|
||||||
@@ -300,7 +294,7 @@
|
|||||||
content: '',
|
content: '',
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
colConfigs3: [
|
colConfigs3: [
|
||||||
{ prop: 'groupOwnerId', label: '群主', openType: 'userName' },
|
{ prop: 'groupOwnerName', label: '群主', openType: 'userName' },
|
||||||
{ prop: 'groupNames', label: '群名称' }
|
{ prop: 'groupNames', label: '群名称' }
|
||||||
],
|
],
|
||||||
colConfigs1: [
|
colConfigs1: [
|
||||||
@@ -352,9 +346,11 @@
|
|||||||
|
|
||||||
onUserChange (e, search) {
|
onUserChange (e, search) {
|
||||||
if (e.length) {
|
if (e.length) {
|
||||||
|
search === 'search1' ? this.name1 = e[0].name : this.name2 = e[0].name
|
||||||
this[search].deptartId = e[0].id
|
this[search].deptartId = e[0].id
|
||||||
} else {
|
} else {
|
||||||
this[search].deptartId = ''
|
this[search].deptartId = ''
|
||||||
|
search === 'search1' ? this.name1 = '' : this.name2 = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
this[search].current = 1
|
this[search].current = 1
|
||||||
|
|||||||
@@ -33,14 +33,14 @@
|
|||||||
@change="search.current = 1, getList()"
|
@change="search.current = 1, getList()"
|
||||||
placeholder="选择群发结束日期">
|
placeholder="选择群发结束日期">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
<ai-user-get :instance="instance" @change="onUserChange" :isMultiple="false" v-model="user">
|
<ai-wechat-selecter :instance="instance" @change="onUserChange" :isMultiple="false" v-model="user">
|
||||||
<div class="userSelcet">
|
<div class="userSelcet">
|
||||||
<span style="color: #606266;" v-if="search.createUserId"><ai-open-data type="userName" :openid="search.createUserId"></ai-open-data></span>
|
<span style="color: #606266;" v-if="search.createUserId">{{ name }}</span>
|
||||||
<span v-else>创建人</span>
|
<span v-else>创建人</span>
|
||||||
<i class="el-icon-arrow-up" v-if="!search.createUserId"></i>
|
<i class="el-icon-arrow-up" v-if="!search.createUserId"></i>
|
||||||
<i class="el-icon-circle-close" v-if="search.createUserId" @click.stop="user = [], search.createUserId = '', search.current = 1, getList()"></i>
|
<i class="el-icon-circle-close" v-if="search.createUserId" @click.stop="user = [], search.createUserId = '', name = '', search.current = 1, getList()"></i>
|
||||||
</div>
|
</div>
|
||||||
</ai-user-get>
|
</ai-wechat-selecter>
|
||||||
</template>
|
</template>
|
||||||
<template slot="right">
|
<template slot="right">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -66,12 +66,8 @@
|
|||||||
<el-table-column slot="user" width="140px" label="创建人" align="center">
|
<el-table-column slot="user" width="140px" label="创建人" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<div class="userinfo">
|
<div class="userinfo">
|
||||||
<span>
|
<span>{{ row.createUserName }}</span>
|
||||||
<ai-open-data type="userName" :openid="row.createUserId"></ai-open-data>
|
<span style="color: #999">{{ row.createUserDeptName }}</span>
|
||||||
</span>
|
|
||||||
<span style="color: #999">
|
|
||||||
<ai-open-data type="departmentName" :openid="row.createUserDept"></ai-open-data>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -110,6 +106,7 @@
|
|||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: ''
|
endTime: ''
|
||||||
},
|
},
|
||||||
|
name: '',
|
||||||
user: [],
|
user: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -145,9 +142,11 @@
|
|||||||
methods: {
|
methods: {
|
||||||
onUserChange (e) {
|
onUserChange (e) {
|
||||||
if (e.length) {
|
if (e.length) {
|
||||||
this.search.createUserId = e[0].wxOpenUserId
|
this.name = e[0].name
|
||||||
|
this.search.createUserId = e[0].id
|
||||||
} else {
|
} else {
|
||||||
this.search.createUserId = ''
|
this.search.createUserId = ''
|
||||||
|
this.name = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
this.search.current = 1
|
this.search.current = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user