|
@@ -41,14 +41,14 @@ let UpdateForm: any = ref({
|
|
|
|
|
|
});
|
|
|
// 分组选项数据
|
|
|
-const groupIdOptionList = []
|
|
|
+let groupIdOptionList = []
|
|
|
|
|
|
// 选项卡参数(默认值为列表某项的id)
|
|
|
const activeId = ref('1')
|
|
|
// 提交函数
|
|
|
const submit = async () => {
|
|
|
const UrlList = await getGroupUrl(['kxsConfigServer']);
|
|
|
- const { status, msg }: any = await http.Request({ method: UrlList.kxsConfigServer.apiInfoupdate.method, url: UrlList.kxsConfigServer.apiInfoupdate.url, params: UpdateForm.value});
|
|
|
+ const { status, msg }: any = await http.Request({ method: UrlList.kxsConfigServer.apiInfoupdate.method, url: UrlList.kxsConfigServer.apiInfoupdate.url, params: UpdateForm.value });
|
|
|
if (status === 1) {
|
|
|
ElMessage({
|
|
|
message: "修改成功",
|
|
@@ -78,11 +78,21 @@ const closeFn: any = inject('closeEditUpdateVisible');
|
|
|
const openVisible = async () => {
|
|
|
//通过ID获取表格数据
|
|
|
const UrlList = await getGroupUrl(['kxsConfigServer']);
|
|
|
- const { status, data }: any = await http.Request({method: UrlList.kxsConfigServer.apiInfoquery.method, url: UrlList.kxsConfigServer.apiInfoquery.url, params: props.formData});
|
|
|
+ const { status, data }: any = await http.Request({ method: UrlList.kxsConfigServer.apiInfoquery.method, url: UrlList.kxsConfigServer.apiInfoquery.url, params: props.formData });
|
|
|
if (status === 1) {
|
|
|
UpdateForm.value = data;
|
|
|
}
|
|
|
};
|
|
|
+//获取分组数据
|
|
|
+const apiInfoquery = async () => {
|
|
|
+ //通过ID获取表格数据
|
|
|
+ const UrlList = await getGroupUrl(['kxsConfigServer']);
|
|
|
+ const { status, data }: any = await http.Request({ method: UrlList.kxsConfigServer.apiGroupselectList.method, url: UrlList.kxsConfigServer.apiGroupselectList.url, params: {} });
|
|
|
+ if (status === 1) {
|
|
|
+ groupIdOptionList = data.records;
|
|
|
+ }
|
|
|
+};
|
|
|
+apiInfoquery();
|
|
|
// 关闭弹窗回调函数
|
|
|
const closeVisible = () => {
|
|
|
UpdateForm.value = {
|
|
@@ -106,7 +116,7 @@ const closeVisible = () => {
|
|
|
clearable,
|
|
|
class="!w-[230px]"
|
|
|
)
|
|
|
- el-option(:label="item.label", :value="item.Id" v-for="(item,index) in groupIdOptionList")
|
|
|
+ el-option(:label="item.groupName", :value="item.id" v-for="(item,index) in groupIdOptionList")
|
|
|
el-form-item(label='接口名称' prop="apiName")
|
|
|
el-input(v-model='UpdateForm.apiName' autocomplete='off' class="!w-[230px]"
|
|
|
placeholder="请输入接口名称")
|