Commit 0fbd1014 by 杨北旺

Merge branch 'v2.10.0' of 192.168.3.233:saas/scrm-micro-presale into v2.10.0

2 parents 8dee1046 b73ca259
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<GLDialog class="gl-form-page gl-form-min" title="快速审核" mode="mid" v-if="visibility" :visible.sync="visibility"> <GLDialog class="gl-form-page gl-form-min" title="快速审核" mode="mid" v-if="visibility" :visible.sync="visibility">
<div class="review-container"> <div class="review-container">
<div class="filter-wrap"> <div class="filter-wrap">
<!-- 筛选树 -->
<div class="filter-btn"> <div class="filter-btn">
<span>筛选</span> <span>筛选</span>
<i class="gl-icon-filter filter-icon" @click.stop="showFilter = !showFilter"></i> <i class="gl-icon-filter filter-icon" @click.stop="showFilter = !showFilter"></i>
...@@ -18,7 +19,8 @@ ...@@ -18,7 +19,8 @@
</div> </div>
</div> </div>
</div> </div>
<div class="pic-list"> <!-- 左边小图片列表 -->
<div id="pic-list" class="pic-list">
<div class="pic-item" v-for="(item, index) in filterImgList" :key="index"> <div class="pic-item" v-for="(item, index) in filterImgList" :key="index">
<span class="title"> <span class="title">
<div class="name">{{ item.name }}</div> <div class="name">{{ item.name }}</div>
...@@ -31,6 +33,7 @@ ...@@ -31,6 +33,7 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 右边大图区 -->
<div class="preview-wrap"> <div class="preview-wrap">
<span>{{ curImg.name }}</span> <span>{{ curImg.name }}</span>
<div class="preview-oper"> <div class="preview-oper">
...@@ -41,6 +44,7 @@ ...@@ -41,6 +44,7 @@
<i class="gl-icon-a-testcaselibrary1"></i> <i class="gl-icon-a-testcaselibrary1"></i>
</div> </div>
</div> </div>
<!-- 按钮区 -->
<div class="pass-btn"> <div class="pass-btn">
<!-- <el-button type="text" @click="changeLeaf('pre')">上一张</el-button> --> <!-- <el-button type="text" @click="changeLeaf('pre')">上一张</el-button> -->
<el-button type="text" @click="handleApproval(1)">通过</el-button> <el-button type="text" @click="handleApproval(1)">通过</el-button>
...@@ -68,6 +72,7 @@ export default { ...@@ -68,6 +72,7 @@ export default {
return { return {
checked: true, checked: true,
showFilter:false, showFilter:false,
visibility:false,
imgPassObj: { imgPassObj: {
desc: '' desc: ''
}, },
...@@ -134,12 +139,6 @@ export default { ...@@ -134,12 +139,6 @@ export default {
}], }],
} }
}, },
props: {
visibility:{
type: Boolean,
default:false
}
},
mounted() { mounted() {
this.filterImgList = [...this.imgList] this.filterImgList = [...this.imgList]
this.changeCurImg(0) this.changeCurImg(0)
...@@ -162,6 +161,9 @@ export default { ...@@ -162,6 +161,9 @@ export default {
// this.curImg =type == 'next' ? this.imgList[idx+1] : this.imgList[idx-1] // this.curImg =type == 'next' ? this.imgList[idx+1] : this.imgList[idx-1]
// this.curImg.idx =type == 'next' ? idx + 1 : idx - 1 // this.curImg.idx =type == 'next' ? idx + 1 : idx - 1
// }, // },
initDialog(){
this.visibility = true
},
changeCurImg(index){ changeCurImg(index){
if(index>this.filterImgList.length-1 || index<0) return if(index>this.filterImgList.length-1 || index<0) return
this.curImg = this.filterImgList[index] this.curImg = this.filterImgList[index]
...@@ -171,6 +173,12 @@ export default { ...@@ -171,6 +173,12 @@ export default {
const idx = this.curImg.idx const idx = this.curImg.idx
this.filterImgList[idx].status = 1 this.filterImgList[idx].status = 1
this.changeCurImg(idx+1) this.changeCurImg(idx+1)
try{
let scrollH = document.getElementById('pic-list')
scrollH.scrollTop = 135*(idx+1)
}catch(err){
console.log(err)
}
}, },
checkChange(){ checkChange(){
const list = this.imgList.filter(item => { const list = this.imgList.filter(item => {
......
...@@ -2,24 +2,21 @@ ...@@ -2,24 +2,21 @@
<div class=""> <div class="">
<Card title="上传图片"> <Card title="上传图片">
<el-button type="text" slot="right" @click.stop="handleReview">快速审核</el-button> <el-button type="text" slot="right" @click.stop="handleReview">快速审核</el-button>
<div style="position:relative;"> <el-tabs class="tabs" v-model="activeName" @tab-click="changeTabs">
<el-button type="text" class="mutiReview" @click.stop="handleReview">批量审核</el-button> <el-tab-pane v-for="item in tabs" :key="item.name" :label="item.label" :name="item.name">
<el-tabs class="tabs" v-model="activeName"> <img-list :list="baseImgObj">
<el-tab-pane v-for="item in tabs" :key="item.name" :label="item.label" :name="item.name"> <div slot="footer">
<img-list :list="baseImgObj"> <div class="pass-btn">
<div slot="footer"> <el-button type="text" size="small">通过</el-button>
<div class="pass-btn"> <el-button type="text" size="small">不通过</el-button>
<el-button type="text" size="small">通过</el-button> <el-button type="text" size="small">上传</el-button>
<el-button type="text" size="small">不通过</el-button>
<el-button type="text" size="small">上传</el-button>
</div>
</div> </div>
</img-list> </div>
</el-tab-pane> </img-list>
</el-tabs> </el-tab-pane>
</div> </el-tabs>
</Card> </Card>
<fast-review :visibility="showFastReviewDialog"></fast-review> <fast-review ref="fastReviewDialog"></fast-review>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -93,7 +90,6 @@ export default { ...@@ -93,7 +90,6 @@ export default {
tabs, tabs,
baseImgObj, baseImgObj,
activeName: 'base', activeName: 'base',
showFastReviewDialog: false,
} }
}, },
components: { components: {
...@@ -105,8 +101,11 @@ export default { ...@@ -105,8 +101,11 @@ export default {
}, },
methods: { methods: {
changeTabs(){
console.log(45645)
},
handleReview(){ handleReview(){
this.showFastReviewDialog = true this.$refs.fastReviewDialog.initDialog()
} }
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report> <report @toSearchOrderDetail="toSearchOrderDetail" ref="reportRef" :isGH="routeInfo.isGH" :pageType="pageType" :editForm.sync="editForm"></report>
<repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair> <repair ref="repairRef" @changeObjectType="changeObjectType" :isGH="routeInfo.isGH" :pageType="pageType" :serviceItemsList.sync="serviceItemsList" :totalPrice.sync="totalPrice" :accountForm.sync="accountForm"></repair>
<material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material> <material ref="materialRef" :pageType="pageType" :materialForm.sync="materialForm"></material>
<div class="page-btm-btn"> <div class="page-btm-btn" v-if="pageType != 2">
<el-button type="primary" @click="confirmSubmit(1)">提交</el-button> <el-button type="primary" @click="confirmSubmit(1)">提交</el-button>
<el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button> <el-button type="primary" plain @click="confirmSubmit(2)">草稿</el-button>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!