Merge branch 'develop'
* develop: fix แก้ไขคำผิด
This commit is contained in:
commit
7e33220b26
9 changed files with 35 additions and 31 deletions
|
|
@ -145,7 +145,7 @@ async function editData(id: string) {
|
|||
}
|
||||
|
||||
/**
|
||||
* ไปยังหน้า รายากรเขต/อำเภอ โดย id ของจังหวัด
|
||||
* ไปยังหน้า รายการเขต/อำเภอ โดย id ของจังหวัด
|
||||
* @param id จังหวัด
|
||||
*/
|
||||
function nextPage(id: string) {
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ async function editData(id: string) {
|
|||
}
|
||||
|
||||
/**
|
||||
* ไปยังหน้า รายากรเแขวง/ตำบลโดย id ของเขต/อำเภอ
|
||||
* ไปยังหน้า รายการเแขวง/ตำบลโดย id ของเขต/อำเภอ
|
||||
* @param idSub เขต/อำเภอ
|
||||
*/
|
||||
function nextPage(idSub: string) {
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ const visibleColumns = ref<string[]>([
|
|||
const id = ref<string>(route.params.id as string); // เขต/อำเภอ
|
||||
const rows = ref<FormSubDistrict[]>([]); // ข้อมูลรายการแขวง/ตำบล
|
||||
const rowsMain = ref<FormSubDistrict[]>([]); // ข้อมูลรายการแขวง/ตำบล
|
||||
const editId = ref<string>(""); // id รายากรแขวง/ตำบล
|
||||
const editId = ref<string>(""); // id รายการแขวง/ตำบล
|
||||
const filterKeyword = ref<string>(""); // คำค้นหา
|
||||
const dialog = ref<boolean>(false); // เพิ่มข้อมูล,แก้ไขข้อมูล
|
||||
const subDistrict = ref<string>(""); //แขวง / ตำบล;
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ const { showLoader, hideLoader, messageError, date2Thai, onSearchDataTable } =
|
|||
useCounterMixin();
|
||||
|
||||
// Table
|
||||
const rows = ref<RowListForm[]>([]); // รายากรข้อมูลตำแหน่งทางการบริหาร
|
||||
const rowsMain = ref<RowListForm[]>([]); // รายากรข้อมูลตำแหน่งทางการบริหาร
|
||||
const rows = ref<RowListForm[]>([]); // รายการข้อมูลตำแหน่งทางการบริหาร
|
||||
const rowsMain = ref<RowListForm[]>([]); // รายการข้อมูลตำแหน่งทางการบริหาร
|
||||
const filterKeyword = ref<string>(""); // คำค้นหา
|
||||
const visibleColumns = ref<string[]>([
|
||||
"no",
|
||||
|
|
@ -117,14 +117,14 @@ async function getData() {
|
|||
}
|
||||
|
||||
/**
|
||||
* เปิด popup เพื่อเพิ่มข้อมูลรายากรตำแหน่งทางการบริหาร
|
||||
* เปิด popup เพื่อเพิ่มข้อมูลรายการตำแหน่งทางการบริหาร
|
||||
*/
|
||||
function popUpAdd() {
|
||||
modalPosExecutive.value = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* เปิด popup เพื่อแก่ไขข้อมูลรายากรตำแหน่งทางการบริหาร
|
||||
* เปิด popup เพื่อแก่ไขข้อมูลรายการตำแหน่งทางการบริหาร
|
||||
* @param data ข้อมูลรายการตำแหน่งทางการบริหารที่ต้องการแก้ไข
|
||||
*/
|
||||
function editPopUp(data: RowListForm) {
|
||||
|
|
|
|||
|
|
@ -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="แสดงตำแหน่งทั้งหมด"
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ async function fetchListPerson(newPage: boolean = false) {
|
|||
const data = await res.data.result;
|
||||
maxPage.value = Math.ceil(data.total / qureyBody.pageSize); // คำนวนหาจำนวนหน้า
|
||||
total.value = data.total; // จำนวนรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง
|
||||
rows.value = data.data;
|
||||
// rows.value = data.data;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -223,9 +223,7 @@ watch(
|
|||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* hook ทำงานเมื่อ Components ถูกเรียกใช้งาน
|
||||
*/
|
||||
/** hook ทำงานเมื่อ Components ถูกเรียกใช้งาน*/
|
||||
onMounted(async () => {
|
||||
await fatchOrg(); // ดึงข้อมูลโครงสร้าง
|
||||
});
|
||||
|
|
@ -294,16 +292,13 @@ onMounted(async () => {
|
|||
</div>
|
||||
</q-card-section>
|
||||
<q-separator :vertical="$q.screen.gt.sm" />
|
||||
<q-card-section
|
||||
class="col-lg-9 col-md-8 col-xs-12 scroll"
|
||||
style="height: 83vh"
|
||||
>
|
||||
<q-card-section class="col-lg-9 col-md-8 col-xs-12" style="height: 85vh">
|
||||
<q-card bordered style="height: 100%; border: 1px solid #d6dee1">
|
||||
<div class="col-12 text-weight-medium bg-grey-1 q-py-sm q-px-md">
|
||||
รายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง
|
||||
</div>
|
||||
<div class="col-12"><q-separator /></div>
|
||||
<q-card-section>
|
||||
<q-card-section style="height: 92%" class="scroll">
|
||||
<div class="row col-12 q-col-md">
|
||||
<q-btn
|
||||
v-if="orgId"
|
||||
|
|
@ -479,7 +474,7 @@ onMounted(async () => {
|
|||
<style scoped>
|
||||
.tree-container {
|
||||
overflow: auto;
|
||||
height: 70vh;
|
||||
height: 76vh;
|
||||
border: 1px solid #e6e6e7;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ const columnsExpand = ref<QTableProps["columns"]>([
|
|||
const reqMaster = reactive<FilterReqMaster>({
|
||||
id: "",
|
||||
type: 0,
|
||||
isAll: false,
|
||||
isAll: true,
|
||||
isBlank: false,
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
|
|
@ -340,6 +340,7 @@ async function fetchDataTable(
|
|||
* @param data
|
||||
*/
|
||||
function updateSelected(data: NodeTree) {
|
||||
reqMaster.isAll = data.orgTreeId === "" ? true : reqMaster.isAll;
|
||||
nodeId.value = data.orgTreeId;
|
||||
isOfficer.value = data.isOfficer;
|
||||
fetchDataTable(data.orgTreeId, data.orgRevisionId, data.orgLevel);
|
||||
|
|
@ -411,8 +412,7 @@ watch(
|
|||
() => [reqMaster.isAll, reqMaster.isBlank],
|
||||
() => {
|
||||
reqMaster.page = 1;
|
||||
reqMaster.id &&
|
||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -515,7 +515,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: 85vh"
|
||||
>
|
||||
<div class="col-12">
|
||||
<q-toolbar style="padding: 0">
|
||||
<q-space />
|
||||
|
|
@ -534,6 +537,7 @@ onMounted(() => {
|
|||
<div>
|
||||
<q-checkbox
|
||||
keep-color
|
||||
:disable="nodeId"
|
||||
v-model="reqMaster.isAll"
|
||||
label="แสดงตำแหน่งทั้งหมด"
|
||||
color="primary"
|
||||
|
|
@ -828,7 +832,7 @@ onMounted(() => {
|
|||
<style scoped>
|
||||
.tree-container {
|
||||
overflow: auto;
|
||||
height: 75vh;
|
||||
height: 80vh;
|
||||
border: 1px solid #e6e6e7;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ const isAPIKey = ref<boolean>(false); //status API Key
|
|||
const apiKey = ref<string>(""); // API Key
|
||||
const options = ref<ListApi[]>([]); //รายการ API ที่เข้าถึงได้
|
||||
|
||||
// form การสร้างรายากร API Key
|
||||
// form การสร้างรายการ API Key
|
||||
const formData = reactive<FormCreate>({
|
||||
name: "", //ชื่อ/คำอธิบาย
|
||||
apiId: [], //id รายการ API ที่เข้าถึงได้
|
||||
|
|
|
|||
|
|
@ -301,11 +301,11 @@ onMounted(async () => {
|
|||
map-options
|
||||
v-model="apiNameId"
|
||||
:options="options"
|
||||
label="รายากร Web Services"
|
||||
label="รายการ Web Services"
|
||||
use-input
|
||||
hide-selected
|
||||
fill-input
|
||||
:clearable="apiNameId !==''"
|
||||
:clearable="apiNameId !== ''"
|
||||
@clear="(apiNameId = ''), (options = dataApiName)"
|
||||
@update:modelValue="onSelectType"
|
||||
@filter="(inputValue: string,doneFn: Function) => filterSelector(inputValue, doneFn )"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue