Commit a25697f9 by qinjianhui

fix: 问题修改

parent 7948aeff
...@@ -118,8 +118,9 @@ ...@@ -118,8 +118,9 @@
placeholder="请选择" placeholder="请选择"
> >
<el-option <el-option
v-for="(priorityStatus, v-for="(
index) in priorityStatusList" priorityStatus, index
) in priorityStatusList"
:key="index" :key="index"
:value="priorityStatus.value" :value="priorityStatus.value"
:label="priorityStatus.name" :label="priorityStatus.name"
...@@ -284,7 +285,11 @@ ...@@ -284,7 +285,11 @@
> >
<span class="label">工单内容</span> <span class="label">工单内容</span>
<span <span
style="flex: 1; display: inline-block;padding:0 3%" style="
flex: 1;
display: inline-block;
padding: 0 3%;
"
class="value" class="value"
v-html="detail.content" v-html="detail.content"
></span> ></span>
...@@ -295,7 +300,11 @@ ...@@ -295,7 +300,11 @@
> >
<span class="label">备注</span> <span class="label">备注</span>
<span <span
style="flex: 1; display: inline-block;padding:0 3%" style="
flex: 1;
display: inline-block;
padding: 0 3%;
"
class="value" class="value"
v-html="detail.remark" v-html="detail.remark"
></span> ></span>
...@@ -593,7 +602,7 @@ export default { ...@@ -593,7 +602,7 @@ export default {
key: 'title', key: 'title',
minWidth: 120, minWidth: 120,
align: 'left', align: 'left',
render: item => ( render: (item) => (
<span style="position: relative;"> <span style="position: relative;">
<span>{item.title}</span> <span>{item.title}</span>
{item.sign === 1 && {item.sign === 1 &&
...@@ -647,9 +656,9 @@ export default { ...@@ -647,9 +656,9 @@ export default {
label: '优先级', label: '优先级',
key: 'priorityStatus', key: 'priorityStatus',
width: 80, width: 80,
render: item => { render: (item) => {
if (item.priorityStatus) { if (item.priorityStatus) {
return this.priorityStatusList.find(v => { return this.priorityStatusList.find((v) => {
return v.value === item.priorityStatus return v.value === item.priorityStatus
}).name }).name
} else { } else {
...@@ -660,7 +669,7 @@ export default { ...@@ -660,7 +669,7 @@ export default {
{ {
label: '描述', label: '描述',
key: 'content', key: 'content',
render: item => { render: (item) => {
return ( return (
<div <div
class="description" class="description"
...@@ -699,7 +708,7 @@ export default { ...@@ -699,7 +708,7 @@ export default {
fixed: 'right', fixed: 'right',
width: 120, width: 120,
align: 'center', align: 'center',
render: item => ( render: (item) => (
<span> <span>
{item.orderStatus === 'PRE_HANDLING' && {item.orderStatus === 'PRE_HANDLING' &&
Number(item.fromUser) === Number(item.fromUser) ===
...@@ -755,8 +764,11 @@ export default { ...@@ -755,8 +764,11 @@ export default {
</span> </span>
)} )}
{item.orderStatus === 'TO_BE_CONFIRMED' && {item.orderStatus === 'TO_BE_CONFIRMED' &&
Number(item.leaders) === item.leaders &&
this.userInfo.id && ( item.leaders
.split(',')
.map((e) => +e)
.includes(this.userInfo.id) && (
<span title="开始" class="icon-view"> <span title="开始" class="icon-view">
<img <img
width="24" width="24"
...@@ -820,7 +832,7 @@ export default { ...@@ -820,7 +832,7 @@ export default {
methods: { methods: {
handlePriorityStatus(data) { handlePriorityStatus(data) {
if (data) { if (data) {
return this.priorityStatusList.find(v => { return this.priorityStatusList.find((v) => {
return v.value === data return v.value === data
}).name }).name
} else { } else {
...@@ -837,7 +849,7 @@ export default { ...@@ -837,7 +849,7 @@ export default {
this.$refs.editForm.resetFields() this.$refs.editForm.resetFields()
}, },
update(v) { update(v) {
getInfo(v.id).then(res => { getInfo(v.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.editForm = JSON.parse( this.editForm = JSON.parse(
JSON.stringify(res.data), JSON.stringify(res.data),
...@@ -1001,10 +1013,8 @@ export default { ...@@ -1001,10 +1013,8 @@ export default {
}, },
async getlist() { async getlist() {
this.loading = true this.loading = true
const { const { pageSize, currentPage } =
pageSize, this.centerPageOptions
currentPage,
} = this.centerPageOptions
axios axios
.post('platform/platformWorkOrder/list_page', { .post('platform/platformWorkOrder/list_page', {
pageSize, pageSize,
...@@ -1017,7 +1027,7 @@ export default { ...@@ -1017,7 +1027,7 @@ export default {
this.searchForm.leaders && this.searchForm.leaders &&
this.searchForm.leaders.join(','), this.searchForm.leaders.join(','),
}) })
.then(res => { .then((res) => {
if (res.code !== 200) return if (res.code !== 200) return
this.sourceData = res.data.records this.sourceData = res.data.records
this.centerPageOptions.total = res.data.total this.centerPageOptions.total = res.data.total
...@@ -1073,7 +1083,7 @@ export default { ...@@ -1073,7 +1083,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}).then(() => { }).then(() => {
closeForPending(v.id).then(res => { closeForPending(v.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('已关闭') this.$message.success('已关闭')
this.getlist() this.getlist()
...@@ -1114,7 +1124,7 @@ export default { ...@@ -1114,7 +1124,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
}).then(() => { }).then(() => {
reject(v.id).then(res => { reject(v.id).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.$message.success('已驳回') this.$message.success('已驳回')
this.getlist() this.getlist()
...@@ -1170,7 +1180,7 @@ export default { ...@@ -1170,7 +1180,7 @@ export default {
.get( .get(
`platform/platformWorkOrderChat/getByWorkOrder?workOrderId=${item.id}`, `platform/platformWorkOrderChat/getByWorkOrder?workOrderId=${item.id}`,
) )
.then(res => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.chatRecord = res.data 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