qiubh 1 settimana fa
parent
commit
04a9be542b

+ 46
- 10
src/views/optionalSystem/accessChannelManagement/accessChannelQuery/index.vue Vedi File

import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import $storeInitData from '@/store/initData' import $storeInitData from '@/store/initData'
const route = useRoute() const route = useRoute()
const agencyIdList = ref([])


const VEHICLE_COLOR_TYPE = computed(() => { const VEHICLE_COLOR_TYPE = computed(() => {
return $storeinitData.state.dictData['VEHICLE_COLOR_TYPE'] || [] return $storeinitData.state.dictData['VEHICLE_COLOR_TYPE'] || []
const value1 = ref() // 筛选时间 const value1 = ref() // 筛选时间
const tableData = 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 formLabelWidth = '180px'
const field = ref({ const field = ref({
], ],
field: [ field: [
{ {
label: '接入渠道编号',
prop: 'agencyId',
prop: "agencyId",
label: "渠道编号",
funRuleStarts: true, //是否启用转换规则
funRule: (value) => {
//自定义转换规则
return value;
},
form: { form: {
disabled: false,
formLabelWidth: formLabelWidth, formLabelWidth: formLabelWidth,
width: '90%',
type: 'input',
type: 'select',
required: true, 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', prop: 'noticeUrl',
form: { form: {
disabled: false, disabled: false,
hide: true, hide: true,
form: { form: {
listData: [ listData: [
{ value: "1", label: '新' },
{ value: "1", label: '新' },
{ value: "2", label: '提示用户' }, { value: "2", label: '提示用户' },
], ],
formLabelWidth: formLabelWidth, formLabelWidth: formLabelWidth,
// 编辑按钮 // 编辑按钮
function handleEdit(idx: any, row: any) { function handleEdit(idx: any, row: any) {
changeStatus(true) changeStatus(true)
typeOption.value = 'edit'
typeOption.value = 'edit';
getAgenCy();
} }
function changeStatus(b) { function changeStatus(b) {
field.value.field.forEach((item: any) => { field.value.field.forEach((item: any) => {
function add() { function add() {
changeStatus(false) changeStatus(false)
typeOption.value = "add"; typeOption.value = "add";
getAgenCy();
} }
// 提交 // 提交
function submit(data: any) { function submit(data: any) {
optionExportFn('64fdfd607b4f4356ba55d44c24ab31a2', params, '接入渠道') optionExportFn('64fdfd607b4f4356ba55d44c24ab31a2', params, '接入渠道')
} }
onMounted(() => { onMounted(() => {
getList()
getList();
getAgenCy();
}) })
</script> </script>

Loading…
Annulla
Salva