diff --git a/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue b/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue index 608d5e6dd..a9b6fe717 100644 --- a/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue +++ b/src/views/modules/shequzhili/xiangmu/xiangmu-ling.vue @@ -1,24 +1,26 @@ @@ -399,7 +374,7 @@ const _form = { export default { components: { projectInfo }, - data() { + data () { let endDisabledDate = (time) => {//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 let nowData = Date.now() if (this.fmData.startTime) { @@ -423,6 +398,16 @@ export default { tableData: [], + resolvedStatus: [ + { + value: "resolved", + label: "已解决", + }, + { + value: "unresolved", + label: "无需解决", + }, + ], optionsStatus: [ { value: "pending", @@ -474,7 +459,7 @@ export default { }; }, computed: { - maxTableHeight() { + maxTableHeight () { return this.$store.state.inIframe ? this.clientHeight - 410 + this.iframeHeigh : this.clientHeight - 410; @@ -492,13 +477,13 @@ export default { } }, }, - mounted() { + mounted () { this.getTableData(); this.getGridList() this.getCateOptions() }, methods: { - async handleExportModule() { + async handleExportModule () { let url = "/heart/iccommunityselforganization/import-template-download"; let params = {}; @@ -535,18 +520,18 @@ export default { }); }, // 上传大图标成功 - handleExcelSuccess(res, file) { + handleExcelSuccess (res, file) { if (res.code === 0 && res.msg === "success") { console.log("resss---ppp", res); } else { this.$message.error(res.msg); } }, - handleProgress(event, file, fileList) { + handleProgress (event, file, fileList) { console.log("percentage", file.percentage); }, - beforeExcelUpload(file) { + beforeExcelUpload (file) { console.log("file", file); const isType = file.type === "application/vnd.ms-excel"; const isTypeComputer = @@ -563,7 +548,7 @@ export default { } return fileType && isLt1M; }, - async uploadHttpRequest(file) { + async uploadHttpRequest (file) { this.importLoading = true; this.importBtnTitle = "正在上传中..."; this.$message({ @@ -617,19 +602,19 @@ export default { this.importBtnTitle = "导入"; this.$refs.upload.clearFiles(); }, - handleCalscChange(val) { + handleCalscChange (val) { console.log('val-----', val) const arr = val.split('-') this.fmData.orgId = arr[0] this.fmData.orgType = arr[1] === 'grid' ? 'grid' : 'agency' }, - handleCheckbox(val) { + handleCheckbox (val) { const { user } = this.$store.state console.log('val---', val) if (val) this.fmData.staffId = user.id else this.fmData.staffId = '' }, - handleEventType(val) { + handleEventType (val) { // console.log('val-----eee', val) console.log('nodes---', this.$refs.cascaderEvent.getCheckedNodes()) const nodes = this.$refs.cascaderEvent.getCheckedNodes() @@ -659,24 +644,24 @@ export default { // this.$refs.cascaderUnit.toggleDropDownVisible(false); }, - handleSizeChange(val) { + handleSizeChange (val) { console.log(`每页 ${val} 条`); this.pageSize = val; window.localStorage.setItem("pageSize", val); this.getTableData(); }, - handleCurrentChange(val) { + handleCurrentChange (val) { console.log(`当前页: ${val}`); this.pageNo = val; this.getTableData(); }, - handleSearch(val) { + handleSearch (val) { console.log(JSON.stringify(this.fmData)); this.pageNo = 1; this.getTableData(); }, - resetForm(formName) { + resetForm (formName) { this.$refs[formName].resetFields(); this.fmData = { ..._form @@ -687,7 +672,7 @@ export default { this.handleSearch(); }, - async handleChu() { + async handleChu () { // const url = "/gov/project/project/project-list-export"; const url = '/gov/project/project/orgprojectexport' const { pageSize, pageNo, fmData } = this; @@ -726,8 +711,8 @@ export default { }); }, - async handleAdd() {}, - async handleWatch(rowIndex) { + async handleAdd () { }, + async handleWatch (rowIndex) { let item = this.tableData[rowIndex]; this.currentProject = { projectId: item.projectId, @@ -735,7 +720,7 @@ export default { this.pageType = "info"; }, - async handleEdit(rowIndex) { + async handleEdit (rowIndex) { let item = this.tableData[rowIndex]; this.currentProject = { projectId: item.projectId, @@ -743,19 +728,19 @@ export default { this.pageType = "edit"; }, - handleClose() { + handleClose () { this.pageType = "list"; this.currentProject = { projectId: "", }; }, - handleEditSuccess() { + handleEditSuccess () { this.handleClose(); this.getTableData(); }, - async handleDel(rowData, rowIndex) { + async handleDel (rowData, rowIndex) { console.log(rowData, rowIndex); const url = "/heart/iccommunityselforganization/delcommunityselforganization"; @@ -773,10 +758,10 @@ export default { } }, - async getTableData() { + async getTableData () { // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/project/project-list"; // const url = "/gov/project/project/project-list"; - const url ='/gov/project/project/orgprojectlist' + const url = '/gov/project/project/orgprojectlist' const { pageSize, pageNo, fmData } = this; const { data, code, msg } = await requestPost(url, { pageSize, @@ -788,16 +773,16 @@ export default { this.total = data.total || 0; this.tableData = data.list ? data.list.map((item) => { - return { - ...item, - urlList: item.urlList && item.urlList.map(n => n.url) - }; - }) + return { + ...item, + urlList: item.urlList && item.urlList.map(n => n.url) + }; + }) : []; } else { } }, - async getCateOptions() { + async getCateOptions () { const url = "/gov/issue/issueprojectcategorydict/list"; const { data, code, msg } = await requestPost(url, {}); @@ -814,7 +799,7 @@ export default { this.$message.error(msg); } }, - getGridList() { + getGridList () { const { user } = this.$store.state this.dataListLoading = true const params = { @@ -842,7 +827,7 @@ export default { return this.$message.error('网络错误') }) }, - deepTree(arr, child) { + deepTree (arr, child) { if (Array.isArray(arr) && arr.length > 0) { return arr.map(item => { // if (child === 'subAgencyList') item.value = item.orgType + '-' + item.orgId