|
@@ -365,7 +365,7 @@
|
|
|
v-model="scope.row.status"
|
|
|
:size="size"
|
|
|
placeholder
|
|
|
- @change="(e) => statusChange(e, scope.row.id)"
|
|
|
+ @change="(e) => statusChange(e, scope.row)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="o in scope.row.availableStatusList"
|
|
@@ -475,6 +475,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
</filterModal>
|
|
|
+ <task-dialog v-if="showTaskDialog" :show.sync="showTaskDialog" :task-id="taskId.id" :status-name="taskId.statusString" @getList="getNew" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -493,9 +494,9 @@ import {
|
|
|
createFilter,
|
|
|
filterGetFilter,
|
|
|
getChartListData,
|
|
|
- getChartData,
|
|
|
- updateStatus
|
|
|
+ getChartData
|
|
|
} from '@/api/taskIndex' // ajax
|
|
|
+import { taskUpdate } from '@/api/projectViewDetails'
|
|
|
import filterModal from '@/components/filterModal'
|
|
|
import { settingQueryBizModuleList } from '@/api/defectManage'
|
|
|
import openDialog from '@/views/projectManage/dialog_vue'
|
|
@@ -506,6 +507,7 @@ import mainTitle from '@/components/mainTitle'
|
|
|
import chartView from '@/components/chartView'
|
|
|
import chartSearchFormData from './renderData/chartSearchForm'
|
|
|
import chartSearchForm from '@/components/searchHeader/searchForm'
|
|
|
+import taskDialog from '@/views/projectManage/taskList/dialog/taskDialog' // 任务状态修改(已上线/已提测/已准出)
|
|
|
import '@/views/projectManage/publicCss/index.css'
|
|
|
export default {
|
|
|
components: {
|
|
@@ -515,10 +517,12 @@ export default {
|
|
|
mainTitle,
|
|
|
chartView,
|
|
|
filterModal,
|
|
|
- chartSearchForm
|
|
|
+ chartSearchForm,
|
|
|
+ taskDialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ showTaskDialog: false, // 状态弹窗
|
|
|
size: 'small',
|
|
|
pickerOptions: {
|
|
|
shortcuts: [
|
|
@@ -684,12 +688,25 @@ export default {
|
|
|
this.get_taskList()
|
|
|
}
|
|
|
},
|
|
|
- async statusChange(e, id) {
|
|
|
- const res = await updateStatus({ status: e, id })
|
|
|
+ async statusChange(e, row) {
|
|
|
+ console.log(e, row)
|
|
|
+ if (row.status === 60 || row.status === 70 || row.status === 90 || row.status === 100) {
|
|
|
+ this.taskId = row
|
|
|
+ this.daStatus.map(item => {
|
|
|
+ item.code === row.status ? this.taskId.statusString = item.msg : ''
|
|
|
+ })
|
|
|
+ this.showTaskDialog = true
|
|
|
+ this.nowChangeTask = row
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const res = await taskUpdate({ taskInfoDO: { status: e, id: row.id }})
|
|
|
if (res.code === 200) {
|
|
|
this.get_charts()
|
|
|
}
|
|
|
},
|
|
|
+ getNew() { // 状态改变成功回调
|
|
|
+ this.get_charts()
|
|
|
+ },
|
|
|
get_charts() {
|
|
|
this.logHandle('get_task_charts')
|
|
|
this.updateChartSearchFormValue()
|
|
@@ -700,7 +717,7 @@ export default {
|
|
|
this.table_loading = true
|
|
|
const res = await getChartData(this.form_task)
|
|
|
this.chartData = res.data
|
|
|
- this.get_chartListDetial(res.data.data[0].code)
|
|
|
+ this.get_chartListDetial((this.form_task && this.form_task.code) ? this.form_task.code : res.data.data[0].code)
|
|
|
},
|
|
|
async get_chartListDetial(code) {
|
|
|
this.showChartModal = false
|