This commit is contained in:
2025-04-27 09:16:42 +08:00
parent 3a40d2d3ee
commit 95ee4bcebf
13 changed files with 964 additions and 752 deletions

View File

@@ -25,9 +25,9 @@
>
<el-option
v-for="item in cateOptions"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.id"
:label="item.dictValue"
:value="item.dictType"
>
</el-option
></el-select></div
@@ -366,25 +366,12 @@ export default {
getPointsType(type) {
var str = "";
//在线教学 01 学术期刊 03 太湖讲堂 05 创作技术 07 注册邀请 11 课程邀请 13
switch (type) {
case "01":
return "在线教学";
case "03":
return "学术期刊";
case "05":
return "太湖讲堂";
case "07":
return "创作技术";
case "11":
return "注册邀请";
case "13":
return "课程邀请";
}
this.cateOptions.forEach(item => {
if (item.dictType == type) {
str = item.dictValue;
}
});
return str;
},
dataFormDelete: debounce(async function(row, deleteType) {
console.log("row at line 515:", row);
@@ -429,46 +416,21 @@ export default {
.catch(() => {});
}, 200),
getCateList() {
// this.$http({
// url: this.$http.adornUrl(
// "/master/userCertificate/userCertificateLabelList"
// ),
// method: "post",
// data: this.$http.adornData({})
// }).then(({ data }) => {
// if (data && data.code === 0) {
this.cateOptions = [
{
value: "01",
label: "在线教学"
},
{
value: "03",
label: "学术期刊"
},
{
value: "05",
label: "太湖讲堂"
},
{
value: "07",
label: "创作技术"
},
{
value: "11",
label: "注册邀请"
},
{
value: "13",
label: "课程邀请"
this.$http({
url: this.$http.adornUrl(
"/master/userContribution/getUserContributionLabelList"
),
method: "post",
data: this.$http.adornData({})
}).then(({ data }) => {
if (data && data.code === 0) {
this.cateOptions = data.labelList;
} else {
this.cateOptions = [];
}
];
// } else {
// this.cateOptions = [];
// }
// if (data.code !== 0) return this.$message.error(data.msg);
// });
this.totalLaoding = false;
if (data.code !== 0) return this.$message.error(data.msg);
});
},
delay(val) {
this.$nextTick(() => {