|
|
@@ -18,7 +18,7 @@ |
|
|
|
(val) => { |
|
|
|
field.paging.currentPage = 1 |
|
|
|
field.paging.pageSize = val |
|
|
|
getList() |
|
|
|
// getList() |
|
|
|
} |
|
|
|
" |
|
|
|
> |
|
|
@@ -36,8 +36,8 @@ |
|
|
|
:model-value="item.scope.row.status" |
|
|
|
active-value="ENABLE" |
|
|
|
inactive-value="DISABLE" |
|
|
|
active-color="#13ce66" |
|
|
|
inactive-color="#ff4949" |
|
|
|
active-color="#ff4949" |
|
|
|
inactive-color="#13ce66" |
|
|
|
@click="handleBeforeChange(item.scope.row)" |
|
|
|
></el-switch> |
|
|
|
</template> |
|
|
@@ -59,6 +59,7 @@ import { exportFn, importFn } from '@/views/settlement/exportFn' |
|
|
|
import { IsPermission } from '@/router/routerUtil' |
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
import { msgConfirm, typeTy } from '@/utils/msg' |
|
|
|
import { Console } from 'console' |
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
const emit = defineEmits(['update:modelValue', 'handleExamine']) |
|
|
@@ -69,13 +70,14 @@ const props = defineProps({ |
|
|
|
}, |
|
|
|
rowData: { |
|
|
|
type: Object, |
|
|
|
default: () => ({}), |
|
|
|
default: {} |
|
|
|
}, |
|
|
|
IS_ENABLE: { |
|
|
|
type: Array, |
|
|
|
default: () => [], |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
const isShow = computed({ |
|
|
|
get: function () { |
|
|
|
if (props.modelValue) { |
|
|
@@ -116,8 +118,8 @@ const field = ref({ |
|
|
|
dialogWidth: '40%', //dialog宽度 (默认40%) |
|
|
|
crudShow: true, //是否显示CURD操作栏 (默认true) |
|
|
|
crudChildShow: true, //是否显示CURD子操作栏 (默认true) |
|
|
|
paginStart: false, //是否显示分页查询 (默认false) |
|
|
|
isPageSizes: false, |
|
|
|
paginStart: true, //是否显示分页查询 (默认false) |
|
|
|
isPageSizes: true,//是否修改分页pageSize |
|
|
|
pageLayout: 'total, sizes, prev, pager, next', |
|
|
|
titleDialog: '', //table 标题 |
|
|
|
paging: { |
|
|
@@ -162,18 +164,18 @@ const field = ref({ |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '附件上传', |
|
|
|
prop: 'fileUrl', |
|
|
|
hide: true, |
|
|
|
form: { |
|
|
|
width: '90%', |
|
|
|
formLabelWidth: formLabelWidth, |
|
|
|
type: 'upload', |
|
|
|
placeholder: '请上传附件', |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// { |
|
|
|
// label: '附件上传', |
|
|
|
// prop: 'fileUrl', |
|
|
|
// hide: true, |
|
|
|
// form: { |
|
|
|
// width: '90%', |
|
|
|
// formLabelWidth: formLabelWidth, |
|
|
|
// type: 'upload', |
|
|
|
// placeholder: '请上传附件', |
|
|
|
// required: true, |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
prop: 'status', |
|
|
|
label: '启用状态', |
|
|
@@ -231,6 +233,7 @@ function submit(data: any) { |
|
|
|
BaseService.postN(api, datas).then((res: any) => { |
|
|
|
if (res && res.code === 0) { |
|
|
|
ElMessage.success('操作成功') |
|
|
|
console.log("提交调用") |
|
|
|
getList() |
|
|
|
cancel() |
|
|
|
} else { |
|
|
@@ -248,6 +251,7 @@ function handleDelete(idx: any, row: any) { |
|
|
|
}).then((res: any) => { |
|
|
|
if (res && res.statusCode === 0) { |
|
|
|
ElMessage.success('操作成功') |
|
|
|
console.log("删除调用") |
|
|
|
getList() |
|
|
|
cancel() |
|
|
|
} else { |
|
|
@@ -263,6 +267,7 @@ function cancel() { |
|
|
|
// 搜索按钮 |
|
|
|
function btnSearch() { |
|
|
|
field.value.paging.currentPage = 1 |
|
|
|
console.log("搜索调用") |
|
|
|
getList() |
|
|
|
} |
|
|
|
// 搜索重置 |
|
|
@@ -273,14 +278,17 @@ function refreshLeft() { |
|
|
|
} |
|
|
|
value1.value = null |
|
|
|
tableData.value = [] |
|
|
|
console.log("重置调用") |
|
|
|
getList() |
|
|
|
} |
|
|
|
// 获取列表 |
|
|
|
function getList(refresh?) { |
|
|
|
if (crudRef.value) crudRef.value.tableLoding = true |
|
|
|
// 参数 |
|
|
|
const params: any = { |
|
|
|
let params: any = { |
|
|
|
releaseId: productRowData.value.releaseId, |
|
|
|
pageNo: field.value.paging.currentPage, |
|
|
|
pageSize: field.value.paging.pageSize, |
|
|
|
} |
|
|
|
// const searchFormList = { ...searchForm.value } |
|
|
|
// for (const key in searchFormList) { |
|
|
@@ -293,8 +301,9 @@ function getList(refresh?) { |
|
|
|
params |
|
|
|
).then((res: any) => { |
|
|
|
if (res && res.code === 0) { |
|
|
|
const data = res.data.files || [] |
|
|
|
tableData.value = data |
|
|
|
tableData.value = res.data.result || [] |
|
|
|
//分页总数 |
|
|
|
field.value.paging.total = res.data.totalCount |
|
|
|
crudRef.value.tableLoding = false |
|
|
|
} else { |
|
|
|
crudRef.value.tableLoding = false |
|
|
@@ -304,6 +313,7 @@ function getList(refresh?) { |
|
|
|
} |
|
|
|
function handleCurrentChange(val: number) { |
|
|
|
field.value.paging.currentPage = val |
|
|
|
console.log("换页调用") |
|
|
|
getList() |
|
|
|
} |
|
|
|
|
|
|
@@ -318,7 +328,7 @@ function handleBeforeChange(row) { |
|
|
|
} |
|
|
|
console.log(params, 'paramsparams') |
|
|
|
BaseService.postN( |
|
|
|
'/managew/api/product/relaseAttachFiles/status', |
|
|
|
'/managew/api/product/Attachment/status', |
|
|
|
params |
|
|
|
).then((res: any) => { |
|
|
|
if (res && res.code === 0) { |