Commit 05afff72 by li_hongchao

逻辑库新增、编辑,工作流新增编辑逻辑修改

parent a379affd
......@@ -301,9 +301,16 @@ export default {
'collapse-transition': CollapseTransition
},
props: {
isRy: {
isRy: { // 人员、案件标识
type: Boolean,
default: true,
},
type: { // 新增、编辑、工作流标识
type: Number,
default: _VIEW_TYPES.ALL
},
info: { // 逻辑库信息,编辑和工作流时不为空
type: Object
}
},
data() {
......@@ -344,6 +351,18 @@ export default {
}
},
mounted() {
this.curType = this.type
switch (this.type) {
case _VIEW_TYPES.ALL:
this.showAll()
break
case _VIEW_TYPES.LJFK:
this.showLjfk(this.info)
break
case _VIEW_TYPES.GZL:
this.showGzl(this.info)
break
}
},
methods: {
isFirstItem(index) {
......
......@@ -46,6 +46,8 @@
<xtfk-and-gzl-view
ref="addXtfk"
:is-ry="isPerson"
:type="addType"
:info="addInfo"
v-if="isAddFk"
@close="closeXtfkView" />
</el-container>
......@@ -56,6 +58,12 @@ import RyXtljfkView from '../xtfkgl/RyXtljfkView.vue'
import AjXtljfkView from '../xtfkgl/AjXtljfkView.vue'
import XtfkAndGzlView from '../xtfkgl/XtfkAndGzlView.vue'
const _VIEW_TYPES = {
ALL: 1,
LJFK: 2,
GZL: 3
}
export default {
name: 'XtfkglMain',
components: {
......@@ -67,6 +75,8 @@ export default {
return {
isAddFk: false,
isPerson: true,
addType: _VIEW_TYPES.ALL, // ALL: 1, LJFK: 2, GZL: 3
addInfo: '',
}
},
mounted() {
......@@ -82,16 +92,19 @@ export default {
},
addFk() { // 新增分库
this.isAddFk = true
this.$refs.addXtfk.showAll()
this.addType = _VIEW_TYPES.ALL
this.addInfo = {}
},
openBj(info) { // 人员/案件编辑
this.isAddFk = true
this.$refs.addXtfk.showLjfk(info)
this.addType = _VIEW_TYPES.LJFK
this.addInfo = info
},
openGzl(info) {// 人员/案件工作流
this.isAddFk = true
this.$refs.addXtfk.showGzl(info)
this.addType = _VIEW_TYPES.GZL
this.addInfo = info
},
openSjgl() { // 人员/案件数据管理
......
......@@ -118,8 +118,8 @@ module.exports = {
// target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上
// target: "http://zwpt.xzclub.top:9333/",
target: "http://192.168.128.106:8099", // 江
target: "http://zwpt.xzclub.top:9333/",
// target: "http://192.168.128.106:8099", // 江
ws: true,
changeOrigin: true,
pathRewrite: {
......
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