|
@ -299,17 +299,6 @@ const defaultForm = form({ |
|
|
checkDate: '' |
|
|
checkDate: '' |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 自定义模板内容 |
|
|
|
|
|
const PrefixPlusText = { |
|
|
|
|
|
props: ['value', 'functions'], |
|
|
|
|
|
template: ` |
|
|
|
|
|
<el-tag v-if="functions(value) === '在用'" effect="dark"><span v-html="functions(value)"></span></el-tag> |
|
|
|
|
|
<el-tag v-else-if="functions(value) === '停用'" type="danger" effect="dark"><span v-html="functions(value)"></span></el-tag> |
|
|
|
|
|
<el-tag v-else-if="functions(value) === '待报废'" type="warning" effect="dark"><span v-html="functions(value)"></span></el-tag> |
|
|
|
|
|
<el-tag v-else type="info" effect="dark"><span v-html="functions(value)"></span></el-tag> |
|
|
|
|
|
` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'InstrumentList', |
|
|
name: 'InstrumentList', |
|
|
components: { Pagination, Query, Crud, CustomTable, Edit, TreeSelect, Move }, |
|
|
components: { Pagination, Query, Crud, CustomTable, Edit, TreeSelect, Move }, |
|
|