|
|
|
@ -739,7 +739,7 @@ const judgeIsShow = (key: string) => { |
|
|
|
@ 功能: 判断是否禁用 |
|
|
|
*/ |
|
|
|
const judgeIsDisabled = (key: string) => { |
|
|
|
// console.log("判断是否禁用", key); |
|
|
|
console.log("判断是否禁用", key); |
|
|
|
// console.log("测试是否获取授权-1-->",allNodePwoer) |
|
|
|
// console.log("测试是否获取授权-2-->",currentNodePowerKey) |
|
|
|
if (type.value === 3) { |
|
|
|
@ -755,7 +755,7 @@ const judgeIsDisabled = (key: string) => { |
|
|
|
|
|
|
|
|
|
|
|
let myPower = curNodePowerAry() |
|
|
|
// console.log("测试是否获取授权-3-->",myPower) |
|
|
|
console.log("测试是否获取授权-3-->",Array.isArray(myPower),myPower) |
|
|
|
if(Array.isArray(myPower) && myPower.length > 0){ |
|
|
|
let isOk = false |
|
|
|
myPower.forEach((item:powerAryInfo) => { |
|
|
|
@ -763,6 +763,10 @@ const judgeIsDisabled = (key: string) => { |
|
|
|
isOk = !item.isEdit |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
console.log("判断是否禁用------key------->", key); |
|
|
|
console.log("判断是否禁用------isOk------->", isOk); |
|
|
|
|
|
|
|
return isOk |
|
|
|
}else{ |
|
|
|
return false |
|
|
|
@ -1114,7 +1118,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
|
|
|
|
</script> |
|
|
|
<template> |
|
|
|
|
|
|
|
{{ data.type }} |
|
|
|
<BaiduMap |
|
|
|
v-if="judgeIsShow(data.name) && data.type === 'baidumap' && type != 4" |
|
|
|
:data="data" |
|
|
|
@ -1332,6 +1336,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:placeholder=" |
|
|
|
data.control.placeholder |
|
|
|
? data.control.placeholder |
|
|
|
@ -1367,6 +1372,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
<AKSelect |
|
|
|
:data="getInputSlot('p')" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:transform-option="transformOption" |
|
|
|
@change="inputSlotChange" |
|
|
|
type="slot" |
|
|
|
@ -1379,6 +1385,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
<AKSelect |
|
|
|
:data="getInputSlot()" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:transform-option="transformOption" |
|
|
|
type="slot" |
|
|
|
@change="inputSlotChange" |
|
|
|
@ -1406,6 +1413,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
<el-radio-group |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
v-model="value" |
|
|
|
v-if="data.type === 'radio'" |
|
|
|
@change="onValueChange(data.type)" |
|
|
|
@ -1414,6 +1422,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
<el-radio |
|
|
|
:key="index" |
|
|
|
:label="transformOption(item.value)" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
v-for="(item, index) in props.data.options" |
|
|
|
> |
|
|
|
<span :style="getFormItemInputStyle(configStyle, 5)">{{ item.label }}</span> |
|
|
|
@ -1422,6 +1431,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
<el-checkbox-group |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
v-model="value" |
|
|
|
v-if="data.type === 'checkbox'" |
|
|
|
@change="onValueChange(data.type)" |
|
|
|
@ -1431,6 +1441,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
v-for="(item, index) in props.data.options" |
|
|
|
:key="index" |
|
|
|
:label="transformOption(item.value)" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
> |
|
|
|
<span :style="getFormItemInputStyle(configStyle, 5)">{{ item.label }}</span> |
|
|
|
</el-checkbox> |
|
|
|
@ -1439,6 +1450,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
v-if="data.type === 'select' || (type === 5 && data.type === 'inputSlot')" |
|
|
|
:data="data" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
v-model="value" |
|
|
|
:options="props.data.options" |
|
|
|
:remote-method="getAxiosOptions" |
|
|
|
@ -1459,6 +1471,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:config="config" |
|
|
|
:name="control.file || 'file'" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:options="options" |
|
|
|
v-model="value" |
|
|
|
/> |
|
|
|
@ -1471,6 +1484,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:config="config" |
|
|
|
:name="control.file || 'file'" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:options="options" |
|
|
|
v-model="value" |
|
|
|
/> |
|
|
|
@ -1483,6 +1497,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:control="control" |
|
|
|
:config="config" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:options="options" |
|
|
|
v-model="value" |
|
|
|
/> |
|
|
|
@ -1492,6 +1507,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:options="options" |
|
|
|
v-model="value" |
|
|
|
/> |
|
|
|
@ -1511,6 +1527,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:data="data" |
|
|
|
:placeholder=" |
|
|
|
data.control.placeholder |
|
|
|
@ -1594,6 +1611,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:placeholder=" |
|
|
|
data.control.placeholder |
|
|
|
? data.control.placeholder |
|
|
|
@ -1613,6 +1631,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:data="data" |
|
|
|
:type="type" |
|
|
|
:rowIndex="rowIndex" |
|
|
|
@ -1624,6 +1643,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
:is="currentComponent" |
|
|
|
v-bind="control" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
:placeholder=" |
|
|
|
data.control.placeholder |
|
|
|
? data.control.placeholder |
|
|
|
@ -1645,6 +1665,7 @@ const diGuiJilian = (val: any, options: any[]) => { |
|
|
|
v-bind="control" |
|
|
|
v-model="value" |
|
|
|
:disabled="judgeIsDisabled(data.name)" |
|
|
|
:isEdit="judgeIsDisabled(data.name)" |
|
|
|
style="height: 500px" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|