|
|
@@ -116,9 +116,16 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="16" style="margin-left: 60px; margin-bottom: 15px">
|
|
|
+ <span style="color: #606266; margin-left: 10px">· 通用</span>
|
|
|
+ <span style="color: #409EFF; margin-left: 10px">· 制造商</span>
|
|
|
+ <span style="color: #E6A23C; margin-left: 10px">· 非制造商</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="6" v-for="(item,i) in dynamicTableColumns" :key="i">
|
|
|
- <el-form-item :label="item.label">
|
|
|
+ <el-form-item :label="item.label" :class="isManuf(item.IsManuf)">
|
|
|
<el-switch v-model="formData[item.prop]" active-value="1" inactive-value="0"></el-switch>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -152,7 +159,7 @@
|
|
|
authUser: 'authUser'
|
|
|
})
|
|
|
},
|
|
|
- name: 'oilgoodsaptitudeEdit',
|
|
|
+ // name: 'oilgoodsaptitudeEdit',
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -256,6 +263,15 @@
|
|
|
this.initTableHeader();
|
|
|
},
|
|
|
methods: {
|
|
|
+ isManuf (val) {
|
|
|
+ if (val === '1') {
|
|
|
+ return 'setLabelRed'
|
|
|
+ } else if (val === '2') {
|
|
|
+ return 'setLabelGreen'
|
|
|
+ } else {
|
|
|
+ return 'setLabelBlue'
|
|
|
+ }
|
|
|
+ },
|
|
|
initTableHeader() {
|
|
|
|
|
|
setapi.initGoodTableHeader(this.$axios).then(res => {
|
|
|
@@ -475,3 +491,14 @@
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
+<style>
|
|
|
+ .setLabelRed label{
|
|
|
+ color: #409EFF;
|
|
|
+ }
|
|
|
+ .setLabelGreen label{
|
|
|
+ color: #E6A23C;
|
|
|
+ }
|
|
|
+ .setLabelBlue label{
|
|
|
+ color: #606266;
|
|
|
+ }
|
|
|
+</style>
|