Commit b8e6280a authored by levante's avatar levante

新增成功

parent 7d4f456b
...@@ -63,7 +63,7 @@ default: // 默认环境下(开发环境) ...@@ -63,7 +63,7 @@ default: // 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2' // BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2' // BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2' // BASE_URL = 'http://xuhui.hm.omniview.pro/api/v2'
BASE_URL = 'http://pudong.hm.omniview.pro/api/v2' BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://211.136.105.193/apiv2' // BASE_URL = 'http://211.136.105.193/apiv2'
MOCK_URL = 'https://yapi.omniview.pro/mock/283' MOCK_URL = 'https://yapi.omniview.pro/mock/283'
break break
......
<template> <template>
<div class="routerWapper"> <div class="routerWapper">
<div> <div>
<!-- {{triggerType}} - {{labelId}} - {{finish}} - {{jsonData}} - {{initKey}} -->
<!-- {{loopContent.data}} -->
<!-- {{loopContent}} -->
<a-row> <a-row>
<!-- <a-col :span='1' v-if="triggerType == 'create'"> --> <!-- <a-col :span='1' v-if="triggerType == 'create'"> -->
<a-col :span='1'> <a-col :span='1'>
...@@ -64,6 +61,7 @@ ...@@ -64,6 +61,7 @@
</a-form-item> </a-form-item>
</a-form> </a-form>
<!-- <div style="background-color: #F0F2F5; height: 10px; "></div> --> <!-- <div style="background-color: #F0F2F5; height: 10px; "></div> -->
{{loopContent}}
<a-form :form='infoSettingForm' layout='inline'> <a-form :form='infoSettingForm' layout='inline'>
<div v-for="(item66, index66) in loopContent" :key="index66" style="margin-top: 20px; padding: 20px; border: 1px solid lightgrey"> <div v-for="(item66, index66) in loopContent" :key="index66" style="margin-top: 20px; padding: 20px; border: 1px solid lightgrey">
<a-row type='flex' style="font-weight: bold; font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid lightgrey" align='middle'> <a-row type='flex' style="font-weight: bold; font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid lightgrey" align='middle'>
...@@ -78,15 +76,21 @@ ...@@ -78,15 +76,21 @@
<!-- <span v-if="index66 !== 'data'"></span> --> <!-- <span v-if="index66 !== 'data'"></span> -->
<!-- {{item66}} --> <!-- {{item66}} -->
<div v-for="(item, index) in item66" :key='index' style="margin-bottom: 20px"> <div v-for="(item, index) in item66" :key='index' style="margin-bottom: 20px">
<a-form-item v-if="!!item.relation"> <!-- <a-form-item v-if="!!item.relation">
<a-select style="width: 120px" placeholder='请选择条件' v-decorator="['relation-' + index66 +'-' + index,{initialValue: item.relation, validateTrigger:'blur',rules: []}]"> <a-select style="width: 120px" placeholder='请选择条件' v-decorator="['relation-' + index66 +'-' + index,{initialValue: item.relation, validateTrigger:'blur',rules: []}]">
<a-select-option value='and'></a-select-option> <a-select-option value='and'></a-select-option>
<a-select-option value='or'></a-select-option> <a-select-option value='or'></a-select-option>
<a-select-option value='ne'></a-select-option> <a-select-option value='ne'></a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item> -->
<a-form-item v-else style="margin-left: 120px"></a-form-item> <a-form-item>
<a-select style="width: 120px" placeholder='请选择条件' v-decorator="['relation-' + index66 +'-' + index,{initialValue: item.relation, validateTrigger:'blur',rules: []}]">
<a-select-option value='and'></a-select-option>
<a-select-option value='or'></a-select-option>
<a-select-option value='ne'></a-select-option>
</a-select>
</a-form-item>
<a-form-item> <a-form-item>
<a-select style="width: 120px" placeholder='请选择业务属性' v-decorator="['key-' + index66 +'-' + index,{initialValue: item.key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]"> <a-select style="width: 120px" placeholder='请选择业务属性' v-decorator="['key-' + index66 +'-' + index,{initialValue: item.key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
...@@ -123,6 +127,8 @@ ...@@ -123,6 +127,8 @@
<a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:red; margin-left: 5px" type="minus-circle" @click="deleteRow(index66, index)" /> <a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:red; margin-left: 5px" type="minus-circle" @click="deleteRow(index66, index)" />
</a-form-item> --> </a-form-item> -->
<a-form-item> <a-form-item>
{{index66}}
{{index + 1}}
<a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:lightgreen;" type="plus-circle" @click="addRow(index66)" /> <a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:lightgreen;" type="plus-circle" @click="addRow(index66)" />
<a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:red; margin-left: 5px" type="minus-circle" @click="deleteRow(index66, index)" /> <a-icon v-if="index+1 == loopContent.data.length" theme='filled' style="color:red; margin-left: 5px" type="minus-circle" @click="deleteRow(index66, index)" />
</a-form-item> </a-form-item>
...@@ -225,6 +231,7 @@ export default { ...@@ -225,6 +231,7 @@ export default {
console.log('得到的' + this.labelId) console.log('得到的' + this.labelId)
this.getLabelDetail() this.getLabelDetail()
this.getParentLabelList() this.getParentLabelList()
// this.getKeyList()
// this.initKeyList() // this.initKeyList()
}, },
props: [ props: [
...@@ -292,19 +299,12 @@ export default { ...@@ -292,19 +299,12 @@ export default {
this.$ajax.get({ this.$ajax.get({
url: this.$api.GET_AVAILABLE_KEY_LIST, url: this.$api.GET_AVAILABLE_KEY_LIST,
params: { params: {
'tableName': val pageNo: 1,
pageSize: 999
} }
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
let list = res.data.content this.availableKeyList = res.data.content
console.log(list)
this.availableKeyList = []
for(let i = 0; i < list.length; i++) {
this.availableKeyList.push({
'tblKey': list[i].tblKey,
'tblKeyName': list[i].tblKeyName
})
}
} }
}) })
}, },
...@@ -321,7 +321,8 @@ export default { ...@@ -321,7 +321,8 @@ export default {
}) })
this.labelNameForDel = res.data.content.labelName this.labelNameForDel = res.data.content.labelName
this.loopContent.data = res.data.content.selParams this.loopContent.data = res.data.content.selParams
console.log(res.data.content.selParams)
console.log(this.loopContent.data)
this.initKeyList() this.initKeyList()
} }
}) })
...@@ -388,6 +389,7 @@ export default { ...@@ -388,6 +389,7 @@ export default {
// console.log(JSON.stringify(this.loopContent.data)) // console.log(JSON.stringify(this.loopContent.data))
}, },
deleteLabel(id) { deleteLabel(id) {
console.log(id)
// 查询该标签是否是一级标签,是一级标签直接删除。 // 查询该标签是否是一级标签,是一级标签直接删除。
this.deleteVisible = !this.deleteVisible this.deleteVisible = !this.deleteVisible
}, },
......
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