Commit be93fca7 authored by 黄奎's avatar 黄奎

页面修改

parent 9244db91
......@@ -36,7 +36,7 @@
</el-form-item>
<el-form-item label="品牌介绍图">
<el-tooltip class="item" effect="dark" content="第一张图片为封面图" placement="top"
style="position: absolute;left: -22px;top:12px">
style="position: absolute;left: -5px;top:12px">
<i class="el-tooltip el-icon-info"></i>
</el-tooltip>
<p style="color:#c9c9c9;margin-bottom: 12px;">
......@@ -87,7 +87,7 @@
<el-input v-model="addMsg.ProjectType" placeholder="请输入商铺性质" />
</el-form-item>
<el-form-item label="电量" prop="DianLiang" class="is-required" size="small">
<el-input v-model="addMsg.DianLiang" placeholder="请输入电量" />
<el-input v-model="addMsg.DianLiang" type="number" placeholder="请输入电量" />
</el-form-item>
<el-form-item label="上下水" class="is-required">
<el-radio v-model="addMsg.Plumbing" :label="1"></el-radio>
......@@ -240,6 +240,10 @@
}
},
methods: {
getProjectType()
{
},
//选择图片
SelectId(msg) {
let url = this.getIconLink(msg.url)
......@@ -277,6 +281,12 @@
},
//保存品牌
Save(formName) {
//广告
let advertising = this.$refs.ue.getUEContent();
this.addMsg.Advertising = advertising;
//其他
let other = this.$refs.ueother.getUEContent();
this.addMsg.Other = other;
this.$refs[formName].validate((valid) => {
if (valid) {
this.apipost("/api/Trade/GetSetBrand", this.addMsg, res => {
......@@ -299,7 +309,15 @@
ID: ID
}, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
if (this.addMsg.Advertising && this.addMsg.Advertising != "") {
this.Advertising = this.addMsg.Advertising;
}
if (this.addMsg.Other && this.addMsg.Other != "") {
this.Other = this.addMsg.Other;
}
}
})
},
},
......
......@@ -125,11 +125,11 @@
<span>{{scope.row.BuiltUpArea}}{{scope.row.EndBuiltUpArea}}</span>
</template>
</el-table-column>
<el-table-column prop="BrandType" label="品牌定位" width="80">
<el-table-column prop="BrandType" label="品牌定位" width="160">
</el-table-column>
<el-table-column prop="CustomerType" label="客群定位" width="80">
<el-table-column prop="CustomerType" label="客群定位" width="160">
</el-table-column>
<el-table-column fixed="right" label="操作" width="180">
<el-table-column fixed="right" label="操作" width="120">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
......@@ -218,7 +218,7 @@
that.Confirm("是否删除?", function () {
that.apipost(
"/api/Trade/RemoveBrand", {
Id: row.Id
Id: row.ID
},
res => {
if (res.data.resultCode == 1) {
......@@ -236,7 +236,7 @@
this.$router.push({
name: 'addbrand',
query: {
ID: row.Id,
ID: row.ID,
blank: "y"
}
});
......@@ -256,7 +256,6 @@
}
},
}
</script>
<style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment