提交 aa3b964b authored 作者: 潘鹏's avatar 潘鹏

微调样式

上级 00ec3d66
......@@ -2,13 +2,13 @@
#jdbc.username=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.username=root
#jdbc.password=diaoyun666
jdbc.url=jdbc:mysql://47.106.242.175:3306/afrishop_test?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username=root
jdbc.password=diaoyun666
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username: root
jdbc.password: Diaoyunnuli.8
#jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#jdbc.username: root
#jdbc.password: Diaoyunnuli.8
jdbc.initialSize=5
jdbc.maxActive=30
......
#jdbc.url=jdbc:mysql://localhost:3306/platform?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.url=jdbc:mysql://localhost:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.username=root
#jdbc.password=root
#jdbc.url=jdbc:mysql://47.106.242.175:3306/chinafrica?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
#jdbc.username=root
#jdbc.password=diaoyun666
jdbc.url=jdbc:mysql://47.106.242.175:3306/afrishop_test?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
jdbc.username=root
jdbc.password=diaoyun666
jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
jdbc.username: root
jdbc.password: Diaoyunnuli.8
#jdbc.url: jdbc:mysql://159.138.48.71:3306/chinafrica?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
#jdbc.username: root
#jdbc.password: Diaoyunnuli.8
jdbc.initialSize=5
jdbc.maxActive=30
jdbc.maxActive=30
jdbc.minPoolSize=2
jdbc.maxIdleTime=30000
jdbc.idleConnectionTestPeriod=100
jdbc.idleConnectionTestPeriod=100
......@@ -19,7 +19,12 @@
min-width: 1200px;
margin: 0 auto;
}
.ui-jqgrid-bdiv{
height: 500px !important;
}
.edit-container{
height: 600px !important;
}
.category-container {
min-height: 600px;
padding-bottom: 80px;
......
......@@ -13,7 +13,7 @@
</div>
<div class="buttons-group">
#if($shiro.hasPermission("sys:menu:save"))
<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
<i-button type="info" @click="add"><i class="fa fa-plus"></i>新增</i-button>
#end
#if($shiro.hasPermission("sys:menu:update"))
<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
......
......@@ -116,7 +116,7 @@
padding-right: 2px;
height: 100px;
}
#itemImg:hover {
.bigImg:hover{
transform: scale(3);
}
......@@ -596,13 +596,14 @@
<i-button type="info" @click="exportExcel"><i class="fa fa-chevron-down"></i>&nbsp;导出
</i-button>
#end
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button type="error" @click="changeItemStatus(0)"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
#end
<i-button type="warning" @click="changeItemsTop"><i class="fa fa-arrow-down"></i>&nbsp;取消置顶
</i-button>
<i-button type="success" @click="changeItemsunTop"><i class="fa fa-arrow-up"></i>置顶</i-button>
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button type="error" @click="changeItemStatus(0)" :style="`margin-left:100px`"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
#end
</div>
</div>
......@@ -703,7 +704,7 @@
<Form-item label="成本价" prop="costPrice" style="width: 800px">
<i-input v-model="tbCfStationItem.costPrice" placeholder="成本价"/>
</Form-item>
<Form-item label="商品图片" prop="itemImg">
<Form-item label="商品图片" prop="itemImg" >
<!-- <i-input v-model="xPicture.pictureUrl" placeholder="图片地址"/> -->
<upload
multiple
......@@ -714,7 +715,7 @@
</upload>
<div id="imgWrapper" style="display: flex;position: relative;">
<div v-for="item in uploadList" style="margin-left: 5px;" :data-img-path="item">
<img :src="item" width="100" height="100" id="itemImg">
<img :src="item" width="100" height="100" id="itemImg">
<i class="ivu-icon ivu-icon-ios-trash-outline"
style="cursor:pointer;display: flex;font-size: 24px;position: relative;left:11px"
@click="delImg1(item)"></i>
......
......@@ -33,27 +33,57 @@
<Card v-show="!showList">
<p slot="title">{{title}}</p>
<i-form ref="formValidate" :model="term" :rules="ruleValidate" :label-width="80">
<Form-item label="父条款ID,一级条款为0" prop="parentId">
<i-input v-model="term.parentId" placeholder="父条款ID,一级条款为0"/>
</Form-item>
<!-- <Form-item label="父条款ID,一级条款为0" prop="parentId">-->
<!-- <i-input v-model="term.parentId" placeholder="父条款ID,一级条款为0"/>-->
<!-- </Form-item>-->
<Form-item label="条款名称" prop="termName">
<i-input v-model="term.termName" placeholder="条款名称"/>
</Form-item>
<Form-item label="条款内容" prop="termContent">
<span>条款目录</span>
<select @change="changeProduct($event)">
<!-- <option v-model="term.termName">Volvo</option>-->
<option value="0">上级目录</option>
<option v-for="(el,index) in Allfa.list" :key="index" :value="el.id">{{el.termName}}</option>
<!-- <option :value="audi">Audi</option>-->
</select>
<!-- <Form-item label="上级菜单" v-if="term.type == 2" prop="parentName">-->
<!-- <i-input v-model="menu.parentName" @on-click="termTree" icon="eye" readonly="readonly"-->
<!-- placeholder="一级菜单"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="上级菜单" v-if="term.type != 2">-->
<!-- <i-input v-model="menu.parentName" @on-click="termTree" icon="eye" readonly="readonly"-->
<!-- placeholder="一级菜单"/>-->
<!-- </Form-item>-->
<Form-item label="条款内容" prop="termContent" v-if="flag">
<i-input v-model="term.termContent" placeholder="条款内容"/>
</Form-item>
<Form-item label="创建时间" prop="createTime">
<i-input v-model="term.createTime" placeholder="创建时间"/>
</Form-item>
<Form-item label="更新时间" prop="updateTime">
<i-input v-model="term.updateTime" placeholder="更新时间"/>
</Form-item>
<Form-item label="状态 0:无效 1:有效" prop="status">
<i-input v-model="term.status" placeholder="状态 0:无效 1:有效"/>
<Form-item label="条款内容" prop="termContent" v-if="!flag">
<i-input v-model="term.termContent" placeholder="父级不可用" readonly="readonly"/>
</Form-item>
<Form-item label="排序" prop="sort">
<i-input v-model="term.sort" placeholder="排序"/>
<!-- <Form-item label="创建时间" prop="createTime">-->
<!-- <i-input v-model="term.createTime" placeholder="创建时间"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="更新时间" prop="updateTime">-->
<!-- <i-input v-model="term.updateTime" placeholder="更新时间"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="状态 0:无效 1:有效" prop="status">-->
<!-- <i-input v-model="term.status" placeholder="状态 0:无效 1:有效"/>-->
<!-- </Form-item>-->
<Form-item label="状态" prop="status">
<Radio-group v-model="term.status">
<Radio label="1">
<span>有效</span>
</Radio>
<Radio label="0">
<span>无效</span>
</Radio>
</Radio-group>
</Form-item>
<!-- <Form-item label="排序" prop="sort">-->
<!-- <i-input v-model="term.sort" placeholder="排序"/>-->
<!-- </Form-item>-->
<Form-item>
<i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
<i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
......
......@@ -8,9 +8,9 @@ $(function () {
label: '商品图片', name: 'itemImg', index: 'item_img', width: 80, formatter: function (value, grid, rows) {
if (value.indexOf(';')) {
let firstImg = value.split(';')[0];
return '<img src="' + firstImg + '" style="width:50px;height:50px;" id="itemImg" />'
return '<img src="' + firstImg + '" style="width:50px;height:50px;" id="itemImg" class="bigImg"/>'
}
return '<img src="' + value + '" style="width:50px;height:50px;" id="itemImg" //>'
return '<img src="' + value + '" style="width:50px;height:50px;" id="itemImg" class="bigImg" //>'
}
},
{label: '商品编号', name: 'itemCode', index: 'item_code', width: 60},
......
$(function () {
$("#jqGrid").Grid({
url: '../term/list',
colModel: [
{label: 'id', name: 'id', index: 'id', key: true, hidden: true},
{label: '父条款ID,一级条款为0', name: 'parentId', index: 'parent_id', width: 80},
colModel: [
// {label: 'id', name: 'id', index: 'id', key: true, hidden: true},
// {label: '父条款ID,一级条款为0', name: 'parentId', index: 'parent_id', width: 80},
{label: '条款名称', name: 'termName', index: 'term_name', width: 80},
{label: '条款内容', name: 'termContent', index: 'term_content', width: 80},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 80},
{label: '更新时间', name: 'updateTime', index: 'update_time', width: 80},
// {label: '更新时间', name: 'updateTime', index: 'update_time', width: 80},
{label: '状态 0:无效 1:有效', name: 'status', index: 'status', width: 80},
{label: '排序', name: 'sort', index: 'sort', width: 80}]
// {label: '排序', name: 'sort', index: 'sort', width: 80}
]
});
});
......@@ -18,7 +19,7 @@ let vm = new Vue({
data: {
showList: true,
title: null,
term: {},
term: {parentId:'0'},
ruleValidate: {
name: [
{required: true, message: '名称不能为空', trigger: 'blur'}
......@@ -26,7 +27,9 @@ let vm = new Vue({
},
q: {
name: ''
}
},
Allfa:{},
flag:false
},
methods: {
query: function () {
......@@ -36,6 +39,7 @@ let vm = new Vue({
vm.showList = false;
vm.title = "新增";
vm.term = {};
vm.getFainfo();
},
update: function (event) {
let id = getSelectedRow("#jqGrid");
......@@ -66,7 +70,6 @@ let vm = new Vue({
if (ids == null){
return;
}
confirm('确定要删除选中的记录?', function () {
Ajax.request({
url: "../term/delete",
......@@ -112,6 +115,36 @@ let vm = new Vue({
},
handleReset: function (name) {
handleResetForm(this, name);
}
},
changeProduct(e) {
vm.term.parentId = e.target.value
console.log(vm.term.parentId)
if(vm.term.parentId == 0){
vm.flag = false;
}else {
vm.flag = true;
}
},
getFainfo(){
Ajax.request({
url: "../term/queryAll",
async: true,
successCallback: function (r) {
console.log(r)
vm.Allfa = r
}
});
}
},
created(){
Ajax.request({
url: "../term/queryAll",
async: true,
successCallback: function (r) {
// console.log(r)
vm.Allfa = r
}
});
// console.log(this.term.parentId)
}
});
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论