Commit 21d75151 by 西瓜

反馈核查案件和嫌疑人删除

parent 7367ecb2
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
}, },
{ {
"ids": "455542", "ids": "455542",
"label": "长签字页扫描件", "label": "长签字页扫描件",
"codeType": "CODE_SHCE_HCFKFJLXDM", "codeType": "CODE_SHCE_HCFKFJLXDM",
"text": "长签字页扫描件", "text": "长签字页扫描件",
"id": "02", "id": "02",
"isParent": false, "isParent": false,
"children": [] "children": []
......
...@@ -69,3 +69,8 @@ export const getXxzjbh = params => ...@@ -69,3 +69,8 @@ export const getXxzjbh = params =>
//附件删除 //附件删除
export const deleteObj1 = params => export const deleteObj1 = params =>
post(`${base.alyIP}/shse/deleteObj`, params) post(`${base.alyIP}/shse/deleteObj`, params)
//嫌疑人,案件删除
export const deleteObjXyrAj = params =>
post(`${base.alyIP}/shse/deleteObj`, params)
\ No newline at end of file
...@@ -1077,7 +1077,6 @@ ...@@ -1077,7 +1077,6 @@
id="caiji" id="caiji"
>办结反馈</el-button >办结反馈</el-button
> >
</div> </div>
<div v-else-if="propBottonType == 'Xdzl'"> <div v-else-if="propBottonType == 'Xdzl'">
<el-button <el-button
...@@ -1228,7 +1227,11 @@ ...@@ -1228,7 +1227,11 @@
</template> </template>
<script> <script>
import { queryCodeByType,deleteObj1 } from '@/api/xsInput/xsInput.js' import {
queryCodeByType,
deleteObj1,
deleteObjXyrAj
} from '@/api/xsInput/xsInput.js'
import { get, post, postform } from '@/utils/http.js' import { get, post, postform } from '@/utils/http.js'
import base from '@/api/base' import base from '@/api/base'
import axios from 'axios' import axios from 'axios'
...@@ -1279,6 +1282,8 @@ export default { ...@@ -1279,6 +1282,8 @@ export default {
}, },
data () { data () {
return { return {
scId: '',
tbName: '',
xXxxzjbhSc: '', xXxxzjbhSc: '',
filterText: '', filterText: '',
buttom: this.$route.query.buttom, buttom: this.$route.query.buttom,
...@@ -1530,13 +1535,56 @@ export default { ...@@ -1530,13 +1535,56 @@ export default {
//点击垃圾桶 删除表单 //点击垃圾桶 删除表单
deleteObj (obj) { deleteObj (obj) {
debugger
let self = this let self = this
if (!obj.xxzjbh) {
self.propFormField.forEach(val => {
if (val.childrenAsAdd) {
val.childrenAsAdd.forEach(val2 => {
self.formLabelAlign[val2.id].forEach(val3 => {
if (val3 == obj) {
self.formLabelAlign[val2.id].splice(
val2.list.indexOf(val3),
1
)
// this.$message.success("删除成功");
this.$alert('删除成功!', '提示', {
confirmButtonText: '确定',
type: 'success'
})
}
})
})
}
})
} else {
self.propFormField[4].childrenAsAdd.forEach(item => {
console.log(item)
self.scId = item.id
})
self.propFormField[5].childrenAsAdd.forEach(item => {
console.log(item)
self.scId = item.id
})
if (self.scId == 'hcfkglxyr') {
this.tbName = 'TB_YW_SHSEXS_HCFKGLXYR'
} else if (self.scId == 'hcfkglasj') {
this.tbName = 'TB_YW_SHSEXS_HCFKGLASJ'
}
deleteObjXyrAj({
xxzjbh: obj.xxzjbh,
tbName: this.tbName
}).then(res => {
if (res.code == '200') {
self.propFormField.forEach(val => { self.propFormField.forEach(val => {
if (val.childrenAsAdd) { if (val.childrenAsAdd) {
val.childrenAsAdd.forEach(val2 => { val.childrenAsAdd.forEach(val2 => {
self.formLabelAlign[val2.id].forEach(val3 => { self.formLabelAlign[val2.id].forEach(val3 => {
if (val3 == obj) { if (val3 == obj) {
self.formLabelAlign[val2.id].splice(val2.list.indexOf(val3), 1) self.formLabelAlign[val2.id].splice(
val2.list.indexOf(val3),
1
)
// this.$message.success("删除成功"); // this.$message.success("删除成功");
this.$alert('删除成功!', '提示', { this.$alert('删除成功!', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -1547,6 +1595,9 @@ export default { ...@@ -1547,6 +1595,9 @@ export default {
}) })
} }
}) })
}
})
}
}, },
//新增表单数据 //新增表单数据
...@@ -3079,8 +3130,8 @@ export default { ...@@ -3079,8 +3130,8 @@ export default {
debugger debugger
return this.$confirm(`是否要删除!`, '提示!', { return this.$confirm(`是否要删除!`, '提示!', {
confirmButtonText: '确定', confirmButtonText: '确定',
type:'waring' type: 'waring'
}).then( () => { }).then(() => {
// if (file.uid == ) // if (file.uid == )
if (this.$route.query.fkxxzjbh) { if (this.$route.query.fkxxzjbh) {
this.xXxxzjbhSc = file.xxzjbh this.xXxxzjbhSc = file.xxzjbh
...@@ -3092,7 +3143,7 @@ export default { ...@@ -3092,7 +3143,7 @@ export default {
tbName: 'TB_YW_SHSEXS_XSHCFKFJ' tbName: 'TB_YW_SHSEXS_XSHCFKFJ'
}).then(res => { }).then(res => {
if (res.code == '200') { if (res.code == '200') {
this.$alert('删除成功!','提示', { this.$alert('删除成功!', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
type: 'success', type: 'success',
callback: () => { callback: () => {
...@@ -3135,7 +3186,10 @@ export default { ...@@ -3135,7 +3186,10 @@ export default {
} else if (item.id == 'hcbgDzwd') { } else if (item.id == 'hcbgDzwd') {
params.append('shsexsbh', this.shsexsbh) params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh) params.append('jsxxzjbh', this.xxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh) params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '01') params.append('fjlxdm', '01')
params.append('file', file.raw) params.append('file', file.raw)
self.fkcs = params self.fkcs = params
...@@ -3144,7 +3198,10 @@ export default { ...@@ -3144,7 +3198,10 @@ export default {
params.append('shsexsbh', this.shsexsbh) params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh) params.append('jsxxzjbh', this.xxzjbh)
// params.append('jshcxxzjbh', this.jshcxxzjbh) // params.append('jshcxxzjbh', this.jshcxxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh) params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '02') params.append('fjlxdm', '02')
params.append('file', file.raw) params.append('file', file.raw)
self.fkcs = params self.fkcs = params
...@@ -3153,7 +3210,10 @@ export default { ...@@ -3153,7 +3210,10 @@ export default {
params.append('shsexsbh', this.shsexsbh) params.append('shsexsbh', this.shsexsbh)
params.append('jsxxzjbh', this.xxzjbh) params.append('jsxxzjbh', this.xxzjbh)
// params.append('jshcxxzjbh', this.jshcxxzjbh) // params.append('jshcxxzjbh', this.jshcxxzjbh)
params.append('jshcxxzjbh', this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh) params.append(
'jshcxxzjbh',
this.jshcxxzjbh ? this.jshcxxzjbh : this.fkxxzjbh
)
params.append('fjlxdm', '03') params.append('fjlxdm', '03')
params.append('file', file.raw) params.append('file', file.raw)
self.fkcs = params self.fkcs = params
...@@ -4164,7 +4224,7 @@ $-header-fontSize: 18px; ...@@ -4164,7 +4224,7 @@ $-header-fontSize: 18px;
} }
} }
} }
/deep/.el-upload-list__item.is-success.focusing .el-icon-close-tip { /deep/.el-upload-list__item.is-success.focusing .el-icon-close-tip {
display: none !important; display: none !important;
} }
</style> </style>
...@@ -632,7 +632,7 @@ export default { ...@@ -632,7 +632,7 @@ export default {
content: [] content: []
}, },
smj: { smj: {
name: '长签字页扫面件:', name: '长签字页扫面件:',
content: [] content: []
}, },
qt: { qt: {
......
...@@ -1036,7 +1036,7 @@ export default { ...@@ -1036,7 +1036,7 @@ export default {
content: [] content: []
}, },
smj: { smj: {
name: '长签字页扫面件:', name: '长签字页扫面件:',
content: [] content: []
}, },
qt: { qt: {
......
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
content: [], content: [],
}, },
smj: { smj: {
name: "长签字页扫面件:", name: "长签字页扫面件:",
content: [], content: [],
}, },
qt: { qt: {
......
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