Commit db606fa7 by 胡悦

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

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