{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\securityInvestigationPlan\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\securityInvestigationPlan\\index.vue","mtime":1691463999696},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport SecurityFileApi from '@/views/Manage/saftyDanger/api/SecurityFileApi'\r\nimport dictContracts from '@/components/dict/DictSelectUtils.js'\r\n\r\nconst {investigatePlan} = SecurityFileApi\r\n\r\nexport default {\r\n name: 'MobileTrainingPlan',\r\n // 隐患档案查询\r\n data() {\r\n return {\r\n listData: [],// 列表数据\r\n // 受检单位配置数组对象\r\n loading: false, // 列表是否触发loading\r\n finished: false, // 列表是否加载完成\r\n checkTypeOpt: dictContracts.getDictItemsFromCache('pclb').map(i => {\r\n return {text: i.name, value: i.value}\r\n })\r\n }\r\n },\r\n computed: {\r\n routerQuery() {\r\n return this.$route.query\r\n }\r\n },\r\n created() {\r\n this.getListData()\r\n },\r\n methods: {\r\n // 字典转义(转义、翻译)\r\n dictionaryEscape(dictionary, val, option = {}) {\r\n if (!(Array.isArray(dictionary) && dictionary.length)) return ''\r\n option = {\r\n valueKey: 'value',\r\n labelKey: 'text',\r\n dictionaryType: true,// true 为转义 false 为翻译\r\n ...option\r\n }\r\n const {valueKey, labelKey, dictionaryType} = option\r\n let item = dictionary.find(i => i[dictionaryType ? valueKey : labelKey] === val) || {}\r\n return item[dictionaryType ? labelKey : valueKey] || ''\r\n },\r\n\r\n // 跳转\r\n jumpArchives({unitId, id}) {\r\n this.$router.push({\r\n name: 'MobileTrainingPlanDetail',\r\n query: {\r\n 't.unitId': unitId,\r\n 't.checkRecordId': id\r\n }\r\n })\r\n },\r\n\r\n // 获取列表数据\r\n async getListData() {\r\n const {data: {value}} = await investigatePlan(this.routerQuery)\r\n this.listData = value\r\n this.finished = true\r\n }\r\n }\r\n}\r\n",null]}