|
|
@ -57,13 +57,12 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-for="c,idx in fields.filter(k=>k.extType!='row' && k.extType!='card' && k.extType!='tabs')" :key="idx" :prop="c.idCamel" :label="c.title" min-width="120" show-overflow-tooltip col-type="String" v-show="showCol(c.idCamel)"> |
|
|
<el-table-column v-for="c,idx in fields.filter(k=>k.extType!='row' && k.extType!='card' && k.extType!='tabs')" :key="idx" :prop="c.idCamel" :label="c.title" min-width="120" show-overflow-tooltip col-type="String" v-show="showCol(c.idCamel)"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<mdp-select v-if="c.dict" :item-code="c.dict" show-style="tag" v-model="scope.row[c.idCamel]" multiple split="," :maxlength="255" :disabled="true||disabledJudge(c.idCamel)"/> |
|
|
|
|
|
|
|
|
<mdp-select v-if="c.dict" :item-code="c.dict" show-style="tag" v-model="scope.row[c.idCamel]" :multiple="c.mul=='1'" split="," :maxlength="255" :disabled="true||disabledJudge(c.idCamel)"/> |
|
|
<div v-else>{{scope.row[c.idCamel]}}</div> |
|
|
<div v-else>{{scope.row[c.idCamel]}}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="deptName" label="创建部门" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('deptName')"> |
|
|
<el-table-column prop="deptName" label="创建部门" min-width="120" show-overflow-tooltip col-type="String" v-if="showCol('deptName')"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<mdp-input show-style="tag" v-model="scope.row.deptName" :maxlength="255" @change="editSomeFields(scope.row,'deptName',$event)" :disabled="!editable || disabledJudge('deptName')"/> |
|
|
<mdp-input show-style="tag" v-model="scope.row.deptName" :maxlength="255" @change="editSomeFields(scope.row,'deptName',$event)" :disabled="!editable || disabledJudge('deptName')"/> |
|
|
@ -252,7 +251,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//页面数据加载完后需要对数据进行加工处理的 |
|
|
//页面数据加载完后需要对数据进行加工处理的 |
|
|
afterList(res,isOk,apiName){ |
|
|
|
|
|
|
|
|
afterList(datas,isOk,apiName){ |
|
|
|
|
|
if(datas){ |
|
|
|
|
|
datas.forEach(d=>{ |
|
|
|
|
|
if(d.extInfos){ |
|
|
|
|
|
d.extInfos=JSON.parse(d.extInfos) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|