| | |
| | | <template> |
| | | <FYTable @search="onSearch" :row-class-name="tableRowClassName"> |
| | | <template #options> |
| | | <FYOptionLocation |
| | | :allOption="true" |
| | | :level="5" |
| | | v-model:value="formSearch._locations" |
| | | ></FYOptionLocation> |
| | | <FYOptionText |
| | | label="场景名称" |
| | | placeholder="输入名称关键字" |
| | | v-model:value="formSearch.searchText" |
| | | ></FYOptionText> |
| | | <FYOptionScene |
| | | :allOption="true" |
| | | :type="1" |
| | | :initValue="false" |
| | | v-model:value="formSearch.scensetype" |
| | | ></FYOptionScene> |
| | | <FYOptionOnlineStatus |
| | | :allOption="true" |
| | | v-model:value="formSearch.online" |
| | | ></FYOptionOnlineStatus> |
| | | </template> |
| | | <div class="p-h-8"> |
| | | <FYTable @search="onSearch" :row-class-name="tableRowClassName"> |
| | | <template #options> |
| | | <FYOptionLocation |
| | | :allOption="true" |
| | | :level="5" |
| | | v-model:value="formSearch._locations" |
| | | ></FYOptionLocation> |
| | | <FYOptionText |
| | | label="场景名称" |
| | | placeholder="输入名称关键字" |
| | | v-model:value="formSearch.searchText" |
| | | ></FYOptionText> |
| | | <FYOptionScene |
| | | :allOption="true" |
| | | :type="1" |
| | | :initValue="false" |
| | | v-model:value="formSearch.scensetype" |
| | | ></FYOptionScene> |
| | | <FYOptionOnlineStatus |
| | | :allOption="true" |
| | | v-model:value="formSearch.online" |
| | | ></FYOptionOnlineStatus> |
| | | </template> |
| | | |
| | | <template #table-column> |
| | | <el-table-column |
| | | fixed="left" |
| | | prop="userInfo.realname" |
| | | label="名称" |
| | | :show-overflow-tooltip="true" |
| | | width="400" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="userInfo.acountname" label="账号" width="110" /> |
| | | <el-table-column prop="sceneTypeName" label="类型" width="100" /> |
| | | <el-table-column prop="biProvinceName" label="省" width="80" /> |
| | | <el-table-column prop="biCityName" label="市" width="80" /> |
| | | <!-- <el-table-column prop="districtname" label="区县" width="90" /> --> |
| | | <el-table-column prop="userInfo.extension1" label="区县" width="80" /> |
| | | <el-table-column prop="biTownName" label="街道" width="110" /> |
| | | <el-table-column prop="biArea" label="集中区" width="110" /> |
| | | <el-table-column prop="biManagementCompany" label="物业" min-width="110" /> |
| | | <el-table-column prop="userInfo.isenable" label="状态" width="90"> |
| | | <template #default="{ row }"> |
| | | {{ row.userInfo.isenable ? '上线中' : '已下线' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="userInfo.usertype" label="用户类型" width="90" /> |
| | | <el-table-column fixed="right" align="right" label="操作" width="190"> |
| | | <template #header> |
| | | <el-button icon="DocumentAdd" size="default" type="success" @click="drawer = true" |
| | | >新增用户</el-button |
| | | > |
| | | </template> |
| | | <template #default="{ row }"> |
| | | <el-space> |
| | | <el-button |
| | | :loading="row.loading2" |
| | | :type="row.userInfo.isenable != '0' ? 'danger' : 'primary'" |
| | | size="small" |
| | | @click="itemActive(row)" |
| | | >{{ row.userInfo.isenable != '0' ? '下线' : '上线' }}</el-button |
| | | <template #table-column> |
| | | <el-table-column |
| | | fixed="left" |
| | | prop="userInfo.realname" |
| | | label="名称" |
| | | :show-overflow-tooltip="true" |
| | | width="400" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="userInfo.acountname" label="账号" width="110" /> |
| | | <el-table-column prop="sceneTypeName" label="类型" width="100" /> |
| | | <el-table-column prop="biProvinceName" label="省" width="80" /> |
| | | <el-table-column prop="biCityName" label="市" width="80" /> |
| | | <!-- <el-table-column prop="districtname" label="区县" width="90" /> --> |
| | | <el-table-column prop="userInfo.extension1" label="区县" width="80" /> |
| | | <el-table-column prop="biTownName" label="街道" width="110" /> |
| | | <el-table-column prop="biArea" label="集中区" width="110" /> |
| | | <el-table-column prop="biManagementCompany" label="物业" min-width="110" /> |
| | | <el-table-column prop="userInfo.isenable" label="状态" width="90"> |
| | | <template #default="{ row }"> |
| | | {{ row.userInfo.isenable ? '上线中' : '已下线' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="userInfo.usertype" label="用户类型" width="90" /> |
| | | <el-table-column fixed="right" align="right" label="操作" width="190"> |
| | | <template #header> |
| | | <el-button icon="DocumentAdd" size="default" type="success" @click="drawer = true" |
| | | >新增店铺</el-button |
| | | > |
| | | <el-button-group> |
| | | <el-button type="primary" :loading="row.loading1" size="small" @click="editRow(row)" |
| | | >查看</el-button |
| | | </template> |
| | | <template #default="{ row }"> |
| | | <el-space> |
| | | <el-button |
| | | :loading="row.loading2" |
| | | :type="row.userInfo.isenable != '0' ? 'danger' : 'primary'" |
| | | size="small" |
| | | @click="itemActive(row)" |
| | | >{{ row.userInfo.isenable != '0' ? '下线' : '上线' }}</el-button |
| | | > |
| | | <el-dropdown @command="handleCommand" trigger="click"> |
| | | <el-button |
| | | type="primary" |
| | | :loading="row.downloadLoading" |
| | | size="small" |
| | | :icon="row.downloadLoading ? '' : 'ArrowDown'" |
| | | ></el-button> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item icon="Download" :command="{ c: 1, p: row }" |
| | | >下载环信码</el-dropdown-item |
| | | > |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> |
| | | </el-button-group> |
| | | <!-- <el-dropdown |
| | | <el-button-group> |
| | | <el-button type="primary" :loading="row.loading1" size="small" @click="editRow(row)" |
| | | >查看</el-button |
| | | > |
| | | <el-dropdown @command="handleCommand" trigger="click"> |
| | | <el-button |
| | | type="primary" |
| | | :loading="row.downloadLoading" |
| | | size="small" |
| | | :icon="row.downloadLoading ? '' : 'ArrowDown'" |
| | | ></el-button> |
| | | <template #dropdown> |
| | | <el-dropdown-menu> |
| | | <el-dropdown-item icon="Download" :command="{ c: 1, p: row }" |
| | | >下载环信码</el-dropdown-item |
| | | > |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> |
| | | </el-button-group> |
| | | <!-- <el-dropdown |
| | | split-button |
| | | :loading="row.loading1" |
| | | size="small" |
| | |
| | | </el-dropdown-menu> |
| | | </template> |
| | | </el-dropdown> --> |
| | | </el-space> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </FYTable> |
| | | </el-space> |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </FYTable> |
| | | </div> |
| | | <CompUserInfoAddDrawer v-model="drawer"></CompUserInfoAddDrawer> |
| | | </template> |
| | | |
| | |
| | | return row.userInfo.isenable ? 'online-row' : 'offline-row' |
| | | }, |
| | | handleCommand(e) { |
| | | const userId = e.p.userInfo.guid |
| | | const { guid: userId, realname: userName } = e.p.userInfo |
| | | switch (e.c) { |
| | | // 下载环信码 |
| | | case 1: |
| | | e.p.downloadLoading = true |
| | | creditApi.downloadCode(userId).finally(() => { |
| | | creditApi.downloadCode(userId, userName).finally(() => { |
| | | e.p.downloadLoading = false |
| | | }) |
| | | break |