zx 3 years ago
parent 549de8f490
commit 8925f26048

@ -170,7 +170,7 @@
</template>
</el-table-column>
<el-table-column prop="title" :label="form.type==1?'经销商名称':'员工名称'" width="480"></el-table-column>
<el-table-column prop="subtitle" label="部门" width="480"></el-table-column>
<el-table-column prop="subtitle" :label="form.type==1?'地址':'部门'" width="480"></el-table-column>
<el-table-column prop="effectValue" label="传播值">
<template #default="scope">
<span class="transValue-number">{{scope.row.effectValue}}</span>

@ -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(() => {});
}

Loading…
Cancel
Save