This commit is contained in:
parent
fc3e8a9bfa
commit
dbe565fcf1
|
|
@ -40,7 +40,7 @@
|
|||
</template>
|
||||
<!-- 标段工程状态 -->
|
||||
<template slot="proStatus" slot-scope="{ data }">
|
||||
<el-tag size="mini" type="primary">
|
||||
<el-tag size="mini" :type="initType(data.proStatus)">
|
||||
{{ initProStatus(data.proStatus) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
|
|
@ -51,6 +51,7 @@
|
|||
size="mini"
|
||||
type="success"
|
||||
icon="el-icon-check"
|
||||
v-if="data.proStatus != '4'"
|
||||
v-hasPermi="['lot:project:complete']"
|
||||
@click="onHandleCompleteAllProject(data)"
|
||||
>
|
||||
|
|
@ -235,9 +236,10 @@ export default {
|
|||
const res = await addAndEditLotLotProjectAPI({
|
||||
id: data.id,
|
||||
proStatus: '4',
|
||||
subComId: data.subComId,
|
||||
})
|
||||
if (res.code === 200) {
|
||||
this.$msgSuccess('完工成功')
|
||||
this.$modal.msgSuccess('完工成功')
|
||||
this.$refs.lotProjectTableRef.getTableList() // 更新列表
|
||||
}
|
||||
})
|
||||
|
|
@ -269,6 +271,18 @@ export default {
|
|||
|
||||
return data || ''
|
||||
},
|
||||
// 初始化工程状态标签
|
||||
initType(data) {
|
||||
if (typeof data === 'string') {
|
||||
return (
|
||||
this.dict.type.project_status.find(
|
||||
(item) => item.value == data,
|
||||
).raw.listClass || 'primary'
|
||||
)
|
||||
}
|
||||
|
||||
return 'primary' || ''
|
||||
},
|
||||
|
||||
// 确定按钮
|
||||
async onHandleConfirmAddOrEdit() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue