新建任务发送信息大平台

master
lion 1 year ago
parent 70831c3eeb
commit 39cdec856c

@ -14,7 +14,7 @@ NProgress.configure({
showSpinner: false showSpinner: false
}) // NProgress Configuration }) // NProgress Configuration
const whiteList = ['/login','/task/list/unit_5'] // no redirect whitelist const whiteList = ['/login'] // no redirect whitelist
router.beforeEach(async (to, from, next) => { router.beforeEach(async (to, from, next) => {
// start progress bar // start progress bar

@ -90,20 +90,16 @@
<div style="height:350px"> <div style="height:350px">
<xy-table :list="myselfList" :defaultExpandAll="false" :showIndex="false" <xy-table :list="myselfList" :defaultExpandAll="false" :showIndex="false"
:treeProps="treeProps" stripe :isPage="false" :height="'350px'" :table-item="myselfTable"> :treeProps="treeProps" stripe :isPage="false" :height="'350px'" :table-item="myselfTable">
<template v-slot:btns> <template v-slot:btns>
<div></div> <el-table-column align='center' label="操作" width="100" header-align="center">
<!-- <el-table-column align='center' label="操作" width="100" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.pid>0 && scope.row.notices.length==0 && !(scope.row.audit_status==3||scope.row.audit_status==5) || scope.row.type==4">
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="sendNotice(scope.row)">督办提醒</Button>
</div>
<div> <div>
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small" <Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="checkUnits(scope.row.id,'show')">查看任务</Button> @click="goMyunit">去办理</Button>
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column>
</template> </template>
</xy-table> </xy-table>
@ -338,7 +334,7 @@ export default {
lawList:[], lawList:[],
filesList:[], filesList:[],
planStatus:["未完成","发起了一项","开展了一项","完成了一项"], planStatus:["未完成","发起了一项","开展了一项","完成了一项"],
missionStatus:['',"开展了一项","未完成","完成了一项任务","发起了一项"], missionStatus:['完成',"开展了一项","未完成","完成了一项任务","发起了一项"],
activeAllObj:{ activeAllObj:{
inspection_id:"检查", inspection_id:"检查",
mission_plan_id:"年度计划任务", mission_plan_id:"年度计划任务",
@ -918,7 +914,9 @@ export default {
}, },
methods: { methods: {
goMyunit(){
this.$router.push('/task/list/unit_5')
},
showActiveInfo(item){ showActiveInfo(item){
console.log(item) console.log(item)
if(item.is_id==='mission'){ if(item.is_id==='mission'){

@ -166,7 +166,7 @@
<el-radio :label="2" v-if='form.type!=4'>部门</el-radio> <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 :label="3" v-if='!(form.type==4||form.type==2)'>小组</el-radio> -->
<el-radio v-if="type!='send'" :label="3"></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 v-if="type!='send'" :label="2"></el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
@ -384,7 +384,7 @@
</xy-dialog> </xy-dialog>
<addQuestion ref='addQuestion' @submitQs="submitQs"></addQuestion> <addQuestion ref='addQuestion' @submitQs="submitQs"></addQuestion>
<sendNotice ref="sendNotice"></sendNotice>
</div> </div>
</template> </template>
@ -428,12 +428,14 @@
listregulation listregulation
} from "@/api/lawsfile/regulation.js"; } 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'; // import mixins from '../mixins/mixins.js';
export default { export default {
// mixins:[mixins], // mixins:[mixins],
components: { components: {
addQuestion, addQuestion,
elSelectTree elSelectTree,
sendNotice
}, },
data() { data() {
return { return {
@ -888,7 +890,11 @@
this.checkAll = checkedCount === this.deptOptions.length; this.checkAll = checkedCount === this.deptOptions.length;
this.isIndeterminate = checkedCount > 0 && 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() { async getDetail() {
const res = await get(this.id) const res = await get(this.id)
this.form = { this.form = {
@ -1130,6 +1136,9 @@
console.log("this.betweenSe",this.form.start_date, this.form.end_date) console.log("this.betweenSe",this.form.start_date, this.form.end_date)
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') { if (this.type === 'add' || this.type=== 'pid') {
this.form.do_admin_ids = [] this.form.do_admin_ids = []
save({ save({
@ -1139,14 +1148,25 @@
type: 'success', type: 'success',
message: '新增任务成功' message: '新增任务成功'
}) })
console.log("")
saveLog({ saveLog({
table_name:"missions_logs", table_name:"missions_logs",
mission_name:this.form.name, 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'?'任务分解':'新增任务'), op_name:this.type === 'add'?'新增任务':(this.type=== 'pid'?'任务分解':'新增任务'),
remark:'' 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.isShow = false
this.$emit('refresh') this.$emit('refresh')
this.$emit('toUnit', this.form.type) this.$emit('toUnit', this.form.type)

@ -58,7 +58,7 @@
checkArr:[], checkArr:[],
formObj: {}, formObj: {},
form: { form: {
title:'', title:'您有一条安全生产任务需要办理',
users:[] users:[]
}, },
rules: { rules: {

@ -25,6 +25,18 @@
<xy-table :list="list" :total="total" row-key="rowindex" stripe <xy-table :list="list" :total="total" row-key="rowindex" stripe
@pageSizeChange="e => {select.page_size = e,getList()}" @pageIndexChange="e => {select.page = e,getList()}" @pageSizeChange="e => {select.page_size = e,getList()}" @pageIndexChange="e => {select.page = e,getList()}"
:table-item="table"> :table-item="table">
<template v-slot:mission_count>
<el-table-column align='center' label="是否已发布任务" width="120" header-align="center">
<template slot-scope="scope">
<div v-if="scope.row.mission && scope.row.mission.length>0">
</div>
<div v-else>
</div>
</template>
</el-table-column>
</template>
<template v-slot:btns> <template v-slot:btns>
<el-table-column align='center' label="操作" width="200" header-align="center"> <el-table-column align='center' label="操作" width="200" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -135,6 +147,10 @@
label: "责任人", label: "责任人",
prop: 'main_admin.name', prop: 'main_admin.name',
width: 120, width: 120,
},{
label: "是否已发布任务",
prop: 'mission_count',
width: 120,
}] }]
} }
}, },

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
outputDir: '/Users/mac/Documents/朗业/2024/h-河道处项目/a-安全生产/safety-manage-service/public/admin_test', outputDir: '/Users/mac/Documents/朗业/2024/h-河道处项目/a-安全生产/safety-manage-service/public/admin',
assetsDir: 'static', assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development', lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false, productionSourceMap: false,

Loading…
Cancel
Save