Commit 8aaf32e2 by 前端

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

修复bug

See merge request !7
2 parents 0b65589c 740c4a07
......@@ -32,7 +32,7 @@
placeholder="请输入素材名称"
maxlength="30"></el-input>
</el-form-item>
<el-form-item label="素材类型:" prop="materialType">
<el-form-item label="素材类型:" prop="materialType" class="materialType">
<el-radio-group v-model="materialAddForm.materialType" @change="radioChange"
:disabled="routeInfo.addOrEdit != 1">
<el-radio :label="1">PDF文件</el-radio>
......@@ -270,6 +270,7 @@ export default {
channelType: 1,
merchantAccountLevel: [4]
},
searchContentStorage:'',
materialAddForm: {
groupId: '', // 素材组id
groupName: '',
......@@ -349,7 +350,9 @@ export default {
clearDrop() {
this.pageData = {
pageNum: 1,
pageSize: 40
pageSize: 40,
channelType: 1,
merchantAccountLevel: [4]
}
this.searchContentStorage = ''
this.dataItems = []
......@@ -383,7 +386,9 @@ export default {
this.searchContentStorage = searchValue
;(this.pageData = {
pageNum: 1,
pageSize: 40
pageSize: 40,
channelType: 1,
merchantAccountLevel: [4]
}),
(this.dataItems = [])
this.timer = setTimeout(() => {
......@@ -392,10 +397,7 @@ export default {
} else {
this.dataItems = []
this.loadUpData(
{
pageNum: 1,
pageSize: 40
},
this.pageData,
''
)
}
......@@ -485,7 +487,7 @@ export default {
await this.$apis.material.materialDetail(params).then(res => {
this.materialAddForm = res
this.materialAddForm.targetMerchantId = res.merchantId + '' || ''
this.getMaterialList({merchant:res.merchantId})
this.getMaterialList({merchant: res.merchantId})
if (res.businessType) {
const businessTypeArr = this.materialAddForm.businessType.split(',')
this.materialAddForm.businessType = businessTypeArr.map(item => parseInt(item))
......@@ -778,6 +780,11 @@ export default {
}
</script>
<style lang="scss" scoped>
.materialType{
/deep/.el-form-item__content{
max-width: 85%;
}
}
.disableUpload {
cursor: not-allowed;
cursor: no-drop;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!