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

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

@ -51,4 +51,4 @@ export default {
watch: {},
};
</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>
<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' }"
prop="categoryList">
<div :class="{ 'visiual-form': source === 'visiual' }">
@ -54,7 +54,8 @@ export default {
timeLimit: "",//
categoryId: "",//
deptId: "", //
deptName: ""
deptName: "",
categoryList: []
},
orgOptions: [],
orgOptionProps: {
@ -124,6 +125,7 @@ export default {
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData));
// eventDetailCopy
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) {
this.selCateObj = this.eventDetailCopy.selCateObj
this.formData.categoryId = this.eventDetailCopy.categoryId
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId)
}
@ -195,7 +197,7 @@ export default {
},
async getReplayInfo() {
this.okflag = false;
this.$refs["ref_form1"].validate((valid, messageObj) => {
this.$refs["ref_form2"].validate((valid, messageObj) => {
if (!valid) {
app.util.validateRule(messageObj);
} else {

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

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

Loading…
Cancel
Save