|
@@ -2,9 +2,8 @@
|
|
|
<div class="ele-body">
|
|
<div class="ele-body">
|
|
|
|
|
|
|
|
<BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
<BOMSearch @search="reload" :statusOpt="statusOpt" />
|
|
|
- <ele-pro-table ref="table" :key="tableKey" :columns="columns" :datasource="datasource" class="dict-table"
|
|
|
|
|
|
|
+ <ele-pro-table ref="table" :key="tableKey" :columns="columns" :header-cell-style="headerCellStyle" :datasource="datasource" class="dict-table"
|
|
|
tool-class="ele-toolbar-actions">
|
|
tool-class="ele-toolbar-actions">
|
|
|
-
|
|
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
<div class="toolbar_box">
|
|
<div class="toolbar_box">
|
|
|
<div v-if="attributeData.status != 1">
|
|
<div v-if="attributeData.status != 1">
|
|
@@ -198,8 +197,9 @@ export default {
|
|
|
{
|
|
{
|
|
|
prop: 'dosage',
|
|
prop: 'dosage',
|
|
|
slot: 'dosage',
|
|
slot: 'dosage',
|
|
|
- label: '用量',
|
|
|
|
|
- width: 100
|
|
|
|
|
|
|
+ label: '用量*',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
@@ -439,7 +439,14 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
|
|
+ headerCellStyle({ column }) {
|
|
|
|
|
+ if (column.property === 'dosage') {
|
|
|
|
|
+ return {
|
|
|
|
|
+ color: 'red',
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return {}
|
|
|
|
|
+ },
|
|
|
rootCategoryLevelIdText(v) {
|
|
rootCategoryLevelIdText(v) {
|
|
|
if (v) {
|
|
if (v) {
|
|
|
let a = this.rootCategoryLevelIdList.find(item => item.value == v)
|
|
let a = this.rootCategoryLevelIdList.find(item => item.value == v)
|