|
@@ -57,14 +57,16 @@
|
|
|
</a-collapse>
|
|
</a-collapse>
|
|
|
</a-collapse-panel>
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
</a-collapse>
|
|
|
- <Add @refresh="queryTable"
|
|
|
|
|
|
|
+ <Add @refresh="handleTableList"
|
|
|
:roleid="addModelData.roleid" />
|
|
:roleid="addModelData.roleid" />
|
|
|
<Modify :selectedData="moreModelData"
|
|
<Modify :selectedData="moreModelData"
|
|
|
- @refresh="queryTable" />
|
|
|
|
|
|
|
+ @refresh="handleTableList" />
|
|
|
<Reset :selectedData="moreModelData"
|
|
<Reset :selectedData="moreModelData"
|
|
|
- @refresh="queryTable" />
|
|
|
|
|
|
|
+ @refresh="handleTableList" />
|
|
|
<Locked :selectedData="moreModelData"
|
|
<Locked :selectedData="moreModelData"
|
|
|
- @refresh="queryTable" />
|
|
|
|
|
|
|
+ @refresh="handleTableList" />
|
|
|
|
|
+ <Unlocked :selectedData="moreModelData"
|
|
|
|
|
+ @refresh="handleTableList" />
|
|
|
<Cancel />
|
|
<Cancel />
|
|
|
<Detail :selectedData="moreModelData" />
|
|
<Detail :selectedData="moreModelData" />
|
|
|
</div>
|
|
</div>
|
|
@@ -81,6 +83,7 @@ import Reset from '../../compoments/reset-business/index.vue';
|
|
|
import Locked from '../../compoments/locked-business/index.vue';
|
|
import Locked from '../../compoments/locked-business/index.vue';
|
|
|
import Cancel from '../../compoments/cancel-business/index.vue';
|
|
import Cancel from '../../compoments/cancel-business/index.vue';
|
|
|
import Detail from '../../compoments/business-detail/index.vue';
|
|
import Detail from '../../compoments/business-detail/index.vue';
|
|
|
|
|
+import Unlocked from '../../compoments/unlocked-business/index.vue';
|
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
import { ErmcpLoginUser, ErmcpLoginUserEx } from '@/services/go/ermcp/account/interface';
|
|
|
import { getUserName } from '@/services/bus/user';
|
|
import { getUserName } from '@/services/bus/user';
|
|
|
import { handleModalData } from '../setup';
|
|
import { handleModalData } from '../setup';
|
|
@@ -97,6 +100,7 @@ export default defineComponent({
|
|
|
Locked,
|
|
Locked,
|
|
|
Cancel,
|
|
Cancel,
|
|
|
Detail,
|
|
Detail,
|
|
|
|
|
+ Unlocked,
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
@@ -105,8 +109,7 @@ export default defineComponent({
|
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
const { selectedData: addModelData, openAction } = handleModalData<ErmcpLoginUserEx>();
|
|
|
// 修改 重置密码、详情等弹窗
|
|
// 修改 重置密码、详情等弹窗
|
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
const { selectedData: moreModelData, openAction: moreOptenAction } = handleModalData<ErmcpLoginUser>();
|
|
|
-
|
|
|
|
|
- initData(() => {
|
|
|
|
|
|
|
+ function handleTableList() {
|
|
|
queryTable().then(() => {
|
|
queryTable().then(() => {
|
|
|
tableList.value.forEach((el) => {
|
|
tableList.value.forEach((el) => {
|
|
|
// 过滤无效
|
|
// 过滤无效
|
|
@@ -126,6 +129,9 @@ export default defineComponent({
|
|
|
Object.assign(el, { userlist: arr });
|
|
Object.assign(el, { userlist: arr });
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ }
|
|
|
|
|
+ initData(() => {
|
|
|
|
|
+ handleTableList();
|
|
|
});
|
|
});
|
|
|
// 查询
|
|
// 查询
|
|
|
function search(value: any) {}
|
|
function search(value: any) {}
|
|
@@ -136,7 +142,7 @@ export default defineComponent({
|
|
|
search,
|
|
search,
|
|
|
tableList,
|
|
tableList,
|
|
|
getLoginStatusEnumItemName,
|
|
getLoginStatusEnumItemName,
|
|
|
- queryTable,
|
|
|
|
|
|
|
+ handleTableList,
|
|
|
moreModelData,
|
|
moreModelData,
|
|
|
getUserName,
|
|
getUserName,
|
|
|
openAction,
|
|
openAction,
|