|
|
|
|
@ -166,7 +166,7 @@
|
|
|
|
|
<el-radio :label="2" v-if='form.type!=4'>部门</el-radio>
|
|
|
|
|
<el-radio :label="3" v-if='!(form.type==4||form.type==2)'>小组</el-radio> -->
|
|
|
|
|
<el-radio v-if="type!='send'" :label="3">小组</el-radio>
|
|
|
|
|
<el-radio :label="1" v-if="type!='send'">人员</el-radio>
|
|
|
|
|
<el-radio v-if="type!='send'" :label="1">人员</el-radio>
|
|
|
|
|
<el-radio v-if="type!='send'" :label="2">部门</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
@ -384,7 +384,7 @@
|
|
|
|
|
|
|
|
|
|
</xy-dialog>
|
|
|
|
|
<addQuestion ref='addQuestion' @submitQs="submitQs"></addQuestion>
|
|
|
|
|
|
|
|
|
|
<sendNotice ref="sendNotice"></sendNotice>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -427,13 +427,15 @@
|
|
|
|
|
import {
|
|
|
|
|
listregulation
|
|
|
|
|
} from "@/api/lawsfile/regulation.js";
|
|
|
|
|
import state from '@/store/modules/user.js'
|
|
|
|
|
import state from '@/store/modules/user.js'
|
|
|
|
|
import sendNotice from './sendNotice.vue'
|
|
|
|
|
// import mixins from '../mixins/mixins.js';
|
|
|
|
|
export default {
|
|
|
|
|
// mixins:[mixins],
|
|
|
|
|
components: {
|
|
|
|
|
addQuestion,
|
|
|
|
|
elSelectTree
|
|
|
|
|
elSelectTree,
|
|
|
|
|
sendNotice
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@ -888,7 +890,11 @@
|
|
|
|
|
this.checkAll = checkedCount === this.deptOptions.length;
|
|
|
|
|
this.isIndeterminate = checkedCount > 0 && checkedCount < this.deptOptions.length;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 新增之后发送到 大平台
|
|
|
|
|
sendNotice(row){
|
|
|
|
|
this.$refs.sendNotice.setForm(row)
|
|
|
|
|
this.$refs.sendNotice.isShow = true
|
|
|
|
|
},
|
|
|
|
|
async getDetail() {
|
|
|
|
|
const res = await get(this.id)
|
|
|
|
|
this.form = {
|
|
|
|
|
@ -1129,7 +1135,10 @@
|
|
|
|
|
if(!(this.form.audit_status==3||this.form.audit_status==5)){
|
|
|
|
|
console.log("this.betweenSe",this.form.start_date, this.form.end_date)
|
|
|
|
|
this.betweenSe(this.form.start_date, this.form.end_date)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("this.form",this.form)
|
|
|
|
|
// return
|
|
|
|
|
// 新增的时候要调用 发送到大平台的接口
|
|
|
|
|
if (this.type === 'add' || this.type=== 'pid') {
|
|
|
|
|
this.form.do_admin_ids = []
|
|
|
|
|
save({
|
|
|
|
|
@ -1139,14 +1148,25 @@
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '新增任务成功'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
console.log("")
|
|
|
|
|
saveLog({
|
|
|
|
|
table_name:"missions_logs",
|
|
|
|
|
mission_name:this.form.name,
|
|
|
|
|
mission_id:this.form.pid>0?this.form.pid:res.id,
|
|
|
|
|
mission_id:this.form.pid>0?this.form.pid:res.model.id,
|
|
|
|
|
op_name:this.type === 'add'?'新增任务':(this.type=== 'pid'?'任务分解':'新增任务'),
|
|
|
|
|
remark:''
|
|
|
|
|
}).then(res=>{
|
|
|
|
|
}).then(res1=>{
|
|
|
|
|
if(this.plan_unit==='plan_unit'){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
if(res.mission_distribute && res.mission_distribute.length>0){
|
|
|
|
|
this.sendNotice({
|
|
|
|
|
id:res.model.id,
|
|
|
|
|
mission_distribute:res.mission_distribute
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.isShow = false
|
|
|
|
|
this.$emit('refresh')
|
|
|
|
|
this.$emit('toUnit', this.form.type)
|
|
|
|
|
|