Commit b4554d91 by 前端

Merge branch 'hotfix_4.37.2' into 'master'

上线合并

See merge request !8
2 parents 19e2aecd ea82fd1b

2.03 KB | W: | H:

2.2 KB | W: | H:

src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
  • 2-up
  • Swipe
  • Onion skin

2.19 KB | W: | H:

2.16 KB | W: | H:

src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -19,8 +19,6 @@ export const fetchConfig = function(isEnv = true) { ...@@ -19,8 +19,6 @@ export const fetchConfig = function(isEnv = true) {
// } // }
let params = { moduleName: 'quality', mockUrl: 'https://oss-config.glsx.com.cn/mock/64560a989bfdc8942feaa6f1/ordermanage/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'quality', mockUrl: 'https://oss-config.glsx.com.cn/mock/64560a989bfdc8942feaa6f1/ordermanage/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params) return utils.getConfig(params)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div :class="{ 'dialog-detail': true, 'nth-child': item.role % 2 === 1 }" :key="item.id"> <div :class="{ 'dialog-detail': true, 'nth-child': item.role % 2 === 1 }" :key="item.id">
<div class="name"> <div class="name">
<img class="role" src="@/assets/role-one.png" v-if="item.role % 2 === 0" /> <img class="role" src="@/assets/role-one.png" v-if="item.role % 2 === 0" />
角色{{ (item.role % 2) + 1 }} {{item.role % 2 === 0?'车主':'销售'}}
<img class="role" src="@/assets/role-two.png" v-if="item.role % 2 === 1" /> <img class="role" src="@/assets/role-two.png" v-if="item.role % 2 === 1" />
</div> </div>
<div class="dig-content" @click="currentDialog(item)"> <div class="dig-content" @click="currentDialog(item)">
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
} }
.dig-content { .dig-content {
width: 404px; width: 404px;
background: #ffffff; background: #EBEBFF;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
...@@ -276,8 +276,8 @@ export default { ...@@ -276,8 +276,8 @@ export default {
text-align: right; text-align: right;
.dig-content { .dig-content {
display: inline-block; display: inline-block;
background: #ebebff; background: #FFFFFF;
margin-right: 56px; margin-right: 58px;
} }
} }
} }
......
...@@ -14,23 +14,39 @@ ...@@ -14,23 +14,39 @@
@mousemove="handleMove" @mousemove="handleMove"
ref="reference" ref="reference"
> >
<el-input <template v-if="infinity">
v-model="userInput[0]" <el-input-number
:placeholder="startPlaceholder" class="el-range-input hide-btn"
@blur="handleBlur(0)" :placeholder="startPlaceholder"
@input="handleStartInput" v-model="userInput[0]"
class="el-range-input" @blur="handleBlur(0)"
></el-input> ></el-input-number>
<span class="el-range-separator">至</span> <span class="el-range-separator">至</span>
<el-input <el-input-number
v-model="userInput[1]" class="el-range-input hide-btn"
:placeholder="endPlaceholder" :placeholder="endPlaceholder"
@input="handleEndInput" v-model="userInput[1]"
@focus="handleFocus" @blur="handleBlur(1)"
@blur="handleBlur(1)" ></el-input-number>
class="el-range-input" </template>
></el-input> <template v-else>
<el-input
v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"
></el-input>
<span class="el-range-separator">至</span>
<el-input
v-model="userInput[1]"
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur(1)"
class="el-range-input"
></el-input>
</template>
<i <i
v-show="showClose" v-show="showClose"
@click="handleClickIcon" @click="handleClickIcon"
...@@ -42,7 +58,7 @@ ...@@ -42,7 +58,7 @@
</template> </template>
<script> <script>
export default { export default {
data() { data () {
return { return {
pickerVisible: false, pickerVisible: false,
showClose: false, showClose: false,
...@@ -54,17 +70,18 @@ export default { ...@@ -54,17 +70,18 @@ export default {
displayValue: Array, displayValue: Array,
placeholder: String, placeholder: String,
startPlaceholder: String, startPlaceholder: String,
endPlaceholder: String endPlaceholder: String,
infinity: Boolean
}, },
watch: { watch: {
displayValue(val) { displayValue (val) {
if (val) { if (val) {
this.userInput = val this.userInput = val
} }
} }
}, },
methods: { methods: {
handleStartInput(event) { handleStartInput (event) {
let isNumber = /^\d+$/.test(event) let isNumber = /^\d+$/.test(event)
if (!isNumber) { if (!isNumber) {
event = null event = null
...@@ -73,7 +90,7 @@ export default { ...@@ -73,7 +90,7 @@ export default {
this.userInput[0] = event this.userInput[0] = event
}, },
handleEndInput(event) { handleEndInput (event) {
let isNumber = /^\d+$/.test(event) let isNumber = /^\d+$/.test(event)
if (!isNumber) { if (!isNumber) {
event = null event = null
...@@ -81,11 +98,11 @@ export default { ...@@ -81,11 +98,11 @@ export default {
if (event > 100) event = 100 if (event > 100) event = 100
this.userInput[1] = event this.userInput[1] = event
}, },
handleClickIcon(event) { handleClickIcon (event) {
this.userInput[0] = null this.userInput[0] = null
this.userInput[1] = null this.userInput[1] = null
}, },
valueIsEmpty() { valueIsEmpty () {
const val = this.userInput const val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
for (let i = 0, len = val.length; i < len; i++) { for (let i = 0, len = val.length; i < len; i++) {
...@@ -96,28 +113,28 @@ export default { ...@@ -96,28 +113,28 @@ export default {
} }
return true return true
}, },
handleRangeClick() { handleRangeClick () {
this.pickerVisible = true this.pickerVisible = true
}, },
handleMove() { handleMove () {
if (this.valueIsEmpty()) { if (this.valueIsEmpty()) {
this.showClose = false this.showClose = false
} else { } else {
this.showClose = true this.showClose = true
} }
}, },
handleFocus() { handleFocus () {
if (!this.pickerVisible) { if (!this.pickerVisible) {
this.pickerVisible = true this.pickerVisible = true
this.$emit("focus", this) this.$emit("focus", this)
} }
}, },
handleBlur(index) { handleBlur (index) {
this.pickerVisible = false this.pickerVisible = false
this.contrastValue() this.contrastValue()
}, },
contrastValue() { contrastValue () {
let val = this.userInput let val = this.userInput
if (Array.isArray(val)) { if (Array.isArray(val)) {
if (val[0] > val[1]) { if (val[0] > val[1]) {
...@@ -143,5 +160,15 @@ export default { ...@@ -143,5 +160,15 @@ export default {
color: #dcdfe6; color: #dcdfe6;
margin-left: 10px; margin-left: 10px;
} }
.hide-btn{
::v-deep{
span{
display: none;
}
input{
padding: 0;
}
}
}
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.toStoreCount"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.toStoreCount"></el-input-range>
</div> --> </div> -->
<div slot="AbnormalProportion"> <div slot="AbnormalProportion">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.AbnormalProportion"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.AbnormalProportion" infinity></el-input-range>
</div> </div>
</GLCombiForm> </GLCombiForm>
...@@ -197,11 +197,11 @@ export default { ...@@ -197,11 +197,11 @@ export default {
// name: 'toStoreCount', // name: 'toStoreCount',
// addHtml: 'toStoreCount' // addHtml: 'toStoreCount'
// }, // },
{ // {
label: '异常占比', // label: '异常占比',
name: 'AbnormalProportion', // name: 'AbnormalProportion',
addHtml: 'AbnormalProportion' // addHtml: 'AbnormalProportion'
} // }
], ],
searchForm: { searchForm: {
searchdate: '', searchdate: '',
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
{ {
label: '工牌编号', label: '工牌编号',
prop: 'badgeId', prop: 'badgeId',
width: '140px' width: '200px'
}, },
{ {
label: '录音时长', label: '录音时长',
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<el-radio-button label="0">未命中</el-radio-button> <el-radio-button label="0">未命中</el-radio-button>
</el-radio-group> </el-radio-group>
</div> </div>
<GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url"> <GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :hasPage="false" :noDataImg="url">
<template slot="suggestions" slot-scope="scope"> <template slot="suggestions" slot-scope="scope">
<div v-html="formatSrt(scope.scope.suggestions)"></div> <div v-html="formatSrt(scope.scope.suggestions)"></div>
</template> </template>
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.batchId = this.detailObj.id this.searchFormSearch.batchId = this.detailObj.id
this.searchFormSearch.pageSize = 99999
if (this.searchFormSearch.qualityTestScore) { if (this.searchFormSearch.qualityTestScore) {
this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0] this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0]
this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1] this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1]
...@@ -308,6 +309,14 @@ export default { ...@@ -308,6 +309,14 @@ export default {
font-size: 14px; font-size: 14px;
margin: 0 auto; margin: 0 auto;
} }
.gre {
color: #2cca74;
background: #e9f9f1;
}
.red {
color: #eb4e4e;
background: #fdeded;
}
} }
</style> </style>
<style> <style>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!