1 line
14 KiB
JSON
1 line
14 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\applicationPart2\\projectFundDivision\\projectfunddivision.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\applicationPart2\\projectFundDivision\\projectfunddivision.vue","mtime":1622425355715},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport mixinViewModule from '@/mixins/view-module';\nimport AddOrUpdate from \"./projectfunddivision-add-or-update\";\nexport default {\n mixins: [mixinViewModule],\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/projectFundDivision/projectfunddivision/page',\n getDataListIsPage: true,\n deleteURL: '/system/projectFundDivision/projectfunddivision',\n deleteIsBatch: true\n },\n dataForm: {\n id: '',\n projectId: \"选择项目\"\n },\n projectList: [],\n popIsEdit: false,\n projectInfo: {\n projectAppId: \"\",\n projectAppName: \"\"\n }\n };\n },\n components: {\n AddOrUpdate: AddOrUpdate\n },\n created: function created() {\n this.getProjectList();\n },\n methods: {\n lookUpInfo: function lookUpInfo(scopeRowId) {\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId);\n },\n addOrUpdateHandleWapper: function addOrUpdateHandleWapper(scopeRowId) {\n var _this = this;\n\n if (this.dataForm.projectId === \"选择项目\" || !this.dataForm.projectId) {\n return this.$message({\n message: \"请先选择所属项目\",\n type: 'warning',\n duration: 3000\n });\n }\n\n this.projectList.forEach(function (item) {\n if (item.id === _this.dataForm.projectId) {\n _this.projectInfo.projectAppId = item.id;\n _this.projectInfo.projectAppName = item.projectName;\n }\n }); // console.log(this.projectInfo);\n // console.log(' console.log(this.projectInfo);');\n\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId);\n },\n deleteHandleWapper: function deleteHandleWapper(scopeRowId) {\n if (this.dataForm.projectId === \"选择项目\" || !this.dataForm.projectId) {\n return this.$message({\n message: \"请先选择所属项目\",\n type: 'warning',\n duration: 3000\n });\n }\n\n this.deleteHandle(scopeRowId);\n },\n getProjectList: function getProjectList() {\n var _this2 = this;\n\n // 获取项目列表\n this.$http.get('/system/projectApplication/projectapplication/page', {\n params: {\n order: this.order,\n orderField: this.orderField,\n page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,\n limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null,\n studentNumber: this.$store.state.user.username\n }\n }).then(function (_ref) {\n var res = _ref.data;\n // console.log(res);\n _this2.projectList = res.data.list; // console.log(this.projectList)\n\n if (res.code !== 0) {\n _this2.projectList = [];\n _this2.total = 0;\n return _this2.$message.error(res.msg);\n }\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["projectfunddivision.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,WAAA;AAEA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,sDADA;AAEA,QAAA,iBAAA,EAAA,IAFA;AAGA,QAAA,SAAA,EAAA,iDAHA;AAIA,QAAA,aAAA,EAAA;AAJA,OADA;AAOA,MAAA,QAAA,EAAA;AACA,QAAA,EAAA,EAAA,EADA;AAEA,QAAA,SAAA,EAAA;AAFA,OAPA;AAWA,MAAA,WAAA,EAAA,EAXA;AAYA,MAAA,SAAA,EAAA,KAZA;AAaA,MAAA,WAAA,EAAA;AAAA,QAAA,YAAA,EAAA,EAAA;AAAA,QAAA,cAAA,EAAA;AAAA;AAbA,KAAA;AAeA,GAlBA;AAmBA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA;AADA,GAnBA;AAsBA,EAAA,OAtBA,qBAsBA;AACA,SAAA,cAAA;AACA,GAxBA;AAyBA,EAAA,OAAA,EAAA;AACA,IAAA,UADA,sBACA,UADA,EACA;AAEA,WAAA,SAAA,GAAA,KAAA;AACA,WAAA,iBAAA,CAAA,UAAA;AAEA,KANA;AAOA,IAAA,uBAPA,mCAOA,UAPA,EAOA;AAAA;;AACA,UAAA,KAAA,QAAA,CAAA,SAAA,KAAA,MAAA,IAAA,CAAA,KAAA,QAAA,CAAA,SAAA,EAAA;AACA,eAAA,KAAA,QAAA,CAAA;AACA,UAAA,OAAA,EAAA,UADA;AAEA,UAAA,IAAA,EAAA,SAFA;AAGA,UAAA,QAAA,EAAA;AAHA,SAAA,CAAA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YAAA,GAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,UAAA,MAAA,CAAA,WAAA,GAAA,EAAA;AACA,UAAA,MAAA,CAAA,KAAA,GAAA,CAAA;AACA,iBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,GAAA,CAAA;AACA;AACA,OArBA,EAqBA,KArBA,CAqBA,YAAA,CACA,CAtBA;AAuBA;AA9DA;AAzBA,CAAA","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-projectFundDivision__projectfunddivision}\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item label=\"所属项目:\">\n <el-select v-model=\"dataForm.projectId\" placeholder=\"选择项目\">\n <el-option v-for=\"(project, index) in projectList\" :label=\"project.projectName\" :value=\"project.id\"\n :key=\"index\"></el-option>\n </el-select>\n </el-form-item>\n\n <!-- <el-form-item>-->\n <!-- <el-input v-model=\"dataForm.id\" placeholder=\"id\" clearable></el-input>-->\n <!-- </el-form-item>-->\n <el-form-item>\n <el-button @click=\"getDataList()\">{{ $t('query') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"addOrUpdateHandleWapper()\">{{ $t('add') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"danger\" @click=\"deleteHandleWapper()\">{{ $t('deleteBatch') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table v-loading=\"dataListLoading\" :data=\"dataList\" border @selection-change=\"dataListSelectionChangeHandle\"\n style=\"width: 100%;\">\n <el-table-column type=\"selection\" header-align=\"center\" align=\"center\" width=\"50\"></el-table-column>\n <!-- <el-table-column prop=\"id\" label=\"资金id\" header-align=\"center\" align=\"center\"></el-table-column>-->\n <!-- <el-table-column prop=\"projectAppicationId\" label=\"立项申请ID\" header-align=\"center\" align=\"center\"></el-table-column>-->\n <el-table-column prop=\"fundType\" label=\"资金类目\" header-align=\"center\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-tag v-if=\"scope.row.fundType==0\" effect=\"dark\" >研发费</el-tag>\n <el-tag v-if=\"scope.row.fundType==1\" effect=\"dark\" >专家咨询费</el-tag>\n <el-tag v-if=\"scope.row.fundType==2\" effect=\"dark\" >差旅费</el-tag>\n <el-tag v-if=\"scope.row.fundType==3\" effect=\"dark\" >设备费</el-tag>\n <el-tag v-if=\"scope.row.fundType==4\" effect=\"dark\" >其他</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"amount\" label=\"资金费用\" header-align=\"center\" align=\"center\"></el-table-column>\n <!-- <el-table-column prop=\"creator\" label=\"创建人\" header-align=\"center\" align=\"center\"></el-table-column>-->\n <el-table-column prop=\"createDate\" label=\"创建时间\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column :label=\"$t('handle')\" fixed=\"right\" header-align=\"center\" align=\"center\" width=\"230\">\n <template slot-scope=\"scope\">\n <el-button size=\"small\" @click=\"lookUpInfo(scope.row.id)\">{{ \"详情\" }}</el-button>\n <el-button size=\"small\" @click=\"addOrUpdateHandleWapper(scope.row.id)\">{{ $t('update') }}</el-button>\n <el-button type=\"danger\" size=\"small\" @click=\"deleteHandleWapper(scope.row.id)\">{{\n $t('delete')\n }}\n </el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-pagination\n :current-page=\"page\"\n :page-sizes=\"[10, 20, 50, 100]\"\n :page-size=\"limit\"\n :total=\"total\"\n layout=\"total, sizes, prev, pager, next, jumper\"\n @size-change=\"pageSizeChangeHandle\"\n @current-change=\"pageCurrentChangeHandle\">\n </el-pagination>\n <!-- 弹窗, 新增 / 详情/ 修改 -->\n <add-or-update :isedit=\"popIsEdit\" v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\"\n :currentProjectInfo=\"this.projectInfo\"\n @refreshDataList=\"getDataList\"></add-or-update>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './projectfunddivision-add-or-update'\n\nexport default {\n mixins: [mixinViewModule],\n data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/projectFundDivision/projectfunddivision/page',\n getDataListIsPage: true,\n deleteURL: '/system/projectFundDivision/projectfunddivision',\n deleteIsBatch: true\n },\n dataForm: {\n id: '',\n projectId: \"选择项目\",\n },\n projectList: [],\n popIsEdit: false,\n projectInfo: {projectAppId: \"\", projectAppName: \"\"},\n }\n },\n components: {\n AddOrUpdate\n },\n created() {\n this.getProjectList();\n },\n methods: {\n lookUpInfo(scopeRowId) {\n\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId)\n\n },\n addOrUpdateHandleWapper(scopeRowId) {\n if (this.dataForm.projectId === \"选择项目\" || !this.dataForm.projectId) {\n return this.$message({\n message: \"请先选择所属项目\",\n type: 'warning',\n duration: 3000\n })\n }\n this.projectList.forEach((item) => {\n if (item.id === this.dataForm.projectId) {\n this.projectInfo.projectAppId = item.id;\n this.projectInfo.projectAppName = item.projectName;\n }\n })\n // console.log(this.projectInfo);\n // console.log(' console.log(this.projectInfo);');\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId)\n },\n deleteHandleWapper(scopeRowId) {\n if (this.dataForm.projectId === \"选择项目\" || !this.dataForm.projectId) {\n return this.$message({\n message: \"请先选择所属项目\",\n type: 'warning',\n duration: 3000\n })\n }\n\n this.deleteHandle(scopeRowId)\n },\n getProjectList() {\n // 获取项目列表\n this.$http.get(\n '/system/projectApplication/projectapplication/page', {\n params: {\n order: this.order,\n orderField: this.orderField,\n page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,\n limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null,\n studentNumber: this.$store.state.user.username,\n }\n }\n ).then(({\n data: res\n }) => {\n // console.log(res);\n this.projectList = res.data.list\n // console.log(this.projectList)\n if (res.code !== 0) {\n this.projectList = []\n this.total = 0\n return this.$message.error(res.msg)\n }\n }).catch(() => {\n })\n },\n }\n\n}\n</script>\n"],"sourceRoot":"src/views/modules/applicationPart2/projectFundDivision"}]} |