Browse Source

优化

master
陈裕财 4 years ago
parent
commit
109d317b55
  1. 13
      src/views/xm/core/xmProject/XmProjectAdd.vue
  2. 11
      src/views/xm/core/xmProject/XmProjectEdit.vue
  3. 2
      src/views/xm/core/xmProject/XmProjectMng.vue
  4. 2
      src/views/xm/core/xmProject/XmProjectOverview.vue
  5. 22
      src/views/xm/core/xmProjectTemplate/XmProjectTemplateAdd.vue
  6. 20
      src/views/xm/core/xmProjectTemplate/XmProjectTemplateEdit.vue
  7. 12
      src/views/xm/core/xmQuestion/XmQuestionAdd.vue
  8. 14
      src/views/xm/core/xmQuestion/XmQuestionEdit.vue
  9. 20
      src/views/xm/core/xmQuestion/XmQuestionMng.vue
  10. 8
      src/views/xm/core/xmTask/XmTaskAdd.vue
  11. 8
      src/views/xm/core/xmTask/XmTaskEdit.vue
  12. 3
      src/views/xm/core/xmTask/XmTaskList.vue
  13. 3
      src/views/xm/core/xmTask/XmTaskListForMenu.vue
  14. 6
      src/views/xm/core/xmTask/XmTaskMng.vue
  15. 5
      src/views/xm/core/xmTask/XmTaskMngBatch.vue

13
src/views/xm/core/xmProject/XmProjectAdd.vue

@ -24,7 +24,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="紧急程度" prop="priority">
<el-form-item label="优先级" prop="priority">
<el-select v-model="addForm.priority"> <el-select v-model="addForm.priority">
<el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index"></el-option> <el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index"></el-option>
</el-select> </el-select>
@ -312,7 +312,7 @@
}, },
dicts:{ dicts:{
projectType:[], projectType:[],
urgencyLevel:[],
priority:[],
priority:[], priority:[],
projectStatus:[], projectStatus:[],
},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} },// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -327,12 +327,9 @@
}], }],
xmType: [{ xmType: [{
required: true, message: '项目类型不可为空', trigger: 'change' required: true, message: '项目类型不可为空', trigger: 'change'
}],
urgent: [{
required: true, message: '紧急程度不可为空', trigger: 'change'
}],
}],
priority: [{ priority: [{
required: true, message: '优先程度不可为空', trigger: 'change'
required: true, message: '优先级不可为空', trigger: 'change'
}], }],
admUserid: [{ admUserid: [{
required: true, message: '项目总控不能为空', trigger: 'change' required: true, message: '项目总控不能为空', trigger: 'change'
@ -518,7 +515,7 @@
this.addForm.admUsername=this.userInfo.username this.addForm.admUsername=this.userInfo.username
this.addForm.assUserid=this.userInfo.userid this.addForm.assUserid=this.userInfo.userid
this.addForm.assUsername=this.userInfo.username this.addForm.assUsername=this.userInfo.username
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })

11
src/views/xm/core/xmProject/XmProjectEdit.vue

@ -24,7 +24,7 @@
<el-option v-for="(i,index) in dicts['projectType']" :label="i.name" :value="i.id" :key="index"></el-option> <el-option v-for="(i,index) in dicts['projectType']" :label="i.name" :value="i.id" :key="index"></el-option>
</el-select> </el-select>
<el-select v-model="editForm.urgent"> <el-select v-model="editForm.urgent">
<el-option v-for="(i,index) in dicts['urgencyLevel']" :label="i.name" :value="i.id" :key="index"></el-option>
<el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index"></el-option>
</el-select> </el-select>
<el-select v-model="editForm.priority"> <el-select v-model="editForm.priority">
<el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index"></el-option> <el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index"></el-option>
@ -387,12 +387,9 @@
}], }],
xmType: [{ xmType: [{
required: true, message: '项目类型不可为空', trigger: 'blur' required: true, message: '项目类型不可为空', trigger: 'blur'
}],
urgent: [{
required: true, message: '紧急程度不可为空', trigger: 'blur'
}],
}],
priority: [{ priority: [{
required: true, message: '优先程度不可为空', trigger: 'blur'
required: true, message: '优先级不可为空', trigger: 'blur'
}], }],
admUserid: [{ admUserid: [{
required: true, message: '项目总控不能为空', trigger: 'change' required: true, message: '项目总控不能为空', trigger: 'change'
@ -745,7 +742,7 @@
this.dateRanger=[this.editForm.startTime,this.editForm.endTime] this.dateRanger=[this.editForm.startTime,this.editForm.endTime]
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })

2
src/views/xm/core/xmProject/XmProjectMng.vue

@ -877,7 +877,7 @@
this.filters.productName=this.$route.params.productName; this.filters.productName=this.$route.params.productName;
} }
this.$nextTick(() => { this.$nextTick(() => {
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el);

2
src/views/xm/core/xmProject/XmProjectOverview.vue

@ -755,7 +755,7 @@ export default {
this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el) this.maxTableHeight=util.calcTableMaxHeight(this.$refs.table.$el)
}); });
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
this.drawAllBar(); this.drawAllBar();

22
src/views/xm/core/xmProjectTemplate/XmProjectTemplateAdd.vue

@ -15,13 +15,8 @@
<el-radio-group v-model="addForm.xmType"> <el-radio-group v-model="addForm.xmType">
<el-radio v-for="(i,index) in dicts['projectType']" :label="i.id" :key="index">{{i.name}}</el-radio> <el-radio v-for="(i,index) in dicts['projectType']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item>
<el-form-item label="紧急程度" prop="urgent">
<el-radio-group v-model="addForm.urgent">
<el-radio v-for="(i,index) in dicts['urgencyLevel']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="优先程度" prop="priority">
<el-form-item label="优先级" prop="priority">
<el-radio-group v-model="addForm.priority"> <el-radio-group v-model="addForm.priority">
<el-radio v-for="(i,index) in dicts['priority']" :label="i.id" :key="index">{{i.name}}</el-radio> <el-radio v-for="(i,index) in dicts['priority']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group> </el-radio-group>
@ -265,7 +260,7 @@
}, },
dicts:{ dicts:{
projectType:[], projectType:[],
urgencyLevel:[],
priority:[],
priority:[], priority:[],
projectStatus:[], projectStatus:[],
},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} },// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -280,12 +275,9 @@
}], }],
xmType: [{ xmType: [{
required: true, message: '项目类型不可为空', trigger: 'blur' required: true, message: '项目类型不可为空', trigger: 'blur'
}],
urgent: [{
required: true, message: '紧急程度不可为空', trigger: 'blur'
}],
}],
priority: [{ priority: [{
required: true, message: '优先程度不可为空', trigger: 'blur'
required: true, message: '优先级不可为空', trigger: 'blur'
}], }],
}, },
// XmProjectTemplate xm_project // XmProjectTemplate xm_project
@ -406,14 +398,14 @@
}, },
mounted() { mounted() {
this.addForm.id=sn(); this.addForm.id=sn();
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts['projectType']=res.data.data.projectType this.dicts['projectType']=res.data.data.projectType
this.dicts['urgencyLevel']=res.data.data.urgencyLevel
this.dicts['priority']=res.data.data.priority
this.dicts['priority']=res.data.data.priority this.dicts['priority']=res.data.data.priority
this.dicts['projectStatus']=res.data.data.projectStatus this.dicts['projectStatus']=res.data.data.projectStatus
this.addForm.xmType=this.dicts['projectType'][0].id this.addForm.xmType=this.dicts['projectType'][0].id
this.addForm.urgent=this.dicts['urgencyLevel'][0].id
this.addForm.urgent=this.dicts['priority'][0].id
this.addForm.priority=this.dicts['priority'][0].id this.addForm.priority=this.dicts['priority'][0].id
}) })

20
src/views/xm/core/xmProjectTemplate/XmProjectTemplateEdit.vue

@ -21,13 +21,8 @@
<el-radio-group v-model="editForm.xmType"> <el-radio-group v-model="editForm.xmType">
<el-radio v-for="(i,index) in dicts['projectType']" :label="i.id" :key="index">{{i.name}}</el-radio> <el-radio v-for="(i,index) in dicts['projectType']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item>
<el-form-item label="紧急程度" prop="urgent">
<el-radio-group v-model="editForm.urgent">
<el-radio v-for="(i,index) in dicts['urgencyLevel']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="优先程度" prop="priority">
<el-form-item label="优先级" prop="priority">
<el-radio-group v-model="editForm.priority"> <el-radio-group v-model="editForm.priority">
<el-radio v-for="(i,index) in dicts['priority']" :label="i.id" :key="index">{{i.name}}</el-radio> <el-radio v-for="(i,index) in dicts['priority']" :label="i.id" :key="index">{{i.name}}</el-radio>
</el-radio-group> </el-radio-group>
@ -274,7 +269,7 @@
}, },
dicts:{ dicts:{
projectType:[], projectType:[],
urgencyLevel:[],
priority:[],
priority:[], priority:[],
projectStatus:[], projectStatus:[],
},// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]} },// params=[{categoryId:'0001',itemCode:'sex'}] {'sex':[{optionValue:'1',optionName:'',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'',seqOrder:'2',fp:'',isDefault:'0'}]}
@ -289,12 +284,9 @@
}], }],
xmType: [{ xmType: [{
required: true, message: '项目类型不可为空', trigger: 'blur' required: true, message: '项目类型不可为空', trigger: 'blur'
}],
urgent: [{
required: true, message: '紧急程度不可为空', trigger: 'blur'
}],
}],
priority: [{ priority: [{
required: true, message: '优先程度不可为空', trigger: 'blur'
required: true, message: '优先级不可为空', trigger: 'blur'
}], }],
}, },
// XmProjectTemplate xm_project // XmProjectTemplate xm_project
@ -422,9 +414,9 @@
mounted() { mounted() {
this.editForm=Object.assign({},this.selProjectTemplate); this.editForm=Object.assign({},this.selProjectTemplate);
initSimpleDicts('all',['projectType','urgencyLevel','priority','projectStatus']).then(res=>{
initSimpleDicts('all',['projectType','priority','projectStatus']).then(res=>{
this.dicts['projectType']=res.data.data.projectType this.dicts['projectType']=res.data.data.projectType
this.dicts['urgencyLevel']=res.data.data.urgencyLevel
this.dicts['priority']=res.data.data.priority
this.dicts['priority']=res.data.data.priority this.dicts['priority']=res.data.data.priority
this.dicts['projectStatus']=res.data.data.projectStatus this.dicts['projectStatus']=res.data.data.projectStatus
}) })

12
src/views/xm/core/xmQuestion/XmQuestionAdd.vue

@ -36,9 +36,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="紧急程度" prop="priority">
<el-select v-model="addForm.priority" placeholder="请选择紧急程度">
<el-option v-for="(i,index) in dicts['urgencyLevel']" :label="i.name" :value="i.id" :key="index">{{i.name}}</el-option>
<el-form-item label="优先级" prop="priority">
<el-select v-model="addForm.priority" placeholder="请选择优先级">
<el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index">{{i.name}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -199,7 +199,7 @@
selProject:null, selProject:null,
}, },
dicts:{ dicts:{
urgencyLevel:[],
priority:[],
bugSeverity:[], bugSeverity:[],
bugSolution:[], bugSolution:[],
bugStatus:[], bugStatus:[],
@ -446,13 +446,13 @@
this.addForm.qtype=this.qtype this.addForm.qtype=this.qtype
this.setDefaultData(); this.setDefaultData();
this.initByExec(); this.initByExec();
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','urgencyLevel','bugRepRate']).then(res=>{
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate']).then(res=>{
if(res.data.tips.isOk){ if(res.data.tips.isOk){
this.dicts['bugSeverity']=res.data.data.bugSeverity this.dicts['bugSeverity']=res.data.data.bugSeverity
this.dicts['bugSolution']=res.data.data.bugSolution this.dicts['bugSolution']=res.data.data.bugSolution
this.dicts['bugStatus']=res.data.data.bugStatus this.dicts['bugStatus']=res.data.data.bugStatus
this.dicts['bugType']=res.data.data.bugType this.dicts['bugType']=res.data.data.bugType
this.dicts['urgencyLevel']=res.data.data.urgencyLevel
this.dicts['priority']=res.data.data.priority
this.dicts['bugRepRate']=res.data.data.bugRepRate this.dicts['bugRepRate']=res.data.data.bugRepRate
} }
}); });

14
src/views/xm/core/xmQuestion/XmQuestionEdit.vue

@ -47,9 +47,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="紧急程度" prop="priority">
<el-select v-model="editForm.priority" placeholder="请选择紧急程度">
<el-option v-for="(i,index) in dicts['urgencyLevel']" :label="i.name" :value="i.id" :key="index">{{i.name}}</el-option>
<el-form-item label="优先级" prop="priority">
<el-select v-model="editForm.priority" placeholder="请选择优先级">
<el-option v-for="(i,index) in dicts['priority']" :label="i.name" :value="i.id" :key="index">{{i.name}}</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -220,7 +220,7 @@
data() { data() {
return { return {
dicts:{ dicts:{
urgencyLevel:[],
priority:[],
bugSeverity:[], bugSeverity:[],
bugSolution:[], bugSolution:[],
bugStatus:[], bugStatus:[],
@ -365,7 +365,7 @@
}else if(columnName=='bugSeverity'){ }else if(columnName=='bugSeverity'){
key="bugSeverity" key="bugSeverity"
}else if(columnName=='priority'){ }else if(columnName=='priority'){
key="urgencyLevel"
key="priority"
}else{ }else{
return cellValue return cellValue
} }
@ -458,13 +458,13 @@
mounted() { mounted() {
console.log("question_add"); console.log("question_add");
this.editForm=Object.assign(this.editForm, this.xmQuestion); this.editForm=Object.assign(this.editForm, this.xmQuestion);
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','urgencyLevel','bugRepRate']).then(res=>{
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate']).then(res=>{
if(res.data.tips.isOk){ if(res.data.tips.isOk){
this.dicts['bugSeverity']=res.data.data.bugSeverity this.dicts['bugSeverity']=res.data.data.bugSeverity
this.dicts['bugSolution']=res.data.data.bugSolution this.dicts['bugSolution']=res.data.data.bugSolution
this.dicts['bugStatus']=res.data.data.bugStatus this.dicts['bugStatus']=res.data.data.bugStatus
this.dicts['bugType']=res.data.data.bugType this.dicts['bugType']=res.data.data.bugType
this.dicts['urgencyLevel']=res.data.data.urgencyLevel
this.dicts['priority']=res.data.data.priority
this.dicts['bugRepRate']=res.data.data.bugRepRate this.dicts['bugRepRate']=res.data.data.bugRepRate
} }
}); });

20
src/views/xm/core/xmQuestion/XmQuestionMng.vue

@ -5,8 +5,8 @@
<el-option v-for="(b,index) in dicts['bugStatus']" :value="b.id" :key="index" :label="b.name">{{b.name}} <el-option v-for="(b,index) in dicts['bugStatus']" :value="b.id" :key="index" :label="b.name">{{b.name}}
</el-option> </el-option>
</el-select> </el-select>
<el-select class="hidden-md-and-down" v-model="filters.priority" placeholder="紧急程度" style="width:120px;" clearable @change="changePriority">
<el-option v-for="(b,index) in dicts['urgencyLevel']" :value="b.id" :key="index" :label="b.name">{{b.name}}
<el-select class="hidden-md-and-down" v-model="filters.priority" placeholder="优先级" style="width:120px;" clearable @change="changePriority">
<el-option v-for="(b,index) in dicts['priority']" :value="b.id" :key="index" :label="b.name">{{b.name}}
</el-option> </el-option>
</el-select> </el-select>
<el-select class="hidden-md-and-down" v-model="filters.bugSeverity" placeholder="严重程度" style="width:120px;" clearable @change="changeBugSeverity"> <el-select class="hidden-md-and-down" v-model="filters.bugSeverity" placeholder="严重程度" style="width:120px;" clearable @change="changeBugSeverity">
@ -71,8 +71,8 @@
<el-button v-else @click="showMenu" type="plian">选需求</el-button> <el-button v-else @click="showMenu" type="plian">选需求</el-button>
</el-col> </el-col>
<el-col :span="24" class="hidden-lg-and-up" style="padding-top:12px;"> <el-col :span="24" class="hidden-lg-and-up" style="padding-top:12px;">
<el-select v-model="filters.priority" placeholder="请选择紧急程度" clearable @change="changePriority">
<el-option v-for="(b,index) in dicts['urgencyLevel']" :value="b.id" :key="index" :label="b.name">{{b.name}}
<el-select v-model="filters.priority" placeholder="请选择优先级" clearable @change="changePriority">
<el-option v-for="(b,index) in dicts['priority']" :value="b.id" :key="index" :label="b.name">{{b.name}}
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-col>
@ -282,7 +282,7 @@
load:{ list: false, edit: false, del: false, add: false },//... load:{ list: false, edit: false, del: false, add: false },//...
sels: [],// sels: [],//
dicts:{ dicts:{
urgencyLevel:[],
priority:[],
bugSeverity:[], bugSeverity:[],
bugSolution:[], bugSolution:[],
bugStatus:[], bugStatus:[],
@ -327,7 +327,7 @@
{ {
key: 'priority', key: 'priority',
type: 'dict', type: 'dict',
name: '紧急程度'
name: '优先级'
}, },
{ {
key: 'solution', key: 'solution',
@ -648,7 +648,7 @@
}else if(columnName=='bugSeverity'){ }else if(columnName=='bugSeverity'){
key="bugSeverity" key="bugSeverity"
}else if(columnName=='priority'){ }else if(columnName=='priority'){
key="urgencyLevel"
key="priority"
}else{ }else{
return cellValue return cellValue
} }
@ -722,7 +722,7 @@
} else if(j == 'bugSeverity') { } else if(j == 'bugSeverity') {
key = "bugSeverity" key = "bugSeverity"
} else if(j == 'priority') { } else if(j == 'priority') {
key = "urgencyLevel"
key = "priority"
} else { } else {
return v[j]; return v[j];
} }
@ -955,13 +955,13 @@
this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.maxTableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.getXmQuestions(); this.getXmQuestions();
}); });
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','urgencyLevel']).then(res=>{
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority']).then(res=>{
if(res.data.tips.isOk){ if(res.data.tips.isOk){
this.dicts['bugSeverity']=res.data.data.bugSeverity this.dicts['bugSeverity']=res.data.data.bugSeverity
this.dicts['bugSolution']=res.data.data.bugSolution this.dicts['bugSolution']=res.data.data.bugSolution
this.dicts['bugStatus']=res.data.data.bugStatus this.dicts['bugStatus']=res.data.data.bugStatus
this.dicts['bugType']=res.data.data.bugType this.dicts['bugType']=res.data.data.bugType
this.dicts['urgencyLevel']=res.data.data.urgencyLevel
this.dicts['priority']=res.data.data.priority
} }
}); });
} }

8
src/views/xm/core/xmTask/XmTaskAdd.vue

@ -81,9 +81,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="紧急程度" prop="level">
<el-form-item label="优先级" prop="level">
<el-select v-model="addForm.level"> <el-select v-model="addForm.level">
<el-option v-for="i in dicts.urgencyLevel" :label="i.name" :key="i.id" :value="i.id"></el-option>
<el-option v-for="i in dicts.priority" :label="i.name" :key="i.id" :value="i.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -278,7 +278,7 @@
endDate.setTime(beginDate.getTime() + 3600 * 1000 * 24 * 7 * 4); endDate.setTime(beginDate.getTime() + 3600 * 1000 * 24 * 7 * 4);
return { return {
dicts:{ dicts:{
urgencyLevel:[],
priority:[],
taskType:[], taskType:[],
planType:[], planType:[],
priority:[], priority:[],
@ -597,7 +597,7 @@
}, },
mounted() { mounted() {
this.initData(); this.initData();
initSimpleDicts('all',['planType','taskType','urgencyLevel','priority','xmTaskSettleSchemel']).then(res=>{
initSimpleDicts('all',['planType','taskType','priority','xmTaskSettleSchemel']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
/**在下面写其它函数***/ /**在下面写其它函数***/

8
src/views/xm/core/xmTask/XmTaskEdit.vue

@ -86,9 +86,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="紧急程度" prop="level">
<el-form-item label="优先级" prop="level">
<el-select v-model="editForm.level"> <el-select v-model="editForm.level">
<el-option v-for="i in dicts.urgencyLevel" :label="i.name" :key="i.id" :value="i.id"></el-option>
<el-option v-for="i in dicts.priority" :label="i.name" :key="i.id" :value="i.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -337,7 +337,7 @@
endDate.setTime(beginDate.getTime() + 3600 * 1000 * 24 * 7 * 4); endDate.setTime(beginDate.getTime() + 3600 * 1000 * 24 * 7 * 4);
return { return {
dicts:{ dicts:{
urgencyLevel:[],
priority:[],
taskType:[], taskType:[],
planType:[], planType:[],
priority:[], priority:[],
@ -639,7 +639,7 @@
} }
this.setSkills(); this.setSkills();
initSimpleDicts('all',['planType','taskType','urgencyLevel','priority','xmTaskSettleSchemel']).then(res=>{
initSimpleDicts('all',['planType','taskType','priority','xmTaskSettleSchemel']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
/**在下面写其它函数***/ /**在下面写其它函数***/

3
src/views/xm/core/xmTask/XmTaskList.vue

@ -150,7 +150,6 @@
load:{ list: false, edit: false, del: false, add: false },//... load:{ list: false, edit: false, del: false, add: false },//...
sels: [],// sels: [],//
dicts:{ dicts:{
urgencyLevel:[],
taskType:[], taskType:[],
planType:[], planType:[],
priority:[], priority:[],
@ -527,7 +526,7 @@
this.tableHeight = util.calcTableMaxHeight(this.$refs.taskTable.$el); this.tableHeight = util.calcTableMaxHeight(this.$refs.taskTable.$el);
this.getXmTasks(); this.getXmTasks();
}); });
initSimpleDicts('all',['planType','taskType','urgencyLevel','priority']).then(res=>{
initSimpleDicts('all',['planType','taskType','priority','priority']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
} }

3
src/views/xm/core/xmTask/XmTaskListForMenu.vue

@ -131,7 +131,6 @@
load:{ list: false, edit: false, del: false, add: false },//... load:{ list: false, edit: false, del: false, add: false },//...
sels: [],// sels: [],//
dicts:{ dicts:{
urgencyLevel:[],
taskType:[], taskType:[],
planType:[], planType:[],
priority:[], priority:[],
@ -409,7 +408,7 @@
this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
this.getXmTasks(); this.getXmTasks();
}); });
initSimpleDicts('all',['planType','taskType','urgencyLevel','priority']).then(res=>{
initSimpleDicts('all',['planType','taskType','priority','priority']).then(res=>{
this.dicts=res.data.data; this.dicts=res.data.data;
}) })
} }

6
src/views/xm/core/xmTask/XmTaskMng.vue

@ -698,7 +698,7 @@
<el-tag <el-tag
v-if="editForm.level != '' && editForm.level != null" v-if="editForm.level != '' && editForm.level != null"
style="border-radius: 30px" style="border-radius: 30px"
>{{ formateOption("urgencyLevel", editForm.level) }}</el-tag
>{{ formateOption("priority", editForm.level) }}</el-tag
> >
[{{ formateOption("taskType", editForm.taskType) }}] [{{ formateOption("taskType", editForm.taskType) }}]
<span> {{ editForm.projectName }} </span> <span> {{ editForm.projectName }} </span>
@ -1247,7 +1247,7 @@ export default {
load: { list: false, edit: false, del: false, add: false }, //... load: { list: false, edit: false, del: false, add: false }, //...
sels: [], // sels: [], //
dicts: { dicts: {
urgencyLevel: [],
priority: [],
taskType: [], taskType: [],
planType: [], planType: [],
priority: [], priority: [],
@ -2569,7 +2569,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.getXmTasks(); this.getXmTasks();
this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
initSimpleDicts( "all", ["planType","taskType","urgencyLevel","xmTaskSettleSchemel","priority","taskState" ]).then((res) => {
initSimpleDicts( "all", ["planType","taskType","priority","xmTaskSettleSchemel","priority","taskState" ]).then((res) => {
this.dicts = res.data.data; this.dicts = res.data.data;
}); });
}); });

5
src/views/xm/core/xmTask/XmTaskMngBatch.vue

@ -357,8 +357,7 @@ export default {
}, },
load: { list: false, edit: false, del: false, add: false }, //... load: { list: false, edit: false, del: false, add: false }, //...
sels: [], // sels: [], //
dicts: {
urgencyLevel: [],
dicts: {
taskType: [], taskType: [],
planType: [], planType: [],
priority: [], priority: [],
@ -1218,7 +1217,7 @@ export default {
} }
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el); this.tableHeight = util.calcTableMaxHeight(this.$refs.table.$el);
initSimpleDicts( "all",["planType","taskType","urgencyLevel","xmTaskSettleSchemel","priority"]).then((res) => {
initSimpleDicts( "all",["planType","taskType","priority","xmTaskSettleSchemel","priority"]).then((res) => {
this.dicts = res.data.data; this.dicts = res.data.data;
}); });
}); });

Loading…
Cancel
Save