|
@@ -70,13 +70,30 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<el-form-item :label='item.name' prop="deviceId" label-position="top">
|
|
|
+ <div v-if="fillStatus === '1'">
|
|
|
+
|
|
|
+ <el-select
|
|
|
+ disabled
|
|
|
+ v-model="item.fillContent"
|
|
|
+ v-if="item.type === 'enum' && item.description !== null"
|
|
|
+ style="width: 200px">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in getIntDictOptions(item.description)"
|
|
|
+ :key="dict.label"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
<el-input
|
|
|
- v-if="fillStatus === '1'"
|
|
|
+ v-else
|
|
|
v-model="item.fillContent"
|
|
|
clearable
|
|
|
- style="width: 200px"
|
|
|
+ style="width: 200px; margin-right: 10px"
|
|
|
disabled
|
|
|
/>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
<el-input
|
|
|
v-else-if="item.type === 'textarea'"
|
|
|
v-model="item.fillContent"
|
|
@@ -84,7 +101,11 @@
|
|
|
clearable
|
|
|
style="width: 200px"
|
|
|
/>
|
|
|
- <el-select v-model="item.fillContent" clearable v-else-if="item.type === 'enum' && item.description !== null" style="width: 200px" filterable>
|
|
|
+ <el-select v-model="item.fillContent"
|
|
|
+ clearable
|
|
|
+ v-else-if="item.type === 'enum' && item.description !== null"
|
|
|
+ style="width: 200px"
|
|
|
+ filterable>
|
|
|
<el-option
|
|
|
v-for="dict in getIntDictOptions(item.description)"
|
|
|
:key="dict.label"
|
|
@@ -346,6 +367,7 @@ const getAttrList = async () => {
|
|
|
item.deviceId = queryParams.deviceId;
|
|
|
item.deviceCategoryId = queryParams.deviceCategoryId;
|
|
|
item.modelId = item.id;
|
|
|
+ console.log(item.fillContent)
|
|
|
})
|
|
|
attrList1.value.forEach(function (item,index){
|
|
|
item.deviceCode = queryParams.deviceCode;
|
|
@@ -585,4 +607,5 @@ onMounted(() => {
|
|
|
padding: 2px 4px;
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
+
|
|
|
</style>
|