|
@@ -53,7 +53,7 @@
|
|
|
type="delete"
|
|
|
id="bannerSetting-delect"
|
|
|
title="删除"
|
|
|
- v-if="record.status == 0"
|
|
|
+ v-if="record.status == 0"
|
|
|
class="actionBtn icon-red"
|
|
|
@click="delect(record)" />
|
|
|
</span>
|
|
@@ -109,7 +109,7 @@
|
|
|
<Upload
|
|
|
class="upload"
|
|
|
id="bannerSetting-photoPath"
|
|
|
- v-decorator="[ 'formData.url', { initialValue: formData.url, rules: [{ required: true, message: '请上传轮播图!' }] } ]"
|
|
|
+ v-decorator="[ 'formData.image', { initialValue: formData.image, rules: [{ required: true, message: '请上传轮播图!' }] } ]"
|
|
|
ref="bannerImage"
|
|
|
:fileSize="0.25"
|
|
|
:disabled="disabled"
|
|
@@ -117,7 +117,7 @@
|
|
|
listType="picture-card" ></Upload>
|
|
|
<span class="upload-desc">请上传375*100px尺寸的图片。</span>
|
|
|
</div>
|
|
|
- <img v-else :src="formData.url" style="max-width:400px ;height: auto;" />
|
|
|
+ <img v-else :src="formData.image" style="max-width:400px ;height: auto;" />
|
|
|
</a-form-item>
|
|
|
<a-form-item label="备注" :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol">
|
|
|
<a-input
|
|
@@ -141,7 +141,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { Upload, STable, VSelect } from '@/components'
|
|
|
-import { getbanerList, updateBannerStatus, delecBanner, savBanner,changeSort } from '@/api/recoveryManage.js'
|
|
|
+import { getbanerList, updateBannerStatus, delecBanner, savBanner, changeSort } from '@/api/recoveryManage.js'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -224,7 +224,7 @@ export default {
|
|
|
formData: {
|
|
|
title: '', // 标题
|
|
|
status: '', // 状态
|
|
|
- url: '', // banner地址
|
|
|
+ image: '', // banner地址
|
|
|
createDate: '', // 创建时间
|
|
|
remarks: '' // 备注
|
|
|
},
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
const _this = this
|
|
|
this.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
- const formData = Object.assign({}, this.formData, values.formData,{appType:'cust'})
|
|
|
+ const formData = Object.assign({}, this.formData, values.formData, { appType: 'cust' })
|
|
|
console.log(formData)
|
|
|
savBanner(formData).then(res => {
|
|
|
console.log(res, 'rrrrrrrrr')
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
this.visible = false
|
|
|
this.formData.title = ''
|
|
|
this.formData.status = ''
|
|
|
- this.formData.url = ''
|
|
|
+ this.formData.image = ''
|
|
|
this.formData.remarks = '' // 备注
|
|
|
this.title = '新增'
|
|
|
if (this.$refs.bannerImage) {
|
|
@@ -291,11 +291,11 @@ export default {
|
|
|
assignment (row) {
|
|
|
this.formData.id = row.id
|
|
|
this.formData.title = row.title
|
|
|
- this.formData.url = row.url
|
|
|
+ this.formData.image = row.image
|
|
|
this.formData.status = row.status
|
|
|
this.formData.remarks = row.remarks
|
|
|
this.formData.createDate = row.createDate
|
|
|
- this.jumpTypeChange(this.formData.jumpType)
|
|
|
+ // this.jumpTypeChange(this.formData.jumpType)
|
|
|
},
|
|
|
// 0 修改,1 查看详情
|
|
|
handleEdit (row, type) {
|
|
@@ -307,7 +307,7 @@ export default {
|
|
|
this.title = '编辑'
|
|
|
this.hideRequiredMark = false
|
|
|
setTimeout(() => {
|
|
|
- _this.$refs.bannerImage.setFileList(this.formData.url)
|
|
|
+ _this.$refs.bannerImage.setFileList(this.formData.image)
|
|
|
}, 500)
|
|
|
}
|
|
|
this.assignment(row)
|