no message
This commit is contained in:
parent
31acd355a0
commit
eb08a9f209
4 changed files with 28 additions and 10 deletions
|
|
@ -21,11 +21,18 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
||||||
|
const rows = ref<DataListRow[]>([])
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const selected = ref<ResponseData[]>([]);
|
const selected = ref<ResponseData[]>([]);
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { showLoader, success, messageError, dialogConfirm, hideLoader,dialogMessageNotify } = mixin;
|
const {
|
||||||
|
showLoader,
|
||||||
|
success,
|
||||||
|
messageError,
|
||||||
|
dialogConfirm,
|
||||||
|
hideLoader,
|
||||||
|
dialogMessageNotify,
|
||||||
|
} = mixin;
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -58,15 +65,15 @@ const checkSelected = computed(() => {
|
||||||
|
|
||||||
//popup ยืนยันส่งัว
|
//popup ยืนยันส่งัว
|
||||||
const saveOrder = () => {
|
const saveOrder = () => {
|
||||||
if(props.type){
|
if (props.type) {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
() => Ordersave(),
|
() => Ordersave(),
|
||||||
"ยืนยันส่งไปออกคำสั่ง",
|
"ยืนยันส่งไปออกคำสั่ง",
|
||||||
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
|
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
|
||||||
);
|
);
|
||||||
}else{
|
} else {
|
||||||
dialogMessageNotify($q,'กรุณาเลือกประเภทคำสั่ง')
|
dialogMessageNotify($q, "กรุณาเลือกประเภทคำสั่ง");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//ส่งไปออกคำสั่ง
|
//ส่งไปออกคำสั่ง
|
||||||
|
|
@ -75,7 +82,7 @@ const Ordersave = async () => {
|
||||||
const body = {
|
const body = {
|
||||||
id,
|
id,
|
||||||
};
|
};
|
||||||
console.log(body)
|
console.log(body);
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.reportresult(props.type as string), body)
|
.put(config.API.reportresult(props.type as string), body)
|
||||||
|
|
@ -134,7 +141,8 @@ const fecthTypeOption = async () => {
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
if (props.Modal === true) {
|
if (props.Modal === true) {
|
||||||
selected.value = [];
|
selected.value = [];
|
||||||
// rows2.value = props.data.persons
|
// console.log(props.data.status)
|
||||||
|
rows.value = props.data.persons.filter((item: any) => item.status !== 'REPORT');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -218,7 +226,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
<d-table
|
<d-table
|
||||||
:columns="props.columns"
|
:columns="props.columns"
|
||||||
:rows="props.data.persons"
|
:rows="rows"
|
||||||
:filter="filterKeyword2"
|
:filter="filterKeyword2"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
:visible-columns="props.visibleColumns"
|
:visible-columns="props.visibleColumns"
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ onMounted(async () => {});
|
||||||
for="#detail"
|
for="#detail"
|
||||||
label="สรุปผลการพิจารณา"
|
label="สรุปผลการพิจารณา"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]"
|
:rules="[(val) => !!val || `${'กรุณากรอกสรุปผลการพิจารณา'}`]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
@update:model-value="changeFormData()"
|
@update:model-value="changeFormData()"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ const modal = ref<boolean>(false);
|
||||||
/** คอลัมน์ที่แสดง */
|
/** คอลัมน์ที่แสดง */
|
||||||
const visibleColumns = ref<string[]>([
|
const visibleColumns = ref<string[]>([
|
||||||
"no",
|
"no",
|
||||||
|
"title",
|
||||||
"name",
|
"name",
|
||||||
"position",
|
"position",
|
||||||
"positionLevel",
|
"positionLevel",
|
||||||
|
|
@ -56,6 +57,15 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
style: "font-size: 14px",
|
style: "font-size: 14px",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "title",
|
||||||
|
align: "left",
|
||||||
|
label: "เรื่องร้องเรียน",
|
||||||
|
sortable: true,
|
||||||
|
field: "title",
|
||||||
|
headerStyle: "font-size: 14px",
|
||||||
|
style: "font-size: 14px",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "name",
|
name: "name",
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export const useDisciplineResultStore = defineStore(
|
||||||
{
|
{
|
||||||
name: "respondentType",
|
name: "respondentType",
|
||||||
align: "left",
|
align: "left",
|
||||||
label: "ผู้ถูกสืบสวน",
|
label: "ผู้ถูกสอบสวน",
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: "respondentType",
|
field: "respondentType",
|
||||||
headerStyle: "font-size: 14px",
|
headerStyle: "font-size: 14px",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue