10 changed files with 3068 additions and 3614 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,62 +1,54 @@ |
|||
<template> |
|||
<div> |
|||
<el-form :model="form" > |
|||
<div> |
|||
<el-form :model="form"> |
|||
<el-form-item> |
|||
<el-cascader class="cell-width-2" |
|||
ref="myCascader" |
|||
v-model="form.selCategoryArray" |
|||
:key="iscascaderShow" |
|||
:options="casOptions" |
|||
:props="optionProps" |
|||
:show-all-levels="false" |
|||
clearable |
|||
@change="handleChangeCate"></el-cascader> |
|||
<el-cascader class="cell-width-2" ref="myCascader" v-model="form.selCategoryArray" :key="iscascaderShow" |
|||
:options="casOptions" :props="optionProps" :show-all-levels="false" clearable |
|||
@change="handleChangeCate"></el-cascader> |
|||
</el-form-item> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
form:{ |
|||
selCategoryArray:{} |
|||
data() { |
|||
return { |
|||
form: { |
|||
selCategoryArray: {} |
|||
}, |
|||
selCateObj: {}, |
|||
iscascaderShow: 0 |
|||
}; |
|||
}, |
|||
props: { |
|||
casOptions: { |
|||
type: Array, |
|||
default: () => [] |
|||
}, |
|||
selCateObj:{}, |
|||
iscascaderShow:0 |
|||
}; |
|||
}, |
|||
props:{ |
|||
casOptions:{ |
|||
type:Array, |
|||
default:()=>[] |
|||
optionProps: { |
|||
type: Object, |
|||
default: () => { } |
|||
} |
|||
}, |
|||
optionProps:{ |
|||
type:Object, |
|||
default:()=>{} |
|||
} |
|||
}, |
|||
created() {}, |
|||
methods: { |
|||
handleChangeCate(){ |
|||
if(this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]){ |
|||
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|||
}else{ |
|||
this.selCateObj = {} |
|||
created() { }, |
|||
methods: { |
|||
handleChangeCate() { |
|||
if (this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]) { |
|||
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|||
} else { |
|||
this.selCateObj = {} |
|||
} |
|||
|
|||
this.$emit('handleChangeCate', this.selCateObj) |
|||
} |
|||
|
|||
this.$emit('handleChangeCate',this.selCateObj) |
|||
} |
|||
}, |
|||
mounted(){ |
|||
++this.iscascaderShow; |
|||
}, |
|||
components: {}, |
|||
computed: {}, |
|||
watch: {}, |
|||
}, |
|||
mounted() { |
|||
++this.iscascaderShow; |
|||
}, |
|||
components: {}, |
|||
computed: {}, |
|||
watch: {}, |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
|
|||
</style>> |
|||
<style lang="scss" scoped></style>> |
@ -0,0 +1,243 @@ |
|||
<!-- |
|||
* @Author: yanLu xgktv007@163.com |
|||
* @Date: 2023-09-05 10:21:34 |
|||
* @LastEditors: yanLu xgktv007@163.com |
|||
* @LastEditTime: 2023-09-05 10:21:34 |
|||
* @Description: 事件转办表单 |
|||
* |
|||
--> |
|||
<template> |
|||
<div class="search"> |
|||
<el-form ref="ref_form1" :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' }"> |
|||
<el-cascader class="cell-width-2" ref="myCascader" v-model="selCategoryArray" :key="iscascaderShow" |
|||
:options="casOptions" :props="optionProps" :show-all-levels="false" |
|||
@change="handleChangeCate"></el-cascader> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="处理部门" prop="agencyId" label-width="150px" :class="{ 'form-item': source === 'visiual' }"> |
|||
<el-cascader class="cell-width-2" ref="myCascader" v-model="agencyIdArray" :options="orgOptions" |
|||
:props="orgOptionProps" :show-all-levels="false" @change="handleChangeAgency"></el-cascader> |
|||
</el-form-item> |
|||
<el-form-item label="转办意见" prop="content" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block"> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-input class="cell-width-area" type="textarea" maxlength="500" show-word-limit :rows="5" |
|||
placeholder="请输入转办意见,不超过500字" v-model="formData.content"></el-input> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="办结时限" prop="timeLimit" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block"> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-date-picker v-model="formData.timeLimit" class="cell-width-1" type="datetime" placeholder="办结时限" |
|||
value-format="yyyy-MM-dd HH:mm:ss"> |
|||
</el-date-picker> |
|||
</div> |
|||
</el-form-item> |
|||
</el-form> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { Loading } from "element-ui"; // 引入Loading服务 |
|||
import { requestPost } from "@/js/dai/request"; |
|||
let loading; // 加载动画 |
|||
export default { |
|||
data() { |
|||
return { |
|||
btnDisable: false, |
|||
formData: { |
|||
operationType: "5", //处理方式[0:已回复 5、指派 6、完成并回复] |
|||
content: "",//转办意见 |
|||
timeLimit: "",//办结时限 |
|||
categoryList: [],//事件分类 |
|||
agencyId: "" //指派部门 |
|||
}, |
|||
orgOptions: [], |
|||
orgOptionProps: { |
|||
multiple: false, |
|||
value: 'agencyId', |
|||
label: 'agencyName', |
|||
children: 'subAgencyList', |
|||
checkStrictly: true |
|||
}, |
|||
agencyIdArray: [], |
|||
status: false, |
|||
okflag: false, |
|||
eventDetailCopy: {}, |
|||
selCategoryArray: [], |
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: "id", |
|||
label: "name", |
|||
children: "subCategory", |
|||
}, |
|||
dataRule: { |
|||
content: [ |
|||
{ required: true, message: "回复内容不能为空", trigger: "blur" }, |
|||
], |
|||
categoryList: [ |
|||
{ required: true, message: "事件分类不能为空", trigger: "blur" }, |
|||
], |
|||
agencyId: [ |
|||
{ required: true, message: "处理部门不能为空", trigger: "blur" }, |
|||
], |
|||
timeLimit: [ |
|||
{ required: true, message: "办结时限不能为空", trigger: "blur" }, |
|||
] |
|||
} |
|||
}; |
|||
}, |
|||
components: {}, |
|||
computed: {}, |
|||
props: { |
|||
eventId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default() { |
|||
return {}; |
|||
}, |
|||
}, |
|||
source: { |
|||
//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: "manage", |
|||
}, |
|||
}, |
|||
created() { |
|||
|
|||
}, |
|||
async mounted() { |
|||
const { user } = this.$store.state; |
|||
this.agencyId = user.agencyId; |
|||
this.getOrgTreeList(); |
|||
this.getCategoryList(); |
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
// 这一步接收到eventDetailCopy在这里回填 |
|||
if ( |
|||
this.eventDetailCopy.parentCategoryId && |
|||
this.eventDetailCopy.categoryId |
|||
) { |
|||
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId) |
|||
} |
|||
|
|||
} |
|||
}, |
|||
methods: { |
|||
//组织机构树 |
|||
async getOrgTreeList() { |
|||
const url = "/gov/org/customeragency/agencygridtree" |
|||
let params = { |
|||
agencyId: this.agencyId, |
|||
purpose: "query" |
|||
} |
|||
const { data, code, msg } = await requestPost(url, params) |
|||
if (code === 0) { |
|||
this.orgOptions = [] |
|||
this.orgOptions.push(data) |
|||
} else { |
|||
this.$message.error(msg) |
|||
} |
|||
}, |
|||
async getCategoryList() { |
|||
const url = "/governance/issueprojectcategorydict/list"; |
|||
let params = {}; |
|||
const { data, code, msg } = await requestPost(url, params); |
|||
if (code === 0) { |
|||
let treeDataNew = this.filterTree(data); |
|||
//组织级联数据 |
|||
++this.iscascaderShow; |
|||
this.casOptions = []; |
|||
this.casOptions = treeDataNew; |
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
handleChangeAgency(val) { |
|||
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|||
if (obj) { |
|||
this.formData.orgType = obj.level === 'grid' ? 'grid' : 'agency' |
|||
this.formData.orgId = obj.agencyId |
|||
|
|||
} else { |
|||
this.form.orgType = '' |
|||
this.form.orgId = '' |
|||
} |
|||
}, |
|||
handleChangeCate() { |
|||
if (this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]) { |
|||
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|||
} else { |
|||
this.selCateObj = {} |
|||
} |
|||
}, |
|||
//重构树,去除网格 |
|||
filterTree(arr) { |
|||
let childs = arr; |
|||
for (let i = childs.length; i--; i > 0) { |
|||
if (childs[i].subCategory) { |
|||
if (childs[i].subCategory.length) { |
|||
this.filterTree(childs[i].subCategory); |
|||
} else { |
|||
delete childs[i].subCategory; |
|||
} |
|||
} |
|||
} |
|||
return arr; |
|||
}, |
|||
async getReplayInfo() { |
|||
this.okflag = false; |
|||
this.$refs["ref_form1"].validate((valid, messageObj) => { |
|||
if (!valid) { |
|||
app.util.validateRule(messageObj); |
|||
} else { |
|||
if (!this.selCateObj || !this.selCateObj.id) { |
|||
this.$message.error("请选择事件分类"); |
|||
return false; |
|||
} |
|||
this.formData.status = "processing"; |
|||
this.formData.categoryId = this.selCateObj.id; |
|||
this.formData.categoryList = []; |
|||
this.formData.categoryList.push(this.selCateObj); |
|||
this.okflag = true; |
|||
} |
|||
}); |
|||
}, |
|||
resetData() { |
|||
this.agencyIdArray = [] |
|||
}, |
|||
// 开启加载动画 |
|||
startLoading() { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: "正在加载……", // 加载中需要显示的文字 |
|||
background: "rgba(0,0,0,.7)", // 背景颜色 |
|||
}); |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading() { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
@import "@/assets/scss/modules/visual/a_customize.scss"; |
|||
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
|||
|
|||
.el-dialog__body { |
|||
padding: 0 10px 20px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,188 @@ |
|||
<!-- |
|||
* @Author: yanLu xgktv007@163.com |
|||
* @Date: 2023-09-05 10:21:34 |
|||
* @LastEditors: yanLu xgktv007@163.com |
|||
* @LastEditTime: 2023-09-05 10:21:34 |
|||
* @Description: 事件回复 |
|||
* |
|||
* |
|||
--> |
|||
<template> |
|||
<div class="search"> |
|||
<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' }"> |
|||
<el-cascader class="cell-width-2" ref="myCascader" v-model="selCategoryArray" :key="iscascaderShow" |
|||
:options="casOptions" :props="optionProps" :show-all-levels="false" |
|||
@change="handleChangeCate"></el-cascader> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="回复内容" prop="content" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block"> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-input class="cell-width-area" type="textarea" maxlength="500" show-word-limit :rows="5" |
|||
placeholder="请输入回复内容,不超过500字" v-model="formData.content"></el-input> |
|||
</div> |
|||
</el-form-item> |
|||
</el-form> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { Loading } from "element-ui"; // 引入Loading服务 |
|||
import { requestPost } from "@/js/dai/request"; |
|||
let loading; // 加载动画 |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
btnDisable: false, |
|||
formData: { |
|||
operationType: '6', //处理方式[0:已回复 5、指派 6、完成并回复] |
|||
content: '', |
|||
status: 'closed_case', |
|||
categoryList: [], |
|||
}, |
|||
status: false, |
|||
okflag: false, |
|||
eventDetailCopy: {}, |
|||
selCategoryArray: [], |
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'id', |
|||
label: 'name', |
|||
children: 'subCategory', |
|||
}, |
|||
dataRule: { |
|||
content: [ |
|||
{ required: true, message: '回复内容不能为空', trigger: 'blur' }, |
|||
], |
|||
categoryList: [ |
|||
// { required: true, message: '事件分类不能为空', trigger: 'blur' }, |
|||
] |
|||
} |
|||
}; |
|||
}, |
|||
components: {}, |
|||
computed: {}, |
|||
props: { |
|||
eventId: { |
|||
type: String, |
|||
default: '', |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default() { |
|||
return {}; |
|||
}, |
|||
}, |
|||
source: { |
|||
//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: 'manage', |
|||
}, |
|||
}, |
|||
watch: {}, |
|||
|
|||
created() {}, |
|||
|
|||
async mounted() { |
|||
this.getCategoryList(); |
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
// 这一步接收到eventDetailCopy在这里回填 |
|||
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
|||
this.formData.categoryId = this.eventDetailCopy.categoryId |
|||
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId) |
|||
} |
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
async getCategoryList() { |
|||
const url = '/governance/issueprojectcategorydict/list'; |
|||
let params = {}; |
|||
const { data, code, msg } = await requestPost(url, params); |
|||
if (code === 0) { |
|||
let treeDataNew = this.filterTree(data); |
|||
//组织级联数据 |
|||
++this.iscascaderShow; |
|||
this.casOptions = []; |
|||
this.casOptions = treeDataNew; |
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
handleChangeCate() { |
|||
if (this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0]) { |
|||
this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0].data |
|||
} else { |
|||
this.selCateObj = {} |
|||
} |
|||
}, |
|||
//重构树,去除网格 |
|||
filterTree(arr) { |
|||
let childs = arr; |
|||
for (let i = childs.length; i--; i > 0) { |
|||
if (childs[i].subCategory) { |
|||
if (childs[i].subCategory.length) { |
|||
this.filterTree(childs[i].subCategory); |
|||
} else { |
|||
delete childs[i].subCategory; |
|||
} |
|||
} |
|||
} |
|||
return arr; |
|||
}, |
|||
async getReplayInfo() { |
|||
this.okflag = false; |
|||
this.$refs['ref_form2'].validate((valid, messageObj) => { |
|||
if (!valid) { |
|||
app.util.validateRule(messageObj); |
|||
} else { |
|||
if (this.status) { |
|||
if (!this.selCateObj || !this.selCateObj.id) { |
|||
this.$message.error('请选择事件分类'); |
|||
return false; |
|||
} |
|||
} |
|||
if (!this.formData.categoryId) { |
|||
this.formData.categoryId = this.selCateObj.id; |
|||
} |
|||
this.formData.categoryList = []; |
|||
this.formData.categoryList.push(this.selCateObj); |
|||
this.okflag = true; |
|||
} |
|||
}); |
|||
}, |
|||
resetData() { }, |
|||
// 开启加载动画 |
|||
startLoading() { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: '正在加载……', // 加载中需要显示的文字 |
|||
background: 'rgba(0,0,0,.7)', // 背景颜色 |
|||
}); |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading() { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
@import '@/assets/scss/modules/visual/a_customize.scss'; |
|||
@import '@/assets/scss/modules/shequzhili/event-info.scss'; |
|||
|
|||
.el-dialog__body { |
|||
padding: 0 10px 20px !important; |
|||
} |
|||
</style> |
@ -1,262 +1,204 @@ |
|||
<!-- |
|||
* @Author: mk 2403457699@qq.com |
|||
* @Date: 2023-07-26 16:23:24 |
|||
* @LastEditors: mk 2403457699@qq.com |
|||
* @LastEditTime: 2023-08-09 10:21:34 |
|||
* @Description: 事件分类回填 |
|||
* @Author: yanLu xgktv007@163.com |
|||
* @Date: 2023-09-05 10:21:34 |
|||
* @LastEditors: yanLu xgktv007@163.com |
|||
* @LastEditTime: 2023-09-05 10:21:34 |
|||
* @Description: 事件回复 |
|||
* |
|||
* |
|||
--> |
|||
<template> |
|||
<div class="search"> |
|||
<el-form |
|||
ref="ref_form1" |
|||
: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' }"> |
|||
<el-cascader class="cell-width-2" |
|||
ref="myCascader" |
|||
v-model="selCategoryArray" |
|||
:key="iscascaderShow" |
|||
:options="casOptions" |
|||
:props="optionProps" |
|||
:show-all-levels="false" |
|||
@change="handleChangeCate"></el-cascader> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item |
|||
label="回复内容" |
|||
prop="content" |
|||
label-width="150px" |
|||
:class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block" |
|||
> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-input |
|||
class="cell-width-area" |
|||
type="textarea" |
|||
maxlength="500" |
|||
show-word-limit |
|||
:rows="5" |
|||
placeholder="请输入回复内容,不超过500字" |
|||
v-model="formData.content" |
|||
></el-input> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item |
|||
label="" |
|||
label-width="150px" |
|||
:class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block" |
|||
> |
|||
<el-checkbox |
|||
:class="{ 'form-item': source === 'visiual' }" |
|||
v-model="status" |
|||
@change="handleChangeStatus" |
|||
>已完成</el-checkbox |
|||
> |
|||
</el-form-item> |
|||
</el-form> |
|||
</div> |
|||
<div class="search"> |
|||
<el-form ref="ref_form1" :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' }"> |
|||
<el-cascader class="cell-width-2" ref="myCascader" v-model="selCategoryArray" :key="iscascaderShow" |
|||
:options="casOptions" :props="optionProps" :show-all-levels="false" |
|||
@change="handleChangeCate"></el-cascader> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="回复内容" prop="content" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block"> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-input class="cell-width-area" type="textarea" maxlength="500" show-word-limit :rows="5" |
|||
placeholder="请输入回复内容,不超过500字" v-model="formData.content"></el-input> |
|||
</div> |
|||
</el-form-item> |
|||
<el-form-item label="办结时限" prop="timeLimit" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
style="display: block"> |
|||
<div :class="{ 'visiual-form': source === 'visiual' }"> |
|||
<el-date-picker v-model="formData.timeLimit" class="cell-width-1" type="datetime" placeholder="办结时限" |
|||
value-format="yyyy-MM-dd HH:mm:ss"> |
|||
</el-date-picker> |
|||
</div> |
|||
</el-form-item> |
|||
</el-form> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { Loading } from "element-ui"; // 引入Loading服务 |
|||
import { requestPost } from "@/js/dai/request"; |
|||
import formVltHelper from "dai-js/tools/formVltHelper"; |
|||
|
|||
import { isCard } from "@/utils/validate"; |
|||
let loading; // 加载动画 |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
btnDisable: false, |
|||
formData: { |
|||
operationType: "0", //处理方式[0:已回复 1:已转项目 2:已转需求] |
|||
content: "", |
|||
status: "", |
|||
categoryList: [], |
|||
}, |
|||
|
|||
status: false, |
|||
okflag: false, |
|||
|
|||
eventDetailCopy: {}, |
|||
selCategoryArray:[], |
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: "id", |
|||
label: "name", |
|||
children: "subCategory", |
|||
}, |
|||
dataRule:{ |
|||
content: [ |
|||
{ required: true, message: "回复内容不能为空", trigger: "blur" }, |
|||
], |
|||
categoryList: [ |
|||
// { required: true, message: "事件分类不能为空", trigger: "blur" }, |
|||
], |
|||
} |
|||
}; |
|||
}, |
|||
components: { }, |
|||
computed: {}, |
|||
props: { |
|||
eventId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default() { |
|||
return {}; |
|||
}, |
|||
data() { |
|||
return { |
|||
btnDisable: false, |
|||
formData: { |
|||
operationType: '0', //处理方式[0:已回复 5、指派 6、完成并回复] |
|||
content: '', |
|||
status: 'processing', |
|||
timeLimit: '',//办结时限 |
|||
categoryList: [], |
|||
}, |
|||
status: false, |
|||
okflag: false, |
|||
eventDetailCopy: {}, |
|||
selCategoryArray: [], |
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'id', |
|||
label: 'name', |
|||
children: 'subCategory', |
|||
}, |
|||
dataRule: { |
|||
content: [ |
|||
{ required: true, message: '回复内容不能为空', trigger: 'blur' }, |
|||
], |
|||
categoryList: [ |
|||
// { required: true, message: '事件分类不能为空', trigger: 'blur' }, |
|||
], |
|||
timeLimit: [ |
|||
{ required: true, message: "办结时限不能为空", trigger: "blur" }, |
|||
] |
|||
} |
|||
}; |
|||
}, |
|||
source: { |
|||
//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: "manage", |
|||
components: {}, |
|||
computed: {}, |
|||
props: { |
|||
eventId: { |
|||
type: String, |
|||
default: '', |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default() { |
|||
return {}; |
|||
}, |
|||
}, |
|||
source: { |
|||
//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: 'manage', |
|||
}, |
|||
}, |
|||
}, |
|||
watch: {}, |
|||
|
|||
created() { |
|||
console.log(this.source); |
|||
}, |
|||
|
|||
async mounted() { |
|||
this.getCategoryList(); |
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
// 这一步接收到eventDetailCopy在这里回填 |
|||
if ( |
|||
this.eventDetailCopy.parentCategoryId && |
|||
this.eventDetailCopy.categoryId |
|||
) { |
|||
this.selCategoryArray.push( this.eventDetailCopy.parentCategoryId,this.eventDetailCopy.categoryId) |
|||
} |
|||
watch: { |
|||
|
|||
} |
|||
}, |
|||
|
|||
methods: { |
|||
async getCategoryList() { |
|||
const url = "/governance/issueprojectcategorydict/list"; |
|||
|
|||
let params = {}; |
|||
|
|||
const { data, code, msg } = await requestPost(url, params); |
|||
|
|||
if (code === 0) { |
|||
let treeDataNew = this.filterTree(data); |
|||
}, |
|||
|
|||
//组织级联数据 |
|||
++this.iscascaderShow; |
|||
this.casOptions = []; |
|||
created() { |
|||
|
|||
this.casOptions = treeDataNew; |
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
}, |
|||
|
|||
handleChangeCate() { |
|||
if(this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]){ |
|||
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|||
}else{ |
|||
this.selCateObj = {} |
|||
async mounted() { |
|||
this.getCategoryList(); |
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
// 这一步接收到eventDetailCopy在这里回填 |
|||
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
|||
this.formData.categoryId = this.eventDetailCopy.categoryId |
|||
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId) |
|||
} |
|||
} |
|||
console.log(this.selCateObj); |
|||
}, |
|||
|
|||
//重构树,去除网格 |
|||
filterTree(arr) { |
|||
let childs = arr; |
|||
for (let i = childs.length; i--; i > 0) { |
|||
if (childs[i].subCategory) { |
|||
if (childs[i].subCategory.length) { |
|||
this.filterTree(childs[i].subCategory); |
|||
} else { |
|||
delete childs[i].subCategory; |
|||
} |
|||
} |
|||
} |
|||
return arr; |
|||
}, |
|||
async getReplayInfo() { |
|||
this.okflag = false; |
|||
this.$refs["ref_form1"].validate((valid, messageObj) => { |
|||
if (!valid) { |
|||
app.util.validateRule(messageObj); |
|||
} else { |
|||
if (this.status) { |
|||
console.log(this.selCateObj); |
|||
if (!this.selCateObj || !this.selCateObj.id) { |
|||
this.$message.error("请选择事件分类"); |
|||
return false; |
|||
methods: { |
|||
async getCategoryList() { |
|||
const url = '/governance/issueprojectcategorydict/list'; |
|||
let params = {}; |
|||
const { data, code, msg } = await requestPost(url, params); |
|||
if (code === 0) { |
|||
let treeDataNew = this.filterTree(data); |
|||
//组织级联数据 |
|||
++this.iscascaderShow; |
|||
this.casOptions = []; |
|||
this.casOptions = treeDataNew; |
|||
} else { |
|||
this.$message.error(msg); |
|||
} |
|||
this.formData.status = "closed_case"; |
|||
} else { |
|||
this.formData.status = "processing"; |
|||
} |
|||
this.formData.categoryId = this.selCateObj.id; |
|||
this.formData.categoryList = []; |
|||
this.formData.categoryList.push(this.selCateObj); |
|||
|
|||
this.okflag = true; |
|||
} |
|||
}); |
|||
}, |
|||
handleChangeStatus(val){ |
|||
console.log(val); |
|||
if(!val){ |
|||
this.$set(this.dataRule,'categoryList',[]) |
|||
}else{ |
|||
this.$set(this.dataRule,'categoryList',[{ required: true, message: "事件分类不能为空", trigger: "blur" }]) |
|||
} |
|||
console.log(this.dataRule); |
|||
}, |
|||
resetData() {}, |
|||
// 开启加载动画 |
|||
startLoading() { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: "正在加载……", // 加载中需要显示的文字 |
|||
background: "rgba(0,0,0,.7)", // 背景颜色 |
|||
}); |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading() { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
handleChangeCate() { |
|||
if (this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0]) { |
|||
this.selCateObj = this.$refs['myCascader'].getCheckedNodes()[0].data |
|||
} else { |
|||
this.selCateObj = {} |
|||
} |
|||
}, |
|||
//重构树,去除网格 |
|||
filterTree(arr) { |
|||
let childs = arr; |
|||
for (let i = childs.length; i--; i > 0) { |
|||
if (childs[i].subCategory) { |
|||
if (childs[i].subCategory.length) { |
|||
this.filterTree(childs[i].subCategory); |
|||
} else { |
|||
delete childs[i].subCategory; |
|||
} |
|||
} |
|||
} |
|||
return arr; |
|||
}, |
|||
async getReplayInfo() { |
|||
this.okflag = false; |
|||
this.$refs['ref_form1'].validate((valid, messageObj) => { |
|||
if (!valid) { |
|||
app.util.validateRule(messageObj); |
|||
} else { |
|||
if (this.status) { |
|||
if (!this.selCateObj || !this.selCateObj.id) { |
|||
this.$message.error('请选择事件分类'); |
|||
return false; |
|||
} |
|||
} |
|||
if (!this.formData.categoryId) { |
|||
this.formData.categoryId = this.selCateObj.id; |
|||
} |
|||
this.formData.categoryList = []; |
|||
this.formData.categoryList.push(this.selCateObj); |
|||
this.okflag = true; |
|||
} |
|||
}); |
|||
}, |
|||
resetData() { }, |
|||
// 开启加载动画 |
|||
startLoading() { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: '正在加载……', // 加载中需要显示的文字 |
|||
background: 'rgba(0,0,0,.7)', // 背景颜色 |
|||
}); |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading() { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
|
|||
<style lang='scss' scoped> |
|||
@import "@/assets/scss/modules/visual/a_customize.scss"; |
|||
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
|||
</style> |
|||
|
|||
|
|||
@import '@/assets/scss/modules/visual/a_customize.scss'; |
|||
@import '@/assets/scss/modules/shequzhili/event-info.scss'; |
|||
|
|||
<style scoped> |
|||
.el-dialog__body { |
|||
padding: 0 10px 20px !important; |
|||
padding: 0 10px 20px !important; |
|||
} |
|||
</style> |
|||
|
@ -1,281 +1,193 @@ |
|||
<template> |
|||
<div class=""> |
|||
<div> |
|||
|
|||
<el-form ref="ref_form1" |
|||
:inline="false" |
|||
:rules="dataRule" |
|||
class="form"> |
|||
|
|||
<el-form-item label="处理方式" |
|||
label-width="150px" |
|||
:class="{'form-item':source==='visiual'}" |
|||
prop="operationType"> |
|||
<el-radio-group :class="{'form-item':source==='visiual'}" |
|||
v-model="operationType" |
|||
@change="handleChangeOperationType"> |
|||
<el-radio v-if="!eventId" |
|||
label="4">暂不处理</el-radio> |
|||
<el-radio label="0">回复</el-radio> |
|||
<el-radio label="1">立项</el-radio> |
|||
<el-radio label="2">转服务</el-radio> |
|||
<el-radio label="3">转议题</el-radio> |
|||
|
|||
</el-radio-group> |
|||
</el-form-item> |
|||
|
|||
</el-form> |
|||
|
|||
<div v-if="operationType==='0'"> |
|||
<process-form-replay ref="ref_process_form_replay" |
|||
:source="source" |
|||
:eventDetailData="eventDetailData" |
|||
:eventId="eventId"></process-form-replay> |
|||
</div> |
|||
|
|||
<div v-if="operationType==='1'"> |
|||
<process-form-project ref="ref_process_form_project" |
|||
:source="source" |
|||
:eventDetailData="eventDetailData" |
|||
:gridId="gridId" |
|||
:eventId="eventId"></process-form-project> |
|||
</div> |
|||
|
|||
<div v-if="operationType==='2'"> |
|||
<process-form-demand ref="ref_process_form_demond" |
|||
:source="source" |
|||
:eventId="eventId" |
|||
:transferObj="transferObj" |
|||
:demandUserId="demandUserId" |
|||
:demandUserName="demandUserName" |
|||
:demandUserMobile="demandUserMobile" |
|||
:eventDetailData="eventDetailData"></process-form-demand> |
|||
|
|||
</div> |
|||
<div v-if="operationType==='3'"> |
|||
<process-form-issue ref="ref_process_form_issue" |
|||
:source="source" |
|||
:eventDetailData="eventDetailData" |
|||
:eventId="eventId"></process-form-issue> |
|||
|
|||
</div> |
|||
|
|||
<div class=""> |
|||
<div> |
|||
<el-form ref="ref_form1" :inline="false" :rules="dataRule" class="form"> |
|||
<el-form-item label="处理方式" label-width="150px" :class="{ 'form-item': source === 'visiual' }" |
|||
prop="operationType"> |
|||
<el-radio-group :class="{ 'form-item': source === 'visiual' }" v-model="operationType" |
|||
@change="handleChangeOperationType"> |
|||
<el-radio v-if="!eventId" label="4">暂不处理</el-radio> |
|||
<el-radio label="0">回复</el-radio> |
|||
<el-radio label="5">指派</el-radio> |
|||
<el-radio label="6">完成并回复</el-radio> |
|||
</el-radio-group> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div v-if="operationType === '0'"> |
|||
<process-form-replay ref="ref_process_form_replay" :source="source" :eventDetailData="eventDetailData" |
|||
:eventId="eventId"></process-form-replay> |
|||
</div> |
|||
<div v-if="operationType === '6'"> |
|||
<process-form-replay-end ref="ref_process_form_replay_end" :source="source" |
|||
:eventDetailData="eventDetailData" :eventId="eventId"></process-form-replay-end> |
|||
</div> |
|||
<div v-if="operationType === '5'"> |
|||
<process-form-designate ref="ref_process_form_designate" :source="source" :eventDetailData="eventDetailData" |
|||
:eventId="eventId"></process-form-designate> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { Loading } from "element-ui"; // 引入Loading服务 |
|||
import { requestPost } from "@/js/dai/request"; |
|||
import processFormReplay from "./process-form-replay"; |
|||
import processFormReplayEnd from "./process-form-replay-end"; |
|||
import processFormProject from "./process-form-project"; |
|||
import processFormDemand from "./process-form-demand"; |
|||
import processFormIssue from "./process-form-issue"; |
|||
import processFormDesignate from "./process-form-designate"; |
|||
|
|||
|
|||
let loading; // 加载动画 |
|||
|
|||
export default { |
|||
data () { |
|||
return { |
|||
|
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
selCategoryArray: [], |
|||
selCateObj: {}, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'id', |
|||
label: 'name', |
|||
children: 'subCategory', |
|||
}, |
|||
|
|||
operationType: '', |
|||
|
|||
|
|||
replayInfo: {}, |
|||
demand: {}, |
|||
project: {}, |
|||
issueInfo: {}, |
|||
okflag: false, |
|||
|
|||
eventDetailCopy: {}, |
|||
transferObj:{ |
|||
latitude :"", |
|||
longitude :"" |
|||
} |
|||
}; |
|||
}, |
|||
components: { |
|||
processFormReplay, |
|||
processFormProject, |
|||
processFormDemand, |
|||
processFormIssue |
|||
}, |
|||
computed: { |
|||
dataRule () { |
|||
return { |
|||
|
|||
operationType: [ |
|||
{ required: true, message: "处理方式不能为空", trigger: "blur" }, |
|||
], |
|||
|
|||
}; |
|||
}, |
|||
|
|||
|
|||
}, |
|||
props: { |
|||
demandUserId: { |
|||
type: String, |
|||
default: "", |
|||
data() { |
|||
return { |
|||
casOptions: [], |
|||
iscascaderShow: 0, |
|||
selCategoryArray: [], |
|||
selCateObj: {}, |
|||
optionProps: { |
|||
multiple: false, |
|||
value: 'id', |
|||
label: 'name', |
|||
children: 'subCategory', |
|||
}, |
|||
operationType: '', |
|||
replayInfo: {}, |
|||
demand: {}, |
|||
project: {}, |
|||
issueInfo: {}, |
|||
okflag: false, |
|||
eventDetailCopy: {}, |
|||
transferObj: { |
|||
latitude: "", |
|||
longitude: "" |
|||
} |
|||
}; |
|||
}, |
|||
demandUserName: { |
|||
type: String, |
|||
default: "", |
|||
components: { |
|||
processFormReplay, |
|||
processFormProject, |
|||
processFormDemand, |
|||
processFormIssue, |
|||
processFormDesignate, |
|||
processFormReplayEnd |
|||
}, |
|||
demandUserMobile: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
gridId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default () { |
|||
return {} |
|||
} |
|||
}, |
|||
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: 'manage' |
|||
} |
|||
}, |
|||
|
|||
watch: { |
|||
|
|||
}, |
|||
|
|||
created () { |
|||
|
|||
console.log(this.source) |
|||
|
|||
}, |
|||
|
|||
async mounted () { |
|||
const { user } = this.$store.state |
|||
this.agencyId = user.agencyId |
|||
|
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
|
|||
} |
|||
if(this.eventDetailData.operationType){ |
|||
this.operationType = this.eventDetailCopy.operationType |
|||
// this.getProcessInfo() |
|||
} |
|||
this.$EventBus.$on('map',(val)=>{ |
|||
this.transferObj.latitude = val.lat |
|||
this.transferObj.longitude = val.lng |
|||
}) |
|||
}, |
|||
|
|||
methods: { |
|||
handleChangeOperationType (val) { |
|||
|
|||
computed: { |
|||
dataRule() { |
|||
return { |
|||
operationType: [ |
|||
{ required: true, message: "处理方式不能为空", trigger: "blur" }, |
|||
], |
|||
}; |
|||
}, |
|||
}, |
|||
async getProcessInfo () { |
|||
this.okflag = false |
|||
if (this.operationType === '0') { |
|||
this.$refs.ref_process_form_replay.getReplayInfo() |
|||
if (this.$refs.ref_process_form_replay.okflag) { |
|||
this.replayInfo = this.$refs.ref_process_form_replay.formData |
|||
|
|||
this.okflag = true |
|||
|
|||
} else { |
|||
return false |
|||
props: { |
|||
demandUserId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
demandUserName: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
demandUserMobile: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
gridId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventId: { |
|||
type: String, |
|||
default: "", |
|||
}, |
|||
eventDetailData: { |
|||
type: Object, |
|||
default() { |
|||
return {} |
|||
} |
|||
}, |
|||
source: {//展示来源:manage 管理平台 visiual 可视化平台 |
|||
type: String, |
|||
default: 'manage' |
|||
} |
|||
}, |
|||
|
|||
} else if (this.operationType === '1') { |
|||
this.$refs.ref_process_form_project.getProjectInfo() |
|||
if (this.$refs.ref_process_form_project.okflag) { |
|||
|
|||
this.project = this.$refs.ref_process_form_project.formData |
|||
watch: {}, |
|||
|
|||
//赋值分类信息 |
|||
this.okflag = true |
|||
created() {}, |
|||
|
|||
} else { |
|||
return false |
|||
async mounted() { |
|||
const { user } = this.$store.state |
|||
this.agencyId = user.agencyId |
|||
if (this.eventId) { |
|||
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|||
} |
|||
} else if (this.operationType === '2') { |
|||
this.$refs.ref_process_form_demond.getDemandInfo() |
|||
if (this.$refs.ref_process_form_demond.okflag) { |
|||
this.demand = this.$refs.ref_process_form_demond.formData |
|||
|
|||
this.okflag = true |
|||
|
|||
} else { |
|||
return false |
|||
if (this.eventDetailData.operationType) { |
|||
this.operationType = this.eventDetailCopy.operationType |
|||
} |
|||
} else if (this.operationType === '3') { |
|||
this.$refs.ref_process_form_issue.getIssueInfo() |
|||
if (this.$refs.ref_process_form_issue.okflag) { |
|||
this.issueInfo = this.$refs.ref_process_form_issue.formData |
|||
|
|||
this.okflag = true |
|||
|
|||
} else { |
|||
return false |
|||
} |
|||
} |
|||
|
|||
this.$EventBus.$on('map', (val) => { |
|||
this.transferObj.latitude = val.lat |
|||
this.transferObj.longitude = val.lng |
|||
}) |
|||
}, |
|||
|
|||
|
|||
handleCancle () { |
|||
this.resetData(); |
|||
|
|||
methods: { |
|||
handleChangeOperationType(val) { |
|||
this.operationType = val; |
|||
}, |
|||
async getProcessInfo() { |
|||
this.okflag = false |
|||
debugger |
|||
if (this.operationType === '0') { |
|||
this.$refs.ref_process_form_replay.getReplayInfo() |
|||
if (this.$refs.ref_process_form_replay.okflag) { |
|||
this.replayInfo = this.$refs.ref_process_form_replay.formData; |
|||
this.okflag = true; |
|||
} |
|||
} else if (this.operationType === '6') { |
|||
this.$refs.ref_process_form_replay_end.getReplayInfo() |
|||
this.replayInfo = this.$refs.ref_process_form_replay_end.formData |
|||
if (this.$refs.ref_process_form_replay_end.okflag) { |
|||
this.replayInfo = this.$refs.ref_process_form_replay_end.formData |
|||
this.okflag = true |
|||
} |
|||
} |
|||
}, |
|||
handleCancle() { |
|||
this.resetData(); |
|||
}, |
|||
// 开启加载动画 |
|||
startLoading() { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: "正在加载……", // 加载中需要显示的文字 |
|||
background: "rgba(0,0,0,.7)", // 背景颜色 |
|||
}); |
|||
}, |
|||
resetData() { |
|||
|
|||
}, |
|||
// 结束加载动画 |
|||
endLoading() { |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
}, |
|||
resetData () { |
|||
|
|||
}, |
|||
// 开启加载动画 |
|||
startLoading () { |
|||
loading = Loading.service({ |
|||
lock: true, // 是否锁定 |
|||
text: "正在加载……", // 加载中需要显示的文字 |
|||
background: "rgba(0,0,0,.7)", // 背景颜色 |
|||
}); |
|||
}, |
|||
// 结束加载动画 |
|||
endLoading () { |
|||
// clearTimeout(timer); |
|||
if (loading) { |
|||
loading.close(); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
|
|||
<style lang="scss" scoped> |
|||
@import "@/assets/scss/modules/shequzhili/event-info.scss"; |
|||
</style> |
|||
|
|||
|
|||
|
|||
<style scoped> |
|||
.el-dialog__body { |
|||
padding: 0 10px 20px !important; |
|||
padding: 0 10px 20px !important; |
|||
} |
|||
</style> |
|||
|
File diff suppressed because it is too large
Loading…
Reference in new issue