230320a303 пре 1 година
родитељ
комит
c5bf49a880

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/chunk-278a7dea.292a5177.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/chunk-d6a879e8.167621c9.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.45f6c9c4.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.c196bb18.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-278a7dea.097aebc6.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-d6a879e8.92736147.js


+ 12 - 0
src/api/other.js

@@ -28,5 +28,17 @@ export default {
   admlotteryprixchange: params => { // 中奖核销
     return getRequest('/adm/lottery/prix/change', params)
   },
+  admactivitylist: params => { // 渠道活动 列表
+    return getRequest('/adm/activity/list', params)
+  },
+  admactivityadd: params => { // 渠道活动 添加
+    return getRequest('/adm/activity/add', params)
+  },
+  admactivityedit: params => { // 渠道活动 编辑
+    return getRequest('/adm/activity/edit', params)
+  },
+  admactivitydel: params => { // 渠道活动 删除
+    return getRequest('/adm/activity/del', params)
+  },
 }
 

+ 12 - 12
src/views/other/components/popup/BankrateEdit.vue → src/views/activity/components/popup/IndexEdit.vue

@@ -5,13 +5,13 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="curObj.id ? '编辑银行利率' : '添加银行利率'"
+      :title="curObj.id ? '编辑活动' : '添加活动'"
       :fullscreen="false"
-      width="700px"
+      width="400px"
       custom-class="xl-dialog"
       center
     >
-      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="100px">
+      <base-form ref="ruleForm" :data="formData" :is-inline="false" label-width="100px">
         <div slot="footer" style="padding-top: 20px;">
           <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
           <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
@@ -46,13 +46,13 @@ export default {
     getDef() {
       let params = { ...this.curObj }
       this.formData = [
-        { label: '银行名称', key: 'bank_name', class: 'c-2', rules: 1 },
-        { label: '银行logo', key: 'pri_image', class: 'c-2', type: 'uploads', rules: 1 },
-        { label: '一套利率', key: 'one_rate', class: 'c-2', rules: 1 },
-        { label: '二套利率', key: 'two_rate', class: 'c-2', rules: 1 },
-        { label: '文字颜色', key: 'colour', type: 'colorPicker'},
-        { label: '预选1', key: 'option1', class: 'c-2'},
-        { label: '预选2', key: 'option2', class: 'c-2'},
+        { label: '活动楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', changeHandle: this.estateChange,
+          remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
+          remoteOptions: [
+            { keyRO: params.estate_name, valRO: params.estate_id }
+          ]
+        },
+        { label: '备注', key: 'remark', rules: 1, type: 'textarea'},
       ]
       this.setDefaultValue(params)
     },
@@ -63,8 +63,8 @@ export default {
             const oldform = this.$refs.ruleForm.baseForm
             const newForm = { ...oldform }
             if (this.curObj.id) newForm.id = this.curObj.id
-            let apiStr = 'admbankrateadd'
-            if (newForm.id) apiStr = 'admbankrateedit'
+            let apiStr = 'admactivityadd'
+            if (newForm.id) apiStr = 'admactivityedit'
             this.$api.other[apiStr](newForm).then(data => {
               this.$msgs(newForm.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)

+ 1 - 1
src/views/other/components/searchForm/Bankrate.vue → src/views/activity/components/searchForm/Index.vue

@@ -15,7 +15,7 @@ export default {
   data() {
     return {
       searchData: [
-        { label: '银行名称', key: 'bank_name' },
+        { label: '备注', key: 'remark' },
       ]
     }
   },

+ 7 - 13
src/views/other/bankRate.vue → src/views/activity/index.vue

@@ -25,8 +25,8 @@
 </template>
 <script>
 import { arrToObj } from '@/utils'
-import SearchForm from './components/searchForm/Bankrate'
-import PopupEdit from './components/popup/BankrateEdit'
+import SearchForm from './components/searchForm/Index'
+import PopupEdit from './components/popup/IndexEdit'
 import baseTable from '_m/baseTable.js'
 export default {
   name: 'index',
@@ -42,7 +42,7 @@ export default {
   mixins: [baseTable],
   data() {
     return {
-      apiStr: 'other.admbankratelist',
+      apiStr: 'other.admactivitylist',
       searchForm: null,
       isDtlShow: false,
       curObj: {},
@@ -59,14 +59,8 @@ export default {
   mounted() {
     this.listConfig = {
       rows: [
-        { label: '银行名称', prop: 'bank_name' },
-        { label: 'logo', prop: 'pri_image', type: 'img' },
-        { label: '一套利率', prop: 'one_rate' }, 
-        { label: '二套利率', prop: 'two_rate' },
-        { label: '标记颜色', prop: 'colour' },
-        { label: '预选1', prop: 'option1' },
-        { label: '预选2', prop: 'option2' },
-        { label: '更新人', prop: 'update_by' },
+        { label: '楼盘名称', prop: 'estate_name' },
+        { label: '活动内容', prop: 'remark' }, 
         { label: '更新时间', prop: 'update_at' },
         { label: '操作', width: 120, type: 'handle2', operations:
           [
@@ -79,8 +73,8 @@ export default {
   },
   methods: {
     delHandle(row) {
-      this.$msg(`您确定要删除该利率吗?`, 'confirm', () => {
-        this.$api.other.admbankratedel({
+      this.$msg(`您确定要删除该活动吗?`, 'confirm', () => {
+        this.$api.other.admactivitydel({
           id: row.id,
         }).then(data => {
           this.$msgs(`已删除!`)

Неке датотеке нису приказане због велике количине промена