diff --git a/src/js/dai/request.js b/src/js/dai/request.js index 0d257d339..92fb78314 100644 --- a/src/js/dai/request.js +++ b/src/js/dai/request.js @@ -36,7 +36,7 @@ const request = curry( // retData = Vue.$afterRequestHook(retData); // } if (res.data.code > 8000 && res.data.code < 10000) { - Message.error(res.data.msg); + // Message.error(res.data.msg); } if (res.code == 10005 || res.code == 10006 || res.code == 10007) { // 10005 token为空 10006登陆超时 10007别处登录 diff --git a/src/js/dai/request2.js b/src/js/dai/request2.js index 0d257d339..92fb78314 100644 --- a/src/js/dai/request2.js +++ b/src/js/dai/request2.js @@ -36,7 +36,7 @@ const request = curry( // retData = Vue.$afterRequestHook(retData); // } if (res.data.code > 8000 && res.data.code < 10000) { - Message.error(res.data.msg); + // Message.error(res.data.msg); } if (res.code == 10005 || res.code == 10006 || res.code == 10007) { // 10005 token为空 10006登陆超时 10007别处登录 diff --git a/src/views/modules/communityService/measure/info.vue b/src/views/modules/communityService/measure/info.vue index de7a2ca51..74193bd21 100644 --- a/src/views/modules/communityService/measure/info.vue +++ b/src/views/modules/communityService/measure/info.vue @@ -1,42 +1,31 @@ @@ -360,7 +307,7 @@ export default { }, }, - data() { + data () { return { btnLoading: false, pageLoading: false, @@ -432,18 +379,18 @@ export default { computed: { ...mapGetters(["clientHeight", "iframeHeight"]), - disabled() { + disabled () { return this.addType != "edit"; }, }, watch: { - addType(val) { + addType (val) { this.formatRowForm(val); }, }, - async created() { + async created () { this.customerId = localStorage.getItem("customerId"); this.getInfo(); @@ -452,11 +399,11 @@ export default { }, methods: { - filterEdit(id) { + filterEdit (id) { const { user } = this.$store.state; return id === user.agencyId; }, - handleCateSlect(val) { + handleCateSlect (val) { console.log("val", val); if (val.length === 1) { this.demandOptions.forEach((item) => { @@ -468,31 +415,31 @@ export default { this.form.categoryCode = val[1]; } }, - handleDemandChange(val) { + handleDemandChange (val) { console.log("val", val, this.selectDemandUser); this.selectDemandUser = val.label; this.form.demandUserName = val.demandUserName; this.form.demandUserMobile = val.demandUserMobile; this.form.demandUserId = val.demandUserId; }, - handelBlurServiceTime(val) { + handelBlurServiceTime (val) { console.log("val", val); if (val.length > 0) { this.form.serviceStartTime = val[0]; this.form.serviceEndTime = val[1]; } }, - handleServiceChange(type, val) { + handleServiceChange (type, val) { if (val === "social_org") { if (type === "add") this.getServiceuserList(val, "add_demand"); else this.getServiceuserList(val, "query_demand"); } else this.getServiceuserList(val, ""); }, - handleGridChange(val) { + handleGridChange (val) { this.getDemandUserList(); }, - handelBlurServiceTime(val) { + handelBlurServiceTime (val) { console.log("val", val); if (val.length > 0) { this.form.serviceStartTime = val[0]; @@ -500,23 +447,23 @@ export default { } }, - handleServiceChange(type, val) { + handleServiceChange (type, val) { if (val === "social_org") { if (type === "add") this.getServiceuserList(val, "add_demand"); else this.getServiceuserList(val, "query_demand"); } else this.getServiceuserList(val, ""); }, - handleAdd(addType) { + handleAdd (addType) { this.addType = addType; this.dialogVisible = true; }, - handlerClose() { + handlerClose () { this.$emit("close"); }, - async formatRowForm(addType) { + async formatRowForm (addType) { this.addType = addType; const { form: row } = this; @@ -554,7 +501,7 @@ export default { this.dialogVisible = true; }, - async appointAjax() { + async appointAjax () { const _form = { demandRecId: this.form.demandRecId, serviceType: this.form.serviceType, @@ -578,7 +525,7 @@ export default { this.btnLoading = false; }, - async finishAjax() { + async finishAjax () { const { reportType, serviceShowFlag, serviceType } = this.form; const _form = { demandRecId: this.form.demandRecId, @@ -607,7 +554,7 @@ export default { this.btnLoading = false; }, - async editCate() { + async editCate () { const categoryCode = this.form.categoryCode; if (Array.isArray(categoryCode)) { if (categoryCode.length === 1) { @@ -643,7 +590,7 @@ export default { this.btnLoading = false; }, - handleSubmit() { + handleSubmit () { this.$refs.ruleForm.validate(async (valid) => { if (valid) { this.btnLoading = true; @@ -659,7 +606,7 @@ export default { }); }, - handleDel() { + handleDel () { let params = { demandRecId: this.demandRecId, }; @@ -680,7 +627,7 @@ export default { }); }, - getTreeData(data) { + getTreeData (data) { if (!Array.isArray(data)) return []; let arr = data.map((item) => { let _item = {}; @@ -696,7 +643,7 @@ export default { return arr; }, - getFlagData(data, flag) { + getFlagData (data, flag) { if (!Array.isArray(data)) return []; let arr1 = data.filter((item) => item[flag]); let arr2 = arr1.map((item) => { @@ -708,7 +655,7 @@ export default { return arr2; }, - async getGridList(type, agencyId) { + async getGridList (type, agencyId) { const { user } = await this.$store.state; console.log("user---ppp", user); // addorupdate query @@ -732,7 +679,7 @@ export default { }); }, - async getDemandUserList() { + async getDemandUserList () { const { user } = await this.$store.state; console.log("user---ppp", user); const params = { @@ -756,7 +703,7 @@ export default { }); }, - async getDemandOptions() { + async getDemandOptions () { this.$http .post("/heart/icresidemanddict/demandoption") .then(({ data: res }) => { @@ -775,7 +722,7 @@ export default { }); }, - async getServiceuserList(serviceType, query) { + async getServiceuserList (serviceType, query) { if (!serviceType) return false; const { demandUserId } = this.form; const params = { @@ -799,7 +746,7 @@ export default { }); }, - async getDictOptions() { + async getDictOptions () { this.$http .post("/sys/dict/data/dictlist", { dictType: "user_demand_status" }) .then(({ data: res }) => { @@ -845,7 +792,7 @@ export default { }); }, - async getInfo() { + async getInfo () { let params = { demandRecId: this.demandRecId, }; @@ -863,6 +810,8 @@ export default { res.data.parentCode + res.data.categoryCode, ], }; + + this.finishServiceTime = [this.form.serviceStartTime, this.form.serviceEndTime] this.getGridList(); this.getDemandOptions(); this.getDemandUserList(); diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue index d22ccc17f..9dd650e6e 100644 --- a/src/views/modules/shequzhili/event/cpts/add.vue +++ b/src/views/modules/shequzhili/event/cpts/add.vue @@ -467,10 +467,8 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { - this.demandUserList = data; - } else { this.$message.error(msg) } diff --git a/src/views/modules/shequzhili/event/cpts/event-detail.vue b/src/views/modules/shequzhili/event/cpts/event-detail.vue index 74df7aa31..06a4766cd 100644 --- a/src/views/modules/shequzhili/event/cpts/event-detail.vue +++ b/src/views/modules/shequzhili/event/cpts/event-detail.vue @@ -297,7 +297,6 @@ export default { this.info.satisfactionName = '111' this.showSatisfy = false - } else { this.$message.error(msg) } diff --git a/src/views/modules/shequzhili/event/cpts/event-info.vue b/src/views/modules/shequzhili/event/cpts/event-info.vue index e1d2075cd..b6569ada3 100644 --- a/src/views/modules/shequzhili/event/cpts/event-info.vue +++ b/src/views/modules/shequzhili/event/cpts/event-info.vue @@ -403,7 +403,7 @@ export default { this.replayInfo = {} this.project = {} this.demand = this.$refs.ref_processinfo_add.demand - + this.demand.gridId = this.eventInfoData.gridId //需求的属性同事件一样 this.eventInfoData.categoryList = [] this.eventInfoData.categoryList.push(this.demand.categoryId) @@ -440,6 +440,7 @@ export default { } this.$emit("handleOk"); } else { + this.$message.error(msg); } }, @@ -500,6 +501,7 @@ export default { this.$emit("handleOk"); } else { + this.$message.error(msg); } }, diff --git a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue index 8458cdc4e..bf0cee252 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-demand.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-demand.vue @@ -238,30 +238,7 @@ export default { }, formData: iniFmData(), - formDataTemp: { - icEventId: "", - serviceLocation: "34534534", - categoryCode: "10030002", - content: "341231", - demandUserId: "", - demandUserMobile: "15111111111", - demandUserName: "123123", - gridId: "", - - operationType: "2", - parentCode: "1003", - reportTime: "", - reportType: "self_help", - reportUserMobile: "", - reportUserName: "", - serverId: "cebe59b05d02715141762211bf57734f", - serviceType: "volunteer", - wantServiceTime: "2022-05-17 00:00:00", - latitude: 36.069920462445104, - locationDetail: "345345", - longitude: 120.38677261825706, - serviceLocation: "山东省青岛市市南区闽江路82号" - }, + okflag: false, //地图相关 diff --git a/src/views/modules/shequzhili/event/cpts/process-form-project.vue b/src/views/modules/shequzhili/event/cpts/process-form-project.vue index 8096461ed..7aafae755 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-project.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-project.vue @@ -393,14 +393,11 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { - let treeDataNew = this.filterTree(data) //组织级联数据 ++this.iscascaderShow this.casOptions = [] - - this.casOptions = treeDataNew } else { @@ -433,7 +430,6 @@ export default { }, async loadGrid () { const url = "/gov/org/customergrid/gridoption" - let params = { agencyId: this.agencyId } @@ -483,7 +479,6 @@ export default { //加载标签 async getTagList () { const url = "/gov/issue/issueprojecttagdict/list"; - const { data, code, msg } = await requestPost(url, { }); diff --git a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue index 4f3ce9c1b..d01d4879e 100644 --- a/src/views/modules/shequzhili/event/cpts/process-form-replay.vue +++ b/src/views/modules/shequzhili/event/cpts/process-form-replay.vue @@ -143,7 +143,6 @@ export default { ++this.iscascaderShow this.casOptions = [] - this.casOptions = treeDataNew } else { diff --git a/src/views/modules/shequzhili/event/eventList.vue b/src/views/modules/shequzhili/event/eventList.vue index cee63d86d..f333e1d9e 100644 --- a/src/views/modules/shequzhili/event/eventList.vue +++ b/src/views/modules/shequzhili/event/eventList.vue @@ -588,6 +588,7 @@ export default { }); } else { + this.$message.error(msg); } }, diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue index d3f8f87f5..1553d48b0 100644 --- a/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue +++ b/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue @@ -73,7 +73,7 @@ export default { props: { projectId: { type: String, - default: "64502a8f1048a7240295527a9b32e513", + default: "", }, }, @@ -124,10 +124,9 @@ export default { async getTableData() { const url = "/gov/project/project/satisfaction-evaluation-list"; - // const url = - // "http://yapi.elinkservice.cn/mock/245/gov/project/project/satisfaction-evaluation-list"; const { pageSize, pageNo, fmData } = this; const { data, code, msg } = await requestPost(url, { + projectId: this.projectId, pageSize, pageNo, ...fmData, diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue index 123ab3c39..6707e7e03 100644 --- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue +++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue @@ -474,7 +474,7 @@ class="dialog-h" @closed="showedEvaluation = false" > - +