Commit d420d43b authored by “lixuyan”'s avatar “lixuyan”

试验申请页面修改

parent f73a2d63
......@@ -25,9 +25,8 @@
width="660"
trigger="hover"
popper-class="record-maintenance-popper"
@show="getList(scope.row.id)"
>
<upload-files v-model="objFileLinks" />
<!-- <upload-files v-model="objFileLinks" /> -->
<span slot="reference" style="cursor: pointer;olor: #409eff;">
附件浏览
</span>
......@@ -233,34 +232,34 @@ export default {
this.loading = false
})
},
getList(sourceId) {
const params = {
indices: ['ObjFileLink'],
searchItems: {
items: [
{
fieldName: 'sourceId',
operator: 'EQ',
value: sourceId
}
],
operator: 'AND'
},
openProps: [
{
pageFrom: 1,
pageSize: 1,
name: 'target'
}
]
}
post('/FileUtil/checkFile', params)
.then((res) => {
this.objFileLinks = res.items.content[0].objFileLinks
})
.catch((err) => console.error(err))
.finally(() => {})
},
// getList(sourceId) {
// const params = {
// indices: ['ObjFileLink'],
// searchItems: {
// items: [
// {
// fieldName: 'sourceId',
// operator: 'EQ',
// value: sourceId
// }
// ],
// operator: 'AND'
// },
// openProps: [
// {
// pageFrom: 1,
// pageSize: 1,
// name: 'target'
// }
// ]
// }
// post('/FileUtil/checkFile', params)
// .then((res) => {
// this.objFileLinks = res.items.content[0].objFileLinks
// })
// .catch((err) => console.error(err))
// .finally(() => {})
// },
deleteRow(id) {
this.$confirm('确定要删除吗?', '提示', {
confirmButtonText: '确定',
......@@ -270,10 +269,9 @@ export default {
.then(() => {
const params = {
operator: 'REMOVE',
dxClassname: 'com.tf.mes.vo.prod.ExperimentRecordVo',
id: id
}
this.HttpRequest('/ExperimentRecord/recursion', params, 'post')
post('/ExperimentRecord/recursion', params)
.then((res) => {
if (res && !res.message.includes('成功')) {
this.$message({
......@@ -288,7 +286,8 @@ export default {
this.init()
})
})
.catch(() => {
.catch((error) => {
console.log(error)
this.$message({
type: 'info',
message: '已取消'
......
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