|
@@ -37,14 +37,8 @@
|
|
|
<el-button type="primary" @click="sendMessage">发送模板消息</el-button>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-select placeholder="行业" clearable v-model="industry" @change="conditionChange" style="margin-bottom: 20px"
|
|
|
- v-if="!isResearch">
|
|
|
- <el-option
|
|
|
- v-for="item in chartPermissionList"
|
|
|
- :label="item.PermissionName"
|
|
|
- :key="item.ChartPermissionId"
|
|
|
- :value="item.ChartPermissionId"
|
|
|
- ></el-option>
|
|
|
+ <el-select placeholder="行业" clearable v-model="industry" @change="conditionChange" style="margin-bottom: 20px" v-if="!isResearch">
|
|
|
+ <el-option v-for="item in chartPermissionList" :label="item.PermissionName" :key="item.ChartPermissionId" :value="item.ChartPermissionId"></el-option>
|
|
|
</el-select>
|
|
|
<el-select placeholder="活动类型" clearable @focus="activityType" v-model="cactivityTypeVal" @change="conditionChange" style="margin-bottom: 20px">
|
|
|
<el-option v-for="item in cactivityTypeList" :label="item.ActivityTypeName" :key="item.ActivityTypeId" :value="item.ActivityTypeId"></el-option>
|
|
@@ -81,7 +75,7 @@
|
|
|
<span v-if="row.SignupFailPeopleNum == 0">--</span>
|
|
|
<span v-else class="editsty" @click="particularsBtn('报名失败详情', row.ActivityId)">{{ row.SignupFailPeopleNum }}</span>
|
|
|
</div>
|
|
|
- <span v-else @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key)">{{ handleRowContent(row, item.key) }}</span>
|
|
|
+ <span v-else @click="handleRowClick(row, item.key)" :style="handleRowStyle(item.key, row)">{{ handleRowContent(row, item.key) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -118,7 +112,7 @@ import ParticularsDialog from "../components/apply/particularsDialog.vue";
|
|
|
import AtcParticulars from "../components/atcParticulars.vue";
|
|
|
import GenerationAsk from "../components/generationAsk.vue";
|
|
|
import SummaryRemind from "../components/apply/summaryRemind.vue";
|
|
|
-import { ListTitle , purchaserListTitle , TableApplyColums, StatusSelect, PublishSelect } from "../components/apply/applyTableColums";
|
|
|
+import { ListTitle, purchaserListTitle, TableApplyColums, StatusSelect, PublishSelect } from "../components/apply/applyTableColums";
|
|
|
import TemplateMessage from "../components/apply/templateMessage.vue";
|
|
|
export default {
|
|
|
name: "",
|
|
@@ -166,11 +160,11 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
// 弘则 研选 是否是研选
|
|
|
- isResearch(){
|
|
|
- return this.$route.path.indexOf("purchaser")!=-1?true:false
|
|
|
+ isResearch() {
|
|
|
+ return this.$route.path.indexOf("purchaser") != -1 ? true : false;
|
|
|
},
|
|
|
listTitle() {
|
|
|
- return !this.isResearch?ListTitle:purchaserListTitle;
|
|
|
+ return !this.isResearch ? ListTitle : purchaserListTitle;
|
|
|
},
|
|
|
statusSelect() {
|
|
|
return StatusSelect;
|
|
@@ -187,7 +181,7 @@ export default {
|
|
|
this.page_no = 1;
|
|
|
this.init();
|
|
|
this.getsDataList();
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
@@ -225,7 +219,7 @@ export default {
|
|
|
ActivityTypeId: this.cactivityTypeVal,
|
|
|
ActiveState: this.cactivityStatus,
|
|
|
PublishStatus: this.publishStatus ? Number(this.publishStatus) : 2,
|
|
|
- IsResearch:this.isResearch
|
|
|
+ IsResearch: this.isResearch,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.Ret !== 200) return;
|
|
@@ -315,7 +309,7 @@ export default {
|
|
|
},
|
|
|
//获取行业
|
|
|
chartPermission() {
|
|
|
- raiInterface.chartPermission({IsHideResearch:!this.isResearch}).then((res) => {
|
|
|
+ raiInterface.chartPermission({ IsHideResearch: !this.isResearch }).then((res) => {
|
|
|
if (res.Ret === 200) {
|
|
|
this.chartPermissionList = res.Data.List;
|
|
|
}
|
|
@@ -372,9 +366,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
/* 表格行的样式 */
|
|
|
- handleRowStyle(key) {
|
|
|
- let isStyle = ["ActivityName", "SignupPeopleNum", "AppointmentPeopleNum", "AskNum"];
|
|
|
- return isStyle.includes(key) ? "color: #409eff; cursor: pointer" : "";
|
|
|
+ handleRowStyle(key, row) {
|
|
|
+ if (["ActivityName", "SignupPeopleNum", "AppointmentPeopleNum", "AskNum"].includes(key)) {
|
|
|
+ return row.PublishStatus == 3 ? "cursor: pointer" : "color: #409eff; cursor: pointer";
|
|
|
+ }
|
|
|
+ return "";
|
|
|
},
|
|
|
/* 表格行的点击事件 */
|
|
|
handleRowClick(row, key) {
|
|
@@ -403,7 +399,7 @@ export default {
|
|
|
let status = row[key] == 1 ? "未开始" : row[key] == 2 ? "进行中" : "已结束";
|
|
|
return status;
|
|
|
} else if (key == "PublishStatus") {
|
|
|
- let status = row["PublishStatus"] == 1 ? "已发布" : row["PublishStatus"] == 2 ?"未发布":"已取消";
|
|
|
+ let status = row["PublishStatus"] == 1 ? "已发布" : row["PublishStatus"] == 2 ? "未发布" : "已取消";
|
|
|
return status;
|
|
|
} else {
|
|
|
return row[key];
|