项目管理更新
This commit is contained in:
parent
390cf5720f
commit
2cdb3fcb80
|
@ -5,6 +5,7 @@ const projectApi = {
|
|||
getDict: 'project/dict/get',
|
||||
list: 'project/pageList',
|
||||
get: 'project/get',
|
||||
del: 'project/del',
|
||||
projectCourseList: '',
|
||||
release: '/project/release',
|
||||
}
|
||||
|
@ -16,6 +17,14 @@ export function projectAdd(params) {
|
|||
data: params
|
||||
})
|
||||
}
|
||||
|
||||
export function projectDel(params) {
|
||||
return request({
|
||||
url: projectApi.del,
|
||||
method: 'post',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
export function dictGet(params) {
|
||||
return request({
|
||||
url: projectApi.getDict,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
"></SearchCom>
|
||||
</div>
|
||||
</br>
|
||||
<br/>
|
||||
<s-table
|
||||
ref="table"
|
||||
:pageSize="5"
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
<script>
|
||||
import { STable } from '@/components'
|
||||
import { getProjectList,releaseProject } from '@/api/project/project'
|
||||
import { getProjectList,releaseProject,projectDel } from '@/api/project/project'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
@ -179,6 +179,16 @@ export default {
|
|||
},
|
||||
})
|
||||
},
|
||||
handleDelete(record){
|
||||
projectDel({id:record.id}).then((res) => {
|
||||
if(res.code == 200){
|
||||
this.$message.success('删除成功')
|
||||
this.$refs.table.refresh(false);
|
||||
}else{
|
||||
this.$message.success('删除失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
//变更类型
|
||||
changeType(path) {
|
||||
var arr = []
|
||||
|
|
|
@ -123,15 +123,11 @@
|
|||
</a-form-model>
|
||||
</a-card>
|
||||
</div>
|
||||
|
||||
<!-- </page-header-wrapper> -->
|
||||
<!-- <class-list ref="ClassList"></class-list> -->
|
||||
</template>
|
||||
<script>
|
||||
import { dictGet } from '@/api/project/project'
|
||||
import ClassList from '../classAdd/ClassList.vue'
|
||||
import { classList } from '@/api/project/class'
|
||||
import { projectAdd, getProjectDetail } from '@/api/project/project'
|
||||
import { dictGet , getProjectDetail } from '@/api/project/project'
|
||||
import { dictionaryDropDown } from '@/api/sys/dictionaryItem'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
@ -168,7 +164,6 @@ export default {
|
|||
},
|
||||
components: {
|
||||
dictGet,
|
||||
ClassList,
|
||||
classList
|
||||
},
|
||||
created(ClassList) {
|
||||
|
@ -187,10 +182,10 @@ export default {
|
|||
console.log('Form返回list页面')
|
||||
this.$emit('close')
|
||||
},
|
||||
//获取字典值,请求查询培训种类
|
||||
//获取字典值,人员类型
|
||||
fetchTemplateData() {
|
||||
let formData = { type: 2 }
|
||||
dictGet(formData).then(res => {
|
||||
let formData = { dictionaryCode:'0005'}
|
||||
dictionaryDropDown(formData).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 200) {
|
||||
const result = res.data
|
||||
|
|
Loading…
Reference in New Issue