Parcourir la source

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

liuhj il y a 2 ans
Parent
commit
cbcfad4710
3 fichiers modifiés avec 1081 ajouts et 514 suppressions
  1. 2 2
      src/components/Crm/DeleClient.vue
  2. 1062 510
      src/components/OP/visaEdit.vue
  3. 17 2
      src/main.js

+ 2 - 2
src/components/Crm/DeleClient.vue

@@ -7,7 +7,7 @@
                     <el-input @input="Inquireclick()" placeholder="城市/名称/联系人" v-model="input" clearable
                         style="width: 350px;">
                     </el-input>
-                    <router-link to="/home/DeleClientOperation">
+                    <router-link to="/home/visaEdit">
                         <el-button type="primary" style="margin-left: 10px;">新增</el-button>
                     </router-link>
 
@@ -160,7 +160,7 @@ export default {
 
         del(index, row) {
 
-            var url = "/api/CRM/"
+            var url = "/api/CRM/DelCustomer"
             var that = this
             this.$axios({
                 method: 'post',

Fichier diff supprimé car celui-ci est trop grand
+ 1062 - 510
src/components/OP/visaEdit.vue


+ 17 - 2
src/main.js

@@ -9,14 +9,28 @@ import './assets/icon/iconfont.css'
 import store from './store/index.js';
 
 import axios from 'axios';
-axios.defaults.baseURL = 'http://132.232.92.186:8888';
-// axios.defaults.baseURL = 'http://localhost:5256/';
+//axios.defaults.baseURL = 'http://132.232.92.186:8888';
+axios.defaults.baseURL = 'http://localhost:5256/';
 import { Message } from "element-ui";
 Vue.prototype.$message = Message
 Vue.prototype.$axios = axios;
 
 Vue.config.productionTip = false
 Vue.use(ElementUI);
+Vue.prototype.dateFormat = function (time) {
+  var date = new Date(time);
+  var year = date.getFullYear();
+  /* 在日期格式中,月份是从0开始的,因此要加0
+   * 使用三元表达式在小于10的前面加0,以达到格式统一  如 09:11:05
+   * */
+  var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
+  var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
+  var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
+  var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
+  var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
+  // 拼接
+  return year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
+};
 /* eslint-disable no-new */
 new Vue({
   el: '#app',
@@ -25,3 +39,4 @@ new Vue({
   components: { App },
   template: '<App/>'
 })
+