Authored by wangtao

参数修改,

... ... @@ -13,7 +13,7 @@
</template>
</el-table-column>
<el-table-column v-if="showSelection && columns.length > 0" align="center" type="selection" width="55" />
<el-table-column v-if="showIndex && columns.length > 0" type="index" :label="indexLabel" align="center" width="50"/>
<el-table-column v-if="showIndex && columns.length > 0" type="index" :label="indexLabel" align="center" width="80"/>
<el-table-column v-for="item in columns" :prop="item.prop" :label="item.label" :sortable="item.sortable == undefined ? false : item.sortable" :align="item.align == undefined ? 'center' : item.align "
:width="getWidth(item.width)">
... ...
<div>
<div style="font-weight: bold;text-align: left;">故障相关处理意见</div>
<div style="font-weight: bold;text-align: left;" class="p-6">故障相关处理意见</div>
<cm-table-page v-if="list.columns.length > 0" :columns="list.columns"
:dataList="list.dataList"
@loaddata="getPageInfo"
... ...
... ... @@ -52,23 +52,22 @@ export default {
let list = Vue.ref({
columns: [{
prop: 'faultNo',
width:90,
width:120,
label: '故障编号',
},{
prop: 'faultBody',
width:150,
width:200,
label: '故障主体',
}, {
prop: 'createTime',
width:100,
width:170,
label: '发生时间',
}, {
prop: 'duration',
width:80,
width:100,
label: '持续时长',
},{
prop: 'solution',
width:200,
label: '处理方案'
}],
dataList: [],
... ... @@ -86,7 +85,6 @@ export default {
let params = {
configId: props.itemInfo.configId,
}
proxy.$http.get('/api-web/fault/result/findFaultListByConfigId', params, function (res) {
if (res && res.success) {
list.value.dataList = res.data;
... ... @@ -96,17 +94,10 @@ export default {
});
}
let handleClick = (row,index) =>{
console.log(row,index);
emit('callback',row);
}
// // 监听编辑状态
// Vue.watch(() => props.itemInfo, (newValue, oldVlaue) => {
// getPage();
// });
// 挂载完
Vue.onMounted(() => {
getPage();
... ...
... ... @@ -77,7 +77,7 @@ export default {
itemName: '知识库',
detail: true,
colType: 'flag',
state:'0'
state:'1'
}]
});
... ...