Browse Source

color

master
pengjun 2 years ago
parent
commit
c364b2529b
  1. 15
      src/views/fee-settings/SysParmSet.vue

15
src/views/fee-settings/SysParmSet.vue

@ -15,6 +15,10 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="display: flex;">
<el-color-picker v-model="color16" @change="chooseColor"/>
<el-input v-model="color10" @input="inputColor" />
</div>
<div style="margin-left: 30px;"> <div style="margin-left: 30px;">
<el-button type="success" @click="save">保存</el-button> <el-button type="success" @click="save">保存</el-button>
</div> </div>
@ -69,6 +73,8 @@ export default {
organizationId: '00000000-0000-0000-0000-000000000000', organizationId: '00000000-0000-0000-0000-000000000000',
sysParmTypeId: '', sysParmTypeId: '',
sysParms: [], // sysParms: [], //
color16:'#409EFF',
color10:1089274,
}; };
}, },
@ -84,6 +90,15 @@ export default {
...mapState(["window", "dict"]), ...mapState(["window", "dict"]),
}, },
methods: { methods: {
chooseColor(v){
this.color10 = eval(v.replace('#','0x'));
},
inputColor(v){
this.color10 = Number(v);
let temp = '000000' + this.color10.toString(16);
this.color16 = '#' + temp.substring(temp.length - 6,temp.length);
},
// //
getOraniztion() { getOraniztion() {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( getapi("/api/app/organization-units/organization-unit-by-is-peis").then(

Loading…
Cancel
Save