|
@@ -35,13 +35,14 @@
|
|
|
>
|
|
|
编辑
|
|
|
</el-button>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
type="text"
|
|
|
size="small"
|
|
|
style="color: #409eff"
|
|
|
+ @click="resetPass(scope.row)"
|
|
|
>
|
|
|
密码重置
|
|
|
- </el-button> -->
|
|
|
+ </el-button>
|
|
|
<el-popconfirm
|
|
|
confirm-button-text="是"
|
|
|
cancel-button-text="否"
|
|
@@ -83,13 +84,24 @@
|
|
|
<admin-Dialog
|
|
|
:dialog-title="dialogTitle2"
|
|
|
:item-info="tableItem"
|
|
|
- :admin_dialog="dialogBoolean"
|
|
|
@closeNo="closeNo"
|
|
|
- @Select="Select"
|
|
|
+ :show_dialog2="showDialog2"
|
|
|
:DialogArray="DialogArray"
|
|
|
></admin-Dialog>
|
|
|
-
|
|
|
<!-- 管理员配置组件end -->
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 重置密码组件开始 -->
|
|
|
+ <reset-pass
|
|
|
+ :dialog-title="dialogTitle3"
|
|
|
+ :item-info="tableItem"
|
|
|
+ @closeNo3="closeNo3"
|
|
|
+ :show_dialog3="showDialog3"
|
|
|
+ :DialogArray="DialogArray"
|
|
|
+ ></reset-pass>
|
|
|
+ <!-- 重置密码组件end -->
|
|
|
+
|
|
|
+
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -98,9 +110,10 @@ import { defineComponent, ref, watchEffect } from 'vue'
|
|
|
import * as api from '@/api/tenantManage/adminConfig.js'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import adminDialog from './adminDialog.vue'
|
|
|
+import resetPass from './resetPass.vue'
|
|
|
|
|
|
export default defineComponent({
|
|
|
- components: { adminDialog },
|
|
|
+ components: { adminDialog,resetPass },
|
|
|
name: 'DialogComponent',
|
|
|
emits: ['closeDialog'],
|
|
|
props: {
|
|
@@ -129,10 +142,12 @@ export default defineComponent({
|
|
|
|
|
|
const tableItem = ref()
|
|
|
const dialogTitle2 = ref('')
|
|
|
+ const dialogTitle3 = ref('')
|
|
|
const showDialog = ref(false)
|
|
|
|
|
|
const DialogArray = ref([])
|
|
|
- const dialogBoolean = ref(false)
|
|
|
+ const showDialog2 = ref(false)
|
|
|
+ const showDialog3 = ref(false)
|
|
|
|
|
|
const handleSizeChange = (val) => {
|
|
|
pageSize.value = val
|
|
@@ -196,9 +211,32 @@ export default defineComponent({
|
|
|
}
|
|
|
DialogArray.value = row
|
|
|
dialogTitle2.value = '修改'
|
|
|
- dialogBoolean.value = true
|
|
|
+ showDialog2.value = true
|
|
|
}
|
|
|
|
|
|
+ //重置密码 (修改操作)
|
|
|
+ const resetPass = (row) => {
|
|
|
+ alert('重置密码操作')
|
|
|
+ // console.log('row')
|
|
|
+ // console.log(row)
|
|
|
+
|
|
|
+ // tableItem.value = {
|
|
|
+ // nickName: row.nickName,
|
|
|
+ // userName: row.userName,
|
|
|
+ // email: row.email,
|
|
|
+ // phonenumber: row.phonenumber,
|
|
|
+ // password: row.password,
|
|
|
+ // status: row.status,
|
|
|
+ // tenantId: row.tenantId,
|
|
|
+ // userId:row.userId
|
|
|
+ // }
|
|
|
+ DialogArray.value = row
|
|
|
+ dialogTitle3.value = '重置密码'
|
|
|
+ showDialog3.value = true
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
const open = () => {
|
|
|
form.value = props.itemInfo
|
|
|
tenantId.value = props.itemInfo.tenantId
|
|
@@ -236,6 +274,14 @@ export default defineComponent({
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ const closeNo = (value) => {
|
|
|
+ showDialog2.value = value
|
|
|
+ }
|
|
|
+
|
|
|
+ const closeNo3 = (value) => {
|
|
|
+ showDialog3.value = value
|
|
|
+ }
|
|
|
+
|
|
|
//是否删除 ---- 否
|
|
|
const cancelEvent = () => {
|
|
|
console.log('cancel!')
|
|
@@ -267,20 +313,26 @@ export default defineComponent({
|
|
|
adminConfig,
|
|
|
tableItem,
|
|
|
dialogTitle2,
|
|
|
+ dialogTitle3,
|
|
|
|
|
|
showDialog,
|
|
|
|
|
|
DialogArray,
|
|
|
- dialogBoolean,
|
|
|
+ showDialog2,
|
|
|
+ showDialog3,
|
|
|
|
|
|
total,
|
|
|
pageSize,
|
|
|
currentPage,
|
|
|
+ closeNo,
|
|
|
+ closeNo3,
|
|
|
|
|
|
|
|
|
handleDelete,
|
|
|
cancelEvent,
|
|
|
|
|
|
+ resetPass,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
})
|