| | |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row}" slot="confirmFlag"> |
| | | <el-tag size="small" :type="showConfirmFlag(row.confirmFlag).type">{{ showConfirmFlag(row.confirmFlag).text |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot="menuLeft"> |
| | | <el-button size="small" icon="el-icon-delete" plain v-if="permission.place_delete" @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="scope" slot="menu"> |
| | | <el-button type="text" :disabled="scope.row.confirmFlag == 2" icon="el-icon-s-check" size="small" v-if="permission.househould_manager" |
| | | @click="auditCur(scope.row)">审核 |
| | | </el-button> |
| | | |
| | | <el-button type="text" icon="el-icon-edit" size="small" v-if="permission.househould_manager" |
| | | @click="ManageTenants(scope.row)">场所维护 |
| | | </el-button> |
| | |
| | | |
| | | <el-dialog class="place-info-box" title="场所维护" append-to-body :visible.sync="roleBox" center @close="roleBoxClose"> |
| | | <baseAllInfo></baseAllInfo> |
| | | </el-dialog> |
| | | |
| | | <el-dialog class="place-info-box audit-info-box" title="审核" append-to-body :visible.sync="auditBasePopup" |
| | | width="30%"> |
| | | <auditBase></auditBase> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | |
| | | |
| | | import website from '@/config/website' |
| | | |
| | | import auditBase from './components/auditBase' |
| | | import baseAllInfo from './components/baseAllInfo' |
| | | |
| | | export default { |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 240, |
| | | menuWidth: 280, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | |
| | | label: '审核状态', |
| | | prop: 'confirmFlag', |
| | | type: 'radio', |
| | | slot: true, |
| | | dicData: [{ |
| | | label: '待审核', |
| | | value: 1 |
| | | }, { |
| | | label: '审核通过', |
| | | label: '已审核', |
| | | value: 2 |
| | | }, { |
| | | label: '审核不通过', |
| | | label: '未通过', |
| | | value: 3 |
| | | }] |
| | | }, |
| | | { |
| | | display: false, |
| | | label: '是否有二维码', |
| | | searchLabelWidth:110, |
| | | searchLabelWidth: 110, |
| | | prop: 'source', |
| | | type:"select", |
| | | search:true, |
| | | searchSpan:4, |
| | | type: "select", |
| | | search: true, |
| | | searchSpan: 4, |
| | | dicData: [{ |
| | | label: '是', |
| | | value: 1 |
| | |
| | | ], |
| | | }, |
| | | data: [], |
| | | |
| | | auditBasePopup: false, |
| | | } |
| | | }, |
| | | |
| | |
| | | } |
| | | }, |
| | | |
| | | components: { baseAllInfo }, |
| | | components: { auditBase, baseAllInfo }, |
| | | |
| | | watch: {}, |
| | | |
| | |
| | | }) |
| | | return ids.join(",") |
| | | }, |
| | | |
| | | showConfirmFlag () { |
| | | return (data) => { |
| | | let tags = { |
| | | text: '', |
| | | type: '' |
| | | } |
| | | if (data == 1) { |
| | | tags = { |
| | | text: '待审核', |
| | | type: 'warning' |
| | | } |
| | | } else if (data == 2) { |
| | | tags = { |
| | | text: '已审核', |
| | | type: 'success' |
| | | } |
| | | } else if (data == 3) { |
| | | tags = { |
| | | text: '未通过', |
| | | type: 'danger' |
| | | } |
| | | } |
| | | |
| | | return tags |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | roleBoxClose () { |
| | | this.curRow = {} |
| | | auditCur (row) { |
| | | this.curAuditRow = row |
| | | this.auditBasePopup = true |
| | | }, |
| | | |
| | | handleClick () { |
| | | |
| | | roleBoxClose () { |
| | | this.curRow = {} |
| | | }, |
| | | |
| | | ManageTenants (item) { |
| | | this.curRow = item |
| | | this.roleBox = true |
| | | // this.onLoadPlaceExt(item.id) |
| | | }, |
| | | |
| | | onLoadPlaceExt (placeId) { |
| | | getPlaceExt({ placeId }).then(res => { |
| | | const data = res.data.data |
| | | |
| | | if (data) { |
| | | let imageUrls = data.imageUrls |
| | | let planImageUrls = data.planImageUrls |
| | | |
| | | if (imageUrls.length) { |
| | | imageUrls = imageUrls.split(',').filter(item => item != '').map(item => website.minioUrl + item).join(",") |
| | | } |
| | | |
| | | if (planImageUrls.length) { |
| | | planImageUrls = planImageUrls.split(',').filter(item => item != '').map(item => website.minioUrl + item).join(",") |
| | | } |
| | | |
| | | this.placeForm = { |
| | | ...data, |
| | | imageUrls, |
| | | planImageUrls |
| | | } |
| | | |
| | | this.holdOnLoad(this.holdPage) |
| | | this.selectionClear() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |