|
@@ -1,7 +1,7 @@
|
|
|
<!-- 工种管理 -->
|
|
|
<template>
|
|
|
<div class="work-type">
|
|
|
- <template v-if="!addOrUpdateVisible && !detailVisible && !assignVisible && !selectionVisible">
|
|
|
+ <template v-if="!addOrUpdateVisible && !detailVisible && !assignVisible && !selectionVisible && !noticeChangeVisible">
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="queryData()">
|
|
|
<el-form-item label="项目名称">
|
|
|
<el-input v-model="dataForm.projectName" placeholder="" clearable/>
|
|
@@ -14,7 +14,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button @click="queryData()">查询</el-button>
|
|
|
- <!-- <el-button type="primary" @click="addOrUpdateHandle(null, false)">新建</el-button> -->
|
|
|
+ <el-button @click="noticeSettingHandle(null, false)">通知设置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table
|
|
@@ -97,6 +97,7 @@
|
|
|
<detail v-if="detailVisible" ref="detail" @onChose="onChose"/>
|
|
|
<assign v-if="assignVisible" ref="assign" @onChose="onChose"/>
|
|
|
<selection v-if="selectionVisible" ref="selection" @onChose="onChose"/>
|
|
|
+ <notice-change v-if="noticeChangeVisible" ref="noticeChange" @onChose="onChose"/>
|
|
|
|
|
|
<el-dialog title="导入" :visible.sync="importVisible">
|
|
|
<el-upload
|
|
@@ -121,10 +122,11 @@
|
|
|
import Detail from './project-product-detail'
|
|
|
import Assign from './project-product-assign'
|
|
|
import Selection from './project-product-selection'
|
|
|
+ import NoticeChange from './project-product-notice-change-setting'
|
|
|
export default {
|
|
|
name: 'file-manage',
|
|
|
components: {
|
|
|
- Detail, Assign, Selection
|
|
|
+ Detail, Assign, Selection, NoticeChange
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -133,6 +135,7 @@
|
|
|
assignVisible: false,
|
|
|
selectionVisible: false,
|
|
|
importVisible: false,
|
|
|
+ noticeChangeVisible: false,
|
|
|
dataForm: {},
|
|
|
dataList: [],
|
|
|
pageIndex: 1,
|
|
@@ -159,6 +162,7 @@
|
|
|
this.detailVisible = false
|
|
|
this.assignVisible = false
|
|
|
this.selectionVisible = false
|
|
|
+ this.noticeChangeVisible = false
|
|
|
},
|
|
|
// 查询
|
|
|
queryData () {
|
|
@@ -216,6 +220,7 @@
|
|
|
// 详情
|
|
|
detailHandle (item) {
|
|
|
this.detailVisible = true
|
|
|
+ item.stateStr = this.getStateStr(item.state)
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.detail.init(item)
|
|
|
})
|
|
@@ -278,11 +283,21 @@
|
|
|
},
|
|
|
formatState (row) {
|
|
|
if (!row.state) return ''
|
|
|
- let option = this.stateOption.find(t => t.value === row.state)
|
|
|
+
|
|
|
+ return this.getStateStr(row.state)
|
|
|
+ },
|
|
|
+ getStateStr(state){
|
|
|
+ let option = this.stateOption.find(t => t.value === state)
|
|
|
if (option != null) {
|
|
|
return option.label
|
|
|
}
|
|
|
return ''
|
|
|
+ },
|
|
|
+ noticeSettingHandle(){
|
|
|
+ this.noticeChangeVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.noticeChange.init()
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|