diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue index 693dbf6f7b..81ff5fd3e2 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexing.vue @@ -15,87 +15,73 @@ - + - + - + - + - + - + - + - + - + - + - + - +
查询 - 重置 + 重置
车型信息列表
- +
- + @@ -133,7 +119,7 @@ {{ scope.row.fuelTypeValue }} - + @@ -147,8 +133,7 @@ @@ -156,8 +141,7 @@
- +
@@ -166,16 +150,11 @@
- + 删除
-
@@ -205,7 +184,6 @@ import chexingAdd from './chexingAdd' import chexinglook from './chexinglook' import chexingpeizhi from './relation/chexingguanlianchangyong' import upload from '../../../components/uploadFile/upload_chexing' -import req from '@/api/kucunguanli/changjiachuku' export default { name: 'chexing', @@ -216,7 +194,7 @@ export default { chexinglook, chexingpeizhi, upload, - ButtonBar, + ButtonBar }, data() { return { @@ -307,32 +285,21 @@ export default { emissionStandard: '', engineType: '', marketSegments: '', - specifications: '', + specifications: '' }, current: 1, size: 5, total: 0 }, sids: [], - typeOptions: [], imgList: [], - tureArrys: [ - { - value: 1, - label: '是' - }, - { - value: 0, - label: '否' - } - ], rules: {} // ------------------------------------ } }, - mounted() { - this.$refs["btnbar"].setButtonList(this.btnList) - }, + mounted() { + this.$refs['btnbar'].setButtonList(this.btnList) + }, created() { // 初始化变量 this.init() @@ -380,7 +347,7 @@ export default { // 孟哲接口 getPathSid() { const userSid = window.sessionStorage.getItem('userSid') - getPathSidByUserSid({userSid:userSid}).then((res) => { + getPathSidByUserSid({ userSid: userSid }).then((res) => { if (res.code === '200') { this.listQuery.params.createOrgSId = res.data this.useOrg = res.data @@ -389,9 +356,9 @@ export default { } }) }, - getBrand(useOrg){ + getBrand(useOrg) { // 下拉框-品牌 - brandDown({ useOrg:useOrg }).then((res) => { + brandDown({ useOrg: useOrg }).then((res) => { if (res.code === '200') { this.carBrand_list = res.data console.log('下拉框请求品牌', res.data) @@ -515,11 +482,7 @@ export default { pagerList(this.listQuery).then((response) => { console.log('列表查询结果:', response) this.listLoading = false - if ( - response.code === '200' && - response.data && - response.data.total > 0 - ) { + if (response.code === '200' && response.data && response.data.total > 0) { this.list = response.data.records this.listQuery.total = response.data.total } else { @@ -548,7 +511,7 @@ export default { emissionStandard: '', engineType: '', marketSegments: '', - specifications: '', + specifications: '' }, current: 1, size: 5, @@ -641,7 +604,7 @@ export default { handleCheck(row) { this.viewState = 4 const sid = row.sid - console.log('详情sid', sid,'useOrg:',this.useOrg) + console.log('详情sid', sid, 'useOrg:', this.useOrg) this.$refs['divinfo'].showInfo(sid, row, this.useOrg) }, handleDel(val) { @@ -660,43 +623,37 @@ export default { // 根据本行ID删除数据 doDel() { if (this.sids.length > 0) { - const _this = this const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' this.$confirm(tip, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' - }) - .then(() => { - const loading = this.$loading({ - lock: true, - text: 'Loading', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }) - var sids = this.sids.join(',') - console.log('删除的数据', sids) - const params = { - sids:sids, - userSid:window.sessionStorage.getItem('userSid') - } - deleteBySids(params) - .then(resp => { - if (resp.success && resp.code == '200'){ - loading.close() - _this.$message({ type: 'success', message: resp.msg, showClose: true }) - _this.getPathSid() - }else { - loading.close() - // _this.$message({ type: 'error', message: resp.msg, showClose: true }) - } - }) - .catch(e => { - loading.close() - }) + }).then(() => { + const loading = this.$loading({ + lock: true, + text: 'Loading', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' }) - .catch(() => { + var sids = this.sids.join(',') + console.log('删除的数据', sids) + const params = { + sids: sids, + userSid: window.sessionStorage.getItem('userSid') + } + deleteBySids(params).then(resp => { + if (resp.success) { + loading.close() + this.$message({ type: 'success', message: resp.msg, showClose: true }) + this.getPathSid() + } else { + loading.close() + } + }).catch(e => { + loading.close() }) + }).catch(() => { + }) } else { this.$notify({ title: '提示', @@ -727,8 +684,8 @@ export default { }) }) }, - doClose(){ - this.$store.dispatch('tagsView/delView', this.$route); + doClose() { + this.$store.dispatch('tagsView/delView', this.$route) this.$router.go(-1) } } @@ -753,15 +710,12 @@ export default { border-bottom: 0px solid #e6ebf5; } -.searchli { - padding: 5px 100px; -} - .upload_img { display: inline-block; padding-left: 10px; } -.dialogImg{ + +.dialogImg { display: flex; flex-direction: column; justify-content: center; diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue index 7920d776be..e91a60cc11 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue @@ -4,7 +4,7 @@
{{ viewTitle }}
保存 - 返回 + 关闭
@@ -16,29 +16,18 @@ - - + + - - - - - - *功能 - - + + @@ -47,10 +36,8 @@ - - + + @@ -148,20 +135,8 @@ - - + + @@ -181,13 +156,10 @@ diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue index eeeb5875a2..6c6104b18b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue +++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexinglook.vue @@ -6,11 +6,11 @@ 关闭
-
+
-
车型详情
- - +
车型信息
+ + 品牌 @@ -18,10 +18,9 @@ {{ temp.brandName }} - - + 功能 @@ -29,7 +28,7 @@ {{ temp.vehicleTypeValue }} - + 系列 @@ -39,7 +38,7 @@ - + 驱动 @@ -47,7 +46,7 @@ {{ temp.driveFormValue }} - + 马力 @@ -57,7 +56,7 @@ - + 版本 @@ -65,7 +64,7 @@ {{ temp.vehicleVersionValue }} - + 燃料 @@ -75,7 +74,7 @@ - + 变速箱 @@ -83,7 +82,7 @@ {{ temp.gearboxTypeValue }} - + 排放标准 @@ -93,7 +92,7 @@ - + 发动机型号 @@ -101,7 +100,7 @@ {{ temp.engineTypeValue }} - + 细分市场 @@ -111,7 +110,7 @@ - + 规格型号 @@ -119,7 +118,7 @@ {{ temp.specifications }} - + 系别 @@ -128,138 +127,134 @@ -
-
-
常用配置列表
-
- +
+
常用配置列表
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +