|
|
|
@ -217,21 +217,21 @@
|
|
|
|
|
|
|
|
|
|
<el-tab-pane label="自定义工具">
|
|
|
|
|
<el-card class="box-card" style="width: 600px;margin: 20px">
|
|
|
|
|
<el-button type="primary" @click="i('消息')">普通消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="e('错误')">错误消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="s('成功')">成功消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="w('警告')">警告消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.i('消息')">普通消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.e('错误')">错误消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.s('成功')">成功消息</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.w('警告')">警告消息</el-button>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card class="box-card" style="width: 600px;margin: 20px">
|
|
|
|
|
<el-button type="primary" @click="tipShow('加载中')">加载提示框</el-button>
|
|
|
|
|
<el-button type="primary" @click="tipClose()">关闭提示框</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.tipShow('加载中')">加载提示框</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.tipClose()">关闭提示框</el-button>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card class="box-card" style="width: 600px;margin: 20px">
|
|
|
|
|
<el-button type="primary" @click="barShow()">加载提示条</el-button>
|
|
|
|
|
<el-button type="primary" @click="barFinish()">成功</el-button>
|
|
|
|
|
<el-button type="primary" @click="barError()">失败</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.barShow()">加载提示条</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.barFinish()">成功</el-button>
|
|
|
|
|
<el-button type="primary" @click="this.window.nav.barError()">失败</el-button>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
|
@ -315,10 +315,10 @@
|
|
|
|
|
|
|
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="100px">
|
|
|
|
|
<el-form-item label="活动名称" prop="field1">
|
|
|
|
|
<el-input v-model="form.field1"></el-input>
|
|
|
|
|
<el-input v-model="form.field1" size="mini"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="活动区域" prop="field2">
|
|
|
|
|
<el-select v-model="form.field2" placeholder="请选择活动区域">
|
|
|
|
|
<el-select v-model="form.field2" placeholder="请选择活动区域" size="mini">
|
|
|
|
|
<el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
|
<el-option label="区域二" value="beijing"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -326,23 +326,23 @@
|
|
|
|
|
<el-form-item label="活动时间" required>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item prop="field3">
|
|
|
|
|
<el-date-picker type="date" placeholder="选择日期" v-model="form.field3"
|
|
|
|
|
<el-date-picker type="date" placeholder="选择日期" v-model="form.field3" size="mini"
|
|
|
|
|
style="width: 100%;"></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col style="text-align: center" :span="2">-</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item prop="field4">
|
|
|
|
|
<el-time-picker placeholder="选择时间" v-model="form.field4"
|
|
|
|
|
<el-time-picker placeholder="选择时间" v-model="form.field4" size="mini"
|
|
|
|
|
style="width: 100%;"></el-time-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="即时配送" prop="field5">
|
|
|
|
|
<el-switch v-model="form.field5"></el-switch>
|
|
|
|
|
<el-switch v-model="form.field5" size="mini"></el-switch>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="活动性质" prop="field6">
|
|
|
|
|
<el-checkbox-group v-model="form.field6">
|
|
|
|
|
<el-checkbox-group v-model="form.field6" size="mini">
|
|
|
|
|
<el-checkbox label="美食/餐厅线上活动" name="field6"></el-checkbox>
|
|
|
|
|
<el-checkbox label="地推活动" name="field6"></el-checkbox>
|
|
|
|
|
<el-checkbox label="线下主题活动" name="field6"></el-checkbox>
|
|
|
|
@ -350,29 +350,30 @@
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="特殊资源" prop="field7">
|
|
|
|
|
<el-radio-group v-model="form.field7">
|
|
|
|
|
<el-radio-group v-model="form.field7" size="mini">
|
|
|
|
|
<el-radio label="线上品牌商赞助"></el-radio>
|
|
|
|
|
<el-radio label="线下场地免费"></el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="购买数量" prop="field8">
|
|
|
|
|
<el-input-number v-model="form.field8" :min="1" :max="10" label="描述文字"></el-input-number>
|
|
|
|
|
<el-input-number v-model="form.field8" :min="1" :max="10" label="描述文字" size="mini"></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="地址" prop="field9">
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="address"
|
|
|
|
|
v-model="form.field9">
|
|
|
|
|
v-model="form.field9"
|
|
|
|
|
size="mini">
|
|
|
|
|
</el-cascader>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="活动形式" prop="field10">
|
|
|
|
|
<el-input type="textarea" v-model="form.field10"></el-input>
|
|
|
|
|
<el-input type="textarea" v-model="form.field10" size="mini"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="颜色选择" prop="field11">
|
|
|
|
|
<el-color-picker></el-color-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" @click="submitForm('form')">立即创建</el-button>
|
|
|
|
|
<el-button @click="resetForm('form')">重置</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm('form')" size="mini">立即创建</el-button>
|
|
|
|
|
<el-button @click="resetForm('form')" size="mini">重置</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@ -1028,17 +1029,21 @@
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
doAjax: function () {
|
|
|
|
|
this.$ajax.login({}).then(function (response) {
|
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
|
} else {
|
|
|
|
|
nav.i("Ajax调用成功!");
|
|
|
|
|
}
|
|
|
|
|
}.bind(this))
|
|
|
|
|
new Ajax()
|
|
|
|
|
.module("system")
|
|
|
|
|
.target("user")
|
|
|
|
|
.data({})
|
|
|
|
|
.find(function (response) {
|
|
|
|
|
if (response.errors.length > 0) {
|
|
|
|
|
nav.e(response.errors[0].message);
|
|
|
|
|
} else {
|
|
|
|
|
nav.i("Ajax调用成功!");
|
|
|
|
|
}
|
|
|
|
|
}.bind(this))
|
|
|
|
|
},
|
|
|
|
|
doPush: function () {
|
|
|
|
|
if (window.EventSource) {
|
|
|
|
|
window.evtSource = new EventSource('http://localhost:8080/sse/1');
|
|
|
|
|
window.evtSource = new EventSource('http://localhost:8080' + nav.context + '/sse/1');
|
|
|
|
|
window.evtSource.addEventListener('message', function (e) {
|
|
|
|
|
this.$notify.info({
|
|
|
|
|
title: '消息',
|
|
|
|
|