lijinlong
李劲龙 1 year ago
parent 436566e291
commit ae9a3b46f9

@ -24,9 +24,9 @@
width="70"
>
</el-table-column>
<el-table-column prop="content" label="活动名称" width="180">
<el-table-column prop="content" label="活动名称" show-overflow-tooltip width="180">
<template slot-scope="scope">
<div class="activity">
<div class="activity" >
<div>{{ scope.row.name }}</div>
<div>{{ scope.row.content }}</div>
</div>
@ -37,6 +37,7 @@
label="活动地址"
show-overflow-tooltip
width="100"
>
</el-table-column>
<!-- <el-table-column prop="duration" label="服务时长"> </el-table-column> -->
@ -47,7 +48,7 @@
</div>
</template></el-table-column
>
<el-table-column prop="publisher" label="活动举办方"> </el-table-column>
<el-table-column prop="publisher" label="活动举办方" show-overflow-tooltip> </el-table-column>
<el-table-column prop="activityTime" label="参加时间">
<template slot-scope="scope">
@ -61,7 +62,7 @@
</div>
</template>
</el-table-column>
<el-table-column label="操作" width="250">
<el-table-column label="操作" width="150">
<template slot-scope="scope">
<div class="tabs-btns">
<div class="look" @click="look(scope.row)">

@ -24,7 +24,7 @@
width="70"
>
</el-table-column>
<el-table-column prop="content" label="活动名称" width="180">
<el-table-column prop="content" label="活动名称" show-overflow-tooltip width="180">
<template slot-scope="scope">
<div class="activity">
<div>{{ scope.row.name }}</div>
@ -47,7 +47,7 @@
</div>
</template></el-table-column
>
<el-table-column prop="publisher" label="活动举办方"> </el-table-column>
<el-table-column prop="publisher" label="活动举办方" show-overflow-tooltip> </el-table-column>
<el-table-column prop="activityTime" label="参加时间">
<template slot-scope="scope">
@ -61,7 +61,7 @@
</div>
</template>
</el-table-column>
<el-table-column label="操作" width="250">
<el-table-column label="操作" width="150">
<template slot-scope="scope">
<div class="tabs-btns">
<div class="look" @click="look(scope.row)">

@ -43,7 +43,7 @@
width="70"
>
</el-table-column> -->
<el-table-column prop="id" label="ID" align="center" width="90">
<el-table-column prop="index" label="序号" align="center" width="60">
</el-table-column>
<el-table-column prop="name" label="活动名称" align="center">
</el-table-column>
@ -362,8 +362,7 @@ export default {
"speciality_type",
"industry_type",
"yuanxiao_type",
"nationality_type"
"nationality_type",
],
data() {
return {
@ -454,6 +453,9 @@ export default {
activityList(this.pages).then((res) => {
this.total = res.total;
this.tableData = res.rows;
this.tableData.forEach((element, index) => {
element.index = index + 1;
});
this.loading = false;
});
},
@ -480,7 +482,7 @@ export default {
},
//
addActivity() {
this.titleText = "新增信息";
this.titleText = "新增活动";
this.reset();
this.addShow = true;
},
@ -516,6 +518,32 @@ export default {
//
submit() {
console.log(this.ruleForm1);
let arr = [
"ageRange",
"sexRange",
"politicalRange",
"educationRange",
"housingRange",
"industryRange",
"interestRange",
"professionalRange",
"schoolRange",
"nationalityRange",
];
let i = 0;
arr.forEach((item) => {
for (let itemB in this.ruleForm1) {
if (item == itemB) {
if (this.ruleForm1[itemB] != "") {
i++;
}
}
}
});
console.log(i);
if (i < 3) {
this.$message.error("人员信息要求最低选择三条");
}
this.$refs.ruleForm1.validate((valid) => {
if (valid) {
if (this.ruleForm1.id != undefined) {

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="字典名称" prop="dictType">
<el-select v-model="queryParams.dictType">
<el-option
@ -33,7 +33,7 @@
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
</el-form> -->
<el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="字典名称" prop="dictName">
<el-input
v-model="queryParams.dictName"
@ -49,7 +49,7 @@
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
</el-form-item>
</el-form>
</el-form> -->
<el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">

Loading…
Cancel
Save