37 changed files with 298 additions and 794 deletions
-
14src/api/xm/core/xmGroup.js
-
14src/api/xm/core/xmGroupState.js
-
14src/api/xm/core/xmGroupUser.js
-
10src/api/xm/core/xmProjectGroupFormwork.js
-
12src/api/xm/core/xmProjectGroupUserCandidate.js
-
2src/components/Guider/guiderData.js
-
4src/router/routes_xm.js
-
32src/views/datav/xm/project/index.vue
-
2src/views/xm/XmOverview.vue
-
4src/views/xm/core/xmGroup/XmGroupAllMng.vue
-
24src/views/xm/core/xmGroup/XmGroupEdit.vue
-
114src/views/xm/core/xmGroup/XmGroupMng.vue
-
30src/views/xm/core/xmGroup/XmGroupSelect.vue
-
76src/views/xm/core/xmGroupState/XmGroupStateMng.vue
-
82src/views/xm/core/xmGroupState/XmGroupStateOverview.vue
-
24src/views/xm/core/xmGroupUser/XmGroupUserEdit.vue
-
70src/views/xm/core/xmGroupUser/XmGroupUserMng.vue
-
6src/views/xm/core/xmIteration/XmIterationInfo.vue
-
2src/views/xm/core/xmMenu/XmMenuWithPlan.vue
-
2src/views/xm/core/xmMenuState/XmMenuStateMng.vue
-
6src/views/xm/core/xmProduct/XmProductInfo.vue
-
6src/views/xm/core/xmProject/XmProjectAdd.vue
-
10src/views/xm/core/xmProject/XmProjectEdit.vue
-
6src/views/xm/core/xmProject/XmProjectInfo.vue
-
129src/views/xm/core/xmProjectGroupUserCandidate/XmProjectGroupUserCandidateAdd.vue
-
124src/views/xm/core/xmProjectGroupUserCandidate/XmProjectGroupUserCandidateEdit.vue
-
243src/views/xm/core/xmProjectGroupUserCandidate/XmProjectGroupUserCandidateMng.vue
-
4src/views/xm/core/xmProjectPhase/XmProjectPhaseForProduct.vue
-
4src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue
-
2src/views/xm/core/xmQuestion/XmQuestionAdd.vue
-
2src/views/xm/core/xmQuestion/XmQuestionEdit.vue
-
2src/views/xm/core/xmQuestion/XmQuestionMng.vue
-
4src/views/xm/core/xmTask/XmTaskAdd.vue
-
4src/views/xm/core/xmTask/XmTaskEdit.vue
-
4src/views/xm/core/xmTask/XmTaskMng.vue
-
2src/views/xm/core/xmTestCase/XmTestCaseMng.vue
-
2src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue
@ -1,129 +0,0 @@ |
|||
<template> |
|||
<section class="page-container padding border"> |
|||
<el-row> |
|||
<!--新增界面 XmProjectGroupUserCandidate xm_group_user_candidate--> |
|||
<el-form :model="addForm" label-width="120px" :rules="addFormRules" ref="addForm"> |
|||
<el-form-item label="主键" prop="id"> |
|||
<el-input v-model="addForm.id" placeholder="主键" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队编号" prop="groupId"> |
|||
<el-input v-model="addForm.groupId" placeholder="团队编号" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队成员编号" prop="userid"> |
|||
<el-input v-model="addForm.userid" placeholder="团队成员编号" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队成员" prop="username"> |
|||
<el-input v-model="addForm.username" placeholder="团队成员" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="是否组长,1是,0否" prop="isHead"> |
|||
<el-input v-model="addForm.isHead" placeholder="是否组长,1是,0否" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="成为候选人时间" prop="createTime"> |
|||
<el-date-picker type="date" placeholder="选择日期" v-model="addForm.createTime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="候选状态0候选排对中1已加入项目做2已退出候选名单" prop="candidateStatus"> |
|||
<el-input v-model="addForm.candidateStatus" placeholder="候选状态0候选排对中1已加入项目做2已退出候选名单" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="退出时间" prop="outTime"> |
|||
<el-date-picker type="date" placeholder="选择日期" v-model="addForm.outTime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-col :span="24" :offset="8"> |
|||
<el-button @click.native="handleCancel">取消</el-button> |
|||
<el-button v-loading="load.add" type="primary" @click.native="addSubmit" :disabled="load.add==true">提交</el-button> |
|||
</el-col> |
|||
</el-form-item> |
|||
</el-form> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
//import { listOption } from '@/api/mdp/meta/itemOption';//下拉框数据查询 |
|||
import { addXmProjectGroupUserCandidate } from '@/api/xm/core/xmProjectGroupUserCandidate'; |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]) |
|||
}, |
|||
props:['xmProjectGroupUserCandidate','visible'], |
|||
watch: { |
|||
'xmProjectGroupUserCandidate':function( xmProjectGroupUserCandidate ) { |
|||
this.addForm = xmProjectGroupUserCandidate; |
|||
}, |
|||
'visible':function(visible) { |
|||
if(visible==true){ |
|||
//从新打开页面时某些数据需要重新加载,可以在这里添加 |
|||
} |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
options:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} |
|||
load:{ list: false, edit: false, del: false, add: false },//查询中... |
|||
addFormRules: { |
|||
id: [ |
|||
//{ required: true, message: '主键不能为空', trigger: 'blur' } |
|||
] |
|||
}, |
|||
//新增界面数据 xm_group_user_candidate |
|||
addForm: { |
|||
id:'',groupId:'',userid:'',username:'',isHead:'',createTime:'',candidateStatus:'',outTime:'' |
|||
} |
|||
/**begin 在下面加自定义属性,记得补上面的一个逗号**/ |
|||
|
|||
/**end 在上面加自定义属性**/ |
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
// 取消按钮点击 父组件监听@cancel="addFormVisible=false" 监听 |
|||
handleCancel:function(){ |
|||
this.$refs['addForm'].resetFields(); |
|||
this.$emit('cancel'); |
|||
}, |
|||
//新增提交XmProjectGroupUserCandidate xm_group_user_candidate 父组件监听@submit="afterAddSubmit" |
|||
addSubmit: function () { |
|||
|
|||
this.$refs.addForm.validate((valid) => { |
|||
if (valid) { |
|||
|
|||
this.$confirm('确认提交吗?', '提示', {}).then(() => { |
|||
this.load.add=true |
|||
let params = Object.assign({}, this.addForm); |
|||
addXmProjectGroupUserCandidate(params).then((res) => { |
|||
this.load.add=false |
|||
var tips=res.data.tips; |
|||
if(tips.isOk){ |
|||
this.$refs['addForm'].resetFields(); |
|||
this.$emit('submit');// @submit="afterAddSubmit" |
|||
} |
|||
this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|||
}).catch( err => this.load.add=false); |
|||
}); |
|||
} |
|||
}); |
|||
} |
|||
/**begin 在下面加自定义方法,记得补上面的一个逗号**/ |
|||
|
|||
/**end 在上面加自定义方法**/ |
|||
|
|||
},//end method |
|||
components: { |
|||
//在下面添加其它组件 'xm-project-group-user-candidate-edit':XmProjectGroupUserCandidateEdit |
|||
}, |
|||
mounted() { |
|||
this.addForm=Object.assign(this.addForm, this.xmProjectGroupUserCandidate); |
|||
/**在下面写其它函数***/ |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,124 +0,0 @@ |
|||
<template> |
|||
<section class="page-container padding border"> |
|||
<el-row> |
|||
<!--编辑界面 XmProjectGroupUserCandidate xm_group_user_candidate--> |
|||
<el-form :model="editForm" label-width="120px" :rules="editFormRules" ref="editForm"> |
|||
<el-form-item label="主键" prop="id"> |
|||
<el-input v-model="editForm.id" placeholder="主键"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队编号" prop="groupId"> |
|||
<el-input v-model="editForm.groupId" placeholder="团队编号"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队成员编号" prop="userid"> |
|||
<el-input v-model="editForm.userid" placeholder="团队成员编号"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="团队成员" prop="username"> |
|||
<el-input v-model="editForm.username" placeholder="团队成员"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="是否组长,1是,0否" prop="isHead"> |
|||
<el-input v-model="editForm.isHead" placeholder="是否组长,1是,0否"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="成为候选人时间" prop="createTime"> |
|||
<el-date-picker type="date" placeholder="选择日期" v-model="editForm.createTime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="候选状态0候选排对中1已加入项目做2已退出候选名单" prop="candidateStatus"> |
|||
<el-input v-model="editForm.candidateStatus" placeholder="候选状态0候选排对中1已加入项目做2已退出候选名单"></el-input> |
|||
</el-form-item> |
|||
<el-form-item label="退出时间" prop="outTime"> |
|||
<el-date-picker type="date" placeholder="选择日期" v-model="editForm.outTime" value-format="yyyy-MM-dd HH:mm:ss" format="yyyy-MM-dd"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item> |
|||
<el-col :span="24" :offset="8"> |
|||
<el-button @click.native="handleCancel">取消</el-button> |
|||
<el-button v-loading="load.edit" type="primary" @click.native="editSubmit" :disabled="load.edit==true">提交</el-button> |
|||
</el-col> |
|||
</el-form-item> |
|||
</el-form> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
//import { listOption } from '@/api/mdp/meta/itemOption';//下拉框数据查询 |
|||
import { editXmProjectGroupUserCandidate } from '@/api/xm/core/xmProjectGroupUserCandidate'; |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]) |
|||
}, |
|||
props:['xmProjectGroupUserCandidate','visible'], |
|||
watch: { |
|||
'xmProjectGroupUserCandidate':function( xmProjectGroupUserCandidate ) { |
|||
this.editForm = xmProjectGroupUserCandidate; |
|||
}, |
|||
'visible':function(visible) { |
|||
if(visible==true){ |
|||
//从新打开页面时某些数据需要重新加载,可以在这里添加 |
|||
} |
|||
} |
|||
}, |
|||
data() { |
|||
return { |
|||
options:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} |
|||
load:{ list: false, edit: false, del: false, add: false },//查询中... |
|||
editFormRules: { |
|||
id: [ |
|||
//{ required: true, message: '主键不能为空', trigger: 'blur' } |
|||
] |
|||
}, |
|||
//编辑界面数据 XmProjectGroupUserCandidate xm_group_user_candidate |
|||
editForm: { |
|||
id:'',groupId:'',userid:'',username:'',isHead:'',createTime:'',candidateStatus:'',outTime:'' |
|||
} |
|||
/**begin 在下面加自定义属性,记得补上面的一个逗号**/ |
|||
|
|||
/**end 在上面加自定义属性**/ |
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
// 取消按钮点击 父组件监听@cancel="editFormVisible=false" 监听 |
|||
handleCancel:function(){ |
|||
this.$refs['editForm'].resetFields(); |
|||
this.$emit('cancel'); |
|||
}, |
|||
//编辑提交XmProjectGroupUserCandidate xm_group_user_candidate父组件监听@submit="afterEditSubmit" |
|||
editSubmit: function () { |
|||
this.$refs.editForm.validate((valid) => { |
|||
if (valid) { |
|||
this.$confirm('确认提交吗?', '提示', {}).then(() => { |
|||
this.load.edit=true |
|||
let params = Object.assign({}, this.editForm); |
|||
editXmProjectGroupUserCandidate(params).then((res) => { |
|||
this.load.edit=false |
|||
var tips=res.data.tips; |
|||
if(tips.isOk){ |
|||
this.$refs['editForm'].resetFields(); |
|||
this.$emit('submit');// @submit="afterEditSubmit" |
|||
} |
|||
this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|||
}).catch( err =>this.load.edit=false); |
|||
}); |
|||
} |
|||
}); |
|||
} |
|||
/**begin 在下面加自定义方法,记得补上面的一个逗号**/ |
|||
|
|||
/**end 在上面加自定义方法**/ |
|||
},//end method |
|||
components: { |
|||
//在下面添加其它组件 'xm-project-group-user-candidate-edit':XmProjectGroupUserCandidateEdit |
|||
}, |
|||
mounted() { |
|||
this.editForm=Object.assign(this.editForm, this.xmProjectGroupUserCandidate); |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -1,243 +0,0 @@ |
|||
<template> |
|||
<section class="page-container padding border"> |
|||
<el-row> |
|||
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input> |
|||
<el-button type="primary" v-loading="load.list" :disabled="load.list==true" v-on:click="searchXmProjectGroupUserCandidates">查询</el-button> |
|||
<el-button type="primary" @click="showAdd">+xm_group_user_candidate</el-button> |
|||
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true">批量删除</el-button> |
|||
</el-row> |
|||
<el-row class="page-main "> |
|||
<!--列表 XmProjectGroupUserCandidate xm_group_user_candidate--> |
|||
<el-table ref="table" :height="tableHeight" :data="xmProjectGroupUserCandidates" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> |
|||
<el-table-column sortable type="selection" width="40"></el-table-column> |
|||
<el-table-column sortable type="index" width="40"></el-table-column> |
|||
<el-table-column prop="id" label="主键" min-width="80" ></el-table-column> |
|||
<el-table-column prop="groupId" label="团队编号" min-width="80" ></el-table-column> |
|||
<el-table-column prop="userid" label="团队成员编号" min-width="80" ></el-table-column> |
|||
<el-table-column prop="username" label="团队成员" min-width="80" ></el-table-column> |
|||
<el-table-column prop="isHead" label="是否组长,1是,0否" min-width="80" ></el-table-column> |
|||
<el-table-column prop="createTime" label="成为候选人时间" min-width="80" ></el-table-column> |
|||
<el-table-column prop="candidateStatus" label="候选状态0候选排对中1已加入项目做2已退出候选名单" min-width="80" ></el-table-column> |
|||
<el-table-column prop="outTime" label="退出时间" min-width="80" ></el-table-column> |
|||
<el-table-column label="操作" width="160" fixed="right" > |
|||
<template slot-scope="scope"> |
|||
<el-button @click="showEdit( scope.row,scope.$index)">改</el-button> |
|||
<el-button type="danger" @click="handleDel(scope.row,scope.$index)">删</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-pagination layout="total, sizes, prev, pager, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination> |
|||
|
|||
<!--编辑 XmProjectGroupUserCandidate xm_group_user_candidate界面--> |
|||
<el-drawer title="编辑xm_group_user_candidate" :visible.sync="editFormVisible" size="50%" append-to-body :close-on-click-modal="false"> |
|||
<xm-project-group-user-candidate-edit :xm-project-group-user-candidate="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit"></xm-project-group-user-candidate-edit> |
|||
</el-drawer> |
|||
|
|||
<!--新增 XmProjectGroupUserCandidate xm_group_user_candidate界面--> |
|||
<el-drawer title="新增xm_group_user_candidate" :visible.sync="addFormVisible" size="50%" append-to-body :close-on-click-modal="false"> |
|||
<xm-project-group-user-candidate-add :xm-project-group-user-candidate="addForm" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-project-group-user-candidate-add> |
|||
</el-drawer> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
//import Sticky from '@/components/Sticky' // 粘性header组件 |
|||
//import { listOption } from '@/api/mdp/meta/itemOption';//下拉框数据查询 |
|||
import { listXmProjectGroupUserCandidate, delXmProjectGroupUserCandidate, batchDelXmProjectGroupUserCandidate } from '@/api/xm/core/xmProjectGroupUserCandidate'; |
|||
import XmProjectGroupUserCandidateAdd from './XmProjectGroupUserCandidateAdd';//新增界面 |
|||
import XmProjectGroupUserCandidateEdit from './XmProjectGroupUserCandidateEdit';//修改界面 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]) |
|||
}, |
|||
data() { |
|||
return { |
|||
filters: { |
|||
key: '' |
|||
}, |
|||
xmProjectGroupUserCandidates: [],//查询结果 |
|||
pageInfo:{//分页数据 |
|||
total:0,//服务器端收到0时,会自动计算总记录数,如果上传>0的不自动计算。 |
|||
pageSize:10,//每页数据 |
|||
count:false,//是否需要重新计算总记录数 |
|||
pageNum:1,//当前页码、从1开始计算 |
|||
orderFields:[],//排序列 如 ['sex','student_id'],必须为数据库字段 |
|||
orderDirs:[]//升序 asc,降序desc 如 性别 升序、学生编号降序 ['asc','desc'] |
|||
}, |
|||
load:{ list: false, edit: false, del: false, add: false },//查询中... |
|||
sels: [],//列表选中数据 |
|||
options:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} |
|||
|
|||
addFormVisible: false,//新增xmProjectGroupUserCandidate界面是否显示 |
|||
//新增xmProjectGroupUserCandidate界面初始化数据 |
|||
addForm: { |
|||
id:'',groupId:'',userid:'',username:'',isHead:'',createTime:'',candidateStatus:'',outTime:'' |
|||
}, |
|||
|
|||
editFormVisible: false,//编辑界面是否显示 |
|||
//编辑xmProjectGroupUserCandidate界面初始化数据 |
|||
editForm: { |
|||
id:'',groupId:'',userid:'',username:'',isHead:'',createTime:'',candidateStatus:'',outTime:'' |
|||
}, |
|||
/**begin 自定义属性请在下面加 请加备注**/ |
|||
|
|||
tableHeight:300, |
|||
/**end 自定义属性请在上面加 请加备注**/ |
|||
} |
|||
},//end data |
|||
methods: { |
|||
handleSizeChange(pageSize) { |
|||
this.pageInfo.pageSize=pageSize; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}, |
|||
handleCurrentChange(pageNum) { |
|||
this.pageInfo.pageNum = pageNum; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}, |
|||
// 表格排序 obj.order=ascending/descending,需转化为 asc/desc ; obj.prop=表格中的排序字段,字段驼峰命名 |
|||
sortChange( obj ){ |
|||
var dir='asc'; |
|||
if(obj.order=='ascending'){ |
|||
dir='asc' |
|||
}else{ |
|||
dir='desc'; |
|||
} |
|||
if(obj.prop=='xxx'){ |
|||
this.pageInfo.orderFields=['xxx']; |
|||
this.pageInfo.orderDirs=[dir]; |
|||
} |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}, |
|||
searchXmProjectGroupUserCandidates(){ |
|||
this.pageInfo.count=true; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}, |
|||
//获取列表 XmProjectGroupUserCandidate xm_group_user_candidate |
|||
getXmProjectGroupUserCandidates() { |
|||
let params = { |
|||
pageSize: this.pageInfo.pageSize, |
|||
pageNum: this.pageInfo.pageNum, |
|||
total: this.pageInfo.total, |
|||
count:this.pageInfo.count |
|||
}; |
|||
if(this.pageInfo.orderFields!=null && this.pageInfo.orderFields.length>0){ |
|||
let orderBys=[]; |
|||
for(var i=0;i<this.pageInfo.orderFields.length;i++){ |
|||
orderBys.push(this.pageInfo.orderFields[i]+" "+this.pageInfo.orderDirs[i]) |
|||
} |
|||
params.orderBy= orderBys.join(",") |
|||
} |
|||
if(this.filters.key!==""){ |
|||
//params.xxx=this.filters.key |
|||
}else{ |
|||
//params.xxx=xxxxx |
|||
} |
|||
this.load.list = true; |
|||
listXmProjectGroupUserCandidate(params).then((res) => { |
|||
var tips=res.data.tips; |
|||
if(tips.isOk){ |
|||
this.pageInfo.total = res.data.total; |
|||
this.pageInfo.count=false; |
|||
this.xmProjectGroupUserCandidates = res.data.data; |
|||
}else{ |
|||
this.$notify({showClose: true, message: tips.msg, type: 'error' }); |
|||
} |
|||
this.load.list = false; |
|||
}).catch( err => this.load.list = false ); |
|||
}, |
|||
|
|||
//显示编辑界面 XmProjectGroupUserCandidate xm_group_user_candidate |
|||
showEdit: function ( row,index ) { |
|||
this.editFormVisible = true; |
|||
this.editForm = Object.assign({}, row); |
|||
}, |
|||
//显示新增界面 XmProjectGroupUserCandidate xm_group_user_candidate |
|||
showAdd: function () { |
|||
this.addFormVisible = true; |
|||
//this.addForm=Object.assign({}, this.editForm); |
|||
}, |
|||
afterAddSubmit(){ |
|||
this.addFormVisible=false; |
|||
this.pageInfo.count=true; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}, |
|||
afterEditSubmit(){ |
|||
this.editFormVisible=false; |
|||
}, |
|||
//选择行xmProjectGroupUserCandidate |
|||
selsChange: function (sels) { |
|||
this.sels = sels; |
|||
}, |
|||
//删除xmProjectGroupUserCandidate |
|||
handleDel: function (row,index) { |
|||
this.$confirm('确认删除该记录吗?', '提示', { |
|||
type: 'warning' |
|||
}).then(() => { |
|||
this.load.del=true; |
|||
let params = { id: row.id }; |
|||
delXmProjectGroupUserCandidate(params).then((res) => { |
|||
this.load.del=false; |
|||
var tips=res.data.tips; |
|||
if(tips.isOk){ |
|||
this.pageInfo.count=true; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
} |
|||
this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|||
}).catch( err => this.load.del=false ); |
|||
}); |
|||
}, |
|||
//批量删除xmProjectGroupUserCandidate |
|||
batchDel: function () { |
|||
|
|||
this.$confirm('确认删除选中记录吗?', '提示', { |
|||
type: 'warning' |
|||
}).then(() => { |
|||
this.load.del=true; |
|||
batchDelXmProjectGroupUserCandidate(this.sels).then((res) => { |
|||
this.load.del=false; |
|||
var tips=res.data.tips; |
|||
if( tips.isOk ){ |
|||
this.pageInfo.count=true; |
|||
this.getXmProjectGroupUserCandidates(); |
|||
} |
|||
this.$notify({showClose: true, message: tips.msg, type: tips.isOk?'success':'error'}); |
|||
}).catch( err => this.load.del=false ); |
|||
}); |
|||
}, |
|||
rowClick: function(row, event, column){ |
|||
this.$emit('row-click',row, event, column);// @row-click="rowClick" |
|||
} |
|||
/**begin 自定义函数请在下面加**/ |
|||
|
|||
|
|||
/**end 自定义函数请在上面加**/ |
|||
|
|||
},//end methods |
|||
components: { |
|||
'xm-project-group-user-candidate-add':XmProjectGroupUserCandidateAdd, |
|||
'xm-project-group-user-candidate-edit':XmProjectGroupUserCandidateEdit, |
|||
|
|||
//在下面添加其它组件 |
|||
}, |
|||
mounted() { |
|||
this.$nextTick(() => { |
|||
|
|||
|
|||
|
|||
this.tableHeight = util.calcTableMaxHeight(".el-table"); |
|||
this.getXmProjectGroupUserCandidates(); |
|||
}); |
|||
} |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue