master
lion 4 years ago
parent e1f3c6f3fd
commit e5827f9a65

@ -0,0 +1,62 @@
tinymce.PluginManager.add('indent2em', function(editor, url) {
var pluginName='首行缩进';
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
var indent2em_val = editor.getParam('indent2em_val', '2em');
var doAct = function () {
var dom = editor.dom;
var blocks = editor.selection.getSelectedBlocks();
var act = '';
global$1.each(blocks, function (block) {
if(act==''){
act = dom.getStyle(block,'text-indent')==indent2em_val ? 'remove' : 'add';
}
if( act=='add' ){
dom.setStyle(block, 'text-indent', indent2em_val);
}else{
var style=dom.getAttrib(block,'style');
var reg = new RegExp('text-indent:[\\s]*' + indent2em_val + ';', 'ig');
style = style.replace(reg, '');
dom.setAttrib(block,'style',style);
}
});
};
editor.ui.registry.getAll().icons.indent2em || editor.ui.registry.addIcon('indent2em','<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M170.666667 563.2v-102.4H887.466667v102.4zM170.666667 836.266667v-102.4H887.466667v102.4zM512 290.133333v-102.4H887.466667v102.4zM238.933333 341.333333V136.533333l204.8 102.4z" fill="#2c2c2c" p-id="5210"></path></svg>');
var stateSelectorAdapter = function (editor, selector) {
return function (buttonApi) {
return editor.selection.selectorChangedWithUnbind(selector.join(','), buttonApi.setActive).unbind;
};
};
editor.ui.registry.addToggleButton('indent2em', {
icon: 'indent2em',
tooltip: pluginName,
onAction: function () {
doAct();
},
onSetup: stateSelectorAdapter(editor, [
'*[style*="text-indent"]',
'*[data-mce-style*="text-indent"]',
])
});
editor.ui.registry.addMenuItem('indent2em', {
text: pluginName,
onAction: function() {
doAct();
}
});
editor.addCommand('indent2em', doAct );
return {
getMetadata: function () {
return {
name: pluginName,
url: "http://tinymce.ax-z.cn/more-plugins/indent2em.php",
};
}
};
});

@ -0,0 +1,62 @@
tinymce.PluginManager.add('indent2em', function(editor, url) {
var pluginName='首行缩进';
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
var indent2em_val = editor.getParam('indent2em_val', '2em');
var doAct = function () {
var dom = editor.dom;
var blocks = editor.selection.getSelectedBlocks();
var act = '';
global$1.each(blocks, function (block) {
if(act==''){
act = dom.getStyle(block,'text-indent')==indent2em_val ? 'remove' : 'add';
}
if( act=='add' ){
dom.setStyle(block, 'text-indent', indent2em_val);
}else{
var style=dom.getAttrib(block,'style');
var reg = new RegExp('text-indent:[\\s]*' + indent2em_val + ';', 'ig');
style = style.replace(reg, '');
dom.setAttrib(block,'style',style);
}
});
};
editor.ui.registry.getAll().icons.indent2em || editor.ui.registry.addIcon('indent2em','<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M170.666667 563.2v-102.4H887.466667v102.4zM170.666667 836.266667v-102.4H887.466667v102.4zM512 290.133333v-102.4H887.466667v102.4zM238.933333 341.333333V136.533333l204.8 102.4z" fill="#2c2c2c" p-id="5210"></path></svg>');
var stateSelectorAdapter = function (editor, selector) {
return function (buttonApi) {
return editor.selection.selectorChangedWithUnbind(selector.join(','), buttonApi.setActive).unbind;
};
};
editor.ui.registry.addToggleButton('indent2em', {
icon: 'indent2em',
tooltip: pluginName,
onAction: function () {
doAct();
},
onSetup: stateSelectorAdapter(editor, [
'*[style*="text-indent"]',
'*[data-mce-style*="text-indent"]',
])
});
editor.ui.registry.addMenuItem('indent2em', {
text: pluginName,
onAction: function() {
doAct();
}
});
editor.addCommand('indent2em', doAct );
return {
getMetadata: function () {
return {
name: pluginName,
url: "http://tinymce.ax-z.cn/more-plugins/indent2em.php",
};
}
};
});

@ -134,7 +134,7 @@
imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
default_link_target: '_blank',
link_title: false,
nonbreaking_force_tab: true, // inserting nonbreaking space &nbsp; need Nonbreaking Space Plugin
nonbreaking_force_tab: true, // inserting nonbreaking space &nbsp; need Nonbreaking Space Plugin
init_instance_callback: editor => {
if (_this.value) {
editor.setContent(_this.value)

@ -176,7 +176,7 @@
</el-form-item>
</el-col>
</el-row>
<el-form-item label="海报图" prop="cover">
<el-form-item class='nextlabel' label="海报图(建议上传图片宽度750px)" prop="cover">
<el-upload action="/api/admin/upload-file" list-type="picture-card" :file-list="coverlist" ref="pictureUpload"
:limit="1" :auto-upload="true" :data="uploadOther"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}">
@ -195,7 +195,7 @@
</el-upload>
</el-form-item>
<el-form-item label="轮播图(最多三张)" prop="banners_list">
<el-form-item class='nextlabel' label="轮播图(最多三张,建议上传图片宽度750px)" prop="banners_list">
<el-upload action="/api/admin/upload-file" list-type="picture-card" :file-list="bannersList"
ref="pictureUploads" :limit="3" :auto-upload="true" :data="uploadOther"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,2)}">
@ -559,7 +559,7 @@
return false;
}
// console.log(a)
// that.form.end_time = that.form.start_time.substring(0, 10) + " " + that.form.end_time;
let listUrl = [];
for (var m of that.bannersList) {
@ -725,3 +725,10 @@
}
};
</script>
<style>
.nextlabel label{
display: block;
width: 100%!important;
text-align: left;
}
</style>

@ -22,6 +22,11 @@
<div v-if="column.type=='opt'">
<Button ghost size="small" @click="show(scope.row)" type="primary"
style="margin-left: 10px;">查看</Button>
</div>
<div v-else-if="column.type=='type'">
<div v-if="scope.row[column.field]==1"></div>
<div v-if="scope.row[column.field]==2"></div>
<div v-if="scope.row[column.field]==3"></div>
</div>
<div v-else>{{scope.row[column.field]}}</div>
</template>
@ -59,6 +64,9 @@
</div>
<div v-if="form.type==2">
大车位
</div>
<div v-if="form.type==3">
残疾人车位
</div>
</el-form-item>
<el-form-item label="车辆类型" prop="car_type">
@ -139,6 +147,11 @@
field: "plate",
title: "车牌号",
type: "string",
},
{
field: "type",
title: "车位类型",
type: "type",
},
{
field: "mobile",

@ -45,10 +45,16 @@
<el-input type="textarea" rows="3" v-model="form.sub_title" placeholder="请填写简介" autocomplete="off"></el-input>
</el-form-item>
<el-form-item label="团队预约须知" prop="team_notice">
<el-input type="textarea" rows="3" v-model="form.team_notice" placeholder="请填写团队预约须知" autocomplete="off"></el-input>
<div style="width: 99.9%;">
<tinymce ref="tiny1" v-model="form.team_notice" :height="300" />
</div>
<!-- <el-input type="textarea" rows="3" v-model="form.team_notice" placeholder="请填写团队预约须知" autocomplete="off"></el-input> -->
</el-form-item>
<el-form-item label="个人预约须知" prop="person_notice">
<el-input type="textarea" rows="3" v-model="form.person_notice" placeholder="请填写个人预约须知" autocomplete="off"></el-input>
<div style="width: 99.9%;">
<tinymce ref="tiny2" v-model="form.person_notice" :height="300" />
</div>
<!-- <el-input type="textarea" rows="3" v-model="form.person_notice" placeholder="请填写个人预约须知" autocomplete="off"></el-input> -->
</el-form-item>
<el-form-item label="团队退票须知" prop="groupticket">
<el-input type="textarea" rows="3" v-model="form.team_refund" placeholder="请填写团队退票须知" autocomplete="off"></el-input>
@ -181,6 +187,8 @@
let result = Object.assign(that.form, res);
that.form = result;
this.$refs.tiny.setContent(result.content);
this.$refs.tiny1.setContent(result.team_notice);
this.$refs.tiny2.setContent(result.person_notice);
}).catch(error => {
})
@ -217,7 +225,9 @@
},
resetForm(formName) {
var that = this;
this.$refs.tiny.setContent("");
this.$refs.tiny.setContent("");
this.$refs.tiny1.setContent("");
this.$refs.tiny2.setContent("");
this.$refs[formName].resetFields();
that.dialogFormVisible = false;
},

@ -99,11 +99,6 @@
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="充电桩总数" prop="charge_total">
<el-input v-model="form.charge_total" placeholder="请填写充电桩总数" autocomplete="off"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="小车位数" prop="small_park_total">
<el-input v-model="form.small_park_total" placeholder="请填写小车位数" autocomplete="off"></el-input>
@ -113,6 +108,16 @@
<el-form-item label="大车位数" prop="big_park_total">
<el-input v-model="form.big_park_total" placeholder="请填写大车位数" autocomplete="off"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="残疾人车位数" prop="special_park_total">
<el-input v-model="form.special_park_total" placeholder="请填写残疾人车位数" autocomplete="off"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="充电桩总数" prop="charge_total">
<el-input v-model="form.charge_total" placeholder="请填写充电桩总数" autocomplete="off"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -165,7 +170,8 @@
end_time: "",
charge_total: "",
small_park_total: "",
big_park_total: "",
big_park_total: "",
special_park_total:"",
longitude: "",
latitude: "",
},
@ -206,6 +212,13 @@
type: "string",
align: "center",
width: 120
},
{
field: "special_park_total",
title: "残疾人车位数",
type: "string",
align: "center",
width: 120
},
{
field: "status",

Loading…
Cancel
Save