Commit 9d5f0e8e by 吴娟华

'1.2.1'

1 parent a7005aa8
......@@ -61,12 +61,12 @@
<rule-form :ruleForm="vehicleForm" :rules="vehicleRules" :ruleData="vehicleData" :labelWidth="'140px'" ref='vehicleRuleForm'></rule-form>
<el-row>
<el-col :span="24">
<el-form label-width="120px">
<el-form-item label="操作日志" v-show="freqTableData.length">
<el-form label-width="120px" style="min-height:20px" v-loading="freqLoading" >
<el-form-item label="操作日志" v-show="freqTableData.length">
<table class="freq_table">
<tr>
<th width="90">调频时间</th>
<th width="60">调频模式</th>
<th width="80">调频时间</th>
<th width="80">调频模式</th>
<th width="100">上点频次</th>
<th>调频上点个数</th>
<th>设备上点总个数</th>
......@@ -212,6 +212,7 @@ export default {
type: "input",
inputType: "text",
prop: "keywords",
width: '360',
placeholder: "车主姓名|车架号|设备号|车型",
},
{
......@@ -219,7 +220,6 @@ export default {
type: 'select',
prop: 'deviceType',
placeholder: '请选择',
width: '200px',
options: [{
label: '全部',
value: ''
......@@ -236,7 +236,6 @@ export default {
type: 'select',
prop: 'deviceState',
placeholder: '请选择',
width: '200px',
options: [{
label: '全部',
value: ''
......@@ -260,7 +259,7 @@ export default {
dateType: 'day',
prop: 'date',
placeholder: '请选择年月',
selectStyle: 'width:350px',
selectStyle: 'width:360px',
pickerOptions: {
disabledDate(time) {
return time.getTime() < new Date(_this.date).getTime()
......@@ -272,7 +271,6 @@ export default {
type: 'select',
prop: 'vehicleType',
placeholder: '请选择',
width: '200px',
options: [{
label: '全部',
value: ''
......@@ -301,7 +299,6 @@ export default {
type: 'select',
prop: 'vehicleUsages',
placeholder: '请选择',
options: [{
label: '全部',
value: ''
......@@ -724,6 +721,7 @@ export default {
vehicleListInit: false,
vehicleListPromise: null,
isCreateMode: false,
freqLoading: false,
};
},
watch: {
......@@ -781,6 +779,7 @@ export default {
this.vehicleVisible = !this.vehicleVisible;
this.isReadonly = false;
this.isCreateMode = true
this.freqLoading = false
this.vehicleListPromise.then(()=>{
if (this.vehicleVisible) {
let _list = _.cloneDeep(this.vehicleDefalutData);
......@@ -815,6 +814,7 @@ export default {
this.isReadonly = false;
this.formLoading = true
this.isCreateMode = false
this.freqLoading = false
this.vehicleListPromise.then(()=>{
if (this.vehicleVisible) {
//let _list = this.vehicleDefalutData;
......@@ -906,10 +906,12 @@ export default {
// else this.$set(item, 'disabled', true)
// })
this.freqTableData = []
this.freqLoading = true
getAdjFreqInfo({
sn: scope.sn
}).then((res) => {
this.freqTableData = res.data
this.freqLoading = false
})
}
})
......@@ -1239,6 +1241,7 @@ export default {
let o = _this.vehicleDefalutData;
let m = o.find((k) => k.prop == "brandId");
m.options = _list;
m.loading = false
_this.vehicleList = _list;
this.vehicleListInit = true
resolve()
......@@ -1410,22 +1413,33 @@ export default {
};
</script>
<style>
.searchTop.inline .search-form{
max-width: 1200px;
position: relative;
}
.searchTop.inline .el-form-item{
width: auto;
max-width: 430px;
}
.searchTop.inline .search-form .el-form-item__content {
width: auto;
}
.searchTop.inline .el-input__inner{
width: 200px;
.searchTop.inline .el-input .el-input__inner{
width: 360px;
}
.searchTop.inline .el-select .el-input__inner{
width: 120px;
}
.searchTop.inline .el-form-item__label{
width: 5em;
}
.freq_table{
border-collapse: collapse;
width: 100%;
}
.freq_table th, .freq_table td{
border: 1px solid #ccc;
padding: 2px 5px;
padding: 2px;
text-align: center;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!