| @@ -269,3 +269,12 @@ export function processTaskList(query) { | |||||
| params: query | params: query | ||||
| }) | }) | ||||
| } | } | ||||
| // 新增配置 | |||||
| export function listModelCustom(data) { | |||||
| return request({ | |||||
| url: '/activiti/modelCustom/list', | |||||
| method: 'get', | |||||
| params: data | |||||
| }) | |||||
| } | |||||
| @@ -221,10 +221,10 @@ | |||||
| <span | <span | ||||
| class="bq" | class="bq" | ||||
| :style="{ | :style="{ | ||||
| background:item.comment == '提交申请' ? 'rgba(29,111,233,0.2)' : item.comment == '同意' ? 'rgba(29,204,128,0.2)' : item.comment == '自动结束' ? 'rgba(255,166,62,0.2)' : '', | |||||
| color:item.comment == '提交申请' ? '#1D6FE9' : item.comment == '同意' ? '#1DCC80' : item.comment == '自动结束' ? '#FFA63E' : '' | |||||
| background:item.comment.substr(item.comment.length-2,2) == '申请' ? 'rgba(29,111,233,0.2)' : item.comment.substr(item.comment.length-2,2) == '同意' ? 'rgba(29,204,128,0.2)' : item.comment.substr(item.comment.length-2,2) == '结束' ? 'rgba(255,166,62,0.2)' : item.comment.substr(item.comment.length-2,2) == '驳回' ? 'rgba(254,19,19,0.2)' : '', | |||||
| color:item.comment.substr(item.comment.length-2,2) == '申请' ? '#1D6FE9' : item.comment.substr(item.comment.length-2,2) == '同意' ? '#1DCC80' : item.comment.substr(item.comment.length-2,2) == '结束' ? '#FFA63E' : item.comment.substr(item.comment.length-2,2) == '驳回' ? '#FE1313' : '' | |||||
| }" | }" | ||||
| >{{ item.comment }}</span> | |||||
| >{{ item.comment.substr(item.comment.length-2,2) }}</span> | |||||
| </p> | </p> | ||||
| <p style="color: #999999;">{{ item.durationInMillis }}</p> | <p style="color: #999999;">{{ item.durationInMillis }}</p> | ||||
| </template> | </template> | ||||
| @@ -237,7 +237,7 @@ | |||||
| <van-row type="flex" justify="space-between" align="center"> | <van-row type="flex" justify="space-between" align="center"> | ||||
| <van-col span="5">审批<br/>意见</van-col> | <van-col span="5">审批<br/>意见</van-col> | ||||
| <van-col span="19"> | <van-col span="19"> | ||||
| <van-radio-group v-model="pass" direction="horizontal"> | |||||
| <van-radio-group v-model="pass" direction="horizontal" @change="radioChange"> | |||||
| <van-radio name="true">同意</van-radio> | <van-radio name="true">同意</van-radio> | ||||
| <van-radio name="false">驳回</van-radio> | <van-radio name="false">驳回</van-radio> | ||||
| </van-radio-group> | </van-radio-group> | ||||
| @@ -540,10 +540,10 @@ | |||||
| <span | <span | ||||
| class="bq" | class="bq" | ||||
| :style="{ | :style="{ | ||||
| background:item.comment == '提交申请' ? 'rgba(29,111,233,0.2)' : item.comment == '同意' ? 'rgba(29,204,128,0.2)' : item.comment == '自动结束' ? 'rgba(255,166,62,0.2)' : '', | |||||
| color:item.comment == '提交申请' ? '#1D6FE9' : item.comment == '同意' ? '#1DCC80' : item.comment == '自动结束' ? '#FFA63E' : '' | |||||
| background:item.comment.substr(item.comment.length-2,2) == '申请' ? 'rgba(29,111,233,0.2)' : item.comment.substr(item.comment.length-2,2) == '同意' ? 'rgba(29,204,128,0.2)' : item.comment.substr(item.comment.length-2,2) == '结束' ? 'rgba(255,166,62,0.2)' : item.comment.substr(item.comment.length-2,2) == '驳回' ? 'rgba(254,19,19,0.2)' : '', | |||||
| color:item.comment.substr(item.comment.length-2,2) == '申请' ? '#1D6FE9' : item.comment.substr(item.comment.length-2,2) == '同意' ? '#1DCC80' : item.comment.substr(item.comment.length-2,2) == '结束' ? '#FFA63E' : item.comment.substr(item.comment.length-2,2) == '驳回' ? '#FE1313' : '' | |||||
| }" | }" | ||||
| >{{ item.comment }}</span> | |||||
| >{{ item.comment.substr(item.comment.length-2,2) }}</span> | |||||
| </p> | </p> | ||||
| <p style="color: #999999;">{{ item.durationInMillis }}</p> | <p style="color: #999999;">{{ item.durationInMillis }}</p> | ||||
| </template> | </template> | ||||
| @@ -556,7 +556,7 @@ | |||||
| <van-row type="flex" justify="space-between" align="center"> | <van-row type="flex" justify="space-between" align="center"> | ||||
| <van-col span="5">审批<br/>意见</van-col> | <van-col span="5">审批<br/>意见</van-col> | ||||
| <van-col span="19"> | <van-col span="19"> | ||||
| <van-radio-group v-model="pass" direction="horizontal"> | |||||
| <van-radio-group v-model="pass" direction="horizontal" @change="radioChange"> | |||||
| <van-radio name="true">同意</van-radio> | <van-radio name="true">同意</van-radio> | ||||
| <van-radio name="false">驳回</van-radio> | <van-radio name="false">驳回</van-radio> | ||||
| </van-radio-group> | </van-radio-group> | ||||
| @@ -699,10 +699,10 @@ | |||||
| <span | <span | ||||
| class="bq" | class="bq" | ||||
| :style="{ | :style="{ | ||||
| background:item.comment == '提交申请' ? 'rgba(29,111,233,0.2)' : item.comment == '同意' ? 'rgba(29,204,128,0.2)' : item.comment == '自动结束' ? 'rgba(255,166,62,0.2)' : '', | |||||
| color:item.comment == '提交申请' ? '#1D6FE9' : item.comment == '同意' ? '#1DCC80' : item.comment == '自动结束' ? '#FFA63E' : '' | |||||
| background:item.comment.substr(item.comment.length-2,2) == '申请' ? 'rgba(29,111,233,0.2)' : item.comment.substr(item.comment.length-2,2) == '同意' ? 'rgba(29,204,128,0.2)' : item.comment.substr(item.comment.length-2,2) == '结束' ? 'rgba(255,166,62,0.2)' : item.comment.substr(item.comment.length-2,2) == '驳回' ? 'rgba(254,19,19,0.2)' : '', | |||||
| color:item.comment.substr(item.comment.length-2,2) == '申请' ? '#1D6FE9' : item.comment.substr(item.comment.length-2,2) == '同意' ? '#1DCC80' : item.comment.substr(item.comment.length-2,2) == '结束' ? '#FFA63E' : item.comment.substr(item.comment.length-2,2) == '驳回' ? '#FE1313' : '' | |||||
| }" | }" | ||||
| >{{ item.comment }}</span> | |||||
| >{{ item.comment.substr(item.comment.length-2,2) }}</span> | |||||
| </p> | </p> | ||||
| <p style="color: #999999;">{{ item.durationInMillis }}</p> | <p style="color: #999999;">{{ item.durationInMillis }}</p> | ||||
| </template> | </template> | ||||
| @@ -715,7 +715,7 @@ | |||||
| <van-row type="flex" justify="space-between" align="center"> | <van-row type="flex" justify="space-between" align="center"> | ||||
| <van-col span="5">审批<br/>意见</van-col> | <van-col span="5">审批<br/>意见</van-col> | ||||
| <van-col span="19"> | <van-col span="19"> | ||||
| <van-radio-group v-model="pass" direction="horizontal"> | |||||
| <van-radio-group v-model="pass" direction="horizontal" @change="radioChange"> | |||||
| <van-radio name="true">同意</van-radio> | <van-radio name="true">同意</van-radio> | ||||
| <van-radio name="false">驳回</van-radio> | <van-radio name="false">驳回</van-radio> | ||||
| </van-radio-group> | </van-radio-group> | ||||
| @@ -1803,7 +1803,11 @@ export default { | |||||
| var leave3 = leave2 % 60; // 计算分钟数后剩余的毫秒数 | var leave3 = leave2 % 60; // 计算分钟数后剩余的毫秒数 | ||||
| var seconds = Math.round(leave3); | var seconds = Math.round(leave3); | ||||
| return days + "天" + hours + "时" + minutes + "分" + seconds + '秒'; | return days + "天" + hours + "时" + minutes + "分" + seconds + '秒'; | ||||
| } | |||||
| }, | |||||
| radioChange(value){ | |||||
| this.comment = value == 'true' ? '同意' : '驳回' ; | |||||
| }, | |||||
| }, | }, | ||||
| }; | }; | ||||
| @@ -27,9 +27,9 @@ | |||||
| <span | <span | ||||
| class="bq" | class="bq" | ||||
| :style="{ | :style="{ | ||||
| background:item.comment.substr(item.comment.length-2,2) == '申请' ? 'rgba(29,111,233,0.2)' : item.comment.substr(item.comment.length-2,2) == '同意' ? 'rgba(29,204,128,0.2)' : item.comment.substr(item.comment.length-2,2) == '结束' ? 'rgba(255,166,62,0.2)' : item.comment.substr(item.comment.length-2,2) == '驳回' ? 'rgba(254,19,19,0.2)' : '', | |||||
| color:item.comment.substr(item.comment.length-2,2) == '申请' ? '#1D6FE9' : item.comment.substr(item.comment.length-2,2) == '同意' ? '#1DCC80' : item.comment.substr(item.comment.length-2,2) == '结束' ? '#FFA63E' : item.comment.substr(item.comment.length-2,2) == '驳回' ? '#FE1313' : '' | |||||
| }" | |||||
| background:item.comment.substr(item.comment.length-2,2) == '申请' ? 'rgba(29,111,233,0.2)' : item.comment.substr(item.comment.length-2,2) == '同意' ? 'rgba(29,204,128,0.2)' : item.comment.substr(item.comment.length-2,2) == '结束' ? 'rgba(255,166,62,0.2)' : item.comment.substr(item.comment.length-2,2) == '驳回' ? 'rgba(254,19,19,0.2)' : '', | |||||
| color:item.comment.substr(item.comment.length-2,2) == '申请' ? '#1D6FE9' : item.comment.substr(item.comment.length-2,2) == '同意' ? '#1DCC80' : item.comment.substr(item.comment.length-2,2) == '结束' ? '#FFA63E' : item.comment.substr(item.comment.length-2,2) == '驳回' ? '#FE1313' : '' | |||||
| }" | |||||
| >{{ item.comment.substr(item.comment.length-2,2) }}</span> | >{{ item.comment.substr(item.comment.length-2,2) }}</span> | ||||
| </p> | </p> | ||||
| <p style="color: #999999;">{{ item.durationInMillis }}</p> | <p style="color: #999999;">{{ item.durationInMillis }}</p> | ||||
| @@ -92,7 +92,7 @@ | |||||
| <van-row type="flex" justify="space-between" align="center"> | <van-row type="flex" justify="space-between" align="center"> | ||||
| <van-col span="5">审批<br/>意见</van-col> | <van-col span="5">审批<br/>意见</van-col> | ||||
| <van-col span="19"> | <van-col span="19"> | ||||
| <van-radio-group v-model="pass" direction="horizontal"> | |||||
| <van-radio-group v-model="pass" direction="horizontal" @change="radioChange"> | |||||
| <van-radio name="true">同意</van-radio> | <van-radio name="true">同意</van-radio> | ||||
| <van-radio name="false">驳回</van-radio> | <van-radio name="false">驳回</van-radio> | ||||
| </van-radio-group> | </van-radio-group> | ||||
| @@ -106,11 +106,11 @@ | |||||
| <van-button type="info" native-type="submit" @click="submitComplete" class="submitButtonActive">提交</van-button> | <van-button type="info" native-type="submit" @click="submitComplete" class="submitButtonActive">提交</van-button> | ||||
| </van-col> | </van-col> | ||||
| </van-row> | </van-row> | ||||
| <div class="clear"></div> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| import request from "@/utils/request"; | |||||
| import { getTopDeptId , schemeDetail } from "@/api/lawEnforcement/index"; | import { getTopDeptId , schemeDetail } from "@/api/lawEnforcement/index"; | ||||
| import law from "@/components/common/law_footer"; | import law from "@/components/common/law_footer"; | ||||
| export default { | export default { | ||||
| @@ -147,6 +147,9 @@ export default { | |||||
| this.schemeOption = response.data; | this.schemeOption = response.data; | ||||
| }); | }); | ||||
| }, | }, | ||||
| radioChange(value){ | |||||
| this.comment = value == 'true' ? '同意' : '驳回' ; | |||||
| }, | |||||
| submitComplete() { | submitComplete() { | ||||
| const data = { | const data = { | ||||
| taskId: this.schemeOption.taskId, | taskId: this.schemeOption.taskId, | ||||
| @@ -180,6 +183,7 @@ export default { | |||||
| } | } | ||||
| .app-container { | .app-container { | ||||
| padding: 0; | padding: 0; | ||||
| padding-bottom: 1%; | |||||
| } | } | ||||
| .examine_box{ | .examine_box{ | ||||
| background-color: #1D6FE9!important; | background-color: #1D6FE9!important; | ||||
| @@ -21,6 +21,7 @@ | |||||
| <van-cell | <van-cell | ||||
| v-for="(item,index) in taskList" | v-for="(item,index) in taskList" | ||||
| :key="index" | |||||
| :value="item.formData.createTime == null ? '' : item.formData.createTime.substr(0,10)" | :value="item.formData.createTime == null ? '' : item.formData.createTime.substr(0,10)" | ||||
| :to="{ | :to="{ | ||||
| name:item.formData.activityBusinessType == '21' ? 'schemeDetail':'caseDetail', | name:item.formData.activityBusinessType == '21' ? 'schemeDetail':'caseDetail', | ||||
| @@ -7,6 +7,10 @@ | |||||
| left-arrow | left-arrow | ||||
| @click-left="onClickLeft" | @click-left="onClickLeft" | ||||
| /> | /> | ||||
| <van-dropdown-menu> | |||||
| <van-dropdown-item v-model="queryParamsTask.activityBusinessType" :options="typeOptions" @change="getTaskList" /> | |||||
| <van-dropdown-item v-model="queryParamsTask.isAsc" :options="option" @change="getTaskList" /> | |||||
| </van-dropdown-menu> | |||||
| <van-list | <van-list | ||||
| v-model="loading" | v-model="loading" | ||||
| :finished="finished" | :finished="finished" | ||||
| @@ -15,7 +19,19 @@ | |||||
| > | > | ||||
| <van-cell-group class="listBox db"> | <van-cell-group class="listBox db"> | ||||
| <van-cell v-for="(item,index) in taskList" :value="item.formData.createTime == null ? '' : item.formData.createTime.substr(0,10)"> | |||||
| <van-cell | |||||
| v-for="(item,index) in taskList" | |||||
| :key="index" | |||||
| :value="item.formData.createTime == null ? '' : item.formData.createTime.substr(0,10)" | |||||
| :to="{ | |||||
| name:item.formData.activityBusinessType == '21' ? 'schemeDetail':'caseDetail', | |||||
| query:{ | |||||
| id:item.formData.activityBusinessType == '21' ? item.formData.id:item.formData.caseId, | |||||
| caseProgress:item.formData.activityBusinessType == '21' ? '': item.formData.activityBusinessType == '22' ? 2:item.formData.activityBusinessType == '24' ? 4:item.formData.activityBusinessType == '25' ? 5:'', | |||||
| type:'waiting' | |||||
| } | |||||
| }" | |||||
| > | |||||
| <template #title> | <template #title> | ||||
| <span class="tap">{{selectDictLabel(activityBusinessTypeOptions,item.formData.activityBusinessType)}}</span> | <span class="tap">{{selectDictLabel(activityBusinessTypeOptions,item.formData.activityBusinessType)}}</span> | ||||
| <span>{{item.projectName}}</span> | <span>{{item.projectName}}</span> | ||||
| @@ -27,6 +43,7 @@ | |||||
| </div> | </div> | ||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| import { listModelCustom } from "@/api/lawEnforcement/index"; | |||||
| import request from "@/utils/request"; | import request from "@/utils/request"; | ||||
| import law from "@/components/common/law_footer"; | import law from "@/components/common/law_footer"; | ||||
| export default { | export default { | ||||
| @@ -36,6 +53,16 @@ export default { | |||||
| }, | }, | ||||
| data() { | data() { | ||||
| return { | return { | ||||
| value1: '', | |||||
| value2: 'a', | |||||
| typeOptions: [ | |||||
| { text: '全部待办', value: '' }, | |||||
| ], | |||||
| option: [ | |||||
| { text: '默认排序', value: '' }, | |||||
| { text: '时间倒序', value: 'desc' }, | |||||
| { text: '时间正序', value: 'asc' }, | |||||
| ], | |||||
| //是否显示加载 | //是否显示加载 | ||||
| loading: false, | loading: false, | ||||
| //是否滚动到底部 | //是否滚动到底部 | ||||
| @@ -47,6 +74,8 @@ export default { | |||||
| taskId: null, | taskId: null, | ||||
| taskName: null, | taskName: null, | ||||
| systemType: 26, | systemType: 26, | ||||
| activityBusinessType:'', | |||||
| isAsc:'' | |||||
| }, | }, | ||||
| //新闻集合 | //新闻集合 | ||||
| workList:[], | workList:[], | ||||
| @@ -58,13 +87,31 @@ export default { | |||||
| }; | }; | ||||
| }, | }, | ||||
| created() { | created() { | ||||
| var that = this ; | |||||
| this.getDicts("activity_business_type").then((response) => { | this.getDicts("activity_business_type").then((response) => { | ||||
| this.activityBusinessTypeOptions = response.data; | |||||
| listModelCustom({"systemType": 26}).then(response1 => { | |||||
| let res = []; | |||||
| let activityBusinessTypeArray = response1.rows.map(function (current) { | |||||
| return current.activityBusinessType | |||||
| }); | |||||
| response.data.forEach(function (value) { | |||||
| if (activityBusinessTypeArray.indexOf(value.dictValue) !== -1) { | |||||
| res.push(value); | |||||
| that.typeOptions.push({ | |||||
| text:value.dictLabel, | |||||
| value:value.dictValue | |||||
| }) | |||||
| } | |||||
| }); | |||||
| this.activityBusinessTypeOptions = res; | |||||
| console.log(that.typeOptions) | |||||
| }); | |||||
| }); | }); | ||||
| this.getTaskList(); | this.getTaskList(); | ||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| getTaskList() { | getTaskList() { | ||||
| this.taskList = [] | |||||
| this.loading = true; | this.loading = true; | ||||
| return request({ | return request({ | ||||
| url: "/activiti/process/taskList", | url: "/activiti/process/taskList", | ||||
| @@ -93,6 +140,27 @@ export default { | |||||
| font-family: SourceHanSansCNBold; | font-family: SourceHanSansCNBold; | ||||
| src: url("../../../assets/fonts/SourceHanSansCN-Bold.otf"); | src: url("../../../assets/fonts/SourceHanSansCN-Bold.otf"); | ||||
| } | } | ||||
| .van-list{ | |||||
| width: 96%; | |||||
| margin: 0 auto; | |||||
| margin-top: 10PX; | |||||
| } | |||||
| /deep/ .van-search__content{ | |||||
| background-color: #ffffff; | |||||
| } | |||||
| /deep/ .van-search__action{ | |||||
| background-color: #1D6FE9; | |||||
| text-align: center; | |||||
| color: #ffffff; | |||||
| padding: 0 0.5rem; | |||||
| } | |||||
| /deep/ .van-search{ | |||||
| background-color: transparent; | |||||
| border-radius: 20PX; | |||||
| border: 1px solid #cccccc; | |||||
| padding: 0; | |||||
| overflow: hidden; | |||||
| } | |||||
| .van-cell__title{ | .van-cell__title{ | ||||
| color: #666666; | color: #666666; | ||||
| flex: 0.7; | flex: 0.7; | ||||
| @@ -106,7 +174,7 @@ export default { | |||||
| flex: 0.3; | flex: 0.3; | ||||
| } | } | ||||
| .app-container { | .app-container { | ||||
| padding: 10PX ; | |||||
| } | } | ||||
| /deep/ .van-nav-bar--fixed{ | /deep/ .van-nav-bar--fixed{ | ||||
| background: url("../../../../static/images/lawEnforcement/head_bg.png") 100%; | background: url("../../../../static/images/lawEnforcement/head_bg.png") 100%; | ||||