|
|
@@ -41,7 +41,7 @@
|
|
|
</template></el-table-column>-->
|
|
|
</el-table>
|
|
|
<div class="white-box-footer">
|
|
|
-
|
|
|
+
|
|
|
<!-- <el-dropdown size="small" trigger="click">
|
|
|
<el-button type="primary" size="small">
|
|
|
所选数据<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
@@ -53,7 +53,7 @@
|
|
|
<el-button type="primary" size="small" @click="handlestate" icon="el-icon-plus" v-if="permission.hasPermission(`shop/goods-add`)">
|
|
|
<!-- 商品添加 -->{{ $t('shop.addProduct') }}
|
|
|
</el-button>
|
|
|
-
|
|
|
+
|
|
|
<el-button type="success" size="small" @click="handleExport" v-show="permission.hasPermission(`shop/goods-list-export`)">{{ $t('common.exportExcel') }}</el-button>
|
|
|
<!-- <el-button-group>
|
|
|
<el-button type="success" size="mini" @click.native="handleup(scope.row.ID)">上架</el-button>
|
|
|
@@ -138,7 +138,7 @@
|
|
|
<el-form-item :label="$t('shop.order')"> <!-- 排序 -->
|
|
|
<el-input v-model="form.sort"></el-input>
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
<el-form-item :label="$t('shop.uploadImages')"> <!-- 上传图片 -->
|
|
|
<div class='up_load'>
|
|
|
<Upload
|
|
|
@@ -159,9 +159,9 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<script>
|
|
|
- import {getOperatingSystem} from "@/utils"
|
|
|
+ import {getOperatingSystem, getScreenWidth} from "@/utils"
|
|
|
import tool from '@/utils/tool'
|
|
|
import baseInfo from '@/utils/baseInfo'
|
|
|
import FilterUser from '@/components/FilterUser'
|
|
|
@@ -177,14 +177,15 @@
|
|
|
mounted () {
|
|
|
this.getData()
|
|
|
// this.$refs.up_load.successImageUrl='';
|
|
|
- let system = getOperatingSystem()
|
|
|
- if (system == "Android" || system == 'ios') {
|
|
|
- this.fixedColumn = false
|
|
|
- } else {
|
|
|
- this.fixedColumn = 'right'
|
|
|
- }
|
|
|
+ // let system = getOperatingSystem()
|
|
|
+ // if (system == "Android" || system == 'ios') {
|
|
|
+ // this.fixedColumn = false
|
|
|
+ // } else {
|
|
|
+ // this.fixedColumn = 'right'
|
|
|
+ // }
|
|
|
+ this.fixedColumn = getScreenWidth() < 500 ? false : 'right'
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
data () {
|
|
|
return {
|
|
|
fixedColumn:false, // 固定,当手机端不固定,pc固定
|
|
|
@@ -321,7 +322,7 @@
|
|
|
vueObj.form.taxRate = response.data.goodsInfo.TAX_RATE
|
|
|
vueObj.form.coverOrigin = response.data.goodsInfo.COVER
|
|
|
vueObj.form.cover = tool.getArImage(response.data.goodsInfo.COVER, '/files/')
|
|
|
-
|
|
|
+
|
|
|
this.$forceUpdate()
|
|
|
}).catch(err => {
|
|
|
|
|
|
@@ -340,7 +341,7 @@
|
|
|
// }
|
|
|
// })
|
|
|
// this.form.sellType=sen_sell;
|
|
|
-
|
|
|
+
|
|
|
let sen_gift = []
|
|
|
this.GiftTypeArr.map((item, index) => {
|
|
|
if (item.checked) {
|
|
|
@@ -364,7 +365,7 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
handleDel (id = null) {
|
|
|
let obj = this
|
|
|
this.$confirm(this.$t('common.deleteTips'), this.$t('common.hint'), { // '确定删除选定的数据?', '提示'
|
|
|
@@ -447,7 +448,7 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
handleExport () {
|
|
|
this.$confirm(this.$t('financial.exportNotice'), this.$t('common.hint'), { // 确定要导出当前数据吗?`, '提示'
|
|
|
confirmButtonText: this.$t('common.confirm'), // 确定
|
|
|
@@ -485,15 +486,15 @@
|
|
|
// },
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
</script>
|
|
|
-
|
|
|
+
|
|
|
<style scoped>
|
|
|
.table-box .el-form-item__label {
|
|
|
width: 100px;
|
|
|
color: #99a9bf;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.table-box .el-form-item {
|
|
|
width: 30%;
|
|
|
margin-right: 0;
|
|
|
@@ -504,11 +505,10 @@
|
|
|
text-align: left;
|
|
|
}
|
|
|
@media (max-width:862px) {
|
|
|
- /deep/ img {
|
|
|
+ /deep/ img {
|
|
|
width: 100px !important;
|
|
|
height: 60px !important;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
</style>
|
|
|
-
|