|
@@ -71,7 +71,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-select
|
|
<el-select
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.yanZhengLeiXing"
|
|
v-model="row.yanZhengLeiXing"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
name="yanZhengLeiXing"
|
|
name="yanZhengLeiXing"
|
|
@@ -106,7 +106,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.huoDongMing"
|
|
v-model="row.huoDongMing"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
|
|
|
|
@@ -123,7 +123,7 @@
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
|
|
|
|
|
<ibps-link-data
|
|
<ibps-link-data
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.tiGongZhe"
|
|
v-model="row.tiGongZhe"
|
|
|
|
|
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -147,7 +147,7 @@
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
|
|
|
|
|
<ibps-link-data
|
|
<ibps-link-data
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.biDuiFang"
|
|
v-model="row.biDuiFang"
|
|
|
|
|
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -171,7 +171,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.xuHao"
|
|
v-model="row.xuHao"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@@ -185,7 +185,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.jianYanXiangMu"
|
|
v-model="row.jianYanXiangMu"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
|
|
|
|
@@ -200,7 +200,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.jiHuaShiJian"
|
|
v-model="row.jiHuaShiJian"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
|
|
|
|
@@ -217,7 +217,7 @@
|
|
|
<ibps-user-selector
|
|
<ibps-user-selector
|
|
|
|
|
|
|
|
v-model="row.canYuRenYuan"
|
|
v-model="row.canYuRenYuan"
|
|
|
- :disabled="isRead"
|
|
|
|
|
|
|
+ :disabled="!(!isRead&&!(row.shiFouYiDengJi==='1'))"
|
|
|
readonly-text="text"
|
|
readonly-text="text"
|
|
|
type="user"
|
|
type="user"
|
|
|
:multiple="true"
|
|
:multiple="true"
|
|
@@ -236,7 +236,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<el-input
|
|
<el-input
|
|
|
- v-if="!isRead&&!row.yidengji"
|
|
|
|
|
|
|
+ v-if="!isRead&&!(row.shiFouYiDengJi==='1')"
|
|
|
v-model="row.zuHe"
|
|
v-model="row.zuHe"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
|
|
|
|
@@ -320,7 +320,6 @@ export default {
|
|
|
handler (value, old) {
|
|
handler (value, old) {
|
|
|
if (value) {
|
|
if (value) {
|
|
|
this.sjzlpjjhxData = value
|
|
this.sjzlpjjhxData = value
|
|
|
- this.getData()
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -335,21 +334,6 @@ export default {
|
|
|
this.isRead = this.readonly || this.params.nodeId === 'Activity_1lhe4zd' || this.params.nodeId === 'Activity_0rkcq41'
|
|
this.isRead = this.readonly || this.params.nodeId === 'Activity_1lhe4zd' || this.params.nodeId === 'Activity_0rkcq41'
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- getData () {
|
|
|
|
|
- const sql = `select * FROM t_sjzkwjsdjxqb`
|
|
|
|
|
- this.$common.request('sql', sql).then(res => {
|
|
|
|
|
- const { data = [] } = res.variables || {}
|
|
|
|
|
- const yidengjilist = data.map(item => {
|
|
|
|
|
- return item.ji_hua_zi_biao_id
|
|
|
|
|
- })
|
|
|
|
|
- console.log(yidengjilist)
|
|
|
|
|
-
|
|
|
|
|
- for (const item of this.sjzlpjjhxData) {
|
|
|
|
|
- item.yidengji = yidengjilist.includes(item.id)
|
|
|
|
|
- }
|
|
|
|
|
- console.log(this.sjzlpjjhxData)
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
handleSelectionChange (val) {
|
|
handleSelectionChange (val) {
|
|
|
this.multipleSelection = val
|
|
this.multipleSelection = val
|
|
@@ -358,7 +342,7 @@ export default {
|
|
|
handleActionEvent (type) {
|
|
handleActionEvent (type) {
|
|
|
switch (type) {
|
|
switch (type) {
|
|
|
case 'add':
|
|
case 'add':
|
|
|
- console.info('新增')
|
|
|
|
|
|
|
+ // console.info('新增')
|
|
|
this.sjzlpjjhxData.push({
|
|
this.sjzlpjjhxData.push({
|
|
|
id: '',
|
|
id: '',
|
|
|
parentId: '',
|
|
parentId: '',
|
|
@@ -370,29 +354,36 @@ export default {
|
|
|
jianYanXiangMu: '',
|
|
jianYanXiangMu: '',
|
|
|
jiHuaShiJian: '',
|
|
jiHuaShiJian: '',
|
|
|
canYuRenYuan: '',
|
|
canYuRenYuan: '',
|
|
|
- zuHe: ''
|
|
|
|
|
|
|
+ zuHe: '',
|
|
|
|
|
+ shiFouYiDengJi: '0'
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
break
|
|
break
|
|
|
case 'edit':
|
|
case 'edit':
|
|
|
- console.info('修改')
|
|
|
|
|
|
|
+ // console.info('修改')
|
|
|
break
|
|
break
|
|
|
case 'remove':
|
|
case 'remove':
|
|
|
- console.info('删除')
|
|
|
|
|
|
|
+ // console.info('删除')
|
|
|
this.$confirm('确定删除当前选中数据?', '提示', {
|
|
this.$confirm('确定删除当前选中数据?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
if (this.multipleSelection.length > 0) {
|
|
if (this.multipleSelection.length > 0) {
|
|
|
- this.sjzlpjjhxData = this.sjzlpjjhxData.filter(row => !this.multipleSelection.includes(row))
|
|
|
|
|
|
|
+ // console.log(this.multipleSelection.find(item => item.shiFouYiDengJi === '1'))
|
|
|
|
|
+
|
|
|
|
|
+ if (this.multipleSelection.find(item => item.shiFouYiDengJi === '1')) {
|
|
|
|
|
+ this.$message.warning('选择数据有已有登记记录的数据,请重新选择')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.sjzlpjjhxData = this.sjzlpjjhxData.filter(row => !this.multipleSelection.includes(row))
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.warning('请选择数据')
|
|
this.$message.warning('请选择数据')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
break
|
|
break
|
|
|
case 'importData':
|
|
case 'importData':
|
|
|
- console.info('导入')
|
|
|
|
|
|
|
+ // console.info('导入')
|
|
|
this.showImportTable = true
|
|
this.showImportTable = true
|
|
|
break
|
|
break
|
|
|
case 'exportData':
|
|
case 'exportData':
|
|
@@ -400,6 +391,12 @@ export default {
|
|
|
break
|
|
break
|
|
|
case 'copy':
|
|
case 'copy':
|
|
|
if (this.multipleSelection.length > 0) {
|
|
if (this.multipleSelection.length > 0) {
|
|
|
|
|
+ // console.log(this.multipleSelection)
|
|
|
|
|
+ for (const item of this.multipleSelection) {
|
|
|
|
|
+ if (item.id) {
|
|
|
|
|
+ item.id = ''
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
this.sjzlpjjhxData = this.sjzlpjjhxData.concat(cloneDeep(this.multipleSelection))
|
|
this.sjzlpjjhxData = this.sjzlpjjhxData.concat(cloneDeep(this.multipleSelection))
|
|
|
} else {
|
|
} else {
|
|
|
this.$message.warning('请选择数据')
|
|
this.$message.warning('请选择数据')
|