|
@@ -14,7 +14,7 @@
|
|
@currentChange="pageHandle"
|
|
@currentChange="pageHandle"
|
|
:isAdd="true"
|
|
:isAdd="true"
|
|
@add="openPopup"
|
|
@add="openPopup"
|
|
- :operationsDefaultLength="7"
|
|
|
|
|
|
+ :operationsDefaultLength="9"
|
|
/>
|
|
/>
|
|
<popup-edit
|
|
<popup-edit
|
|
:isShow="isDtlShow"
|
|
:isShow="isDtlShow"
|
|
@@ -31,6 +31,11 @@
|
|
:curObj="curObj"
|
|
:curObj="curObj"
|
|
@close="closeTHEPopup"
|
|
@close="closeTHEPopup"
|
|
/>
|
|
/>
|
|
|
|
+ <help-rule
|
|
|
|
+ :isShow="isHRShow"
|
|
|
|
+ :curObj="curObj"
|
|
|
|
+ @close="closeHRPopup"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -39,6 +44,7 @@ import SearchForm from './components/searchForm/Index'
|
|
import PopupEdit from './components/popup/IndexEdit'
|
|
import PopupEdit from './components/popup/IndexEdit'
|
|
import PhotoEdit from './components/popup/PhotoEdit'
|
|
import PhotoEdit from './components/popup/PhotoEdit'
|
|
import ThemeHouseEdit from './components/popup/ThemeHouseEdit'
|
|
import ThemeHouseEdit from './components/popup/ThemeHouseEdit'
|
|
|
|
+import HelpRule from './components/popup/HelpRule'
|
|
import baseTable from '_m/baseTable.js'
|
|
import baseTable from '_m/baseTable.js'
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
@@ -47,6 +53,7 @@ export default {
|
|
PopupEdit,
|
|
PopupEdit,
|
|
PhotoEdit,
|
|
PhotoEdit,
|
|
ThemeHouseEdit,
|
|
ThemeHouseEdit,
|
|
|
|
+ HelpRule,
|
|
},
|
|
},
|
|
provide() {
|
|
provide() {
|
|
return {
|
|
return {
|
|
@@ -63,6 +70,7 @@ export default {
|
|
// noCreated: true,
|
|
// noCreated: true,
|
|
curObj: {},
|
|
curObj: {},
|
|
isTHEShow: false,
|
|
isTHEShow: false,
|
|
|
|
+ isHRShow: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -108,7 +116,7 @@ export default {
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
{ label: '更新时间', prop: 'update_at' },
|
|
{ label: '更新时间', prop: 'update_at' },
|
|
- { label: '操作', width: 550, type: 'handle2', operations:
|
|
|
|
|
|
+ { label: '操作', width: 610, type: 'handle2', operations:
|
|
[
|
|
[
|
|
{ label: '保存排序', func: this.saveHandle, btnType: 'success' },
|
|
{ label: '保存排序', func: this.saveHandle, btnType: 'success' },
|
|
{ label: '编辑信息', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑信息', func: this.openPopup, btnType: 'primary' },
|
|
@@ -116,6 +124,7 @@ export default {
|
|
{ label: '楼盘动态', func: this.openNews, btnType: 'info' },
|
|
{ label: '楼盘动态', func: this.openNews, btnType: 'info' },
|
|
{ label: '历史成交价', func: this.openPrice, btnType: 'info' },
|
|
{ label: '历史成交价', func: this.openPrice, btnType: 'info' },
|
|
{ label: '模块主题', func: this.openTHEPopup, btnType: 'info' },
|
|
{ label: '模块主题', func: this.openTHEPopup, btnType: 'info' },
|
|
|
|
+ { label: '助力团购', func: this.openHRPopup, btnType: 'warning' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -190,7 +199,22 @@ export default {
|
|
if (obj) {
|
|
if (obj) {
|
|
this.fetchData()
|
|
this.fetchData()
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ openHRPopup(row) {
|
|
|
|
+ if (row && row.id) {
|
|
|
|
+ this.curObj = row
|
|
|
|
+ } else {
|
|
|
|
+ this.curObj = {}
|
|
|
|
+ }
|
|
|
|
+ this.isHRShow = true
|
|
|
|
+ },
|
|
|
|
+ closeHRPopup(obj) {
|
|
|
|
+ this.isHRShow = false
|
|
|
|
+ if (obj) {
|
|
|
|
+ this.fetchData()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|