no message

This commit is contained in:
setthawutttty 2023-12-04 14:46:46 +07:00
parent 31acd355a0
commit eb08a9f209
4 changed files with 28 additions and 10 deletions

View file

@ -21,11 +21,18 @@ import DialogHeader from "@/components/DialogHeader.vue";
import http from "@/plugins/http";
import config from "@/app.config";
const rows = ref<DataListRow[]>([])
const $q = useQuasar();
const selected = ref<ResponseData[]>([]);
const mixin = useCounterMixin();
const { showLoader, success, messageError, dialogConfirm, hideLoader,dialogMessageNotify } = mixin;
const {
showLoader,
success,
messageError,
dialogConfirm,
hideLoader,
dialogMessageNotify,
} = mixin;
const props = defineProps({
data: {
@ -58,15 +65,15 @@ const checkSelected = computed(() => {
//popup
const saveOrder = () => {
if(props.type){
if (props.type) {
dialogConfirm(
$q,
() => Ordersave(),
"ยืนยันส่งไปออกคำสั่ง",
"ต้องการยืนยันส่งไปออกคำสั่งใช่หรือไม่?"
);
}else{
dialogMessageNotify($q,'กรุณาเลือกประเภทคำสั่ง')
} else {
dialogMessageNotify($q, "กรุณาเลือกประเภทคำสั่ง");
}
};
//
@ -75,7 +82,7 @@ const Ordersave = async () => {
const body = {
id,
};
console.log(body)
console.log(body);
showLoader();
await http
.put(config.API.reportresult(props.type as string), body)
@ -134,7 +141,8 @@ const fecthTypeOption = async () => {
watchEffect(() => {
if (props.Modal === true) {
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
:columns="props.columns"
:rows="props.data.persons"
:rows="rows"
:filter="filterKeyword2"
row-key="id"
:visible-columns="props.visibleColumns"

View file

@ -370,7 +370,7 @@ onMounted(async () => {});
for="#detail"
label="สรุปผลการพิจารณา"
hide-bottom-space
:rules="[(val) => !!val || `${'กรุณากรอกกรณีมีความผิด'}`]"
:rules="[(val) => !!val || `${'กรุณากรอกสรุปผลการพิจารณา'}`]"
lazy-rules
@update:model-value="changeFormData()"
/>

View file

@ -31,6 +31,7 @@ const modal = ref<boolean>(false);
/** คอลัมน์ที่แสดง */
const visibleColumns = ref<string[]>([
"no",
"title",
"name",
"position",
"positionLevel",
@ -56,6 +57,15 @@ const columns = ref<QTableProps["columns"]>([
headerStyle: "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",
align: "left",

View file

@ -108,7 +108,7 @@ export const useDisciplineResultStore = defineStore(
{
name: "respondentType",
align: "left",
label: "ผู้ถูกสบสวน",
label: "ผู้ถูกสบสวน",
sortable: true,
field: "respondentType",
headerStyle: "font-size: 14px",