diff --git a/src/common/axios/index.js b/src/common/axios/index.js index 82c0c5fe3..6d9d0f0fb 100644 --- a/src/common/axios/index.js +++ b/src/common/axios/index.js @@ -536,5 +536,53 @@ export default { }).catch(err => { exeFun.call(this, err) }) - } + }, + + _getData (url, params, config = {}) { + return new Promise((resolve,reject)=>{ + // 参数包含this + let _this = config._this || false + // 参数包含loading + let loading = config.loading || false + if (_this && loading) { + _this[loading] = true + } + + _axios.get(api() + url + '?_t=' + new Date().getTime(), { params }).then(res => { + resolve(res.data) + }).catch(err => { + reject(err) + }).finally(()=>{ + if (_this && loading) { _this[loading] = false } + }) + }) + }, + + _postData (url, param, config = {}) { + return new Promise((resolve,reject) => { + var _formData = formData(param) + // 参数包含this + let _this = config._this || false + // 参数包含loading + let loading = config.loading || false + // 是否显示操作提示 + let showTips = config.showTips === undefined ? true : config.showTips + if (_this && loading) { _this[loading] = true } + + _axios.post(api() + url + '?' + new Date().getTime(), _formData).then(res => { + if (res.data.ok !== undefined && showTips) { + let type = res.data.ok ? 'success' : 'warning' + if (_this && res.data.message !== '' && res.data.message !== null) { + Message[type](res.data.message) + } + } + resolve(res.data) + }).catch(err => { + reject(err) + }).finally(()=>{ + if (_this && loading) { _this[loading] = false } + }) + }) + }, + } diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index e3f64f0ca..9905aa133 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -3577,10 +3577,14 @@ export default { type: 'warning' }).then(() => { if (this.selectedItemList != null && this.selectedItemList.length > 0) { - window.open('/api/lawss/sarStandItems/exportStandardItemExcel?idList=' + this.selectedItemList.join(',')) + const ids = this.selectedItemList.reduce((init,item,index,arr)=>{ + init.push(item.id) + return init + },[]) + window.open('/api/lawss/sarFileSplitItems/exportStandardItemExcel?idList=' + ids.join(',')) this.$message.success('导出成功') } else if (this.standItemList.length > 0) { - window.open('/api/lawss/sarStandItems/exportStandardItemExcel?standId=' + this.$route.params.id + '&fileType=' + this.fileType) + window.open('/api/lawss/sarFileSplitItems/exportStandardItemExcel?standId=' + this.$route.params.id + '&fileType=' + this.fileType) } else { this.$message.warning('暂无可导出的数据') } diff --git a/src/pages/home2/components/releaseQA2/index.vue b/src/pages/home2/components/releaseQA2/index.vue index d148dfa74..52d4f1b93 100644 --- a/src/pages/home2/components/releaseQA2/index.vue +++ b/src/pages/home2/components/releaseQA2/index.vue @@ -124,26 +124,35 @@ export default { }, methods: { getDate(){ - this.loading = true + // this.loading = true let form = this.form form.userId = this.$store.getters.userInfo.account form.pageSize = this.pageSize form.page = this.currentPage - return new Promise((resolve,reject)=>{ - this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this }, res => { - if(res.data){ - const data = res.data - this.data = data.records - this.total = data.total - this.currentPage = data.current - this.pageSize = data.size - } - this.loading = false - resolve(res) - }, e => { - this.loading = false - reject(e) - }) + // return new Promise((resolve,reject)=>{ + // this.$http.get('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this }, res => { + // if(res.data){ + // const data = res.data + // this.data = data.records + // this.total = data.total + // this.currentPage = data.current + // this.pageSize = data.size + // } + // this.loading = false + // resolve(res) + // }, e => { + // this.loading = false + // reject(e) + // }) + // }) + this.$http._getData('lawss/AskQuestions/getAskQuestionsPage', form, {_this: this, loading: 'loading' }).then(res => { + if(res.data){ + const data = res.data + this.data = data.records + this.total = data.total + this.currentPage = data.current + this.pageSize = data.size + } }) }, onSubmit(){ diff --git a/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue b/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue index 62e0b2512..b9394c01a 100644 --- a/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue +++ b/src/pages/localTool/standAutoSplit/pages/itemSplitInfo.vue @@ -652,6 +652,7 @@ multiple :action="importExcelUrl" ref="importfile" + :headers="headers" name="file" drag :on-success="importItemsSuccess" @@ -805,6 +806,9 @@ export default { }, data () { return { + headers:{ + token: JSON.parse(localStorage.getItem('userInfo')).token + }, editFlag: '', splitStatus: this.$route.query.splitStatus, auditFlag: this.$route.query.auditFlag, @@ -1462,7 +1466,7 @@ export default { if (!this.jurisdictionCheck()) { return } - window.open('/api/att/attFile/uploadModalFile?fileName=标准拆分导入模板.zip') + window.open('/api/lawss/sarFileSplitItems/exportTemplate') }, // 导入事件 importItemInfo () { diff --git a/src/pages/personal/pages/my-questions/index.vue b/src/pages/personal/pages/my-questions/index.vue index 28a50229b..65ee3d817 100644 --- a/src/pages/personal/pages/my-questions/index.vue +++ b/src/pages/personal/pages/my-questions/index.vue @@ -828,7 +828,7 @@ 选择标准 - {{ questionForm.standSortShow }} {{questionForm.standNumber }} {{ questionForm.standYear === '' ? '' : '-' }} {{ questionForm.standYear }} + {{ questionForm.standSortShow }} {{questionForm.standNumber }}{{ questionForm.standYear === '' ? '' : '-' }}{{ questionForm.standYear }} {{questionForm.standardName}} @@ -1984,17 +1984,24 @@ export default { { _this: this }, val => { - this.$http.post('lawss/activiti/completeTask',{ - taskIds: val.data, - userId : this.$store.getters.userInfo.userId, - json: JSON.stringify(res.data), - }, - { - _this: this - }, res => { - this.submitGetData(); - }, e => { - }) + // this.$http.post('lawss/activiti/completeTask',{ + // taskIds: val.data, + // userId : this.$store.getters.userInfo.userId, + // json: JSON.stringify(res.data), + // }, + // { + // _this: this + // }, res => { + // this.submitGetData(); + // }, e => { + // }) + this.$http._postData('lawss/activiti/completeTask',{ + taskIds: val.data, + userId : this.$store.getters.userInfo.userId, + json: JSON.stringify(res.data), + }).then(res => { + this.submitGetData(); + }) }, e => { }) }, e => { diff --git a/src/pages/processCenter/pages/phone/bzrk/step2.vue b/src/pages/processCenter/pages/phone/bzrk/step2.vue index fd258e003..a1a4f8246 100644 --- a/src/pages/processCenter/pages/phone/bzrk/step2.vue +++ b/src/pages/processCenter/pages/phone/bzrk/step2.vue @@ -151,87 +151,87 @@
-
+
{{ value.name }}
-
+
- -
发布稿(原文) -
+
{{ value.name }}
-
+
- -
发布稿(译文) -
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
-
+
{{ value.name }}
-
+
- -
@@ -1005,8 +1005,14 @@ export default { /deep/ .el-form-item__label{ width: 112px !important; } + /deep/ .van-field__label{ + width: 112px !important; + } /deep/ .el-form-item__content{ margin-left: 112px !important; + .wrap,.el-radio-group{ + padding-left: 10px; + } } /deep/.el-select .el-input .el-select__caret { font-size: 0; @@ -1023,8 +1029,12 @@ export default { min-height: 300px; padding: 10px; } - - + /deep/ .van-field__control{ + padding-left: 10px !important; + } + .paddingLeft{ + padding-left: 10px;; + } position: relative; height: 100%; diff --git a/src/pages/regulatoryRepository/standQA/index.vue b/src/pages/regulatoryRepository/standQA/index.vue index 8f02d804b..a951bf09e 100644 --- a/src/pages/regulatoryRepository/standQA/index.vue +++ b/src/pages/regulatoryRepository/standQA/index.vue @@ -103,7 +103,7 @@ 选择标准 - {{ questionForm.standSortShow }} {{questionForm.standNumber }}-{{ questionForm.standYear }} + {{ questionForm.standSortShow }} {{questionForm.standNumber }}{{ questionForm.standYear === '' ? '' : '-' }}{{ questionForm.standYear }} {{questionForm.standardName}} @@ -1057,16 +1057,21 @@ export default { }, //提交问题 queSubmit(){ - this.isSubmit = true + // this.isSubmit = true if(this.standType === 'OTHER'){ this.questionForm.standardId = this.questionForm.pubQue this.questionForm.standardName = this.questionForm.pubQue this.questionForm.standardEncdoing = this.questionForm.pubQue } + if(!this.questionForm.standardId){ + this.$message.warning('请选择至少一条标准') + return + } if(this.questionForm.standardId){ this.questionForm.fileList = this.fileList this.$refs['queForm'].validate((valid) => { if(valid){ + this.isSubmit = true this.$http.postData('lawss/AskQuestions/insertAskQuestions',{ ...this.questionForm }, { _this: this