|
@@ -66,15 +66,7 @@
|
|
|
>
|
|
|
重置密码
|
|
|
</a-button>
|
|
|
- <a-button
|
|
|
- size="small"
|
|
|
- type="link"
|
|
|
- class="button-info"
|
|
|
- v-if="$hasPermissions('B_power_user_set')"
|
|
|
- @click="handleSetting(record)"
|
|
|
- >
|
|
|
- 分区设置
|
|
|
- </a-button>
|
|
|
+
|
|
|
<a-button
|
|
|
size="small"
|
|
|
type="link"
|
|
@@ -88,8 +80,6 @@
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
<userModal :visible="showModal" @refresh="$refs.table.refresh(true)" :nowData="itemData" @close="closeModal"></userModal>
|
|
|
- <!-- 分区设置 -->
|
|
|
- <UpdateArea ref="UpdateArea" :openUdModal="openUdModal" @ok="$refs.table.refresh(true)" @close="openUdModal=false"></UpdateArea>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
@@ -98,12 +88,11 @@ import { commonMixin } from '@/utils/mixin'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import userModal from './userModal.vue'
|
|
|
import { resetPSD, updateEnableStatus, getPowerUserList, delectUserPower } from '@/api/power-user.js'
|
|
|
-import UpdateArea from './updateAreal.vue'
|
|
|
export default {
|
|
|
name: 'PowerUserList',
|
|
|
mixins: [commonMixin],
|
|
|
components: {
|
|
|
- STable, VSelect, userModal, UpdateArea
|
|
|
+ STable, VSelect, userModal
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -122,13 +111,13 @@ export default {
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '用户名称', dataIndex: 'name', align: 'center', width: '18%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '用户名称', dataIndex: 'name', align: 'center', width: '23%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '手机号码', dataIndex: 'phone', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '用户账号', dataIndex: 'loginName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '所属分区', dataIndex: 'allSubareaName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '角色', dataIndex: 'roleNames', width: '18%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '角色', dataIndex: 'roleNames', width: '23%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '状态', width: '6%', align: 'center', scopedSlots: { customRender: 'status' } },
|
|
|
- { title: '操作', width: '20%', align: 'center', scopedSlots: { customRender: 'action' } }
|
|
|
+ { title: '操作', width: '10%', align: 'center', scopedSlots: { customRender: 'action' } }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -168,11 +157,6 @@ export default {
|
|
|
this.queryParam.loginFlag = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
- // 分区设置
|
|
|
- handleSetting (row) {
|
|
|
- this.openUdModal = true
|
|
|
- this.$refs.UpdateArea.setData(row)
|
|
|
- },
|
|
|
// 重置密码
|
|
|
resetPassword (row) {
|
|
|
const _this = this
|