|
|
|
@ -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) {
|
|
|
|
|