Browse Source

修改指派问题;

feature
luyan 2 years ago
parent
commit
e34aa22e05
  1. 9
      src/views/modules/shequzhili/event/cpts/event-info.vue
  2. 2
      src/views/modules/shequzhili/event/cpts/myCascader.vue
  3. 8
      src/views/modules/shequzhili/event/cpts/process-form-designate.vue
  4. 1
      src/views/modules/shequzhili/event/eventList.vue

9
src/views/modules/shequzhili/event/cpts/event-info.vue

@ -314,7 +314,7 @@ export default {
this.$refs.ref_processinfo_add.getProcessInfo(); this.$refs.ref_processinfo_add.getProcessInfo();
this.formData.operationType = this.$refs.ref_processinfo_add.operationType; this.formData.operationType = this.$refs.ref_processinfo_add.operationType;
this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType; this.eventInfoData.operationType = this.$refs.ref_processinfo_add.operationType;
if (this.formData.operationType === "0" || this.formData.operationType === "6") { if (this.formData.operationType === '0' || this.formData.operationType === '6') {
this.project = {}; this.project = {};
this.demand = {}; this.demand = {};
this.replayInfo = this.$refs.ref_processinfo_add.replayInfo; this.replayInfo = this.$refs.ref_processinfo_add.replayInfo;
@ -325,9 +325,10 @@ export default {
this.eventInfoData.categoryList = []; this.eventInfoData.categoryList = [];
this.eventInfoData.categoryList.push(this.replayInfo.categoryId); this.eventInfoData.categoryList.push(this.replayInfo.categoryId);
} }
} else if (this.formData.operationType === "5") { } else if (this.formData.operationType === '5') {
this.project = {}; this.project = {};
this.demand = {}; this.demand = {};
console.log(this.$refs.ref_process_form_designate.replayInfo);
this.replayInfo = this.$refs.ref_process_form_designate.replayInfo; this.replayInfo = this.$refs.ref_process_form_designate.replayInfo;
// //
this.eventInfoData.content = this.replayInfo.content; this.eventInfoData.content = this.replayInfo.content;
@ -351,8 +352,8 @@ export default {
}, },
async submit() { async submit() {
if (this.formData.operationType === 0 || this.formData.operationType === 5 if (this.formData.operationType === '0' || this.formData.operationType === '5'
|| this.formData.operationType === 6 || this.formData.operationType === '4') { || this.formData.operationType === '6' || this.formData.operationType === '4') {
const url = "/governance/icEvent/add"; const url = "/governance/icEvent/add";
const { formData } = this; const { formData } = this;
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {

2
src/views/modules/shequzhili/event/cpts/myCascader.vue

@ -51,4 +51,4 @@ export default {
watch: {}, watch: {},
}; };
</script> </script>
<style lang="scss" scoped></style>> <style lang="scss" scoped></style>

8
src/views/modules/shequzhili/event/cpts/process-form-designate.vue

@ -8,7 +8,7 @@
--> -->
<template> <template>
<div class="search"> <div class="search">
<el-form ref="ref_form1" :inline="false" :model="formData" :rules="dataRule"> <el-form ref="ref_form2" :inline="false" :model="formData" :rules="dataRule">
<el-form-item label="事件分类" label-width="150px" :class="{ 'form-item': source === 'visiual' }" <el-form-item label="事件分类" label-width="150px" :class="{ 'form-item': source === 'visiual' }"
prop="categoryList"> prop="categoryList">
<div :class="{ 'visiual-form': source === 'visiual' }"> <div :class="{ 'visiual-form': source === 'visiual' }">
@ -54,7 +54,8 @@ export default {
timeLimit: "",// timeLimit: "",//
categoryId: "",// categoryId: "",//
deptId: "", // deptId: "", //
deptName: "" deptName: "",
categoryList: []
}, },
orgOptions: [], orgOptions: [],
orgOptionProps: { orgOptionProps: {
@ -124,6 +125,7 @@ export default {
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData));
// eventDetailCopy // eventDetailCopy
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) {
this.selCateObj = this.eventDetailCopy.selCateObj
this.formData.categoryId = this.eventDetailCopy.categoryId this.formData.categoryId = this.eventDetailCopy.categoryId
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId) this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId)
} }
@ -195,7 +197,7 @@ export default {
}, },
async getReplayInfo() { async getReplayInfo() {
this.okflag = false; this.okflag = false;
this.$refs["ref_form1"].validate((valid, messageObj) => { this.$refs["ref_form2"].validate((valid, messageObj) => {
if (!valid) { if (!valid) {
app.util.validateRule(messageObj); app.util.validateRule(messageObj);
} else { } else {

1
src/views/modules/shequzhili/event/eventList.vue

@ -324,6 +324,7 @@ export default {
showVoice: false, showVoice: false,
selVoiceUrl: "", selVoiceUrl: "",
multipleSelection: [], multipleSelection: [],
importLoading: false
}; };
}, },
computed: { computed: {

Loading…
Cancel
Save