update 分发和批量分发加邮件提示语
This commit is contained in:
@@ -27,14 +27,18 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
<a-empty v-else></a-empty>
|
<a-empty v-else></a-empty>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
||||||
|
<email-error-msg-modal ref="emailError"/>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { distribute, batchDistribute, distributeMemberList } from '../../../api/incomePaymentsApi'
|
import { distribute, batchDistribute, distributeMemberList } from '../../../api/incomePaymentsApi'
|
||||||
|
import EmailErrorMsgModal from '@views/projectManagement/modules/EmailErrorMsgModal.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'WorkGroupDistributeModule',
|
name: 'WorkGroupDistributeModule',
|
||||||
|
components: { EmailErrorMsgModal },
|
||||||
props: {
|
props: {
|
||||||
// 项目id
|
// 项目id
|
||||||
projectId: {
|
projectId: {
|
||||||
@@ -185,6 +189,13 @@ export default {
|
|||||||
batchDistribute(formData).then(res => {
|
batchDistribute(formData).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
// 是否有邮件发送失败 有就给出提示信息
|
||||||
|
if (Array.isArray(res.result) && res.result.length > 0) {
|
||||||
|
// msgWarn(this,res.result,0)
|
||||||
|
this.$refs.emailError.open()
|
||||||
|
this.$refs.emailError.msgList = res.result
|
||||||
|
console.log(this.$refs.emailError.msgList, 'this.$refs.emailError.msgList ')
|
||||||
|
}
|
||||||
this.close()
|
this.close()
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
} else {
|
} else {
|
||||||
@@ -206,6 +217,12 @@ export default {
|
|||||||
distribute(formData).then(res => {
|
distribute(formData).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
if (Array.isArray(res.result) && res.result.length > 0) {
|
||||||
|
// msgWarn(this,res.result,0)
|
||||||
|
this.$refs.emailError.open()
|
||||||
|
this.$refs.emailError.msgList = res.result
|
||||||
|
console.log(this.$refs.emailError.msgList, 'this.$refs.emailError.msgList ')
|
||||||
|
}
|
||||||
this.close()
|
this.close()
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user