作者 zhangFan

添加验证js,修改进港原始界面

... ... @@ -29,7 +29,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/api':{
target: 'http://127.0.0.1:12343',//设置你调用的接口域名和端口号 别忘了加http
target: 'http://192.168.1.53:12343',//设置你调用的接口域名和端口号 别忘了加http
changeOrigin: true,
pathRewrite: {
'^/api': '/'//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
... ...
... ... @@ -8,7 +8,6 @@
<i v-if="!scope.row._expanded" class="el-icon-plus"/>
<i v-else class="el-icon-minus"/>
</span>
<!--{{ scope.$index }}-->
</template>
</el-table-column>
<el-table-column v-for="(column, index) in columns" v-else :key="column.value" :label="column.text" :width="column.width">
... ... @@ -20,7 +19,6 @@
<i v-if="!scope.row._expanded" class="el-icon-plus"/>
<i v-else class="el-icon-minus"/>
</span>
{{ scope.row[column.value] }}
</template>
</el-table-column>
<slot/>
... ... @@ -49,7 +47,7 @@ export default {
evalArgs: Array,
expandAll: {
type: Boolean,
default: true
default: false
}
},
computed: {
... ... @@ -68,11 +66,8 @@ export default {
},
methods: {
showRow: function(row) {
this.data
const show = (row.parent ? (row.parent._expanded && row.parent._show) : true)
// const show = (row.row.parent ? (row.row.parent._expanded && row.row.parent._show) : true)
// row.row._show = show
row._show = show
const show = (row.row.parent ? (row.row.parent._expanded && row.row.parent._show) : true)
row.row._show = show
return show ? 'animation:treeTableShow 1s;-webkit-animation:treeTableShow 1s;' : 'display:none;'
},
// 切换下级是否展开
... ...
... ... @@ -20,8 +20,8 @@
@click="handleDelList">批量发送
</el-button>
</div>
<tree-table :data="orgData" :eval-func="func" :eval-args="args" :expand-all="expandAll" stripe
style="font-size: 13px" border @selection-change="handleSelectionChange">
<tree-table :data="orgData" :eval-func="func" :expand-all="expandAll" stripe
style="font-size: 12px" border @selection-change="handleSelectionChange">
<el-table-column prop="waybillNo" label="主单号" width="130px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.awba }}</span>
... ... @@ -37,7 +37,7 @@
<span>{{ scope.row.flightno }}</span>
</template>
</el-table-column>
<el-table-column label="航班日期" width="120px" align="center" sortable>
<el-table-column label="航班日期" width="120px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.flightdate }}</span>
</template>
... ... @@ -502,7 +502,7 @@
}
return {
func: treeToArray,
expandAll: true,
expandAll:true,
total: 0,
loading: false,
listLoading: false,
... ... @@ -510,11 +510,8 @@
multipleSelection: [],
dialogFormVisible: false,
dialogStatus: '',
country: country,
countryOption: [],
shpCompnyTypeOption: [],
dangerGoods: dangerGoods,
goodsPackage: goodsPackage,
textMap: {
update: '编辑',
create: '添加',
... ...