Commit 02d5c89b authored by levante's avatar levante

标签二级菜单调整到一级菜单

parent e25d5a61
......@@ -140,9 +140,19 @@ const appRoutes = [
},
]
},
]
},
{
path: '/labelWarehouse', name: 'labelWarehouse', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '标签库', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{ // 标签管理
path: '/systemManagement/lvot', name: 'lvot', component: resolve => require(['@/views/label/labelList'], resolve), //Tbls,
meta: { title: '标签管理', menuPath: true, menuIcon: 'setting', hideInBread: false, },
path: '/labelWarehouse/lvot', name: 'lvot', component: resolve => require(['@/views/label/labelList'], resolve), //Tbls,
meta: { title: '标签配置', menuPath: true, menuIcon: 'setting', hideInBread: false, },
},
{
path: '/labelWarehouse/basicInfoByLabel', name: 'basicInfoByLabel', component: resolve => require(['@/views/houseData/basicInfoByLabel'], resolve), //basicInfo,
meta: { title: '标签筛选列表', menuPath: true, hideInBread: false, },
},
]
},
......@@ -150,10 +160,6 @@ const appRoutes = [
path: '/house', name: 'house', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), // ContentWrapper,
meta: { title: '住宅信息', menuPath: true, menuIcon: 'home', hideInBread: true, requirePerm: false, authCode: '0001' },
children: [
{
path: '/houseData/basicInfoByLabel', name: 'basicInfoByLabel', component: resolve => require(['@/views/houseData/basicInfoByLabel'], resolve), //basicInfo,
meta: { title: '小区列表-标签', menuPath: true, hideInBread: false, },
},
{ // 小区列表
path: '/houseData/basicInfo', name: 'basicInfo', component: resolve => require(['@/views/houseData/basicInfo'], resolve), //basicInfo,
meta: { title: '住宅小区', menuPath: true, hideInBread: false, authCode: '000101', menuIcon: 'home'},
......
......@@ -97,7 +97,6 @@ export default {
}).then(res => {
if (res.code == 200) {
this.treeData = this.$com.confirm(res, 'data.content', [])
console.log(JSON.stringify(this.treeData))
}
})
},
......
......@@ -438,7 +438,7 @@ export default {
* key => 业务属性二级可选值
*/
checkIfSelectOptionAppears(options, formValue, key) {
console.log(options, formValue, key)
// console.log(options, formValue, key)
let findKey = options.find(item => (item.tblKey == key))
let pushSels = []
// 如果没找到
......@@ -458,7 +458,6 @@ export default {
this.$message.error('请至少添加一组配置!')
} else {
// 判断是否选择分组或填写分组
console.log(!!this.labelForm.getFieldValue('parentId'))
if(!!this.labelForm.getFieldValue('parentId')) {
this.verifyInput = false
this.verifySelect = true
......@@ -475,7 +474,6 @@ export default {
this.infoSettingForm.validateFields((err1, values) => {
if(!err1) {
let loopGroup = this.loopContent // 有多少组
console.log(loopGroup)
let innerResult = []
let formData = this.infoSettingForm.getFieldsValue()
......@@ -488,7 +486,7 @@ export default {
rowList.push({
key: formData['key-' + i + '-'+index ],
tableName: formData['tableName-' + i + '-'+index ],
val: !formData['inputTwo-' + i+'-'+index] ? formData['inputOne-' + i+'-'+index] : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
val: !formData['inputTwo-' + i+'-'+index] ? this.checkAndConvertDate(formData['inputOne-' + i+'-'+index]) : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
codition: formData['codition-' + i + '-' +index],
relation: !!formData['relation-' + i + '-' + index]? formData['relation-' + i + '-' + index]: 'and',
randomNum: formData['randomNumInner-' + i + '-' +index],
......@@ -524,6 +522,13 @@ export default {
})
}
},
checkAndConvertDate(val) {
if(this.$moment(val, 'YYYY-MM-DD', true).isValid()) {
return this.$moment(val).format('YYYY-MM-DD')
} else {
return val
}
},
addGroup() {
// 添加分组前,先查询当前有几个分组
const groupTotal = Object.keys(this.loopContent.data).length
......@@ -552,7 +557,7 @@ export default {
rowList.push({
key: formData['key-' + i + '-'+index ],
tableName: formData['tableName-' + i + '-'+index ],
val: !formData['inputTwo-' + i+'-'+index] ? formData['inputOne-' + i+'-'+index] : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
val: !formData['inputTwo-' + i+'-'+index] ? this.checkAndConvertDate(formData['inputOne-' + i+'-'+index]) : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
codition: formData['codition-' + i + '-' +index],
relation: !!formData['relation-' + i + '-' + index]? formData['relation-' + i + '-' + index]: 'and',
randomNum: formData['randomNumInner-' + i + '-' +index],
......@@ -625,6 +630,7 @@ export default {
})
},
getInitialValueOne(val) {
console.log(val)
if(val.indexOf(',') > -1) {
return val.split(',')[0]
} else {
......@@ -727,7 +733,6 @@ export default {
this.infoSettingForm.validateFields((err1, values) => {
if(!err1) {
let loopGroup = this.loopContent // 有多少组
console.log(loopGroup)
let innerResult = []
let formData = this.infoSettingForm.getFieldsValue()
......@@ -740,7 +745,7 @@ export default {
rowList.push({
key: formData['key-' + i + '-'+index ],
tableName: formData['tableName-' + i + '-'+index ],
val: !formData['inputTwo-' + i+'-'+index] ? formData['inputOne-' + i+'-'+index] : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
val: !formData['inputTwo-' + i+'-'+index] ? this.checkAndConvertDate(formData['inputOne-' + i+'-'+index]) : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
codition: formData['codition-' + i + '-' +index],
relation: !!formData['relation-' + i + '-' + index]? formData['relation-' + i + '-' + index]: 'and',
randomNum: formData['randomNumInner-' + i + '-' +index],
......@@ -810,7 +815,7 @@ export default {
rowList.push({
key: formData['key-' + i + '-'+index ],
tableName: formData['tableName-' + i + '-'+index ],
val: !formData['inputTwo-' + i+'-'+index] ? formData['inputOne-' + i+'-'+index] : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
val: !formData['inputTwo-' + i+'-'+index] ? this.checkAndConvertDate(formData['inputOne-' + i+'-'+index]) : formData['inputOne-' + i+'-'+index] + ',' + formData['inputTwo-' + i+'-'+index],
codition: formData['codition-' + i + '-' +index],
relation: !!formData['relation-' + i + '-' + index]? formData['relation-' + i + '-' + index]: 'and',
randomNum: formData['randomNumInner-' + i + '-' +index],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment