@@ -9,5 +9,6 @@ const getters = { | |||||
nickName: state => state.user.nickName, | nickName: state => state.user.nickName, | ||||
baseRoutingUrl: state => state.user.baseRoutingUrl, | baseRoutingUrl: state => state.user.baseRoutingUrl, | ||||
businessLevel: state => state.user.businessLevel, | |||||
} | } | ||||
export default getters | export default getters |
@@ -15,6 +15,7 @@ const user = { | |||||
nickName: '', | nickName: '', | ||||
baseRoutingUrl: '', | baseRoutingUrl: '', | ||||
businessLevel: '', | |||||
}, | }, | ||||
mutations: { | mutations: { | ||||
@@ -51,6 +52,9 @@ const user = { | |||||
SET_baseRoutingUrl: (state, baseRoutingUrl) => { | SET_baseRoutingUrl: (state, baseRoutingUrl) => { | ||||
state.baseRoutingUrl = baseRoutingUrl | state.baseRoutingUrl = baseRoutingUrl | ||||
}, | }, | ||||
SET_businessLevel: (state, businessLevel) => { | |||||
state.businessLevel = businessLevel | |||||
}, | |||||
}, | }, | ||||
actions: { | actions: { | ||||
@@ -128,6 +132,8 @@ const user = { | |||||
commit('SET_DEPTNAME', user.deptName) | commit('SET_DEPTNAME', user.deptName) | ||||
commit('SET_AVATAR', avatar) | commit('SET_AVATAR', avatar) | ||||
commit('SET_NICKNAME', user.nickName); | commit('SET_NICKNAME', user.nickName); | ||||
commit('SET_businessLevel', user.businessLevel); | |||||
//commit('SET_businessLevel', 'TEST'); | |||||
getSystemAttachmentUrl().then((resp) => { | getSystemAttachmentUrl().then((resp) => { | ||||
commit('SET_baseRoutingUrl', resp.msg); | commit('SET_baseRoutingUrl', resp.msg); | ||||
@@ -15,8 +15,8 @@ | |||||
<div class="main" style="padding-bottom: 1rem;"> | <div class="main" style="padding-bottom: 1rem;"> | ||||
<van-form ref="form"> | <van-form ref="form"> | ||||
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<p class="topTit">纠纷调请</p> | |||||
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<!-- <p class="topTit">纠纷调请</p>--> | |||||
<template> <!-- 申请 基本信息 --> | <template> <!-- 申请 基本信息 --> | ||||
<div> | <div> | ||||
<p class="main_title">基本信息</p> | <p class="main_title">基本信息</p> | ||||
@@ -31,10 +31,10 @@ | |||||
placeholder="选择宅基地申请" | placeholder="选择宅基地申请" | ||||
:rules="[{ required: true }]" | :rules="[{ required: true }]" | ||||
required | required | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:columns="userHouseApplyProposer" | :columns="userHouseApplyProposer" | ||||
/> | /> | ||||
<van-field :readonly="!formEnabled.baseFormEnabled" v-model="arbitrationData.disputant" label="纠纷人" placeholder="纠纷人" input-align="right" required :rules="[{ required: true }]"/> | |||||
<van-field :readonly="!allowCUD || !formEnabled.baseFormEnabled" v-model="arbitrationData.disputant" label="纠纷人" placeholder="纠纷人" input-align="right" required :rules="[{ required: true }]"/> | |||||
<field-date-picker | <field-date-picker | ||||
v-model="arbitrationData.applyTime" | v-model="arbitrationData.applyTime" | ||||
label="申请时间" | label="申请时间" | ||||
@@ -42,7 +42,7 @@ | |||||
:rules="[{ required: true }]" | :rules="[{ required: true }]" | ||||
formatter="yyyy-MM-dd" | formatter="yyyy-MM-dd" | ||||
required | required | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
/> | /> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -57,7 +57,7 @@ | |||||
placeholder="纠纷事项" | placeholder="纠纷事项" | ||||
input-align="left" | input-align="left" | ||||
v-model="arbitrationData.disputes" | v-model="arbitrationData.disputes" | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:rules="[{ required: true }]" required | :rules="[{ required: true }]" required | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -73,7 +73,7 @@ | |||||
placeholder="备注说明" | placeholder="备注说明" | ||||
input-align="left" | input-align="left" | ||||
v-model="arbitrationData.remark" | v-model="arbitrationData.remark" | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:rules="[{ required: true }]" required | :rules="[{ required: true }]" required | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -85,7 +85,7 @@ | |||||
</div> | </div> | ||||
<!-- 底部按钮 --> | <!-- 底部按钮 --> | ||||
<van-goods-action style="z-index: 999;" v-if="formVisible.editVisible || formVisible.operationVisible || formVisible.approvalVisible"> | |||||
<van-goods-action style="z-index: 999;" v-if="allowCUD && (formVisible.editVisible || formVisible.operationVisible || formVisible.approvalVisible)"> | |||||
<template v-if="formVisible.editVisible"> | <template v-if="formVisible.editVisible"> | ||||
<van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" :disabled="!formEnabled.baseFormEnabled" v-if="formEnabled.baseFormEnabled"/> | <van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" :disabled="!formEnabled.baseFormEnabled" v-if="formEnabled.baseFormEnabled"/> | ||||
<van-goods-action-button type="primary" :text="formEnabled.baseFormEnabled ? '保存并提交' : '提交'" @click="onSubmit(formEnabled.baseFormEnabled ? 'save_and_submit' : 'submit')" v-if="formEnabled.submitEnabled"/> | <van-goods-action-button type="primary" :text="formEnabled.baseFormEnabled ? '保存并提交' : '提交'" @click="onSubmit(formEnabled.baseFormEnabled ? 'save_and_submit' : 'submit')" v-if="formEnabled.submitEnabled"/> | ||||
@@ -101,20 +101,11 @@ | |||||
</template> | </template> | ||||
</van-goods-action> | </van-goods-action> | ||||
<van-popup | |||||
v-model="menuVisible" | |||||
closeable | |||||
position="bottom" | |||||
:close-on-click-overlay="true" | |||||
:lazy-render="false" | |||||
> | |||||
<van-cell title="菜单"></van-cell> | |||||
<van-cell-group inset> | |||||
<van-cell title="调解/冲裁员" is-link @click="openArbitrationHandlerPage()"/> | |||||
<van-cell title="处理过程" is-link @click="openArbitrationProcessPage()"/> | |||||
</van-cell-group> | |||||
</van-popup> | |||||
<van-action-sheet v-model="menuVisible" :actions="menuActions" @select="onActionSelect" | |||||
cancel-text="取消" | |||||
title="详细信息" | |||||
close-on-click-action> | |||||
</van-action-sheet> | |||||
</div> | </div> | ||||
</template> | </template> | ||||
@@ -175,6 +166,10 @@ export default { | |||||
currentUserRole: null, | currentUserRole: null, | ||||
userHouseApplyProposer: [], | userHouseApplyProposer: [], | ||||
menuVisible: false, | menuVisible: false, | ||||
menuActions: [ | |||||
{name: '调解/冲裁员', route: {name:'arbitrationHandlerList', query: {}}}, | |||||
{name: '处理过程', route: {name:'arbitrationProcessList', query: {}}}, | |||||
] | |||||
}; | }; | ||||
}, | }, | ||||
created() { | created() { | ||||
@@ -184,8 +179,12 @@ export default { | |||||
this.getDetail(); | this.getDetail(); | ||||
this.getUserHouseApplyProposer(); | this.getUserHouseApplyProposer(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
// 初始化当前数据, 有ID则查询, 否则新增 | |||||
getDetail(){ | getDetail(){ | ||||
this.reset(); | this.reset(); | ||||
if(this.id) | if(this.id) | ||||
@@ -434,17 +433,9 @@ export default { | |||||
openMenu() { | openMenu() { | ||||
this.menuVisible = true; | this.menuVisible = true; | ||||
}, | }, | ||||
openArbitrationProcessPage() | |||||
{ | |||||
this.$router.push({name:'arbitrationProcessList', query: { | |||||
arbitrationId: this.arbitrationData.id, | |||||
}}); | |||||
}, | |||||
openArbitrationHandlerPage() | |||||
{ | |||||
this.$router.push({name:'arbitrationHandlerList', query: { | |||||
arbitrationId: this.arbitrationData.id, | |||||
}}); | |||||
onActionSelect(a, index) { | |||||
a.route.query.arbitrationId = this.arbitrationData.id; | |||||
this.$router.push(a.route); | |||||
}, | }, | ||||
}, | }, | ||||
watch: { | watch: { | ||||
@@ -12,13 +12,13 @@ | |||||
<div class="main" style="padding-bottom: 1rem;"> | <div class="main" style="padding-bottom: 1rem;"> | ||||
<van-form ref="form"> | <van-form ref="form"> | ||||
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<p class="topTit">纠纷处理员</p> | |||||
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<!-- <p class="topTit">纠纷处理员</p>--> | |||||
<template> <!-- 申请 基本信息 --> | <template> <!-- 申请 基本信息 --> | ||||
<div> | <div> | ||||
<p class="main_title">基本信息</p> | <p class="main_title">基本信息</p> | ||||
<div class="main_box"> | <div class="main_box"> | ||||
<van-field :readonly="!formEnabled.baseFormEnabled" v-model="arbitrationData.handlerName" label="调解/仲裁员" placeholder="调解/仲裁员" input-align="right" required :rules="[{ required: true }]"/> | |||||
<van-field :readonly="!allowCUD || !formEnabled.baseFormEnabled" v-model="arbitrationData.handlerName" label="调解/仲裁员" placeholder="调解/仲裁员" input-align="right" required :rules="[{ required: true }]"/> | |||||
<field-radio | <field-radio | ||||
v-model="arbitrationData.handlerType" | v-model="arbitrationData.handlerType" | ||||
label="身份类型" | label="身份类型" | ||||
@@ -26,11 +26,11 @@ | |||||
data-key="dictValue" | data-key="dictValue" | ||||
:rules="[{ required: true }]" | :rules="[{ required: true }]" | ||||
required | required | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:columns="options.handler_type" | :columns="options.handler_type" | ||||
/> | /> | ||||
<van-field :readonly="!formEnabled.baseFormEnabled" v-model="arbitrationData.handlerPost" label="职务" placeholder="职务" input-align="right" required :rules="[{ required: true }]"/> | |||||
<van-field :readonly="!formEnabled.baseFormEnabled" v-model="arbitrationData.handlerPhone" label="联系方式" placeholder="联系方式" input-align="right" required :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/> | |||||
<van-field :readonly="!allowCUD || !formEnabled.baseFormEnabled" v-model="arbitrationData.handlerPost" label="职务" placeholder="职务" input-align="right" required :rules="[{ required: true }]"/> | |||||
<van-field :readonly="!allowCUD || !formEnabled.baseFormEnabled" v-model="arbitrationData.handlerPhone" label="联系方式" placeholder="联系方式" input-align="right" required :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
@@ -40,7 +40,7 @@ | |||||
</div> | </div> | ||||
<!-- 底部按钮 --> | <!-- 底部按钮 --> | ||||
<van-goods-action style="z-index: 999;"> | |||||
<van-goods-action style="z-index: 999;" v-if="allowCUD"> | |||||
<van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" v-if="formEnabled.baseFormEnabled" /> | <van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" v-if="formEnabled.baseFormEnabled" /> | ||||
<van-goods-action-button type="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" /> | <van-goods-action-button type="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" /> | ||||
</van-goods-action> | </van-goods-action> | ||||
@@ -99,6 +99,11 @@ export default { | |||||
this.initOptions(); | this.initOptions(); | ||||
this.getDetail(); | this.getDetail(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
// 初始化当前数据, 有ID则查询, 否则新增 | // 初始化当前数据, 有ID则查询, 否则新增 | ||||
getDetail(){ | getDetail(){ | ||||
@@ -8,7 +8,7 @@ | |||||
@click-left="$router.back()" | @click-left="$router.back()" | ||||
> | > | ||||
<template #right> | <template #right> | ||||
<van-icon name="add" size="20" @click="addArbitrationHandler"/> | |||||
<van-icon name="add" size="20" @click="addArbitrationHandler" v-if="allowCUD"/> | |||||
</template> | </template> | ||||
</van-nav-bar> | </van-nav-bar> | ||||
@@ -40,10 +40,10 @@ | |||||
<template #right> | <template #right> | ||||
<van-row style="height: 100%;"> | <van-row style="height: 100%;"> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button square text="编辑" type="info" style="height: 100%;" @click="editItem(item)"/> | |||||
<van-button square v-if="allowCUD" text="编辑" type="info" style="height: 100%;" @click="editItem(item)"/> | |||||
</van-col> | </van-col> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button square text="删除" type="danger" style="height: 100%;" @click="removeItem(item)"/> | |||||
<van-button square v-if="allowCUD" text="删除" type="danger" style="height: 100%;" @click="removeItem(item)"/> | |||||
</van-col> | </van-col> | ||||
</van-row> | </van-row> | ||||
</template> | </template> | ||||
@@ -90,6 +90,11 @@ export default { | |||||
this.initOptions(); | this.initOptions(); | ||||
this.getList(); | this.getList(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getList(target) { | getList(target) { | ||||
let type = typeof (target); | let type = typeof (target); | ||||
@@ -8,7 +8,7 @@ | |||||
@click-left="$router.back()" | @click-left="$router.back()" | ||||
> | > | ||||
<template #right> | <template #right> | ||||
<van-icon name="add" size="20" @click="addArbitration"/> | |||||
<van-icon name="add" size="20" @click="addArbitration" v-if="allowCUD"/> | |||||
</template> | </template> | ||||
</van-nav-bar> | </van-nav-bar> | ||||
@@ -45,13 +45,13 @@ | |||||
<template #right> | <template #right> | ||||
<van-row style="height: 100%;"> | <van-row style="height: 100%;"> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button v-if="item.disputeStatus == '1'" square text="编辑" type="info" style="height: 100%;" @click="editItem(item)"/> | |||||
<van-button v-if="allowCUD && item.disputeStatus == '1'" square text="编辑" type="info" style="height: 100%;" @click="editItem(item)"/> | |||||
</van-col> | </van-col> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button v-if="item.disputeStatus == '1'" square text="提交" type="primary" style="height: 100%;" @click="submitItem(item)"/> | |||||
<van-button v-if="allowCUD && item.disputeStatus == '1'" square text="提交" type="primary" style="height: 100%;" @click="submitItem(item)"/> | |||||
</van-col> | </van-col> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button v-if="item.disputeStatus == '1'" square text="删除" type="danger" style="height: 100%;" @click="removeItem(item)"/> | |||||
<van-button v-if="allowCUD && item.disputeStatus == '1'" square text="删除" type="danger" style="height: 100%;" @click="removeItem(item)"/> | |||||
</van-col> | </van-col> | ||||
</van-row> | </van-row> | ||||
</template> | </template> | ||||
@@ -96,6 +96,11 @@ export default { | |||||
this.initOptions(); | this.initOptions(); | ||||
this.getList(); | this.getList(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getList(target) { | getList(target) { | ||||
let type = typeof (target); | let type = typeof (target); | ||||
@@ -12,13 +12,13 @@ | |||||
<div class="main" style="padding-bottom: 1rem;"> | <div class="main" style="padding-bottom: 1rem;"> | ||||
<van-form ref="form"> | <van-form ref="form"> | ||||
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<p class="topTit">纠纷处理过程</p> | |||||
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'"> | |||||
<!-- <p class="topTit">纠纷处理过程</p>--> | |||||
<template> <!-- 申请 基本信息 --> | <template> <!-- 申请 基本信息 --> | ||||
<div> | <div> | ||||
<p class="main_title">基本信息</p> | <p class="main_title">基本信息</p> | ||||
<div class="main_box"> | <div class="main_box"> | ||||
<van-field :readonly="!formEnabled.baseFormEnabled" v-model="arbitrationData.handlerName" label="负责人" placeholder="负责人" input-align="right" required :rules="[{ required: true }]"/> | |||||
<van-field :readonly="!allowCUD || !formEnabled.baseFormEnabled" v-model="arbitrationData.handlerName" label="负责人" placeholder="负责人" input-align="right" required :rules="[{ required: true }]"/> | |||||
<field-date-picker | <field-date-picker | ||||
v-model="arbitrationData.handleTime" | v-model="arbitrationData.handleTime" | ||||
label="申请时间" | label="申请时间" | ||||
@@ -26,7 +26,7 @@ | |||||
:rules="[{ required: true }]" | :rules="[{ required: true }]" | ||||
formatter="yyyy-MM-dd" | formatter="yyyy-MM-dd" | ||||
required | required | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
/> | /> | ||||
<field-radio | <field-radio | ||||
@@ -36,7 +36,7 @@ | |||||
data-key="dictValue" | data-key="dictValue" | ||||
:rules="[{ required: true }]" | :rules="[{ required: true }]" | ||||
required | required | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:columns="options.handler_type" | :columns="options.handler_type" | ||||
/> | /> | ||||
@@ -53,7 +53,7 @@ | |||||
placeholder="请输入处理结果" | placeholder="请输入处理结果" | ||||
input-align="left" | input-align="left" | ||||
v-model="arbitrationData.handleResult" | v-model="arbitrationData.handleResult" | ||||
:readonly="!formEnabled.baseFormEnabled" | |||||
:readonly="!allowCUD || !formEnabled.baseFormEnabled" | |||||
:rules="[{ required: true }]" required | :rules="[{ required: true }]" required | ||||
/> | /> | ||||
</div> | </div> | ||||
@@ -65,7 +65,7 @@ | |||||
</div> | </div> | ||||
<!-- 底部按钮 --> | <!-- 底部按钮 --> | ||||
<van-goods-action style="z-index: 999;"> | |||||
<van-goods-action style="z-index: 999;" v-if="allowCUD"> | |||||
<van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" v-if="formEnabled.baseFormEnabled" /> | <van-goods-action-button type="primary" text="保存" @click="onSubmit('add')" v-if="formEnabled.baseFormEnabled" /> | ||||
<van-goods-action-button type="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" /> | <van-goods-action-button type="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" /> | ||||
</van-goods-action> | </van-goods-action> | ||||
@@ -124,6 +124,11 @@ export default { | |||||
this.initOptions(); | this.initOptions(); | ||||
this.getDetail(); | this.getDetail(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
// 初始化当前数据, 有ID则查询, 否则新增 | // 初始化当前数据, 有ID则查询, 否则新增 | ||||
getDetail(){ | getDetail(){ | ||||
@@ -8,7 +8,7 @@ | |||||
@click-left="$router.back()" | @click-left="$router.back()" | ||||
> | > | ||||
<template #right> | <template #right> | ||||
<van-icon name="add" size="20" @click="addArbitrationProcess"/> | |||||
<van-icon name="add" size="20" @click="addArbitrationProcess" v-if="allowCUD"/> | |||||
</template> | </template> | ||||
</van-nav-bar> | </van-nav-bar> | ||||
@@ -40,10 +40,10 @@ | |||||
<template #right> | <template #right> | ||||
<van-row style="height: 100%;"> | <van-row style="height: 100%;"> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button square text="编辑" type="info" style="height: 100%;" @click="editItem(item)"/> | |||||
<van-button square text="编辑" type="info" style="height: 100%;" @click="editItem(item)" v-if="allowCUD"/> | |||||
</van-col> | </van-col> | ||||
<van-col style="height: 100%;"> | <van-col style="height: 100%;"> | ||||
<van-button square text="删除" type="danger" style="height: 100%;" @click="removeItem(item)"/> | |||||
<van-button square text="删除" type="danger" style="height: 100%;" @click="removeItem(item)" v-if="allowCUD"/> | |||||
</van-col> | </van-col> | ||||
</van-row> | </van-row> | ||||
</template> | </template> | ||||
@@ -90,6 +90,11 @@ export default { | |||||
this.initOptions(); | this.initOptions(); | ||||
this.getList(); | this.getList(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getList(target) { | getList(target) { | ||||
let type = typeof (target); | let type = typeof (target); | ||||
@@ -123,7 +123,7 @@ | |||||
<van-field v-model="jgList.msmj" label="没收面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | <van-field v-model="jgList.msmj" label="没收面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | ||||
<van-field v-model="jgList.ccmj" label="拆除面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | <van-field v-model="jgList.ccmj" label="拆除面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | ||||
</div> | </div> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -168,6 +168,11 @@ export default { | |||||
this.getDictionaries(); | this.getDictionaries(); | ||||
this.jgList.taskId = this.$route.query.id; | this.jgList.taskId = this.$route.query.id; | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getDictionaries(){ | getDictionaries(){ | ||||
//违法用地类型 | //违法用地类型 | ||||
@@ -26,7 +26,7 @@ | |||||
<van-cell title="操作" > | <van-cell title="操作" > | ||||
<template #default> | <template #default> | ||||
<van-button :to="{name:'taskReportingDetail', query: {id:item.id}}" color="#FFA63E" round type="default" size="mini" style="padding: 0 15px">查看</van-button> | <van-button :to="{name:'taskReportingDetail', query: {id:item.id}}" color="#FFA63E" round type="default" size="mini" style="padding: 0 15px">查看</van-button> | ||||
<van-button v-if="item.status != 2" :to="{name:'taskReportingAdd', query: {id:item.id}}" color="#1D6FE9" round type="default" size="mini" style="padding: 0 15px">结案</van-button> | |||||
<van-button v-if="allowCUD && item.status != 2" :to="{name:'taskReportingAdd', query: {id:item.id}}" color="#1D6FE9" round type="default" size="mini" style="padding: 0 15px">结案</van-button> | |||||
</template> | </template> | ||||
</van-cell> | </van-cell> | ||||
</div> | </div> | ||||
@@ -61,6 +61,11 @@ export default { | |||||
this.wfydlxStatus = res.data; | this.wfydlxStatus = res.data; | ||||
}); | }); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getList(){ | getList(){ | ||||
setTimeout(() => { | setTimeout(() => { | ||||
@@ -79,7 +79,7 @@ | |||||
<van-field v-model="jgList.msmj" label="没收面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | <van-field v-model="jgList.msmj" label="没收面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | ||||
<van-field v-model="jgList.ccmj" label="拆除面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | <van-field v-model="jgList.ccmj" label="拆除面积" placeholder="请输入面积" input-align="right" label-width="auto"/> | ||||
</div> | </div> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" @click="goBack" native-type="submit" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" @click="goBack" native-type="submit" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -131,6 +131,11 @@ | |||||
}); | }); | ||||
this.getDictionaries(); | this.getDictionaries(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getDictionaries(){ | getDictionaries(){ | ||||
getJg(this.$route.query.id).then(response => { | getJg(this.$route.query.id).then(response => { | ||||
@@ -31,7 +31,7 @@ | |||||
<template #right> | <template #right> | ||||
<van-row> | <van-row> | ||||
<van-col> | <van-col> | ||||
<van-button square text="上报" :to="{name:'taskCloseCaseAdd', query: {id:item.id}}" type="info" class="delete-button" /> | |||||
<van-button square text="上报" :to="{name:'taskCloseCaseAdd', query: {id:item.id}}" type="info" class="delete-button" v-if="allowCUD"/> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button color="#FFA63E" square :to="{name:'taskDetailedList', query: {id:item.id}}" type="info" class="delete-button" > | <van-button color="#FFA63E" square :to="{name:'taskDetailedList', query: {id:item.id}}" type="info" class="delete-button" > | ||||
@@ -70,6 +70,11 @@ export default { | |||||
this.taskSubjectStatusStatus = res.data; | this.taskSubjectStatusStatus = res.data; | ||||
}); | }); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getList(){ | getList(){ | ||||
setTimeout(() => { | setTimeout(() => { | ||||
@@ -144,7 +144,7 @@ | |||||
/> | /> | ||||
</van-popup> | </van-popup> | ||||
</div> | </div> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -189,6 +189,11 @@ | |||||
created() { | created() { | ||||
this.getDictionaries(); | this.getDictionaries(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getDictionaries(){ | getDictionaries(){ | ||||
//违法用地类型 | //违法用地类型 | ||||
@@ -54,7 +54,7 @@ | |||||
<van-field v-model="jgList.qtjgyy" label="其他监管原因" placeholder="请输入监管原因" input-align="right" label-width="auto"/> | <van-field v-model="jgList.qtjgyy" label="其他监管原因" placeholder="请输入监管原因" input-align="right" label-width="auto"/> | ||||
<van-field v-model="jgList.qtjgjg" label="其他监管结果" placeholder="请输入监管结果" input-align="right" label-width="auto"/> | <van-field v-model="jgList.qtjgjg" label="其他监管结果" placeholder="请输入监管结果" input-align="right" label-width="auto"/> | ||||
</div> | </div> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -101,6 +101,11 @@ export default { | |||||
this.getTaskGet(); | this.getTaskGet(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getTaskGet(){ | getTaskGet(){ | ||||
getSupervision(this.$route.query.id).then(response => { | getSupervision(this.$route.query.id).then(response => { | ||||
@@ -11,7 +11,7 @@ | |||||
<p style="font-weight: bold;">违法监管</p> | <p style="font-weight: bold;">违法监管</p> | ||||
</template> | </template> | ||||
<template #right> | <template #right> | ||||
<van-icon name="add" size="18" /> | |||||
<van-icon name="add" size="18" v-if="allowCUD"/> | |||||
</template> | </template> | ||||
</van-nav-bar> | </van-nav-bar> | ||||
<van-list | <van-list | ||||
@@ -32,16 +32,16 @@ | |||||
<template #right> | <template #right> | ||||
<van-row> | <van-row> | ||||
<van-col> | <van-col> | ||||
<van-button v-if="item.status != '已结案' && item.status == '未立案'" color="#FFA63E" text="立案" square @click="onRegister(item.id)" type="info" class="delete-button" /> | |||||
<van-button v-if="allowCUD && item.status != '已结案' && item.status == '未立案'" color="#FFA63E" text="立案" square @click="onRegister(item.id)" type="info" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button v-if="item.status != '已结案' && item.status == '已立案'" color="#7DDA4F" square text="结案" :to="{name:'supervisionCloseCase', query: {id:item.id}}" type="danger" class="delete-button" /> | |||||
<van-button v-if="allowCUD && item.status != '已结案' && item.status == '已立案'" color="#7DDA4F" square text="结案" :to="{name:'supervisionCloseCase', query: {id:item.id}}" type="danger" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button v-if="item.status != '已结案' && item.status == '未立案'" square text="修改" :to="{name:'supervisionModify', query: {id:item.id}}" type="info" class="delete-button" /> | |||||
<van-button v-if="allowCUD && item.status != '已结案' && item.status == '未立案'" square text="修改" :to="{name:'supervisionModify', query: {id:item.id}}" type="info" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button v-if="item.status != '已结案' && item.status == '未立案'" color="#FF4646" square text="删除" @click="deleteList(item.id,index)" type="danger" class="delete-button" /> | |||||
<van-button v-if="allowCUD && item.status != '已结案' && item.status == '未立案'" color="#FF4646" square text="删除" @click="deleteList(item.id,index)" type="danger" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
</van-row> | </van-row> | ||||
</template> | </template> | ||||
@@ -85,6 +85,11 @@ export default { | |||||
this.jglxDictionaries = res.data; | this.jglxDictionaries = res.data; | ||||
}); | }); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
goAdd(){ | goAdd(){ | ||||
window.location = 'supervisionAdd'; | window.location = 'supervisionAdd'; | ||||
@@ -144,7 +144,7 @@ | |||||
/> | /> | ||||
</van-popup> | </van-popup> | ||||
</div> | </div> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" @click="goBack" class="submitButton">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -190,6 +190,11 @@ | |||||
this.getTaskGet(); | this.getTaskGet(); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getTaskGet(){ | getTaskGet(){ | ||||
getSupervision(this.$route.query.id).then(response => { | getSupervision(this.$route.query.id).then(response => { | ||||
@@ -11,7 +11,7 @@ | |||||
<p style="font-weight: bold;">任务发布</p> | <p style="font-weight: bold;">任务发布</p> | ||||
</template> | </template> | ||||
<template #right> | <template #right> | ||||
<van-icon name="add" size="18" /> | |||||
<van-icon name="add" size="18" v-if="allowCUD"/> | |||||
</template> | </template> | ||||
</van-nav-bar> | </van-nav-bar> | ||||
<van-list | <van-list | ||||
@@ -44,13 +44,13 @@ | |||||
</van-button> | </van-button> | ||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button color="#7DDA4F" v-if="item.taskSubjectStatus=='待下发'" square text="发布" :to="{name:'taskRelease', query: {id:item.id}}" type="danger" class="delete-button" /> | |||||
<van-button color="#7DDA4F" v-if="allowCUD && item.taskSubjectStatus=='待下发'" square text="发布" :to="{name:'taskRelease', query: {id:item.id}}" type="danger" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button square text="修改" v-if="item.taskSubjectStatus=='待下发'" :to="{name:'taskLssueModify', query: {id:item.id}}" type="info" class="delete-button" /> | |||||
<van-button square text="修改" v-if="allowCUD && item.taskSubjectStatus=='待下发'" :to="{name:'taskLssueModify', query: {id:item.id}}" type="info" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button color="#FF4646" square text="删除" v-if="item.taskSubjectStatus=='待下发'" @click="deleteList(item.id,index)" type="danger" class="delete-button" /> | |||||
<van-button color="#FF4646" square text="删除" v-if="allowCUD && item.taskSubjectStatus=='待下发'" @click="deleteList(item.id,index)" type="danger" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
</van-row> | </van-row> | ||||
</template> | </template> | ||||
@@ -83,6 +83,11 @@ export default { | |||||
this.taskSubjectStatusStatus = res.data; | this.taskSubjectStatusStatus = res.data; | ||||
}); | }); | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
goAdd(){ | goAdd(){ | ||||
window.location = 'taskLssueAdd'; | window.location = 'taskLssueAdd'; | ||||
@@ -24,7 +24,7 @@ | |||||
</van-row> | </van-row> | ||||
<vue-html5-editor :content="queryParams.title" @change="updateData" :height="500"></vue-html5-editor> | <vue-html5-editor :content="queryParams.title" @change="updateData" :height="500"></vue-html5-editor> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -57,6 +57,11 @@ export default { | |||||
}, | }, | ||||
created() { | created() { | ||||
}, | |||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | }, | ||||
methods: { | methods: { | ||||
goAdd(){ | goAdd(){ | ||||
@@ -24,7 +24,7 @@ | |||||
</van-row> | </van-row> | ||||
<vue-html5-editor :content="queryParams.title" @change="updateData" :height="500"></vue-html5-editor> | <vue-html5-editor :content="queryParams.title" @change="updateData" :height="500"></vue-html5-editor> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -60,6 +60,11 @@ export default { | |||||
this.getTaskGet(); | this.getTaskGet(); | ||||
this.queryParams.id = this.$route.query.id; | this.queryParams.id = this.$route.query.id; | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getTaskGet(){ | getTaskGet(){ | ||||
getTaskGet(this.$route.query.id).then(response => { | getTaskGet(this.$route.query.id).then(response => { | ||||
@@ -18,7 +18,7 @@ | |||||
:show-checkbox="true" | :show-checkbox="true" | ||||
:default-expand-all="true" | :default-expand-all="true" | ||||
></SearchTree> | ></SearchTree> | ||||
<div style="padding: 16px 0;"> | |||||
<div style="padding: 16px 0;" v-if="allowCUD"> | |||||
<van-row> | <van-row> | ||||
<van-col span="12" align="center"> | <van-col span="12" align="center"> | ||||
<van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | <van-button type="info" color="#B4B0B0" native-type="submit" class="submitButton" @click="goBack">取<i style="margin-right: 1em;"></i>消</van-button> | ||||
@@ -50,6 +50,11 @@ export default { | |||||
this.getTree() | this.getTree() | ||||
this.queryParams.id = this.$route.query.id; | this.queryParams.id = this.$route.query.id; | ||||
}, | }, | ||||
computed: { | |||||
allowCUD: function () { | |||||
return this.$store.getters.businessLevel == '2' | |||||
}, | |||||
}, | |||||
methods: { | methods: { | ||||
getTree(){ | getTree(){ | ||||
getTree().then(response => { | getTree().then(response => { | ||||