|
|
|
@ -154,7 +154,7 @@ export default defineComponent({
|
|
|
|
|
const teachData = ref([]);
|
|
|
|
|
const departmentData = ref([]);
|
|
|
|
|
const departmentGroupData = ref([]);
|
|
|
|
|
const textareaShow = ref(false);
|
|
|
|
|
const textareaShow = ref(true);
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
const ruleTable = reactive({
|
|
|
|
|
data: []
|
|
|
|
@ -230,6 +230,7 @@ export default defineComponent({
|
|
|
|
|
this.form.start = res.data.start;
|
|
|
|
|
this.form.end = res.data.end;
|
|
|
|
|
this.form.coverUrl = res.data.coverUrl;
|
|
|
|
|
this.form.imgText = res.data.imgText;
|
|
|
|
|
this.selTime = [res.data.start,res.data.end]
|
|
|
|
|
this.form.rewardRuleTemplateId = res.data.rewardRuleTemplateId;
|
|
|
|
|
this.ruleChange(res.data.rewardRuleTemplateId);
|
|
|
|
@ -255,12 +256,12 @@ export default defineComponent({
|
|
|
|
|
if(this.$route.query.id) {
|
|
|
|
|
let obj = Object.assign(this.form, {id: this.$route.query.id})
|
|
|
|
|
this.proxy.$post("/task/upd", obj).then(res => {
|
|
|
|
|
this.$message.success(res.data);
|
|
|
|
|
this.$message.success('修改成功');
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
} else {
|
|
|
|
|
this.proxy.$post("/task/add", this.form).then(res => {
|
|
|
|
|
this.$message.success(res.data);
|
|
|
|
|
this.$message.success('添加成功');
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
}
|
|
|
|
|