|
@@ -44,6 +44,9 @@
|
|
<el-form-item label="模版备注" prop="remark">
|
|
<el-form-item label="模版备注" prop="remark">
|
|
<el-input v-model="ruleForm.remark" />
|
|
<el-input v-model="ruleForm.remark" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="预告天数" prop="tipsDay">
|
|
|
|
+ <el-input v-model="ruleForm.tipsDay" type="number"/>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="持续天数" prop="keepDay">
|
|
<el-form-item label="持续天数" prop="keepDay">
|
|
<el-input v-model="ruleForm.keepDay" type="number"/>
|
|
<el-input v-model="ruleForm.keepDay" type="number"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -110,7 +113,7 @@ const tableData = ref([])
|
|
const tableHeader = ref([])
|
|
const tableHeader = ref([])
|
|
const upload = ref<UploadInstance>()
|
|
const upload = ref<UploadInstance>()
|
|
|
|
|
|
-const tableColumn = ["id","name","des","reward","remark","keepDay","stayDay","isOpenSvr"]
|
|
|
|
|
|
+const tableColumn = ["id","name","des","reward","remark","tipsDay","keepDay","stayDay","isOpenSvr"]
|
|
const beforeUploadAction = (file, fileLi) => {
|
|
const beforeUploadAction = (file, fileLi) => {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
const reader = new FileReader()
|
|
const reader = new FileReader()
|
|
@@ -197,6 +200,7 @@ const column = [
|
|
{ name: 'des', label: '模版描述'},
|
|
{ name: 'des', label: '模版描述'},
|
|
{ name: 'reward', label: '模版奖励'},
|
|
{ name: 'reward', label: '模版奖励'},
|
|
{ name: 'remark', label: '模版备注'},
|
|
{ name: 'remark', label: '模版备注'},
|
|
|
|
+ { name: 'tipsDay', label: '预告天数'},
|
|
{ name: 'keepDay', label: '持续天数'},
|
|
{ name: 'keepDay', label: '持续天数'},
|
|
{ name: 'stayDay', label: '停留天数'},
|
|
{ name: 'stayDay', label: '停留天数'},
|
|
{ name: 'isOpenSvr', label: '开服活动', slot: true },
|
|
{ name: 'isOpenSvr', label: '开服活动', slot: true },
|
|
@@ -222,6 +226,7 @@ const ruleForm = reactive({
|
|
des: null,
|
|
des: null,
|
|
reward: null,
|
|
reward: null,
|
|
remark: null,
|
|
remark: null,
|
|
|
|
+ tipsDay: null,
|
|
keepDay: null,
|
|
keepDay: null,
|
|
stayDay: null,
|
|
stayDay: null,
|
|
isOpenSvr:0
|
|
isOpenSvr:0
|
|
@@ -274,6 +279,7 @@ const add = () => {
|
|
ruleForm.des = null
|
|
ruleForm.des = null
|
|
ruleForm.reward = null
|
|
ruleForm.reward = null
|
|
ruleForm.remark = null
|
|
ruleForm.remark = null
|
|
|
|
+ ruleForm.tipsDay = null
|
|
ruleForm.keepDay = null
|
|
ruleForm.keepDay = null
|
|
ruleForm.stayDay = null
|
|
ruleForm.stayDay = null
|
|
ruleForm.isOpenSvr = 0
|
|
ruleForm.isOpenSvr = 0
|
|
@@ -378,6 +384,7 @@ const edit = (row) => {
|
|
ruleForm.des = row.des
|
|
ruleForm.des = row.des
|
|
ruleForm.reward = row.reward
|
|
ruleForm.reward = row.reward
|
|
ruleForm.remark = row.remark
|
|
ruleForm.remark = row.remark
|
|
|
|
+ ruleForm.tipsDay = row.tipsDay == null ? row.tipsDay :row.tipsDay.toString()
|
|
ruleForm.keepDay = row.keepDay.toString()
|
|
ruleForm.keepDay = row.keepDay.toString()
|
|
ruleForm.stayDay = row.stayDay == null ? row.stayDay : row.stayDay.toString()
|
|
ruleForm.stayDay = row.stayDay == null ? row.stayDay : row.stayDay.toString()
|
|
ruleForm.isOpenSvr = row.isOpenSvr
|
|
ruleForm.isOpenSvr = row.isOpenSvr
|