Commit db606fa7 by 胡悦

Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-account

2 parents d976f4e1 347ce23f
......@@ -14,7 +14,7 @@
<el-form-item
v-if="!item.isHide"
:key="index"
:class="{'no-label': !item.label}"
:class="{'no-label': !item.label, 'tips': item.tips}"
:label="item.label ? (item.label + ':') : ''"
:prop="item.name"
>
......@@ -268,4 +268,7 @@ export default {
.glsx-combi-form .input-with-select .el-input-group__prepend {
background-color: #fff;
}
.glsx-combi-form .tips {
margin: 0;
}
</style>
......@@ -92,6 +92,7 @@
>
<select-tree
v-if="editVisible"
width="480"
:form="editForm"
:targetItem="scope.scope"
:treeData="baseData.menuTreeList"
......@@ -110,6 +111,12 @@
:baseData="baseData"
></own-cus-com>
</template>
<template slot="funValueTxt">
<div class="edit-tip">有属性值和属性文本示例1:1,奥迪;2,宝马;3,奔驰&nbsp;&nbsp;&nbsp;&nbsp;无属性文本示例:GT001,GT002,GT003</div>
</template>
<template slot="newFunValueTxt">
<div :class="{'edit-tip': editForm.id }">有属性值和属性文本示例1:1,奥迪;2,宝马;3,奔驰&nbsp;&nbsp;&nbsp;&nbsp;无属性文本示例:GT001,GT002,GT003</div>
</template>
</glsx-combi-form>
</glsx-dialog>
</div>
......@@ -129,6 +136,7 @@ export default {
merchantName: '',
menuIds: '',
menuName: '',
functionType: '',
ownedCusgroupType: '',
ownedCusGroupValues: '',
productId: []
......@@ -162,17 +170,6 @@ export default {
})
: (this.baseData.searchMenuTreeList = [])
this.getOptionsList('searchFormData')
// if (value.includes('')) {
// this.searchForm[targetItem.name] = !this.oldVal[targetItem.name].includes('') ? targetItem.optionList.map(item => item[targetItem.optionId]) : this.searchForm[targetItem.name].filter(item => item !== '')
// } else {
// if (this.oldVal[targetItem.name].includes('')) {
// this.searchForm[targetItem.name] = []
// } else if (value.length === (targetItem.optionList.length - 1)) {
// this.searchForm[targetItem.name].push('')
// }
// }
// this.oldVal[targetItem.name] = this.searchForm[targetItem.name]
// this.tableSearchForm[targetItem.name] = this.searchForm[targetItem.name].includes('') ? [] : this.searchForm[targetItem.name]
}
}, {
label: '菜单',
......@@ -181,6 +178,15 @@ export default {
addHtml: 'menuTree',
formName: 'searchForm'
}, {
label: '功能属性类型',
name: 'functionType',
type: 'select',
width: '280px',
optionList: [],
optionId: 'dictValue',
optionLabel: 'dictLabel',
optionsName: 'funcAttrList'
}, {
label: '所属客户群体',
name: 'ownCus',
firstVal: 'ownedCusgroupType',
......@@ -278,7 +284,7 @@ export default {
name: 'productId',
type: 'select',
isDisabled: false,
width: '400px',
width: '480px',
optionList: [],
optionId: 'dictValue',
optionLabel: 'dictLabel',
......@@ -297,19 +303,19 @@ export default {
}, {
label: '功能名称',
name: 'functionName',
width: '400px',
width: '480px',
type: 'input',
maxlength: 15
}, {
label: '功能属性名',
name: 'functionAttributeName',
width: '400px',
width: '480px',
type: 'input',
maxlength: 50
}, {
label: '功能属性类型',
name: 'functionType',
width: '400px',
width: '480px',
type: 'select',
optionList: [],
optionId: 'dictValue',
......@@ -318,7 +324,7 @@ export default {
}, {
label: '所属客户群体',
name: 'ownedCusgroupType',
width: '200px',
width: '230px',
type: 'select',
optionList: [],
optionId: 'dictValue',
......@@ -338,7 +344,7 @@ export default {
}, {
label: '',
name: 'ownedCusgroupValue',
width: '200px',
width: '240px',
type: 'select',
multiple: true,
isDisabled: true,
......@@ -349,30 +355,39 @@ export default {
}, {
label: '商户/门店ID',
name: 'ownedMerchant',
width: '400px',
width: '480px',
type: 'input',
inputType: 'textarea',
maxlength: 255
maxlength: 255,
placeholder: '请输入商户/门店ID,多商户或者门店时,用“,”隔开。'
}, {
label: '功能值',
name: 'functionValue',
width: '400px',
width: '480px',
type: 'input',
inputType: 'textarea',
maxlength: 255
}, {
name: 'funValueTxt',
tips: true,
addHtml: 'funValueTxt'
}, {
label: '新增功能值',
name: 'newFunValue',
width: '400px',
width: '480px',
type: 'input',
inputType: 'textarea',
maxlength: 255
}, {
name: 'newFunValueTxt',
tips: true,
addHtml: 'newFunValueTxt'
}, {
label: '排序值',
name: 'sort',
width: '400px',
width: '480px',
type: 'input',
maxlength: 3
maxlength: 5
}],
treeDefaultProps: {
parent: 'parentId',
......@@ -408,9 +423,6 @@ export default {
},
mounted() {
// baseApi.getMenuTree().then(res => {
// this.baseData.searchMenuTreeList = res.data
// })
this.getBaseData().then(res => {
this.getOptionsList('searchFormData')
this.getOptionsList('editFormData', false)
......@@ -487,6 +499,7 @@ export default {
this.editFormData[this.editFormData.findIndex(item => item.name === 'ownedCusgroupValue')].isDisabled = (!this.editForm.ownedCusgroupType || (this.editForm.ownedCusgroupType === 3))
this.editFormData[this.editFormData.findIndex(item => item.name === 'functionValue')].isDisabled = !!this.editForm.id
this.editFormData[this.editFormData.findIndex(item => item.name === 'newFunValue')].isHide = !this.editForm.id
this.editFormData[this.editFormData.findIndex(item => item.name === 'newFunValueTxt')].isHide = !this.editForm.id
this.editRule.ownedCusgroupValue[0].required = (this.editForm.ownedCusgroupType && this.editForm.ownedCusgroupType !== 3)
},
handleAdd() {
......@@ -560,7 +573,6 @@ export default {
// console.log(obj)
this[obj.formName][obj.targetItem.nameLabel] = obj.val ? obj.val.menuName : ''
this[obj.formName][obj.targetItem.name] = obj.val ? obj.val.id : ''
console.log(this.editForm)
},
changeOwnSecond(obj) {
this[obj.targetItem.formName][obj.targetItem.secondVal] = obj.val
......@@ -570,4 +582,10 @@ export default {
</script>
<style scoped>
.edit-tip {
display: block;
font-size: 8px;
color: #409EFF;
margin: -14px 0 0 130px;
}
</style>
\ No newline at end of file
......@@ -312,7 +312,7 @@ export default {
name: 'menuPosition',
width: '200px',
type: 'input',
maxlength: 3,
maxlength: 5,
placeholder: '请输入菜单位置'
}, {
label: '所属客户群体',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!