Bläddra i källkod

businessLevel=2时允许增删改综合执法

wulanhaote
zhao 3 år sedan
förälder
incheckning
9ee6b895c6
20 ändrade filer med 160 tillägg och 77 borttagningar
  1. +1
    -0
      src/store/getters.js
  2. +6
    -0
      src/store/modules/user.js
  3. +25
    -34
      src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue
  4. +12
    -7
      src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue
  5. +8
    -3
      src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue
  6. +9
    -4
      src/views/onlineHome/homestead/arbitration/arbitrationList.vue
  7. +12
    -7
      src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue
  8. +8
    -3
      src/views/onlineHome/homestead/arbitration/arbitrationProcessList.vue
  9. +6
    -1
      src/views/onlineHome/homestead/reporting/taskCloseCaseAdd.vue
  10. +6
    -1
      src/views/onlineHome/homestead/reporting/taskDetailedList.vue
  11. +6
    -1
      src/views/onlineHome/homestead/reporting/taskReportingAdd.vue
  12. +6
    -1
      src/views/onlineHome/homestead/reporting/taskReportingList.vue
  13. +6
    -1
      src/views/onlineHome/homestead/supervision/supervisionAdd.vue
  14. +6
    -1
      src/views/onlineHome/homestead/supervision/supervisionCloseCase.vue
  15. +10
    -5
      src/views/onlineHome/homestead/supervision/supervisionList.vue
  16. +6
    -1
      src/views/onlineHome/homestead/supervision/supervisionModify.vue
  17. +9
    -4
      src/views/onlineHome/homestead/task/taskList.vue
  18. +6
    -1
      src/views/onlineHome/homestead/task/taskLssueAdd.vue
  19. +6
    -1
      src/views/onlineHome/homestead/task/taskLssueModify.vue
  20. +6
    -1
      src/views/onlineHome/homestead/task/taskRelease.vue

+ 1
- 0
src/store/getters.js Visa fil

@@ -9,5 +9,6 @@ const getters = {

nickName: state => state.user.nickName,
baseRoutingUrl: state => state.user.baseRoutingUrl,
businessLevel: state => state.user.businessLevel,
}
export default getters

+ 6
- 0
src/store/modules/user.js Visa fil

@@ -15,6 +15,7 @@ const user = {

nickName: '',
baseRoutingUrl: '',
businessLevel: '',
},

mutations: {
@@ -51,6 +52,9 @@ const user = {
SET_baseRoutingUrl: (state, baseRoutingUrl) => {
state.baseRoutingUrl = baseRoutingUrl
},
SET_businessLevel: (state, businessLevel) => {
state.businessLevel = businessLevel
},
},

actions: {
@@ -128,6 +132,8 @@ const user = {
commit('SET_DEPTNAME', user.deptName)
commit('SET_AVATAR', avatar)
commit('SET_NICKNAME', user.nickName);
commit('SET_businessLevel', user.businessLevel);
//commit('SET_businessLevel', 'TEST');

getSystemAttachmentUrl().then((resp) => {
commit('SET_baseRoutingUrl', resp.msg);


+ 25
- 34
src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue Visa fil

@@ -15,8 +15,8 @@

<div class="main" style="padding-bottom: 1rem;">
<van-form ref="form">
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'">
<p class="topTit">纠纷调请</p>
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'">
<!-- <p class="topTit">纠纷调请</p>-->
<template> <!-- 申请 基本信息 -->
<div>
<p class="main_title">基本信息</p>
@@ -31,10 +31,10 @@
placeholder="选择宅基地申请"
:rules="[{ required: true }]"
required
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
: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
v-model="arbitrationData.applyTime"
label="申请时间"
@@ -42,7 +42,7 @@
:rules="[{ required: true }]"
formatter="yyyy-MM-dd"
required
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
/>
</div>
</div>
@@ -57,7 +57,7 @@
placeholder="纠纷事项"
input-align="left"
v-model="arbitrationData.disputes"
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
:rules="[{ required: true }]" required
/>
</div>
@@ -73,7 +73,7 @@
placeholder="备注说明"
input-align="left"
v-model="arbitrationData.remark"
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
:rules="[{ required: true }]" required
/>
</div>
@@ -85,7 +85,7 @@
</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">
<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"/>
@@ -101,20 +101,11 @@
</template>
</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>
</template>

@@ -175,6 +166,10 @@ export default {
currentUserRole: null,
userHouseApplyProposer: [],
menuVisible: false,
menuActions: [
{name: '调解/冲裁员', route: {name:'arbitrationHandlerList', query: {}}},
{name: '处理过程', route: {name:'arbitrationProcessList', query: {}}},
]
};
},
created() {
@@ -184,8 +179,12 @@ export default {
this.getDetail();
this.getUserHouseApplyProposer();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
// 初始化当前数据, 有ID则查询, 否则新增
getDetail(){
this.reset();
if(this.id)
@@ -434,17 +433,9 @@ export default {
openMenu() {
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: {


+ 12
- 7
src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue Visa fil

@@ -12,13 +12,13 @@

<div class="main" style="padding-bottom: 1rem;">
<van-form ref="form">
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'">
<p class="topTit">纠纷处理员</p>
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'">
<!-- <p class="topTit">纠纷处理员</p>-->
<template> <!-- 申请 基本信息 -->
<div>
<p class="main_title">基本信息</p>
<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
v-model="arbitrationData.handlerType"
label="身份类型"
@@ -26,11 +26,11 @@
data-key="dictValue"
:rules="[{ required: true }]"
required
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
: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>
</template>
@@ -40,7 +40,7 @@
</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="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" />
</van-goods-action>
@@ -99,6 +99,11 @@ export default {
this.initOptions();
this.getDetail();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
// 初始化当前数据, 有ID则查询, 否则新增
getDetail(){


+ 8
- 3
src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue Visa fil

@@ -8,7 +8,7 @@
@click-left="$router.back()"
>
<template #right>
<van-icon name="add" size="20" @click="addArbitrationHandler"/>
<van-icon name="add" size="20" @click="addArbitrationHandler" v-if="allowCUD"/>
</template>
</van-nav-bar>

@@ -40,10 +40,10 @@
<template #right>
<van-row 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 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-row>
</template>
@@ -90,6 +90,11 @@ export default {
this.initOptions();
this.getList();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getList(target) {
let type = typeof (target);


+ 9
- 4
src/views/onlineHome/homestead/arbitration/arbitrationList.vue Visa fil

@@ -8,7 +8,7 @@
@click-left="$router.back()"
>
<template #right>
<van-icon name="add" size="20" @click="addArbitration"/>
<van-icon name="add" size="20" @click="addArbitration" v-if="allowCUD"/>
</template>
</van-nav-bar>

@@ -45,13 +45,13 @@
<template #right>
<van-row 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 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 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-row>
</template>
@@ -96,6 +96,11 @@ export default {
this.initOptions();
this.getList();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getList(target) {
let type = typeof (target);


+ 12
- 7
src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue Visa fil

@@ -12,13 +12,13 @@

<div class="main" style="padding-bottom: 1rem;">
<van-form ref="form">
<div :class="formEnabled.baseFormEnabled ? '' : 'noModify'">
<p class="topTit">纠纷处理过程</p>
<div :class="allowCUD && formEnabled.baseFormEnabled ? '' : 'noModify'">
<!-- <p class="topTit">纠纷处理过程</p>-->
<template> <!-- 申请 基本信息 -->
<div>
<p class="main_title">基本信息</p>
<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
v-model="arbitrationData.handleTime"
label="申请时间"
@@ -26,7 +26,7 @@
:rules="[{ required: true }]"
formatter="yyyy-MM-dd"
required
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
/>

<field-radio
@@ -36,7 +36,7 @@
data-key="dictValue"
:rules="[{ required: true }]"
required
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
:columns="options.handler_type"
/>

@@ -53,7 +53,7 @@
placeholder="请输入处理结果"
input-align="left"
v-model="arbitrationData.handleResult"
:readonly="!formEnabled.baseFormEnabled"
:readonly="!allowCUD || !formEnabled.baseFormEnabled"
:rules="[{ required: true }]" required
/>
</div>
@@ -65,7 +65,7 @@
</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="danger" text="删除" @click="onSubmit('del')" v-if="formEnabled.removeEnabled" />
</van-goods-action>
@@ -124,6 +124,11 @@ export default {
this.initOptions();
this.getDetail();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
// 初始化当前数据, 有ID则查询, 否则新增
getDetail(){


+ 8
- 3
src/views/onlineHome/homestead/arbitration/arbitrationProcessList.vue Visa fil

@@ -8,7 +8,7 @@
@click-left="$router.back()"
>
<template #right>
<van-icon name="add" size="20" @click="addArbitrationProcess"/>
<van-icon name="add" size="20" @click="addArbitrationProcess" v-if="allowCUD"/>
</template>
</van-nav-bar>

@@ -40,10 +40,10 @@
<template #right>
<van-row 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 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-row>
</template>
@@ -90,6 +90,11 @@ export default {
this.initOptions();
this.getList();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getList(target) {
let type = typeof (target);


+ 6
- 1
src/views/onlineHome/homestead/reporting/taskCloseCaseAdd.vue Visa fil

@@ -123,7 +123,7 @@
<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"/>
</div>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -168,6 +168,11 @@ export default {
this.getDictionaries();
this.jgList.taskId = this.$route.query.id;
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getDictionaries(){
//违法用地类型


+ 6
- 1
src/views/onlineHome/homestead/reporting/taskDetailedList.vue Visa fil

@@ -26,7 +26,7 @@
<van-cell title="操作" >
<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 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>
</van-cell>
</div>
@@ -61,6 +61,11 @@ export default {
this.wfydlxStatus = res.data;
});
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getList(){
setTimeout(() => {


+ 6
- 1
src/views/onlineHome/homestead/reporting/taskReportingAdd.vue Visa fil

@@ -79,7 +79,7 @@
<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"/>
</div>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -131,6 +131,11 @@
});
this.getDictionaries();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getDictionaries(){
getJg(this.$route.query.id).then(response => {


+ 6
- 1
src/views/onlineHome/homestead/reporting/taskReportingList.vue Visa fil

@@ -31,7 +31,7 @@
<template #right>
<van-row>
<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-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;
});
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getList(){
setTimeout(() => {


+ 6
- 1
src/views/onlineHome/homestead/supervision/supervisionAdd.vue Visa fil

@@ -144,7 +144,7 @@
/>
</van-popup>
</div>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -189,6 +189,11 @@
created() {
this.getDictionaries();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getDictionaries(){
//违法用地类型


+ 6
- 1
src/views/onlineHome/homestead/supervision/supervisionCloseCase.vue Visa fil

@@ -54,7 +54,7 @@
<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"/>
</div>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -101,6 +101,11 @@ export default {

this.getTaskGet();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getTaskGet(){
getSupervision(this.$route.query.id).then(response => {


+ 10
- 5
src/views/onlineHome/homestead/supervision/supervisionList.vue Visa fil

@@ -11,7 +11,7 @@
<p style="font-weight: bold;">违法监管</p>
</template>
<template #right>
<van-icon name="add" size="18" />
<van-icon name="add" size="18" v-if="allowCUD"/>
</template>
</van-nav-bar>
<van-list
@@ -32,16 +32,16 @@
<template #right>
<van-row>
<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-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-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-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-row>
</template>
@@ -85,6 +85,11 @@ export default {
this.jglxDictionaries = res.data;
});
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
goAdd(){
window.location = 'supervisionAdd';


+ 6
- 1
src/views/onlineHome/homestead/supervision/supervisionModify.vue Visa fil

@@ -144,7 +144,7 @@
/>
</van-popup>
</div>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -190,6 +190,11 @@

this.getTaskGet();
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getTaskGet(){
getSupervision(this.$route.query.id).then(response => {


+ 9
- 4
src/views/onlineHome/homestead/task/taskList.vue Visa fil

@@ -11,7 +11,7 @@
<p style="font-weight: bold;">任务发布</p>
</template>
<template #right>
<van-icon name="add" size="18" />
<van-icon name="add" size="18" v-if="allowCUD"/>
</template>
</van-nav-bar>
<van-list
@@ -44,13 +44,13 @@
</van-button>
</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-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-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-row>
</template>
@@ -83,6 +83,11 @@ export default {
this.taskSubjectStatusStatus = res.data;
});
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
goAdd(){
window.location = 'taskLssueAdd';


+ 6
- 1
src/views/onlineHome/homestead/task/taskLssueAdd.vue Visa fil

@@ -24,7 +24,7 @@
</van-row>

<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-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>
@@ -57,6 +57,11 @@ export default {
},
created() {

},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
goAdd(){


+ 6
- 1
src/views/onlineHome/homestead/task/taskLssueModify.vue Visa fil

@@ -24,7 +24,7 @@
</van-row>

<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-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>
@@ -60,6 +60,11 @@ export default {
this.getTaskGet();
this.queryParams.id = this.$route.query.id;
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getTaskGet(){
getTaskGet(this.$route.query.id).then(response => {


+ 6
- 1
src/views/onlineHome/homestead/task/taskRelease.vue Visa fil

@@ -18,7 +18,7 @@
:show-checkbox="true"
:default-expand-all="true"
></SearchTree>
<div style="padding: 16px 0;">
<div style="padding: 16px 0;" v-if="allowCUD">
<van-row>
<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>
@@ -50,6 +50,11 @@ export default {
this.getTree()
this.queryParams.id = this.$route.query.id;
},
computed: {
allowCUD: function () {
return this.$store.getters.businessLevel == '2'
},
},
methods: {
getTree(){
getTree().then(response => {


Laddar…
Avbryt
Spara