{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\ProjectSatisfactionSurveys.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\satisfactionManagement\\ProjectSatisfactionSurveys.vue","mtime":1688459521329},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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//\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//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport sat from '@/api/satisfaction/satisfaction';\nimport risk from '@/api/risk';\nimport moment from 'moment';\nimport filePreview from '@/components/FilePreview/filePreview.vue';\nimport UploadFile from '@/components/uploadFile/index.vue';\nvar portal = window.context.portal;\nexport default {\n name: 'ProjectSatisfactionSurveys',\n components: {\n pagination: pagination,\n filePreview: filePreview,\n UploadFile: UploadFile\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n dialogVisible: false,\n dialogImageUrl: '',\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n groupRelation: 'AND',\n groupTree: {},\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n params: {},\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: '',\n // 字段名\n relation: 'AND',\n value: {}\n }],\n sorter: [{\n direction: 'ASC',\n property: ''\n }]\n },\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n searchForm: {\n estigationName: '',\n scoringDate: ''\n },\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n activeCollapse1: ['1'],\n fileList: [],\n // 文件上传\n dialog: {\n title: '添加',\n visible: false\n },\n id: null,\n dialogForm: {\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n classified: 1,\n //0:不涉密,1:涉密\n projectName: ''\n },\n disabled: false,\n // 是否禁止输入输入\n rules: {\n estigationName: [{\n required: true,\n message: '请输入调查名称',\n trigger: 'blur'\n }],\n classified: [{\n required: true,\n message: '请输入上传文件',\n trigger: 'change'\n }],\n scoringDate: [{\n required: true,\n message: '请选择调查时间',\n trigger: 'change'\n }],\n investigationConclusion: [{\n required: true,\n message: '请输入调查结论',\n trigger: 'blur'\n }],\n projectName: [{\n required: true,\n message: '请选择项目名称',\n trigger: 'change'\n }],\n satisfaction: [{\n required: true,\n message: '请输入项目分数',\n trigger: 'blur'\n }, {\n pattern: /(^(\\d|[1-9]\\d)(\\.\\d{1,2})?$)|(^100$)g/,\n message: '请输入正确分数,最多输入两位小数',\n trigger: 'change'\n }]\n },\n isDialog: false,\n optionData: [],\n value: '',\n uploadData: {\n bizCode: 'mydandfx',\n bizId: '',\n bizType: ''\n },\n btnLoading: false\n };\n },\n created: function created() {\n this.getProjectList(this.params);\n this.getNoProjectList();\n },\n methods: {\n openUploade: function openUploade() {\n this.$refs.uploadFile.open('ProjectSatisfaction');\n },\n setFileList: function setFileList(file) {\n this.fileList.push(file);\n },\n beforeRemove: function beforeRemove(file, fileList) {\n var _this = this;\n\n console.log(file);\n this.$confirm(\"\\u786E\\u5B9A\\u5220\\u9664 \".concat(file.name, \"\\uFF1F\"), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n sat.deleteFileById(id, function (res) {\n if (res.state) {\n _this.$message.success('附件删除成功');\n\n _this.fileList = _this.fileList.filter(function (item) {\n var fileId = item.id || item.response.fileId;\n\n if (fileId !== id) {\n return item;\n }\n });\n } else {\n _this.$message.error('附件删除失败');\n }\n });\n });\n },\n handlePreview: function handlePreview(file) {\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n this.dialogImageUrl = this.previewUrl + id;\n var type = file.fileType || (file.extensionName ? file.extensionName : file.name.split('.')[1]);\n this.$refs.filePreview.previewUrl = this.previewUrl + id;\n this.$refs.filePreview.open(type);\n },\n // 文件下载\n handleDownloadFile: function handleDownloadFile(file) {\n console.log(file);\n var id = file.fileId ? file.fileId : file.id ? file.id : file.response.fileId;\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(id), '_self');\n },\n // 查询所有未结项项目\n getNoProjectList: function getNoProjectList() {\n var _this2 = this;\n\n var data = JSON.parse(JSON.stringify(this.params));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'closing_',\n relation: 'AND',\n value: 1\n }];\n risk.getNoProjectList(data, function (res) {\n _this2.optionData = res;\n });\n },\n // 表单提交保存\n submit: function submit() {\n var _this3 = this;\n\n this.btnLoading = true;\n this.$refs['form'].validate(function (valid) {\n if (valid) {\n var _this3$dialogForm = _this3.dialogForm,\n estigationName = _this3$dialogForm.estigationName,\n scoringDate = _this3$dialogForm.scoringDate,\n satisfaction = _this3$dialogForm.satisfaction,\n investigationConclusion = _this3$dialogForm.investigationConclusion,\n classified = _this3$dialogForm.classified,\n projectName = _this3$dialogForm.projectName;\n var time = moment(scoringDate).format('YYYY-MM-DD');\n\n var ids = _this3.fileList.map(function (item) {\n return item.id ? item.id : item.response.fileId;\n });\n\n var data = {\n estigationName: estigationName,\n scoringDate: time,\n satisfaction: satisfaction,\n investigationConclusion: investigationConclusion,\n classified: classified,\n //0:不涉密,1:涉密\n projectName: projectName,\n ids: ids,\n id: _this3.id\n };\n\n _this3.$confirm('确认提交?', _this3.$t('common.tips'), {\n confirmButtonText: _this3.$t('common.confirm'),\n cancelButtonText: _this3.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n sat.addProject(data, function (res) {\n if (res.state) {\n _this3.btnLoading = false;\n\n _this3.getProjectList(_this3.params);\n\n _this3.dialog.visible = false;\n\n _this3.$message.success(_this3.id ? '修改成功' : '提交成功');\n } else {\n _this3.btnLoading = false;\n\n _this3.$message.error(_this3.id ? '修改失败' : '提交失败');\n }\n });\n }).catch(function () {\n _this3.btnLoading = false;\n });\n } else {\n _this3.btnLoading = false;\n }\n });\n },\n // 单击单元格\n cellClick: function cellClick(row) {\n console.log(row);\n },\n // 查看详情 修改\n openUpdate: function openUpdate(item) {\n this.getFileListById(item.id);\n this.dialog.visible = true;\n var estigationName = item.estigationName,\n createTime = item.createTime,\n classified = item.classified,\n investigationConclusion = item.investigationConclusion,\n projectName = item.projectName,\n satisfaction = item.satisfaction,\n id = item.id;\n var dialogForm = {\n estigationName: estigationName,\n scoringDate: createTime,\n projectName: projectName,\n classified: classified,\n //涉密\n satisfaction: satisfaction,\n investigationConclusion: investigationConclusion\n };\n this.id = id;\n this.dialogForm = dialogForm;\n },\n // 编辑\n openEdit: function openEdit(item) {\n this.disabled = false;\n this.openUpdate(item);\n },\n // 查看详情\n handleDetils: function handleDetils(item) {\n this.disabled = true;\n this.openUpdate(item);\n },\n // 分页查询所有数据\n getProjectList: function getProjectList(data) {\n var _this4 = this;\n\n this.tableLoading = true;\n sat.getProjectList(data, function (res) {\n _this4.tableData = res.rows;\n _this4.tableLoading = false;\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.disabled = false;\n this.dialog.visible = true;\n this.id = null;\n },\n // 根据id查询附件信息\n getFileListById: function getFileListById(id) {\n var _this5 = this;\n\n var data = JSON.parse(JSON.stringify(this.params));\n data.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'biz_id_',\n relation: 'AND',\n value: id\n }];\n sat.getFileListById(data, function (res) {\n res.rows.forEach(function (item) {\n var id = item.id,\n fileName = item.fileName,\n extensionName = item.extensionName;\n var url = \"\".concat(portal, \"/file/onlinePreviewController/v1/getFileById_\").concat(id);\n var obj = {\n id: id,\n name: \"\".concat(fileName, \".\").concat(extensionName),\n url: url,\n fileType: extensionName\n };\n\n _this5.fileList.push(obj);\n });\n });\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this6 = this;\n\n this.$confirm('确认删除?', this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n sat.deleteProject(_this6.deleteIds, function (res) {\n if (res.state) {\n _this6.$message.success('删除成功');\n\n _this6.getProjectList(_this6.params);\n } else {\n _this6.$message.error('删除失败');\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n // this.tableLoading = true\n var _this$searchForm = this.searchForm,\n estigationName = _this$searchForm.estigationName,\n scoringDate = _this$searchForm.scoringDate;\n var time = scoringDate ? moment(scoringDate).format('YYYY-MM-DD') : scoringDate;\n var data = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'estigationName',\n // 字段名\n relation: 'AND',\n value: estigationName\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'scoringDate',\n // 字段名\n relation: 'AND',\n value: time\n }];\n this.params.querys = data;\n console.log(this.params);\n this.getProjectList(this.params);\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n this.dialogForm = {\n estigationName: '',\n scoringDate: '',\n satisfaction: '',\n investigationConclusion: '',\n classified: 0,\n //0:不涉密,1:涉密\n projectName: '',\n ids: []\n }, this.$refs['form'].resetFields();\n this.fileList = [];\n },\n handleSelectionChange: function handleSelectionChange(currentData) {\n if (currentData.length === 0) return this.deleteIds = '';\n var ids = [];\n currentData.forEach(function (item) {\n ids.push(item.id);\n });\n this.deleteIds = ids.join(',');\n console.log(this.deleteIds);\n },\n handleCurrentChange: function handleCurrentChange(page) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n page: page\n });\n this.loadData(this.params);\n },\n handleSizeChange: function handleSizeChange(pageSize) {\n this.params.pageBean = _objectSpread(_objectSpread({}, this.params.pageBean), {}, {\n pageSize: pageSize\n });\n this.loadData(this.params);\n }\n }\n};",null]}