修改任务清单的编辑

This commit is contained in:
qq787203167
2022-05-07 13:46:25 +08:00
parent d2d2839d12
commit ba8d83259b
7 changed files with 231 additions and 15 deletions
@@ -39,10 +39,6 @@
<a-icon type="export" :rotate="-90"/>
{{$t('export')}}
</div>
<div @click="addProcess" class="operator-text">
<a-icon type="export" :rotate="-90"/>
发起1
</div>
</div>
<div style="width: 100%">
<a-table
@@ -91,29 +87,32 @@
</div>
</div>
<div slot="CertificationProgress" slot-scope="text,result">
<span class="box-content-color">
<span class="box-content-color box-content-cou" @click="CertificationProgressClick(result)">
实验通过
</span>
</div>
<div slot="CurrentProjectStatusEvaluation" slot-scope="text,result">
<div class="Current-color">
<div class="Current-color box-content-cou" @click="CurrentProjectClick(result)">
<div class="Current-color-box"></div>
</div>
</div>
</a-table>
</div>
<certificationDirectory :url="url" ref="certificationDirectoryRef"/>
<TaskListModel ref="TaskListModelRef"/>
</a-card>
</template>
<script>
import certificationDirectory from './certificationDirectory'
import TaskListModel from './TaskListModel'
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
export default {
name: 'TaskList',
components: {
certificationDirectory
certificationDirectory,
TaskListModel
},
data() {
return {
@@ -207,11 +206,20 @@
}
getAction(this.url.list, query).then((res) => {
if (res.success) {
this.dataSource = res.result
// this.dataSource = res.result
this.dataSource = [{}]
} else {
this.dataSource = []
}
})
},
CertificationProgressClick(val) {
let item = JSON.parse(JSON.stringify(val))
this.$refs.TaskListModelRef.getData(item, this.$t('CertificationProgress'))
},
CurrentProjectClick(val) {
let item = JSON.parse(JSON.stringify(val))
this.$refs.TaskListModelRef.getData(item, this.$t('CurrentProjectStatusEvaluation'))
}
}
}
@@ -332,6 +340,10 @@
background: red;
border-radius: 50%;
}
.box-content-cou {
cursor: pointer;
}
</style>
<style>
.box-input .ant-select-selection {