|
@@ -92,7 +92,8 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.listConfig = {
|
|
this.listConfig = {
|
|
rows: [
|
|
rows: [
|
|
- { label: '楼盘名称', prop: 'estate_name' },
|
|
|
|
|
|
+ { label: '排序', prop: 'sort', type: 'input', width: 80},
|
|
|
|
+ { label: '楼盘名称', prop: 'estate_name', minWidth: 150, align: 'left' },
|
|
{ label: '图片', prop: 'pri_image', type: 'img' },
|
|
{ label: '图片', prop: 'pri_image', type: 'img' },
|
|
{ label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
|
|
{ label: '所属区域', prop: 'area_type', type: 'flag', flags: arrToObj(this.$dictData.area_type) },
|
|
// { label: '楼盘地址', prop: 'address', fullShow: true, minWidth: 200 },
|
|
// { label: '楼盘地址', prop: 'address', fullShow: true, minWidth: 200 },
|
|
@@ -106,8 +107,9 @@ 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: 400, type: 'handle2', operations:
|
|
|
|
|
|
+ { label: '操作', width: 460, type: 'handle2', operations:
|
|
[
|
|
[
|
|
|
|
+ { label: '保存排序', func: this.saveHandle, btnType: 'success' },
|
|
{ label: '编辑信息', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑信息', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑相册', func: this.openPhotoPopup, btnType: 'info' },
|
|
{ label: '编辑相册', func: this.openPhotoPopup, btnType: 'info' },
|
|
{ label: '楼盘动态', func: this.openNews, btnType: 'info' },
|
|
{ label: '楼盘动态', func: this.openNews, btnType: 'info' },
|
|
@@ -119,6 +121,15 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ saveHandle (row) {
|
|
|
|
+ this.$api.house.admschoolsortedit({
|
|
|
|
+ id: row.id,
|
|
|
|
+ sort: row.sort,
|
|
|
|
+ }).then(data => {
|
|
|
|
+ this.$msgs(`已保存!`)
|
|
|
|
+ this.fetchData()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
delHandle(row) {
|
|
delHandle(row) {
|
|
this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
|
|
this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
|
|
this.$api.house.admestatedel({
|
|
this.$api.house.admestatedel({
|