|
@@ -39,6 +39,22 @@
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="小程序:" prop="belongType">
|
|
|
+ <el-select
|
|
|
+ v-model="setQuery.belongType"
|
|
|
+ clearable
|
|
|
+ class="item-width-200"
|
|
|
+ placeholder="请选择小程序"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in belongTypeOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="跳转链接:" prop="jumpUrl">
|
|
|
<el-input
|
|
@@ -69,7 +85,7 @@
|
|
|
</el-form>
|
|
|
|
|
|
<div class="btn-group">
|
|
|
- <el-button>取 消</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
<el-button type="primary" :loading="loading" @click="save">确 定</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -78,6 +94,7 @@
|
|
|
<script>
|
|
|
import Upload from '@/components/Upload'
|
|
|
import {addOrUpdateAdv} from '@/api/appConfig'
|
|
|
+import { cancel } from 'ali-oss/lib/common/parallel';
|
|
|
export default {
|
|
|
components: {
|
|
|
Upload,
|
|
@@ -93,7 +110,8 @@ export default {
|
|
|
"menuId": '',
|
|
|
"sort": 0,
|
|
|
"showSort":0,
|
|
|
- "status":1
|
|
|
+ "status":1,
|
|
|
+ "belongType":2
|
|
|
},
|
|
|
options:[
|
|
|
{
|
|
@@ -104,7 +122,17 @@ export default {
|
|
|
label:'首页广告位',
|
|
|
value:2
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ belongTypeOptions:[
|
|
|
+ {
|
|
|
+ label: "贵大",
|
|
|
+ value: '1',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "慧研学",
|
|
|
+ value: '2',
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -112,6 +140,7 @@ export default {
|
|
|
return {
|
|
|
advertsImg: [{ required: true, message: "请上传广告图", trigger: "change" }],
|
|
|
advertsType: [{ required: true, message: "请选择广告类型", trigger: "change" }],
|
|
|
+ belongType: [{ required: true, message: "请选择小程序", trigger: "change" }],
|
|
|
advertsName: [{ required: true, message: "请输入广告名称", trigger: "blur" }],
|
|
|
jumpUrl: [{ required: true, message: "请输入调整链接", trigger: "blur" }],
|
|
|
sort: [{ required: true, message: "请输入排序权重", trigger: "blur" }],
|
|
@@ -123,6 +152,9 @@ export default {
|
|
|
uploadEnd(val){
|
|
|
this.setQuery.advertsImg = val.url
|
|
|
},
|
|
|
+ cancel(){
|
|
|
+ this.$router.push('/operationManage/advertisingManage/index')
|
|
|
+ },
|
|
|
save() {
|
|
|
this.$refs.setQuery.validate((v) => {
|
|
|
if (v) {
|