Commit f2c8e21a by qinjianhui

Merge branch 'dev' into 'master'

Dev

See merge request !25
parents 40da5110 8daebed0
......@@ -24,6 +24,8 @@ import {
MenuItemGroup,
Tag,
Checkbox,
Tabs,
TabPane,
Tree,
Dropdown,
DropdownItem,
......@@ -50,6 +52,8 @@ const components = [
MenuItem,
Submenu,
MenuItemGroup,
Tabs,
TabPane,
Tag,
Checkbox,
Tree,
......
......@@ -160,7 +160,7 @@ export default {
],
},
paginationOptions: {
pageSize: 100,
pageSize: 10,
currentPage: 1,
total: 0,
},
......
......@@ -187,14 +187,14 @@ export default {
index: '/saas/currency',
children: [],
},
// {
// id: 4,
// path: '',
// label: '定时任务',
// icon: 'el-icon-message-solid',
// index: '/saas/timed_task',
// children: [],
// },
{
id: 4,
path: '',
label: '定时任务',
icon: 'el-icon-message-solid',
index: '/saas/timed_task',
children: [],
},
],
},
],
......
......@@ -467,12 +467,11 @@ export default {
Edit,
},
data() {
const userInfo = localStorage.getItem('userinfo')
const userInfo = localStorage.getItem('user')
let employeeId
if (userInfo) {
employeeId = JSON.parse(userInfo).employeeId
}
return {
loading: false,
detailLoading: false,
......@@ -483,6 +482,7 @@ export default {
currentPage: 1,
total: 0,
},
userInfo: JSON.parse(userInfo),
taskLeader: '',
assignVisible: false,
periodTime: [],
......@@ -527,7 +527,7 @@ export default {
)
},
computed: {
...mapState(['deptStaff', 'userInfo']),
...mapState(['deptStaff']),
tableColumns() {
// const employeeId = this.employeeId
return [
......@@ -536,7 +536,7 @@ export default {
key: 'title',
minWidth: 120,
align: 'left',
render: (item) => (
render: item => (
<span style="position: relative;">
<span>{item.title}</span>
{item.sign === 1 &&
......@@ -567,6 +567,11 @@ export default {
width: 80,
},
{
label: '验收意见',
key: 'evaluations',
width: 140,
},
{
label: '负责人',
key: 'leaderNames',
width: 80,
......@@ -579,7 +584,7 @@ export default {
{
label: '描述',
key: 'content',
render: (item) => {
render: item => {
return (
<div
class="description"
......@@ -618,7 +623,7 @@ export default {
fixed: 'right',
width: 80,
align: 'center',
render: (item) => (
render: item => (
<span>
{
<span
......@@ -848,8 +853,10 @@ export default {
},
async getlist() {
this.loading = true
const { pageSize, currentPage } =
this.centerPageOptions
const {
pageSize,
currentPage,
} = this.centerPageOptions
axios
.post('platform/platformWorkOrder/list_page', {
pageSize,
......@@ -862,7 +869,7 @@ export default {
this.searchForm.leaders &&
this.searchForm.leaders.join(','),
})
.then((res) => {
.then(res => {
if (res.code !== 200) return
this.sourceData = res.data.records
this.centerPageOptions.total = res.data.total
......@@ -966,7 +973,7 @@ export default {
.get(
`platform/platformWorkOrderChat/getByWorkOrder?workOrderId=${item.id}`,
)
.then((res) => {
.then(res => {
if (res.code === 200) {
this.chatRecord = res.data
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment