Browse Source

字段的修改

master
是小王呀\24601 1 year ago
parent
commit
e0241cfd2c
  1. 1
      src/router/index.js
  2. 2
      src/utils/request.js
  3. 8
      src/views/Hotline/index.vue
  4. 19
      src/views/HotlineDetail/Card.vue
  5. 34
      src/views/HotlineDetail/index.vue

1
src/router/index.js

@ -29,7 +29,6 @@ function getQueryParams() {
return params return params
} }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
let urlParams = getQueryParams() let urlParams = getQueryParams()
if(urlParams.worktoken&&to.path=='/Hotline'){ if(urlParams.worktoken&&to.path=='/Hotline'){
console.log(store.state.app,"store.state.app.userInfo"); console.log(store.state.app,"store.state.app.userInfo");

2
src/utils/request.js

@ -52,7 +52,7 @@ service.interceptors.response.use(
let loginCode = [10007, 401, 10001, 10005, 10006] let loginCode = [10007, 401, 10001, 10005, 10006]
if (loginCode.includes(res.code)) { if (loginCode.includes(res.code)) {
if (store.state.app.userInfo.isRouterLoading) { if (store.state.app.isRouterLoading) {
return return
}else{ }else{
localStorage.removeItem('token_work') localStorage.removeItem('token_work')

8
src/views/Hotline/index.vue

@ -6,8 +6,11 @@
<van-search v-model="workOrderNum" class="no-margin" left-icon="false" shape="round" <van-search v-model="workOrderNum" class="no-margin" left-icon="false" shape="round"
placeholder="按工单号" /> placeholder="按工单号" />
<van-search v-model="mobile" class="no-margin" left-icon="false" shape="round" placeholder="手机号" /> <van-search v-model="mobile" class="no-margin" left-icon="false" shape="round" placeholder="手机号" />
<van-search v-model="operationTypeType" class="no-margin" left-icon="false" @click="showpicker1" <!-- <van-search v-model="operationTypeType" class="no-margin" left-icon="false" @click="showpicker1"
shape="round" placeholder="办理状态" /> shape="round" placeholder="办理状态" disabled="true" /> -->
<van-button round color="#f7f8fa" border-color="transparent" @click="showpicker1" >
<span style="color: #999999;">{{ operationTypeType?operationTypeType:'办理状态' }}</span>
</van-button>
<van-popup v-if="showpicker2" v-model="showpicker2" position="bottom" :style="{ height: '40%' }"> <van-popup v-if="showpicker2" v-model="showpicker2" position="bottom" :style="{ height: '40%' }">
<van-picker v-if="showpicker2" show-toolbar title="标题" :columns="actions" @cancel="showPicker2 = false" <van-picker v-if="showpicker2" show-toolbar title="标题" :columns="actions" @cancel="showPicker2 = false"
@confirm="onConfirm" @confirm="onConfirm"
@ -136,7 +139,6 @@ export default {
console.log(value,"iugui"); console.log(value,"iugui");
this.operationTypeType=value.text this.operationTypeType=value.text
this.operationType=value.value this.operationType=value.value
// this.value = value;
this.showpicker2 = false; this.showpicker2 = false;
console.log( this.showPicker2,"iugui"); console.log( this.showPicker2,"iugui");

19
src/views/HotlineDetail/Card.vue

@ -1,19 +0,0 @@
<template>
<div>
<div>1243</div>
<div class="container">
<div class="flex flex-center2 " style="padding: 15px;">
<div class="Dispatch-left">办理状态</div>
<div class="Dispatch-right">{{tableData.deptName}}</div>
</div>
<div class="van-hairline--bottom" style=""></div>
</div>
</div>
</template>
<script >
</script>
<style scoped>
</style>

34
src/views/HotlineDetail/index.vue

@ -19,7 +19,7 @@
<div class="van-hairline--bottom" style=""></div> <div class="van-hairline--bottom" style=""></div>
<div class="flex flex-center2 " style="padding: 15px;"> <div class="flex flex-center2 " style="padding: 15px;">
<div class="Dispatch-left">指派时间</div> <div class="Dispatch-left">指派时间</div>
<div class="Dispatch-right">{{tableData.createdTime}}</div> <div class="Dispatch-right">{{tableData.latestOperatedTime}}</div>
</div> </div>
<div class="van-hairline--bottom" style=""></div> <div class="van-hairline--bottom" style=""></div>
<div class="flex flex-center2 " style="padding: 15px;"> <div class="flex flex-center2 " style="padding: 15px;">
@ -125,11 +125,11 @@
</div> </div>
<div class="flex flex-center2 " style="padding: 5px;"> <div class="flex flex-center2 " style="padding: 5px;">
<div class="Processhandling-left-left">联系当事人时限:</div> <div class="Processhandling-left-left">联系当事人时限:</div>
<div class="Dispatch-right">{{item.categoryAllName}}</div> <div class="Dispatch-right">{{item.contactTime}}</div>
</div> </div>
<div class="flex flex-center2 " style="padding: 5px;"> <div class="flex flex-center2 " style="padding: 5px;">
<div class="Processhandling-left-left">(部门)办结时限:</div> <div class="Processhandling-left-left">(部门)办结时限:</div>
<div class="Dispatch-right">{{item.timeLimit}}</div> <div class="Dispatch-right">{{formatDate1(new Date(item.timeLimit * 1000))}}</div>
</div> </div>
</div> </div>
</div> </div>
@ -137,7 +137,7 @@
<div class="container1"> <div class="container1">
<van-button style="width: 100%;" round type="info" @click="handlelist()">办理</van-button> <van-button style="width: 100%;" round type="info" @click="handlelist()">办理</van-button>
</div> </div>
<van-popup round v-model="show" close-icon-position="top-left" position="bottom" :style="{ height: '50%' }"> <van-popup round v-model="show" close-icon-position="top-left" position="bottom" :style="{ height: '70%' }">
<van-cell-group> <van-cell-group>
<van-field readonly is-link v-model="stutasName" label="办理状态" placeholder="请选择证件类型" <van-field readonly is-link v-model="stutasName" label="办理状态" placeholder="请选择证件类型"
@click="showPicker = true" /> @click="showPicker = true" />
@ -149,7 +149,7 @@
<van-cell> <van-cell>
<div class="flex" is-link> <div class="flex" is-link>
<span style=" white-space: nowrap;">上传录音</span> <span style=" white-space: nowrap;">上传录音</span>
<van-uploader v-model="fileList" :after-read="afterRead" accept="audio/mp3"> <van-uploader v-model="fileList" :after-read="afterRead" accept="audio/mp3" preview-size=80px>
<div class="flex flex-center2 m-left18"> <div class="flex flex-center2 m-left18">
<img style="width: 15px;height: 15px;" src="../../assets/images/uploand.png"> <img style="width: 15px;height: 15px;" src="../../assets/images/uploand.png">
<span style=" white-space: nowrap;">选择文件</span> <span style=" white-space: nowrap;">选择文件</span>
@ -159,7 +159,7 @@
</van-cell> </van-cell>
<van-cell title="上传图片"> <van-cell title="上传图片">
<template #label> <template #label>
<van-uploader v-model="pictureList" :after-read="afterRead" :max-count="3" <van-uploader v-model="pictureList" :after-read="afterRead1" :max-count="3" accept="audio/mp3"
:max-size="10 * 1024 * 1024" /> :max-size="10 * 1024 * 1024" />
</template> </template>
</van-cell> </van-cell>
@ -218,7 +218,7 @@ import throttle from 'lodash/debounce'
import { icEventList,agencyGridDepttree,process,reply } from '@/api/service' import { icEventList,agencyGridDepttree,process,reply } from '@/api/service'
import { uploadvariedfile } from '@/api/basic' import { uploadvariedfile } from '@/api/basic'
import { Dialog } from 'vant'; import { Dialog } from 'vant';
import Card from './Card.vue';
export default { export default {
data() { data() {
return { return {
@ -248,7 +248,7 @@ export default {
mobile:"", mobile:"",
status: false, status: false,
pageNo: 1, pageNo: 1,
pageSize: 20, pageSize: 50,
tableData:{}, tableData:{},
afterList:[], afterList:[],
minDate:new Date(), minDate:new Date(),
@ -471,6 +471,7 @@ export default {
afterRead(file) { afterRead(file) {
file.status = 'uploading' file.status = 'uploading'
file.message = '上传中...' file.message = '上传中...'
if(file.file.file.file.name.split('.').pop()=='mp3')
uploadvariedfile(file.file) uploadvariedfile(file.file)
.then(res => { .then(res => {
file.status = '' file.status = ''
@ -501,22 +502,7 @@ export default {
file.status = 'failed' file.status = 'failed'
file.message = '上传失败' file.message = '上传失败'
}) })
}, },
// beforeRead(file) {
// // false
// if (file.type.indexOf('audio') === -1) {
// this.$toast.fail('');
// return false;
// }
// return true;
// },
// onDelete(file, index) {
// //
// this.fileList.splice(index, 1);
// },
handleConfirm(value) { handleConfirm(value) {
console.log(value); console.log(value);
this.returnTime = this.formatDate1(value); this.returnTime = this.formatDate1(value);
@ -538,7 +524,7 @@ export default {
} }
}, },
components: {Card}, components: {},
computed: { computed: {
statusClass() { statusClass() {
return { return {

Loading…
Cancel
Save