|
|
@@ -50,6 +50,7 @@ |
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
import $storeInitData from '@/store/initData' |
|
|
|
const route = useRoute() |
|
|
|
const agencyIdList = ref([]) |
|
|
|
|
|
|
|
const VEHICLE_COLOR_TYPE = computed(() => { |
|
|
|
return $storeinitData.state.dictData['VEHICLE_COLOR_TYPE'] || [] |
|
|
@@ -73,6 +74,21 @@ |
|
|
|
const value1 = ref() // 筛选时间 |
|
|
|
const tableData = ref([]) |
|
|
|
|
|
|
|
function getAgenCy() { |
|
|
|
BaseService.post('/userw/agency/agencyqueryall', {}).then((res: any) => { |
|
|
|
if (res && res.statusCode === 0) { |
|
|
|
//数据转换 .agencyQueryAllModels |
|
|
|
let bizContent = res.data |
|
|
|
agencyIdList.value = bizContent.map((item) => { |
|
|
|
return { label: item.name, value: item.agencyId } |
|
|
|
}) |
|
|
|
// console.log(agencyIdList.value, 'agencyIdList.value') |
|
|
|
} else { |
|
|
|
ElMessage.error(res.message) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//表单数据配置 |
|
|
|
const formLabelWidth = '180px' |
|
|
|
const field = ref({ |
|
|
@@ -121,18 +137,35 @@ |
|
|
|
], |
|
|
|
field: [ |
|
|
|
{ |
|
|
|
label: '接入渠道编号', |
|
|
|
prop: 'agencyId', |
|
|
|
prop: "agencyId", |
|
|
|
label: "渠道编号", |
|
|
|
funRuleStarts: true, //是否启用转换规则 |
|
|
|
funRule: (value) => { |
|
|
|
//自定义转换规则 |
|
|
|
return value; |
|
|
|
}, |
|
|
|
form: { |
|
|
|
disabled: false, |
|
|
|
formLabelWidth: formLabelWidth, |
|
|
|
width: '90%', |
|
|
|
type: 'input', |
|
|
|
type: 'select', |
|
|
|
required: true, |
|
|
|
}, |
|
|
|
disabled: false, |
|
|
|
listData: agencyIdList |
|
|
|
} |
|
|
|
}, |
|
|
|
// { |
|
|
|
// label: '接入渠道编号', |
|
|
|
// prop: 'agencyId', |
|
|
|
// form: { |
|
|
|
// disabled: false, |
|
|
|
// formLabelWidth: formLabelWidth, |
|
|
|
// width: '90%', |
|
|
|
// type: 'select', |
|
|
|
// listDate:"", |
|
|
|
// required: true, |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
label: '服务地址', |
|
|
|
label: '发行回调接口地址', |
|
|
|
prop: 'noticeUrl', |
|
|
|
form: { |
|
|
|
disabled: false, |
|
|
@@ -162,7 +195,7 @@ |
|
|
|
hide: true, |
|
|
|
form: { |
|
|
|
listData: [ |
|
|
|
{ value: "1", label: '新版' }, |
|
|
|
{ value: "1", label: '新办' }, |
|
|
|
{ value: "2", label: '提示用户' }, |
|
|
|
], |
|
|
|
formLabelWidth: formLabelWidth, |
|
|
@@ -335,7 +368,8 @@ |
|
|
|
// 编辑按钮 |
|
|
|
function handleEdit(idx: any, row: any) { |
|
|
|
changeStatus(true) |
|
|
|
typeOption.value = 'edit' |
|
|
|
typeOption.value = 'edit'; |
|
|
|
getAgenCy(); |
|
|
|
} |
|
|
|
function changeStatus(b) { |
|
|
|
field.value.field.forEach((item: any) => { |
|
|
@@ -350,6 +384,7 @@ |
|
|
|
function add() { |
|
|
|
changeStatus(false) |
|
|
|
typeOption.value = "add"; |
|
|
|
getAgenCy(); |
|
|
|
} |
|
|
|
// 提交 |
|
|
|
function submit(data: any) { |
|
|
@@ -511,6 +546,7 @@ |
|
|
|
optionExportFn('64fdfd607b4f4356ba55d44c24ab31a2', params, '接入渠道') |
|
|
|
} |
|
|
|
onMounted(() => { |
|
|
|
getList() |
|
|
|
getList(); |
|
|
|
getAgenCy(); |
|
|
|
}) |
|
|
|
</script> |