Commit aa128e6e by 前端

更新3.3.0代码

1 parent 23a396f5
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<i class="el-icon-plus avatar-uploader-desc-icon"></i> <i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div> <div class="avatar-uploader-desc-word">上传照片</div>
<input :class="{disableUpload:notDisplayProperties}" <input :class="{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2 && routeInfo.status != 1" type="file" style="opacity: 0" accept=".jpg, .jpeg, .png" :disabled="notDisplayProperties" type="file" style="opacity: 0" accept=".jpg, .jpeg, .png"
@change="e => handleImgChange(e,'imageUrlList')"/> @change="e => handleImgChange(e,'imageUrlList')"/>
</div> </div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> --> <!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</el-form-item> </el-form-item>
<el-form-item label="视频:" class="photoWrap"> <el-form-item label="视频:" class="photoWrap">
<div class="img-div"> <div class="img-div">
<div class="put-img" v-if="materialAddForm.videoUrl"> <div class="put-img" v-if="materialAddForm.mediaUrl">
<video id="video" width="100%" height="100%" preload loop muted> <video id="video" width="100%" height="100%" preload loop muted>
<source :src="materialAddForm.videoUrl" type="video/mp4"/> <source :src="materialAddForm.videoUrl" type="video/mp4"/>
</video> </video>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<h3> <h3>
<img slot="reference" src="@/assets/material/view.png" alt="" @click="viewVideo"/> <img slot="reference" src="@/assets/material/view.png" alt="" @click="viewVideo"/>
<img v-if="!notDisplayProperties" class="del-img" <img v-if="!notDisplayProperties" class="del-img"
src="@/assets/material/dele.png" alt="" @click="deleteImg('videoUrl')"/> src="@/assets/material/dele.png" alt="" @click="deleteImg('mediaUrl')"/>
</h3> </h3>
</div> </div>
</div> </div>
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<div class="avatar-uploader-desc-word">上传照片</div> <div class="avatar-uploader-desc-word">上传照片</div>
<input type="file" style="opacity: 0" accept=".jpg, .jpeg, .png" <input type="file" style="opacity: 0" accept=".jpg, .jpeg, .png"
:class="{disableUpload:notDisplayProperties}" :class="{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2 && routeInfo.status != 1" :disabled="notDisplayProperties"
@change="e => handleImgChange(e,'titleUrl')"/> @change="e => handleImgChange(e,'titleUrl')"/>
</div> </div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> --> <!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
} }
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.materialAddForm)) let params = JSON.parse(JSON.stringify(this.materialAddForm))
let tagging = this.tagging.map(item => { let tagging = this.tagging.map(item => {
let tagIds = item.labelList.map(tag => { let tagIds = item.labelList.map(tag => {
return tag.id return tag.id
...@@ -434,12 +434,14 @@ export default { ...@@ -434,12 +434,14 @@ export default {
getMaterialInfo() { getMaterialInfo() {
var params = {} var params = {}
params.id = this.routeInfo.id params.id = this.routeInfo.id
console.log(this.routeInfo.status)
if (this.routeInfo.status == -1) { if (this.routeInfo.status == -1) {
params.flag = 0 params.flag = 0
} }
console.log(this.routeInfo.id)
this.$apis.material.materialDetail(params).then(res => { this.$apis.material.materialDetail(params).then(res => {
this.materialAddForm = res this.materialAddForm = res
if (res.businessType) { if (res && res.businessType) {
const businessTypeArr = this.materialAddForm.businessType.split(',') const businessTypeArr = this.materialAddForm.businessType.split(',')
this.materialAddForm.businessType = businessTypeArr.map(item => parseInt(item)) this.materialAddForm.businessType = businessTypeArr.map(item => parseInt(item))
} else { } else {
......
...@@ -247,27 +247,12 @@ export default { ...@@ -247,27 +247,12 @@ export default {
}, },
{ {
type: 'GLButton', type: 'GLButton',
name: '编辑', name: row => {
attrs: { return row.createdType == 1 ? '查看' : '编辑'
type: 'text',
fn: '编辑'
},
condition: row => {
return row.createdType !== 1;
}, },
listeners: {
click: row => this.addMaterial(2, row)
}
},
{
type: 'el-button',
name: '查看',
attrs: { attrs: {
type: 'text', type: 'text',
fn: '查看' fn: '编辑'
},
condition: row => {
return row.createdType == 1;
}, },
listeners: { listeners: {
click: row => this.addMaterial(2, row) click: row => this.addMaterial(2, row)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!