fix
This commit is contained in:
parent
302b947a2b
commit
e4827229f8
3 changed files with 25 additions and 21 deletions
|
|
@ -234,7 +234,7 @@ const columnsExpand = ref<QTableProps["columns"]>([
|
|||
const reqMaster = reactive<FilterReqMaster>({
|
||||
id: null,
|
||||
type: 0,
|
||||
isAll: false,
|
||||
isAll: true,
|
||||
isBlank: false,
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
|
|
@ -387,6 +387,7 @@ async function fetchDataTable(
|
|||
* @param data
|
||||
*/
|
||||
function updateSelected(data: NodeTree) {
|
||||
reqMaster.isAll = data.orgTreeId === "" ? true : reqMaster.isAll;
|
||||
nodeId.value = data.orgTreeId;
|
||||
fetchDataTable(data.orgTreeId, data.orgRevisionId, data.orgLevel);
|
||||
}
|
||||
|
|
@ -412,9 +413,9 @@ function onClickAddRole(data: PosMaster) {
|
|||
function onDeleteRole(id: string) {
|
||||
dialogRemove(
|
||||
$q,
|
||||
() => {
|
||||
async () => {
|
||||
showLoader();
|
||||
http
|
||||
await http
|
||||
.post(config.API.managementPermission, {
|
||||
authRoleId: "",
|
||||
posMasterId: id,
|
||||
|
|
@ -481,8 +482,8 @@ watch(
|
|||
() => [reqMaster.isAll, reqMaster.isBlank],
|
||||
() => {
|
||||
reqMaster.page = 1;
|
||||
reqMaster.id &&
|
||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||
|
||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -615,7 +616,10 @@ onMounted(() => {
|
|||
</div>
|
||||
|
||||
<!-- TOOLBAR -->
|
||||
<div class="col-xs-12 col-sm-9 q-pa-md row">
|
||||
<div
|
||||
class="col-xs-12 col-sm-9 q-pa-md row scroll"
|
||||
style="height: 75vh"
|
||||
>
|
||||
<div class="col-12">
|
||||
<q-toolbar style="padding: 0">
|
||||
<q-space />
|
||||
|
|
@ -633,6 +637,7 @@ onMounted(() => {
|
|||
|
||||
<div>
|
||||
<q-checkbox
|
||||
:disable="nodeId"
|
||||
keep-color
|
||||
v-model="reqMaster.isAll"
|
||||
label="แสดงตำแหน่งทั้งหมด"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue