|
@@ -1,6 +1,16 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
|
|
|
+ <el-form-item label="项目" prop="courseId">
|
|
|
+ <el-select filterable v-model="queryParams.project" placeholder="请选择项目" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in projectLists"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="parseInt(dict.dictValue)"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="企微公司" prop="corpId">
|
|
|
<el-select v-model="queryParams.corpId" placeholder="企微公司" size="small" @change="updateCorpId()">
|
|
|
<el-option
|
|
@@ -66,6 +76,8 @@
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="friendWelcomeList" @selection-change="handleSelectionChange" border>
|
|
|
+ <el-table-column label="项目" align="center" prop="projectName"/>
|
|
|
+
|
|
|
<el-table-column label="消息内容" align="left" prop="welcomeText" width="400px" >
|
|
|
<template slot-scope="scope">
|
|
|
<span style="color:rgb(19, 154, 50);" v-if="scope.row.isDayparting==='1'">[共 {{JSON.parse(scope.row.daypartingItemlist).length+1}} 时段]</span>
|
|
@@ -139,7 +151,16 @@
|
|
|
</el-alert>
|
|
|
</div>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
-
|
|
|
+ <el-form-item label="项目" prop="project">
|
|
|
+ <el-select filterable v-model="form.project" placeholder="请选择项目" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in projectLists"
|
|
|
+ :key="dict.dictValue"
|
|
|
+ :label="dict.dictLabel"
|
|
|
+ :value="parseInt(dict.dictValue)"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="选择使用成员:" prop="qwUserIds" style="margin-top: 2%">
|
|
|
<div>
|
|
|
<el-button
|
|
@@ -429,6 +450,7 @@ export default {
|
|
|
// 非多个禁用
|
|
|
multiple: true,
|
|
|
myQwCompanyList:[],
|
|
|
+ projectLists: [],
|
|
|
//选择成员列表
|
|
|
listUser:{
|
|
|
title:"",
|
|
@@ -517,6 +539,7 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
+ project: [{required: true,message: "项目不能为空!",trigger: "submit"}],
|
|
|
qwUserIds: [
|
|
|
{ required: true, message: "发送企业群发消息的成员账号不能为空", trigger: "submit" }
|
|
|
],
|
|
@@ -551,6 +574,9 @@ export default {
|
|
|
this.getDicts("sys_qw_allow_select").then(response => {
|
|
|
this.allowSelectOptions = response.data;
|
|
|
});
|
|
|
+ this.getDicts("sys_course_project").then(response => {
|
|
|
+ this.projectLists = response.data;
|
|
|
+ })
|
|
|
courseList().then(response => {
|
|
|
this.courseList = response.list;
|
|
|
});
|
|
@@ -894,6 +920,8 @@ export default {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ } else {
|
|
|
+ this.loading=false;
|
|
|
}
|
|
|
});
|
|
|
},
|