Refactoring code module 15_development
This commit is contained in:
parent
895bfe98f2
commit
32ff7bdc96
25 changed files with 271 additions and 1440 deletions
|
|
@ -2,20 +2,27 @@
|
|||
import { onMounted, reactive, ref, computed, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore";
|
||||
|
||||
/**importType*/
|
||||
import type {
|
||||
DataOptionTechnique,
|
||||
FormProjectDetail,
|
||||
DataOption,
|
||||
StrategyNode
|
||||
} from "@/modules/15_development/interface/index/Main";
|
||||
import type { DataStrategic } from "@/modules/15_development/interface/response/Main";
|
||||
|
||||
import { useDevelopmentDataStore } from "@/modules/15_development/store/developmentStore";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
const $q = useQuasar();
|
||||
const store = useDevelopmentDataStore();
|
||||
const route = useRoute();
|
||||
const projectId = ref<string>(route.params.id.toLocaleString());
|
||||
const { showLoader, hideLoader, messageError, date2Thai, diffDay, success } =
|
||||
useCounterMixin();
|
||||
|
||||
const isChangeData = defineModel<boolean>("isChangeData", { required: true });
|
||||
const props = defineProps({
|
||||
|
|
@ -25,12 +32,12 @@ const props = defineProps({
|
|||
});
|
||||
|
||||
const step = ref<string>("");
|
||||
const reasonPlanned70 = ref<string>("");
|
||||
const reasonPlanned20 = ref<string>("");
|
||||
const reasonPlanned10 = ref<string>("");
|
||||
const reasonActual70 = ref<string>("");
|
||||
const reasonActual20 = ref<string>("");
|
||||
const reasonActual10 = ref<string>("");
|
||||
const reasonPlanned70 = ref<string>(""); //การเรียนรู้และการพัฒนาจากการลงมือทำ 70 เทคนิควิธีการที่ใช้ในการพัฒนา
|
||||
const reasonPlanned20 = ref<string>(""); // การเรียนรู้และการพัฒนาจากบุคคลอื่น 20 เทคนิควิธีการที่ใช้ในการพัฒนา
|
||||
const reasonPlanned10 = ref<string>(""); // การเรียนรู้และการพัฒนาจากการฝึกอบรม 10 เทคนิควิธีการที่ใช้ในการพัฒนา
|
||||
const reasonActual70 = ref<string>(""); //การเรียนรู้และการพัฒนาจากการลงมือทำ 70 รูปแบบโครงการตามจริง
|
||||
const reasonActual20 = ref<string>(""); // การเรียนรู้และการพัฒนาจากบุคคลอื่น 20 รูปแบบโครงการตามจริง
|
||||
const reasonActual10 = ref<string>(""); // การเรียนรู้และการพัฒนาจากการฝึกอบรม 10 รูปแบบโครงการตามจริง
|
||||
|
||||
const checkOtherBox11 = computed<boolean>(() => {
|
||||
return formData.developmentProjectTechniquePlanneds.includes("other1");
|
||||
|
|
@ -52,12 +59,6 @@ const checkOtherBox23 = computed<boolean>(() => {
|
|||
return formData.developmentProjectTechniqueActuals.includes("other3");
|
||||
});
|
||||
|
||||
const $q = useQuasar();
|
||||
const store = useDevelopmentDataStore();
|
||||
const route = useRoute();
|
||||
const projectId = ref<string>(route.params.id.toLocaleString());
|
||||
const { showLoader, hideLoader, messageError, date2Thai, diffDay, success } =
|
||||
useCounterMixin();
|
||||
const checkRoutePermission = ref<boolean>(
|
||||
route.name == "developmentDetailPage"
|
||||
);
|
||||
|
|
@ -182,7 +183,7 @@ const formData = reactive<FormProjectDetail>({
|
|||
developmentAddresss: [{ address: "", provinceId: "" }], //ที่อยู่ ,จังหวัด
|
||||
});
|
||||
|
||||
const nodes = ref<any>([]);
|
||||
const nodes = ref<StrategyNode[]>([]);
|
||||
const filter = ref<string>("");
|
||||
const filter2 = ref<string>("");
|
||||
const notFound = ref<string>("ไม่พบข้อมูลที่ค้นหา");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue