作者 xudada

智慧关务

... ... @@ -20,23 +20,23 @@ import Print from 'vue-print-nb'
import VueBarcode from '@xkeshi/vue-barcode'; //导入条形码插件
// markdown 编辑器
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import createTodoListPlugin from '@kangc/v-md-editor/lib/plugins/todo-list/index';
import '@kangc/v-md-editor/lib/plugins/todo-list/todo-list.css';
import createEmojiPlugin from '@kangc/v-md-editor/lib/plugins/emoji/index';
import '@kangc/v-md-editor/lib/plugins/emoji/emoji.css'
import Prism from 'prismjs';
VueMarkdownEditor.use(vuepressTheme, {
Prism,
});
VueMarkdownEditor.use(createTodoListPlugin());
VueMarkdownEditor.use(createEmojiPlugin());
Vue.use(VueMarkdownEditor);
// import VueMarkdownEditor from '@kangc/v-md-editor';
// import '@kangc/v-md-editor/lib/style/base-editor.css';
// import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
// import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
// import createTodoListPlugin from '@kangc/v-md-editor/lib/plugins/todo-list/index';
// import '@kangc/v-md-editor/lib/plugins/todo-list/todo-list.css';
// import createEmojiPlugin from '@kangc/v-md-editor/lib/plugins/emoji/index';
// import '@kangc/v-md-editor/lib/plugins/emoji/emoji.css'
// import Prism from 'prismjs';
// VueMarkdownEditor.use(vuepressTheme, {
// Prism,
// });
// VueMarkdownEditor.use(createTodoListPlugin());
// VueMarkdownEditor.use(createEmojiPlugin());
// Vue.use(VueMarkdownEditor);
Vue.component('barcode', VueBarcode);
... ...
... ... @@ -219,10 +219,13 @@ import danzheng from './views/airtransport/danzheng.vue'
import yqdeclare from './views/airtransport/yqdeclare.vue'
// 邮件风控
import MailRisk from './views/mail_risk/index.vue'
// import MailRisk from './views/mail_risk/index.vue'
//AI智慧关务
//import AiCoustoms from "./views/AiCoustoms/AiCoustoms.vue";
import Category from "./views/AiCoustoms/task/Category.vue";
import TaskManage from "./views/AiCoustoms/task/TaskManage.vue";
// AI智慧关务
import AiCoustoms from "./views/AiCoustoms/AiCoustoms.vue";
let routes = [
{
... ... @@ -715,15 +718,15 @@ let routes = [
{path:'/express',component:Express,name:'快邮舱单申报'},
]
},
{
path: '/customs_mail',
component: HomeNew,
name: '邮件监管',
iconCls:'el-icon-wind-power',
children:[
{path:'/mail_risk_analysis',component:MailRisk,name:'风控分析'},
]
},
// {
// path: '/customs_mail',
// component: HomeNew,
// name: '邮件监管',
// iconCls:'el-icon-wind-power',
// children:[
// {path:'/mail_risk_analysis',component:MailRisk,name:'风控分析'},
// ]
// },
{
path: '/cbecd',
component: HomeNew,
... ... @@ -814,7 +817,9 @@ let routes = [
name: '智慧关务',
iconCls: 'el-icon-collection',
children: [
{path: '/AiCoustoms', component: AiCoustoms, name: 'Ai智慧关务'}
//{path: '/AiCoustoms', component: AiCoustoms, name: 'Ai智慧关务'},
{path: '/Category', component: Category, name: '任务分类'},
{path: '/TaskManage', component: TaskManage, name: '任务管理'}
]
},
{
... ...
<template>
<el-contaier>
<el-row>
<template>
<el-table
:data="tableData"
border
style="width: 100%">
<el-table-column
fixed
prop="date"
label="日期"
width="150">
</el-table-column>
<el-table-column
prop="name"
label="姓名"
width="120">
</el-table-column>
<el-table-column
prop="province"
label="省份"
width="120">
</el-table-column>
<el-table-column
prop="city"
label="市区"
width="120">
</el-table-column>
<el-table-column
prop="address"
label="地址"
width="300">
</el-table-column>
<el-table-column
prop="zip"
label="邮编"
width="120">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="160"
align="left">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
plain
@click="handleClick(scope.row)"
style="margin-right: 5px;">
编辑
</el-button>
<el-button
size="mini"
type="danger"
plain
@click="applyDel(scope.row)">
删除
</el-button>
</template>
</el-table-column>
</el-table>
</template>
</el-row>
<el-row>
<el-dialog
:title="dialogMap[dialogApply]"
:visible.sync="dialogVisible"
width="30%"
:before-close="handleClose">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="任务名称" prop="name">
<el-input v-model="ruleForm.name"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
<el-button @click="resetForm('ruleForm')">取消</el-button>
</el-form-item>
</el-form>
</el-dialog>
</el-row>
<el-row>
<el-col :span="2">
<el-button type="primary" size="mini" @click="add()">新增</el-button>
</el-col>
<el-col :span="12">
<div class="block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</el-col>
</el-row>
</el-contaier>
</template>
<script>
import {delArea} from "../../../api/consigner/station";
export default {
data() {
return {
tableData: [
{
date: '2016-05-02',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-04',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1517 弄',
zip: 200333
}, {
date: '2016-05-01',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1519 弄',
zip: 200333
}, {
date: '2016-05-03',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1516 弄',
zip: 200333
}],
dialogVisible:false,
ruleForm:{
id:'',
name:''
},
rules:{
name: [
{ required: true, message: '请输入任务名称', trigger: 'blur' },
{ min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
]
},
dialogMap: {
update: '编辑',
create: '新增'
},
dialogApply: 'create',
page:1,
pageSize:10,
total:0,
}
},
methods: {
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
},
handleClick(row) {
this.dialogApply='update';
this.dialogVisible=true;
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
alert('submit!');
} else {
console.log('error submit!!');
return false;
}
});
},
resetForm(formName) {
this.$refs[formName].resetFields();
this.dialogVisible=false;
},
handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
})
.catch(_ => {});
},
// 删除
applyDel(index, row) {
// 弹框询问是否删除?
this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', {
confirmButtonText: '确定删除',
cancelButtonText: '取消',
type: 'warning'
}
).then(() => {
//
}).catch(() => {
})
},
add(){
this.ruleForm={
id:'',
name:''
};
this.dialogApply='create';
this.dialogVisible=true;
}
}
}
</script>
... ...
<template>
<el-contaier>
<el-row>
<el-col :span="5">
<el-input v-model="name" placeholder="任务名称" style="width: 200px"></el-input>
</el-col>
<el-col :span="5">
<el-input v-model="cateId" placeholder="任务分类" style="width: 200px"></el-input>
</el-col>
<el-col :span="6">
<el-button type="primary" size="mini" @click="add()">查询</el-button>
<el-button type="success" size="mini" @click="add()">新增</el-button>
</el-col>
</el-row>
<el-row>
<template>
<el-table
:data="tableData"
border
style="width: 100%">
<el-table-column
fixed
prop="date"
label="日期"
width="150">
</el-table-column>
<el-table-column
prop="name"
label="姓名"
width="120">
</el-table-column>
<el-table-column
prop="province"
label="省份"
width="120">
</el-table-column>
<el-table-column
prop="city"
label="市区"
width="120">
</el-table-column>
<el-table-column
prop="address"
label="地址"
width="300">
</el-table-column>
<el-table-column
prop="zip"
label="邮编"
width="120">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
width="160"
align="left">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
plain
@click="handleClick(scope.row)"
style="margin-right: 5px;">
编辑
</el-button>
<el-button
size="mini"
type="danger"
plain
@click="applyDel(scope.row)">
删除
</el-button>
</template>
</el-table-column>
</el-table>
</template>
</el-row>
<el-row>
<el-dialog
:title="dialogMap[dialogApply]"
:visible.sync="dialogVisible"
width="30%"
:before-close="handleClose">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="任务名称" prop="name">
<el-input v-model="ruleForm.name"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
<el-button @click="resetForm('ruleForm')">取消</el-button>
</el-form-item>
</el-form>
</el-dialog>
</el-row>
<el-row>
<el-col :span="12">
<div class="block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</el-col>
</el-row>
</el-contaier>
</template>
<script>
export default {
data() {
return {
tableData: [
{
date: '2016-05-02',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1518 弄',
zip: 200333
}, {
date: '2016-05-04',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1517 弄',
zip: 200333
}, {
date: '2016-05-01',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1519 弄',
zip: 200333
}, {
date: '2016-05-03',
name: '王小虎',
province: '上海',
city: '普陀区',
address: '上海市普陀区金沙江路 1516 弄',
zip: 200333
}],
dialogVisible:false,
ruleForm:{
id:'',
name:''
},
rules:{
name: [
{ required: true, message: '请输入任务名称', trigger: 'blur' },
{ min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
]
},
dialogMap: {
update: '编辑',
create: '新增'
},
dialogApply: 'create',
page:1,
pageSize:10,
total:0,
name:'',
cateId:''
}
},
methods: {
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
},
handleClick(row) {
this.dialogApply='update';
this.dialogVisible=true;
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
alert('submit!');
} else {
console.log('error submit!!');
return false;
}
});
},
resetForm(formName) {
this.$refs[formName].resetFields();
this.dialogVisible=false;
},
handleClose(done) {
this.$confirm('确认关闭?')
.then(_ => {
done();
})
.catch(_ => {});
},
// 删除
applyDel(index, row) {
// 弹框询问是否删除?
this.$confirm('此操作永久删除该消息收发记录, 是否继续?', '警告', {
confirmButtonText: '确定删除',
cancelButtonText: '取消',
type: 'warning'
}
).then(() => {
//
}).catch(() => {
})
},
add(){
this.ruleForm={
id:'',
name:''
};
this.dialogApply='create';
this.dialogVisible=true;
}
}
}
</script>
... ...