From b6218e1a65289b9c232408e9ee6247c36258a155 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期五, 09 六月 2023 13:55:15 +0800
Subject: [PATCH] 修改前端页面
---
src/components/page/ticket/index.vue | 16 +++-
/dev/null | 159 ---------------------------------------
public/words/administratorReturn.docx | 0
src/components/page/ticket/ticket-form.vue | 4
src/components/page/ticket/picture-form.vue | 2
5 files changed, 15 insertions(+), 166 deletions(-)
diff --git a/App.vue b/App.vue
deleted file mode 100644
index e6031f0..0000000
--- a/App.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-<template>
- <div id="app">
- <router-view></router-view>
- </div>
-</template>
-<style>
- @import "./assets/css/main.css";
- @import "./assets/css/color-dark.css"; /*娣辫壊涓婚*/
- /*@import "./assets/css/theme-green/color-green.css"; 娴呯豢鑹蹭富棰�*/
- /* 瑙e喅element-ui鐨則able琛ㄦ牸鎺т欢琛ㄥご涓庡唴瀹瑰垪涓嶅榻愰棶棰� */
- .el-table th.gutter{
- display: table-cell!important;
- }
-</style>
\ No newline at end of file
diff --git a/index.html b/index.html
deleted file mode 100644
index 54a8ed2..0000000
--- a/index.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
- <title>宄板嘲鐭垮尯缁煎悎琛屾斂鎵ф硶灞�</title>
- <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=tuVbv4tLIzoX7IWdeKeTwojDqPILFoe5"></script>
- <!--<script src="//mapv.baidu.com/build/mapv.min.js"></script>
- <script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.127/dist/mapvgl.min.js"></script>-->
- <script type="text/javascript" src="http://api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js"></script>
- <script src="./static/iconfont.js"></script>
-
- <title>宄板嘲鏅烘収娉婅溅绯荤粺</title>
- </head>
- <body>
- <div id="app"></div>
- </body>
-</html>
diff --git a/main.js b/main.js
deleted file mode 100644
index 1230d2b..0000000
--- a/main.js
+++ /dev/null
@@ -1,159 +0,0 @@
-import Vue from 'vue'
-import App from './App.vue'
-import router from './router'
-import axios from 'axios';
-import qs from 'qs'
-import ElementUI from 'element-ui';
-import 'element-ui/lib/theme-chalk/index.css'; // 榛樿涓婚
-import './assets/css/fonts/iconfont.css'
-// import '../static/css/theme-green/index.css'; // 娴呯豢鑹蹭富棰�
-import './assets/css/icon.css';
-import './components/common/directives';
-import "babel-polyfill";
-import ByUtils, {byUtils} from './assets/js/ByUtils'
-import StringUtil from './assets/js/StringUtil'
-import TscPrintUtil from './assets/js/TscPrintUtil'
-import Print from './assets/js/print'
-import moment from 'moment'
-import store from './store/index' // 寮曞叆vuex
-Vue.prototype.$moment = moment;
-Vue.use(Print) // 娉ㄥ唽
-import ViewUI from 'view-design';
-
-import 'lib-flexible'
-
-// import style
-import 'view-design/dist/styles/iview.css';
-import preview from 'vue-photo-preview'
-//preview鐨勫弬鏁�
-var option = {
- minZoom:0.3,
- maxSpreadZoom: 20, // 鎺у埗棰勮鍥炬渶澶х殑鍊嶆暟锛岄粯璁ゆ槸2鍊嶏紝鎴戣繖閲屾敼鎴愪簡鍘熷浘
- fullscreenEl: false, //鎺у埗鏄惁鏄剧ず鍙充笂瑙掑叏灞忔寜閽�
- closeEl: true, //鎺у埗鏄惁鏄剧ず鍙充笂瑙掑叧闂寜閽�
- tapToClose: true, //鐐瑰嚮婊戝姩鍖哄煙搴斿叧闂浘搴�
- shareEl: false, //鎺у埗鏄惁鏄剧ず鍒嗕韩鎸夐挳
- zoomEl: true, //鎺у埗鏄惁鏄剧ず鏀惧ぇ缂╁皬鎸夐挳
- counterEl: true, //鎺у埗鏄惁鏄剧ず宸︿笂瑙掑浘鐗囨暟閲忔寜閽�
- arrowEl: true, //鎺у埗濡傚浘鐨勫乏鍙崇澶达紙pc娴忚鍣ㄦā鎷熸墜鏈烘椂锛�
- tapToToggleControls: true, //鐐瑰嚮搴斿垏鎹㈡帶浠剁殑鍙鎬�
- allowPanToNext:true, //褰撳墠椤圭洰缂╂斁鏃讹紝鍏佽婊戝姩鍒颁笅涓�涓�/涓婁竴涓」鐩�
- clickToCloseNonZoomable: false,//鐐瑰嚮鍥剧墖搴斿叧闂浘搴擄紝浠呭綋鍥惧儚灏忎簬瑙嗗彛鐨勫ぇ灏忔椂
- closeOnVerticalDrag:false,//鍨傜洿鎷栧姩鍜屾湭缂╂斁鍥惧儚鏃讹紝璇峰叧闂浘搴�
- pinchToClose:false,//鎹忎互鍏抽棴鐢诲粖鎵嬪娍
- getDoubleTapZoom:()=>1 //鍑芥暟搴旇繑鍥炵缉鏀剧骇鍒紝鍦ㄥ弻鍑绘墜鍔垮悗锛岀敤鎴峰崟鍑荤缉鏀惧浘鏍囨垨榧犳爣鍗曞嚮鍥惧儚鏈韩鏃讹紝鍥惧儚灏嗙缉鏀惧埌璇ョ骇鍒�
-}
-Vue.use(preview,option)
-
-Vue.use(ViewUI);
-Vue.config.productionTip = false
-Vue.use(ElementUI, {
- size: 'small'
-});
-
-import echarts from 'echarts'
-Vue.prototype.$echarts = echarts;
-
-import '@/utils/lib-fiexible'
-
-import {getStore,setStore,removeStore} from "./libs/store";
-
-Vue.prototype.getStore = getStore
-Vue.prototype.setStore = setStore
-Vue.prototype.removeStore = removeStore
-
-Vue.prototype.$axios = axios;
-axios.defaults.withCredentials = true
-// 瀵规彁浜ょ殑鏁版嵁杩涜json搴忓垪鍖�,鍙兘瀛樺湪闂,鏆傛椂鏈彂鐜颁粈涔堥棶棰�
-axios.interceptors.request.use((config) => {
- if (config.method === 'post') {
- config.data = qs.stringify(config.data)
- }
- if (config.method === 'get') {
- config.data = qs.stringify(config.data)
- }
- console.log(config.data)
- return config
-})
-// 閰嶇疆鏂囦欢
-Vue.prototype.$systemconfig = {
-// 鏈嶅姟绔矾寰�
- basePath: 'http://183.196.93.178:8089',
- //basePath:'http://127.0.0.1:8089'
-}
-Vue.prototype.$byutil = byUtils
-Vue.prototype.$stringUtil = StringUtil
-Vue.prototype.$tscPrintUtil = TscPrintUtil
-// const rolesList = JSON.parse(localStorage.getItem('userRouters'))
-//浣跨敤閽╁瓙鍑芥暟瀵硅矾鐢辫繘琛屾潈闄愯烦杞�
-// router.beforeEach((to, from, next) => {
-// let user = byUtils.getUser()
-// if (!user && to.path!== '/') {
-// next('/');
-// }
-
-// console.log(to,"瑙﹀彂浜�",router.options.routes);
-// // type 2 : all admin
-// // type 0 : 娉婅溅 id:2
-// // type 1 : 鎵ф硶 id:3
-
-
-
-// next();
-// //
-// // if (to.path==='/login') {
-// // byUtils.setUser(null)
-// // }
-// // let user = byUtils.getUser()
-// // console.log(user)
-// // if (!user && to.path !== '/login') {
-// // next('/login');
-// // } else if (to.meta.permission) {
-// // // 濡傛灉鏄鐞嗗憳鏉冮檺鍒欏彲杩涘叆锛岃繖閲屽彧鏄畝鍗曠殑妯℃嫙绠$悊鍛樻潈闄愯�屽凡
-// // role === 'admin' ? next() : next('/403');
-// // } else {
-// // 绠�鍗曠殑鍒ゆ柇IE10鍙婁互涓嬩笉杩涘叆瀵屾枃鏈紪杈戝櫒锛岃缁勪欢涓嶅吋瀹�
-// if (navigator.userAgent.indexOf('MSIE') > -1 && to.path === '/editor') {
-// Vue.prototype.$alert('vue-quill-editor缁勪欢涓嶅吋瀹笽E10鍙婁互涓嬫祻瑙堝櫒锛岃浣跨敤鏇撮珮鐗堟湰鐨勬祻瑙堝櫒鏌ョ湅', '娴忚鍣ㄤ笉鍏煎閫氱煡', {
-// confirmButtonText: '纭畾'
-// });
-// } else {
-// next();
-// }
-
-// // }
-// })
-// router.beforeEach((to, from, next) => {
-// if(!sessionStorage.accessToken){
-// router.push({'path': '/'});
-// }
-// })
-
-// router.beforeEach((to, from, next) => {
-// if (to.path === '/login') {
-// next();
-// } else {
-// //sessionStorage.accessToken
-// let token = localStorage.getItem('userId');
-// if(token){
-// if (token==null) {
-// next('/login');
-// } else {
-// if(token == ''){
-// next('/login');
-// }else{
-// next();
-// }
-// }
-// }else{
-// next('/login');
-// }
-// }
-// });
-
-
-new Vue({
- router,
- store,
- render: h => h(App)
-}).$mount('#app')
diff --git a/public/words/administratorReturn.docx b/public/words/administratorReturn.docx
index 7b24573..1ef5fb2 100644
--- a/public/words/administratorReturn.docx
+++ b/public/words/administratorReturn.docx
Binary files differ
diff --git a/src/components/page/ticket/index.vue b/src/components/page/ticket/index.vue
index e271490..997f997 100644
--- a/src/components/page/ticket/index.vue
+++ b/src/components/page/ticket/index.vue
@@ -125,10 +125,11 @@
align="center"
label="鎿嶄綔">
<template slot-scope="scope">
- <el-button type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle(scope.row.id)">澶勫喅涔�</el-button>
- <el-button type="text" size="small" icon="el-icon-view" @click="addOrUpdateHandle2(scope.row)">閫佽揪鍥炶瘉</el-button>
+ <el-button type="text" size="small" icon="el-icon-document" @click="addOrUpdateHandle(scope.row.id)">澶勫喅涔�</el-button>
+ <el-button type="text" size="small" icon="el-icon-document-checked" @click="addOrUpdateHandle2(scope.row)">閫佽揪鍥炶瘉</el-button>
<el-button type="text" size="small" icon="el-icon-view" @click="pictureHandle(scope.row)">鍥惧儚璇佹嵁</el-button>
- <el-button type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">鐜板満缂磋垂</el-button>
+ <el-button type="text" size="small" icon="el-icon-delete" @click="onDelete(scope.row.id)">鎾ら攢</el-button>
+<!-- <el-button type="text" size="small" icon="el-pay6zhifu" @click="jiaofeiHandle(scope.row.id)">鐜板満缂磋垂</el-button>-->
</template>
</el-table-column>
</el-table>
@@ -235,7 +236,7 @@
if(row.personName != null){
this.addOrUpdateVisible2 = true
this.$nextTick(() => {
- this.$refs.addOrUpdate2.init(id)
+ this.$refs.addOrUpdate2.init(row.id)
})
}else {
this.$message.error("澶勫喅涔﹁繕鏈~鍐欙紒")
@@ -252,6 +253,13 @@
}
})
},
+ //鍒犻櫎
+ onDelete(id) {
+ this.$byutil.deleteData(this,this.$systemconfig.basePath+'/ffzf/ticket/delete',{id:id}, res => {
+ this.$message({message: '鎾ら攢鎴愬姛', type: 'success'});
+ this.getDataList();
+ })
+ },
}
}
</script>
diff --git a/src/components/page/ticket/picture-form.vue b/src/components/page/ticket/picture-form.vue
index 0f2715d..876a08d 100644
--- a/src/components/page/ticket/picture-form.vue
+++ b/src/components/page/ticket/picture-form.vue
@@ -37,7 +37,7 @@
this.visible = true
this.pictureList = data.map((item,index) => {
return {
- url: '/ffzf/fileinfo/showImg/'+item,
+ url: this.$systemconfig.basePath+'/ffzf/fileInfo/showImg?path='+item,
title: item,
preview:'1',
//larg: require('@/assets/img/enlarge.png')
diff --git a/src/components/page/ticket/ticket-form.vue b/src/components/page/ticket/ticket-form.vue
index e91e364..aa53e5c 100644
--- a/src/components/page/ticket/ticket-form.vue
+++ b/src/components/page/ticket/ticket-form.vue
@@ -174,9 +174,9 @@
if (valid) {
this.loadingSubmit = true;
if (this.dataForm.id) {
- this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ticket/updateById', this.formData, res => {
+ this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ticket/updateById', this.dataForm, res => {
if (res.code === 0) {
- this.$notify.success('淇敼鎴愬姛')
+ this.$message.success('淇敼鎴愬姛')
this.visible = false
this.loadingSubmit = false;
this.$emit('refreshDataList')
--
Gitblit v1.9.1