feat: 调整MML命令请求接口
This commit is contained in:
@@ -48,7 +48,7 @@ let state: StateType = reactive({
|
||||
key: '',
|
||||
operation: '',
|
||||
object: '',
|
||||
objectType: 'mml',
|
||||
objectType: 'General',
|
||||
param: [],
|
||||
},
|
||||
from: {
|
||||
@@ -103,7 +103,7 @@ function fnCleanFrom() {
|
||||
key: '',
|
||||
operation: '',
|
||||
object: '',
|
||||
objectType: 'mml',
|
||||
objectType: 'General',
|
||||
param: [],
|
||||
};
|
||||
state.from = {};
|
||||
@@ -342,7 +342,7 @@ function fnNeChange(keys: any, _: any) {
|
||||
key: '',
|
||||
operation: '',
|
||||
object: '',
|
||||
objectType: 'mml',
|
||||
objectType: 'General',
|
||||
param: {},
|
||||
};
|
||||
fnGetList();
|
||||
@@ -354,12 +354,12 @@ function fnGetList() {
|
||||
const neType = state.neType[0];
|
||||
state.mmlNeType = neType;
|
||||
getMMLByNE(neType).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||
// 构建自动完成筛选结构
|
||||
const autoCompleteArr: Record<string, any>[] = [];
|
||||
// 构建树结构
|
||||
const treeArr: Record<string, any>[] = [];
|
||||
for (const item of res.data) {
|
||||
for (const item of res.data.rows) {
|
||||
const id = item['id'];
|
||||
const object = item['object'];
|
||||
const objectType = item['objectType'];
|
||||
@@ -680,10 +680,10 @@ onMounted(() => {
|
||||
v-model:value="state.mmlSelect.objectType"
|
||||
style="width: 20%"
|
||||
>
|
||||
<a-select-option value="mml">
|
||||
<a-select-option value="General">
|
||||
{{ t('views.mmlManage.neOperate.mml') }}
|
||||
</a-select-option>
|
||||
<a-select-option value="mml2">
|
||||
<a-select-option value="Standard">
|
||||
{{ t('views.mmlManage.neOperate.mml2') }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
||||
@@ -342,12 +342,12 @@ function ruleVerification(
|
||||
/**查询可选命令列表 */
|
||||
function fnGetList() {
|
||||
getMMLByUDM().then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||
// 构建自动完成筛选结构
|
||||
const autoCompleteArr: Record<string, any>[] = [];
|
||||
// 构建树结构
|
||||
const treeArr: Record<string, any>[] = [];
|
||||
for (const item of res.data) {
|
||||
for (const item of res.data.rows) {
|
||||
const id = item['id'];
|
||||
const object = item['object'];
|
||||
const operation = item['operation'];
|
||||
|
||||
Reference in New Issue
Block a user