应用中心 脚本管理、数据源管理修改与开发
This commit is contained in:
parent
aa1b38e226
commit
fbad8e0d0a
|
@ -1,14 +1,14 @@
|
|||
<template>
|
||||
<div class="settingForm">
|
||||
<baseNewForm
|
||||
ref="typeOptionForm"
|
||||
:spanNumber="18"
|
||||
:isFunBtn="false"
|
||||
:formRow="formRow"
|
||||
:ruleForm="ruleForm"
|
||||
:labelPosition="'top'"
|
||||
@onSelect="typeSelectChangeHanlde"
|
||||
@onSubmit="typeOptionOnSubmit"
|
||||
ref="typeOptionForm"
|
||||
:spanNumber="18"
|
||||
:isFunBtn="false"
|
||||
:formRow="formRow"
|
||||
:ruleForm="ruleForm"
|
||||
:labelPosition="'top'"
|
||||
@onSelect="typeSelectChangeHanlde"
|
||||
@onSubmit="typeOptionOnSubmit"
|
||||
>
|
||||
</baseNewForm>
|
||||
<div class="bigTitle">数据权限设置</div>
|
||||
|
@ -84,9 +84,9 @@
|
|||
</baseTable>
|
||||
<div class="receiptsAddRow">
|
||||
<el-link
|
||||
type="primary"
|
||||
@click="addRowHandle"
|
||||
:underline="false"
|
||||
type="primary"
|
||||
@click="addRowHandle"
|
||||
:underline="false"
|
||||
>+ 添加
|
||||
</el-link
|
||||
>
|
||||
|
@ -185,6 +185,45 @@ export default {
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
type: 'select',
|
||||
title: '新增脚本',
|
||||
id: 'addScript',
|
||||
row: 24,
|
||||
disabled: false,
|
||||
fontSize: 16,
|
||||
options: []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
type: 'select',
|
||||
title: '修改脚本',
|
||||
id: 'updateScript',
|
||||
row: 24,
|
||||
disabled: false,
|
||||
fontSize: 16,
|
||||
options: []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
type: 'select',
|
||||
title: '删除脚本',
|
||||
id: 'deleteScript',
|
||||
row: 24,
|
||||
disabled: false,
|
||||
fontSize: 16,
|
||||
options: []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
elCol: [
|
||||
{
|
||||
|
@ -341,9 +380,15 @@ export default {
|
|||
this.formRow[2].elCol[0].options = []
|
||||
this.formRow[3].elCol[0].options = []
|
||||
this.formRow[4].elCol[0].options = []
|
||||
this.formRow[5].elCol[0].options = []
|
||||
this.formRow[6].elCol[0].options = []
|
||||
this.formRow[7].elCol[0].options = []
|
||||
this.$set(this.ruleForm, 'addApi', '')
|
||||
this.$set(this.ruleForm, 'updateApi', '')
|
||||
this.$set(this.ruleForm, 'deleteApi', '')
|
||||
this.$set(this.ruleForm, 'addScript', '')
|
||||
this.$set(this.ruleForm, 'updateScript', '')
|
||||
this.$set(this.ruleForm, 'deleteScript', '')
|
||||
}
|
||||
//当下啦是appid时条用接口查询该app下的所有接口用在新增、修改、删除上
|
||||
if (row.id === 'appId' && val) {
|
||||
|
@ -364,6 +409,25 @@ export default {
|
|||
label: item.apiName
|
||||
})
|
||||
})
|
||||
//插件
|
||||
this.openLoading('detail')
|
||||
const res2 = await authApi('sysApplicationService', '', 'queryAppScript', '', {
|
||||
appId: val
|
||||
})
|
||||
res2.attribute.forEach((item) => {
|
||||
this.formRow[5].elCol[0].options.push({
|
||||
id: item.id,
|
||||
label: item.scriptName
|
||||
})
|
||||
this.formRow[6].elCol[0].options.push({
|
||||
id: item.id,
|
||||
label: item.scriptName
|
||||
})
|
||||
this.formRow[7].elCol[0].options.push({
|
||||
id: item.id,
|
||||
label: item.scriptName
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</template>
|
||||
<!-- 操作类型-->
|
||||
<template #optionType="{row}">
|
||||
{{ optionTypeDist[row.optionType]}}
|
||||
{{row.optionType}}
|
||||
</template>
|
||||
</baseTable>
|
||||
</div>
|
||||
|
@ -109,9 +109,9 @@ export default {
|
|||
limit: 10
|
||||
},
|
||||
optionTypeDist:{
|
||||
1:"新增",
|
||||
2:"修改",
|
||||
3:"删除",
|
||||
'1':"新增",
|
||||
'2':"修改",
|
||||
'3':"删除",
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue