|
|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<!-- 编辑-->
|
|
|
|
|
<xy-dialog :is-show.sync="isShow" title="活动编辑" type="form" :form="detail" :rules="rules" @submit="editor"
|
|
|
|
|
<xy-dialog :is-show.sync="isShow" title="项目编辑" type="form" :form="detail" :rules="rules" @submit="editor"
|
|
|
|
|
ref="addActivity">
|
|
|
|
|
|
|
|
|
|
<template v-slot:name>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>活动名称
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目名称
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input clearable placeholder="请填写活动名称" v-model="detail.name" style="width: 300px;" />
|
|
|
|
|
<el-input clearable placeholder="请填写项目名称" v-model="detail.name" style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -18,10 +18,10 @@
|
|
|
|
|
<template v-slot:tag>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>活动标识
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目标识
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input clearable placeholder="请填写活动标识" v-model="detail.tag" style="width: 300px;" />
|
|
|
|
|
<el-input clearable placeholder="请填写项目标识" v-model="detail.tag" style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
|
|
|
|
|
<template v-slot:type>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">活动的类型
|
|
|
|
|
<div class="xy-table-item-label">项目的类型
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-radio-group v-model="detail.type">
|
|
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
<template v-slot:datetimerange>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>活动时间范围
|
|
|
|
|
<span style="color: red;font-weight: 600;padding-right: 4px;">*</span>项目时间范围
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-date-picker v-model="detail.datetimerange" type="datetimerange" :picker-options="pickerOptions"
|
|
|
|
|
@ -149,10 +149,10 @@
|
|
|
|
|
|
|
|
|
|
<template v-slot:domain>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">活动的域名
|
|
|
|
|
<div class="xy-table-item-label">项目的域名
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input clearable placeholder="请填写活动的域名" v-model="detail.domain" style="width: 300px;" />
|
|
|
|
|
<el-input clearable placeholder="请填写项目的域名" v-model="detail.domain" style="width: 300px;" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -269,11 +269,11 @@
|
|
|
|
|
rules: {
|
|
|
|
|
name: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "活动名称必填"
|
|
|
|
|
message: "项目名称必填"
|
|
|
|
|
}],
|
|
|
|
|
domain: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "活动的域名必填"
|
|
|
|
|
message: "项目的域名必填"
|
|
|
|
|
}],
|
|
|
|
|
sys_name: [{
|
|
|
|
|
required: true,
|
|
|
|
|
@ -281,11 +281,11 @@
|
|
|
|
|
}],
|
|
|
|
|
tag: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "活动的标识必填"
|
|
|
|
|
message: "项目的标识必填"
|
|
|
|
|
}],
|
|
|
|
|
datetimerange: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "活动时间必须填写",
|
|
|
|
|
message: "项目时间必须填写",
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
@ -361,8 +361,8 @@
|
|
|
|
|
let res = await show({
|
|
|
|
|
id: this.id
|
|
|
|
|
})
|
|
|
|
|
Object.assign(this.detail, res);
|
|
|
|
|
this.detail.logo=res.logo?res.logo.url:"";
|
|
|
|
|
Object.assign(this.detail, res);
|
|
|
|
|
this.detail.logo=res.logo?res.logo.url:"";
|
|
|
|
|
this.detail.small_logo=res.small_logo?res.small_logo.url:"";
|
|
|
|
|
this.detail.datetimerange.push(this.$moment(res.start_time).format("YYYY-MM-DD HH:mm:ss"));
|
|
|
|
|
this.detail.datetimerange.push(this.$moment(res.end_time).format("YYYY-MM-DD HH:mm:ss"));
|
|
|
|
|
@ -444,4 +444,4 @@
|
|
|
|
|
z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|