Commit f65a7a91 authored by 李苏's avatar 李苏 💬

重点工作安排 页面接口

parent 1d53362f
......@@ -36,6 +36,8 @@ export const powerRoutes=[
redirect: 'organizationalManagement',
meta: {title: "基础数据", icon: "fa-cog", noCache: false, link: null,mkid:901000000},
children: [
/* end*/
{
component:'basicData/organizationalManagement/index',
hidden:false,
......@@ -142,6 +144,43 @@ export const powerRoutes=[
}
]
},
/* 重点工作管理*/
{
path: '/zdgzgl',
component: 'Layout',
hidden: false,
alwaysShow:true,
redirect: 'zdgzap',
meta: {title: "重点工作管理", icon: "fa-cog", noCache: false, link: null,mkid:910000000},
children: [
{
component:'daily/zdgzap/index',
hidden:false,
meta:{
"title": "重点工作安排",
"icon": "",
"noCache": false,
"link": null,
"mkid":910000100,
},
name:'zdgzap',
path:"zdgzap"
},
{
component:'daily/zdgzrw/index',
hidden:false,
meta:{
"title": "重点工作任务",
"icon": "",
"noCache": false,
"link": null,
"mkid":910000200,
},
name:'zdgzrw',
path:"zdgzrw"
}
]
},
/* 风险域控*/
{
path: '/riskPrecontrol',
......
......@@ -3,14 +3,14 @@
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-col :span="24">
<el-form-item label="标题" ref="title" prop="title">
<el-input :readonly="readonly" v-model="form.title" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="24">
<el-form-item label="内容" ref="content" prop="content">
<el-input :readonly="readonly" v-model="form.content" ></el-input>
<el-input type='textarea' :readonly="readonly" v-model="form.content" ></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -24,29 +24,30 @@
</el-col>
<el-col :span="12">
<el-form-item label="发布部门" ref="bmid" prop="bmid">
<el-input :readonly="readonly" v-model="form.bmid" ></el-input>
<!-- <el-input :readonly="readonly" v-model="form.bmid" ></el-input> -->
<RelSelect v-model="form.bmid" :readonly="readonly" style="width: 100%;" src='jcsj/common/bm/queryBm' filterable clearable :match="{value:'id',label:'bmmc'}"></RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<!-- <el-col :span="12">
<el-form-item label="附件数" ref="attachcount" prop="attachcount">
<el-input :readonly="readonly" v-model="form.attachcount" ></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
</el-col> -->
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz" ></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<!-- <el-row :gutter="20">
<el-col :span="12">
<el-form-item label="系统版本" ref="sysversion" prop="sysversion">
<el-input :readonly="readonly" v-model="form.sysversion" ></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
</el-form>
</RelDialog>
</template>
......@@ -86,26 +87,30 @@
attachcount:'',
//备注
bz:'',
//维护人编码
whrid:'',
//维护人
whr:'',
//维护时间
whsj:new Date().getTime(),
//创建人编码
cjrid:'',
//创建人
cjr:'',
//创建时间
cjsj:new Date().getTime(),
//系统版本
sysversion:'',
//状态
zt:'',
},
/* form提交时的规则,具体规则参考官网*/
rules: {
title: [{
required: true,
trigger: 'blur'
}],
content: [{
required: true,
trigger: 'blur'
}],
fbrq: [{
required: true,
trigger: 'blur'
}],
bmid: [{
required: true,
trigger: 'blur'
}]
}
}
},
......@@ -118,5 +123,3 @@
<style scoped lang="scss">
</style>
......@@ -19,9 +19,15 @@
<AddButton ref="add" :app='app'></AddButton>
<CopyButton ref="copy" :app='app'></CopyButton>
<EditButton ref="edit" :app='app'></EditButton>
<AttachFileButton :app='app' ></AttachFileButton>
<AttachFileShow :app='app' ></AttachFileShow>
<FieldButton :app='app'></FieldButton>
<ExcelButton :app='app'></ExcelButton>
<el-button size='mini' @click.native="doPublish()" type="primary">发布</el-button>
<el-button size='mini' @click.native="doUnPublish()" type="primary">取消发布</el-button>
<el-button size='mini' @click.native="doUnClose()" type="primary">取消完成</el-button>
<el-button size='mini' @click.native="doClose()" type="primary">完成</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
......@@ -44,7 +50,12 @@
doQuery,
doAdd,
doUpdate,
doDelete
doDelete,
doPublish,
doUnPublish,
doClose,
doUnClose
} from '@/api/daily/zdgzap.js';
/* edit页面*/
import Edit from './edit'
......@@ -77,19 +88,66 @@
{label: "标题", prop: "title", fieldType: "ftString",width:300},
{label: "内容", prop: "content", fieldType: "ftString",width:300},
{label: "发布日期", prop: "fbrq", fieldType: "ftDateTime"},
{label: "发布部门", prop: "bmid", fieldType: "ftString",width:192},
{label: "发布部门", prop: "bmName", fieldType: "ftString",width:192},
{label: "附件数", prop: "attachcount", fieldType: "int"},
{label: "备注", prop: "bz", fieldType: "ftString",width:300},
{label: "维护人", prop: "whr", fieldType: "ftString"},
{label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{label: "创建人", prop: "cjr", fieldType: "ftString"},
{label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
{label: "状态", prop: "zt", fieldType: "ftString",width:60},
{label: "状态", prop: "ztName", fieldType: "ftString",width:60},
]
}
},
methods: {
doPublish(){
if (this.app.selectOne || this.app.clickOne) {
doPublish(this.singleItem).then(res=>{
if(res.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
doUnPublish(){
if (this.app.selectOne || this.app.clickOne) {
doUnPublish(this.singleItem).then(res=>{
if(res.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
doClose(){
if (this.app.selectOne || this.app.clickOne) {
doClose(this.singleItem).then(res=>{
if(res.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
doUnClose(){
if (this.app.selectOne || this.app.clickOne) {
doUnClose(this.singleItem).then(res=>{
if(res.success){
this.$success('操作成功')
this.$refs['TablePager'].reLoad()
}
})
} else {
this.$warning('请选中一行操作');
}
},
/* 基础查询*/
query: doQuery,
/* 基础增*/
......@@ -114,4 +172,3 @@
<style scoped>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment