Commit aaf2f84f by 前端

Merge branch 'xuyl_dev_v3.3.0' into 'v3.3.0'

更新3.3.0代码

See merge request !383
2 parents 6e4b3db0 412e9cf2
......@@ -79,7 +79,7 @@
<i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div>
<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')"/>
</div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
......@@ -87,7 +87,7 @@
</el-form-item>
<el-form-item label="视频:" class="photoWrap">
<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>
<source :src="materialAddForm.videoUrl" type="video/mp4"/>
</video>
......@@ -95,7 +95,7 @@
<h3>
<img slot="reference" src="@/assets/material/view.png" alt="" @click="viewVideo"/>
<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>
</div>
</div>
......@@ -235,7 +235,7 @@
<div class="avatar-uploader-desc-word">上传照片</div>
<input type="file" style="opacity: 0" accept=".jpg, .jpeg, .png"
:class="{disableUpload:notDisplayProperties}"
:disabled="routeInfo.addOrEdit == 2 && routeInfo.status != 1"
:disabled="notDisplayProperties"
@change="e => handleImgChange(e,'titleUrl')"/>
</div>
<!-- <div @click="phoneVisible = !phoneVisible" class="view-phone">查看效果></div> -->
......@@ -384,7 +384,7 @@ export default {
}
},
getParams() {
var params = JSON.parse(JSON.stringify(this.materialAddForm))
let params = JSON.parse(JSON.stringify(this.materialAddForm))
let tagging = this.tagging.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
......@@ -434,12 +434,14 @@ export default {
getMaterialInfo() {
var params = {}
params.id = this.routeInfo.id
console.log(this.routeInfo.status)
if (this.routeInfo.status == -1) {
params.flag = 0
}
console.log(this.routeInfo.id)
this.$apis.material.materialDetail(params).then(res => {
this.materialAddForm = res
if (res.businessType) {
if (res && res.businessType) {
const businessTypeArr = this.materialAddForm.businessType.split(',')
this.materialAddForm.businessType = businessTypeArr.map(item => parseInt(item))
} else {
......
......@@ -247,27 +247,12 @@ export default {
},
{
type: 'GLButton',
name: '编辑',
attrs: {
type: 'text',
fn: '编辑'
},
condition: row => {
return row.createdType !== 1;
name: row => {
return row.createdType == 1 ? '查看' : '编辑'
},
listeners: {
click: row => this.addMaterial(2, row)
}
},
{
type: 'el-button',
name: '查看',
attrs: {
type: 'text',
fn: '查看'
},
condition: row => {
return row.createdType == 1;
fn: '编辑'
},
listeners: {
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!