Merge branch 'develop' into 'FOTON'
Develop See merge request LAWS/laws-system-front-FOTON!232
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
import axios from "@/common/axiosV2";
|
||||||
|
|
||||||
|
export function phoneUser(params) {
|
||||||
|
return axios({
|
||||||
|
url: "api/sys/user/getUserByPhone",
|
||||||
|
method: "get",
|
||||||
|
params
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -27,6 +27,8 @@ import SQTree from './SQTree'
|
|||||||
import OrgTable from './OrgTable'
|
import OrgTable from './OrgTable'
|
||||||
import MySelect from './mySelect'
|
import MySelect from './mySelect'
|
||||||
|
|
||||||
|
import phoneRole from './phoneRole'
|
||||||
|
|
||||||
const install = function (Vue) {
|
const install = function (Vue) {
|
||||||
Vue.component('loading', Loading)
|
Vue.component('loading', Loading)
|
||||||
Vue.component('navMenu', NavMenu)
|
Vue.component('navMenu', NavMenu)
|
||||||
@@ -52,6 +54,7 @@ const install = function (Vue) {
|
|||||||
Vue.component('RoleTree', RoleTree)
|
Vue.component('RoleTree', RoleTree)
|
||||||
Vue.component('MechanismTree', MechanismTree)
|
Vue.component('MechanismTree', MechanismTree)
|
||||||
Vue.component('MySelect', MySelect)
|
Vue.component('MySelect', MySelect)
|
||||||
|
Vue.component('phoneRole', phoneRole)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -0,0 +1,250 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneRole phoneBox">
|
||||||
|
<van-action-sheet
|
||||||
|
v-model="isShowPhone2"
|
||||||
|
:title="roleTitle"
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
ref="phoneForm"
|
||||||
|
class="label-input-form"
|
||||||
|
:inline="true"
|
||||||
|
:model="phoneForm"
|
||||||
|
@submit.native.prevent
|
||||||
|
>
|
||||||
|
<el-form-item class="form-item-disabled" style="margin: 10px;">
|
||||||
|
<el-input
|
||||||
|
size="small"
|
||||||
|
clearable
|
||||||
|
v-model="phoneForm.name"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="form-item-disabled" style="margin: 10px;">
|
||||||
|
<el-button type="primary" size="small" @click="queryPhone">查询</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
||||||
|
<van-list
|
||||||
|
v-model="loading"
|
||||||
|
:finished="finished"
|
||||||
|
finished-text="没有更多了"
|
||||||
|
@load="onLoad"
|
||||||
|
:immediate-check="false"
|
||||||
|
:offset="300"
|
||||||
|
>
|
||||||
|
<van-checkbox-group v-if="!checkMore" v-model="result" :max="1">
|
||||||
|
<van-cell-group>
|
||||||
|
<van-cell
|
||||||
|
v-for="(item, index) in roleList"
|
||||||
|
clickable
|
||||||
|
:key="index"
|
||||||
|
:title="item.userName"
|
||||||
|
@click="toggle(index)"
|
||||||
|
>
|
||||||
|
<template #right-icon>
|
||||||
|
<van-checkbox :name="item" ref="checkbox"/>
|
||||||
|
</template>
|
||||||
|
</van-cell>
|
||||||
|
</van-cell-group>
|
||||||
|
</van-checkbox-group>
|
||||||
|
<van-checkbox-group v-if="checkMore" v-model="result">
|
||||||
|
<van-cell-group>
|
||||||
|
<van-cell
|
||||||
|
v-for="(item, index) in roleList"
|
||||||
|
clickable
|
||||||
|
:key="index"
|
||||||
|
:title="item.userName"
|
||||||
|
@click="toggle(index)"
|
||||||
|
>
|
||||||
|
<template #right-icon>
|
||||||
|
<van-checkbox :name="item" ref="checkbox"/>
|
||||||
|
</template>
|
||||||
|
</van-cell>
|
||||||
|
</van-cell-group>
|
||||||
|
</van-checkbox-group>
|
||||||
|
</van-list>
|
||||||
|
</van-pull-refresh>
|
||||||
|
<div class="phoneBtn">
|
||||||
|
<van-button type="default" @click="roleClear">取消</van-button>
|
||||||
|
<van-button type="info" @click="roleSumit">确认</van-button>
|
||||||
|
</div>
|
||||||
|
</van-action-sheet>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vue from 'vue';
|
||||||
|
import {ActionSheet, Checkbox, CheckboxGroup, Cell, CellGroup, Button, List, PullRefresh} from 'vant';
|
||||||
|
import {phoneUser} from '@/api/phone'
|
||||||
|
|
||||||
|
Vue.use(ActionSheet, Checkbox, CheckboxGroup, Cell, CellGroup, Button, List, PullRefresh);
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "phoneRole",
|
||||||
|
props: {
|
||||||
|
isShowPhone: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
checkMore: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
roleTitle: {
|
||||||
|
type: String,
|
||||||
|
},
|
||||||
|
resultList: { // 回显
|
||||||
|
type: Array,
|
||||||
|
default: () => {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
filterText: '',
|
||||||
|
isShowPhone2: false,
|
||||||
|
result: [],
|
||||||
|
phoneForm: {
|
||||||
|
name: '',
|
||||||
|
page: 1
|
||||||
|
},
|
||||||
|
roleList: [],
|
||||||
|
loading: false,
|
||||||
|
finished: false,
|
||||||
|
refreshing: false,
|
||||||
|
total: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
isShowPhone(val) {
|
||||||
|
this.isShowPhone2 = val
|
||||||
|
if (val) {
|
||||||
|
this.result = this.resultList
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isShowPhone2(val) {
|
||||||
|
this.$emit('update:isShowPhone', val)
|
||||||
|
},
|
||||||
|
resultList (val) {
|
||||||
|
this.result = val
|
||||||
|
},
|
||||||
|
result() {
|
||||||
|
this.$emit('resultList', this.result)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getPhoneData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询 */
|
||||||
|
queryPhone() {
|
||||||
|
this.getPhoneData()
|
||||||
|
},
|
||||||
|
/** 获取人员数据 */
|
||||||
|
async getPhoneData() {
|
||||||
|
this.phoneForm.page = 1
|
||||||
|
this.roleList = []
|
||||||
|
phoneUser(this.phoneForm).then(res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.roleList = res.data
|
||||||
|
this.total = this.roleList[0].total
|
||||||
|
this.loading = false
|
||||||
|
if (this.total === this.roleList.length) {
|
||||||
|
this.finished = true
|
||||||
|
} else {
|
||||||
|
this.finished = false
|
||||||
|
}
|
||||||
|
this.refreshing = false
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toggle(index) {
|
||||||
|
if (!this.checkMore) {
|
||||||
|
this.result = []
|
||||||
|
this.$refs.checkbox[index].toggle();
|
||||||
|
} else {
|
||||||
|
this.$refs.checkbox[index].toggle();
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
roleSumit() {
|
||||||
|
this.$emit('checkedRole', this.result)
|
||||||
|
this.isShowPhone2 = false
|
||||||
|
},
|
||||||
|
roleClear() {
|
||||||
|
this.result = []
|
||||||
|
this.isShowPhone2 = false
|
||||||
|
},
|
||||||
|
|
||||||
|
// 下滑加载数据
|
||||||
|
onLoad() {
|
||||||
|
phoneUser(this.phoneForm).then(res => {
|
||||||
|
this.roleList = this.roleList.concat(res.data)
|
||||||
|
this.total = this.roleList[0].total
|
||||||
|
this.loading = false
|
||||||
|
if (this.roleList.length < this.total) {
|
||||||
|
this.phoneForm.page ++
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.finished = true
|
||||||
|
this.loading = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 下拉刷新
|
||||||
|
onRefresh() {
|
||||||
|
this.getPhoneData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/phone';
|
||||||
|
|
||||||
|
.phoneRole {
|
||||||
|
|
||||||
|
|
||||||
|
.van-action-sheet {
|
||||||
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-action-sheet__cancel {
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: #0c91e5;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-action-sheet__content {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-list {
|
||||||
|
//min-height: 9rem;
|
||||||
|
height: 9.5rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-popup--bottom.van-popup--round {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phoneBtn {
|
||||||
|
padding: 5px;
|
||||||
|
|
||||||
|
.van-button--info {
|
||||||
|
width: 49%;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-button--default {
|
||||||
|
width: 49%;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -327,7 +327,7 @@
|
|||||||
:action="fileUrl"
|
:action="fileUrl"
|
||||||
ref="importfile"
|
ref="importfile"
|
||||||
name="file"
|
name="file"
|
||||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||||
:before-upload="beginImportFile"
|
:before-upload="beginImportFile"
|
||||||
:on-success="importFileSuccess"
|
:on-success="importFileSuccess"
|
||||||
:on-remove="importFileRemove"
|
:on-remove="importFileRemove"
|
||||||
@@ -476,10 +476,10 @@ export default {
|
|||||||
var fileSuffix = filename.substring(index1, index2)
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
// 判断上传文件格式
|
// 判断上传文件格式
|
||||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
|
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
// 判断文件上传大小
|
// 判断文件上传大小
|
||||||
|
|||||||
@@ -342,7 +342,7 @@
|
|||||||
:action="fileUrl"
|
:action="fileUrl"
|
||||||
ref="importfile"
|
ref="importfile"
|
||||||
name="file"
|
name="file"
|
||||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||||
:before-upload="beginImportFile"
|
:before-upload="beginImportFile"
|
||||||
:on-success="importFileSuccess"
|
:on-success="importFileSuccess"
|
||||||
:on-remove="importFileRemove"
|
:on-remove="importFileRemove"
|
||||||
@@ -489,10 +489,10 @@ export default {
|
|||||||
var fileSuffix = filename.substring(index1, index2)
|
var fileSuffix = filename.substring(index1, index2)
|
||||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||||
// 判断上传文件格式
|
// 判断上传文件格式
|
||||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
|
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
// 判断文件上传大小
|
// 判断文件上传大小
|
||||||
|
|||||||
@@ -255,14 +255,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj (item) {
|
updataFj (item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
|
|||||||
@@ -464,14 +464,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -365,14 +365,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -357,14 +357,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -550,14 +550,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -473,14 +473,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
|
|||||||
@@ -364,14 +364,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
|
|||||||
@@ -361,14 +361,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -361,14 +361,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||||
|
|||||||
@@ -361,14 +361,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
updataFj(item) {
|
updataFj(item) {
|
||||||
let id
|
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||||
let type = item.fileName.split('.')
|
|
||||||
if (type[1] === 'pdf') {
|
|
||||||
id = item.attId
|
|
||||||
} else {
|
|
||||||
id = item.oriAttId
|
|
||||||
}
|
|
||||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
|
||||||
},
|
},
|
||||||
getHistoryData() {
|
getHistoryData() {
|
||||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
show-back
|
show-back
|
||||||
approval
|
approval
|
||||||
|
show-transfer
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:isSubmitBack="backLoading"
|
:isSubmitBack="backLoading"
|
||||||
@@ -152,12 +153,19 @@
|
|||||||
>
|
>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<Role-tree
|
<!-- <Role-tree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="modalshowflag"
|
:is-visible.sync="modalshowflag"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
@checkedRole="drawerCheck"
|
@checkedRole="drawerCheck"
|
||||||
|
/>-->
|
||||||
|
<!-- 写有 check-more 是多人,没有就是单人 -->
|
||||||
|
<phone-role
|
||||||
|
:role-title="roleTitle"
|
||||||
|
:result-list="phoneRoleList"
|
||||||
|
:is-show-phone.sync="showPage"
|
||||||
|
@checkedRole="phoneSumit"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -207,6 +215,12 @@ export default {
|
|||||||
// 驳回弹窗状态
|
// 驳回弹窗状态
|
||||||
backDialog: false,
|
backDialog: false,
|
||||||
|
|
||||||
|
// 储存手机端选人集合
|
||||||
|
phoneRoleList: [],
|
||||||
|
roleTitle: '',
|
||||||
|
showPage: false,
|
||||||
|
phoneRole: '',
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@@ -308,11 +322,18 @@ export default {
|
|||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
|
||||||
this.turnLoading = true
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.showPage = true
|
||||||
|
this.roleTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 转办选人框
|
||||||
|
phoneSumit (data) {
|
||||||
|
this.phoneRoleList = data
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].usId, // 被委托人
|
||||||
userId: this.userId, // 委托人
|
userId: this.userId, // 委托人
|
||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
@@ -324,12 +345,7 @@ export default {
|
|||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
// this.showPage = false
|
||||||
},
|
|
||||||
// 转办按钮
|
|
||||||
handleTurnTo() {
|
|
||||||
this.modalshowflag = true
|
|
||||||
this.drawerTitle = '转办处理人'
|
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
this.backLoading = true
|
this.backLoading = true
|
||||||
@@ -402,6 +418,9 @@ export default {
|
|||||||
pageSizeChange () {
|
pageSizeChange () {
|
||||||
this.getTableByPage()
|
this.getTableByPage()
|
||||||
},
|
},
|
||||||
|
showPagePC() {
|
||||||
|
this.showPage = true
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -290,7 +290,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -416,7 +416,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -523,7 +523,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -1029,8 +1029,22 @@
|
|||||||
this.addDrawer2 = false
|
this.addDrawer2 = false
|
||||||
}, // 关闭添加标准事件
|
}, // 关闭添加标准事件
|
||||||
updateFile (item) {
|
updateFile (item) {
|
||||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
const attId = item.attId
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
clickButtonToUpload (file) {
|
||||||
|
const attId = file.attId
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
checkRole(type, index, row) {
|
checkRole(type, index, row) {
|
||||||
if (row) {
|
if (row) {
|
||||||
this.nodeList = []
|
this.nodeList = []
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
width="150">
|
width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.phone"></el-input>
|
<el-input style="margin: 10px 0;" v-model="scope.row.phone"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
width="200">
|
width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.email"></el-input>
|
<el-input style="margin: 10px 0;" v-model="scope.row.email"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
width="150">
|
width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.phone"></el-input>
|
<el-input style="margin: 10px 0;" v-model="scope.row.phone"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
width="200">
|
width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.email"></el-input>
|
<el-input style="margin: 10px 0;" v-model="scope.row.email"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -416,7 +416,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -523,7 +523,7 @@
|
|||||||
align="center">
|
align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -906,7 +906,12 @@
|
|||||||
this.addDrawer2 = false
|
this.addDrawer2 = false
|
||||||
}, // 关闭添加标准事件
|
}, // 关闭添加标准事件
|
||||||
updateFile (item) {
|
updateFile (item) {
|
||||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
const attId = item.attId
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkRole(type, index, row) {
|
checkRole(type, index, row) {
|
||||||
if (row) {
|
if (row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user