|
@@ -21,12 +21,18 @@
|
|
:curObj="curObj"
|
|
:curObj="curObj"
|
|
@close="closePopup"
|
|
@close="closePopup"
|
|
/>
|
|
/>
|
|
|
|
+ <pwd-reset
|
|
|
|
+ :isShow="isPrShow"
|
|
|
|
+ :curObj="curObj"
|
|
|
|
+ @close="closePrPopup"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { arrToObj } from '@/utils'
|
|
import { arrToObj } from '@/utils'
|
|
import SearchForm from './components/searchForm/Index'
|
|
import SearchForm from './components/searchForm/Index'
|
|
import PopupEdit from './components/popup/IndexEdit'
|
|
import PopupEdit from './components/popup/IndexEdit'
|
|
|
|
+import PwdReset from './components/popup/PwdReset'
|
|
import baseTable from '_m/baseTable.js'
|
|
import baseTable from '_m/baseTable.js'
|
|
import xData from './mixin'
|
|
import xData from './mixin'
|
|
export default {
|
|
export default {
|
|
@@ -34,6 +40,7 @@ export default {
|
|
components: {
|
|
components: {
|
|
SearchForm,
|
|
SearchForm,
|
|
PopupEdit,
|
|
PopupEdit,
|
|
|
|
+ PwdReset,
|
|
},
|
|
},
|
|
provide() {
|
|
provide() {
|
|
return {
|
|
return {
|
|
@@ -46,6 +53,7 @@ export default {
|
|
apiStr: 'user.admadminlist',
|
|
apiStr: 'user.admadminlist',
|
|
searchForm: null,
|
|
searchForm: null,
|
|
isDtlShow: false,
|
|
isDtlShow: false,
|
|
|
|
+ isPrShow: false,
|
|
curObj: {},
|
|
curObj: {},
|
|
...xData
|
|
...xData
|
|
}
|
|
}
|
|
@@ -73,6 +81,7 @@ export default {
|
|
{ label: '操作', width: 200, type: 'handle2', operations:
|
|
{ label: '操作', width: 200, type: 'handle2', operations:
|
|
[
|
|
[
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
|
|
+ { label: '重置密码', func: this.openPrPopup, btnType: 'success' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -113,6 +122,20 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.isDtlShow = false
|
|
this.isDtlShow = false
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ openPrPopup(row) {
|
|
|
|
+ if (row && row.id) {
|
|
|
|
+ this.curObj = row
|
|
|
|
+ } else {
|
|
|
|
+ this.curObj = {}
|
|
|
|
+ }
|
|
|
|
+ this.isPrShow = true
|
|
|
|
+ },
|
|
|
|
+ closePrPopup(obj) {
|
|
|
|
+ this.isPrShow = false
|
|
|
|
+ if (obj) {
|
|
|
|
+ this.fetchData()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|