Commit 71d45f84 by crushh

update: 新入替换

parent 610251cf
...@@ -35,7 +35,8 @@ module.exports = { ...@@ -35,7 +35,8 @@ module.exports = {
externals: { externals: {
'vue': 'Vue', 'vue': 'Vue',
'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
'vuex': 'Vuex' 'vuex': 'Vuex',
'element-ui':'ELEMENT'
}, },
resolve: { resolve: {
extensions: ['.js', '.vue', '.json'], extensions: ['.js', '.vue', '.json'],
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="shortcut icon" href="./favicon.ico" /> <link rel="shortcut icon" href="./favicon.ico" />
<title>好办管理平台</title> <title>好办管理平台</title>
<link rel="stylesheet" type="text/css" href="//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.68.css" /> <!-- <link rel="stylesheet" type="text/css" href="//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.58.4.css" /> -->
</head> </head>
...@@ -21,16 +21,11 @@ ...@@ -21,16 +21,11 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<!-- 公共库引用 cdn --> <!-- 公共库引用 cdn -->
<script src="//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js"></script>
<script src="//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js"></script>
<script src="//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js"></script>
<script src="//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js"></script>
<!-- <script src="//web-1251519181.file.myqcloud.com/components/track.1.0.0.js"></script> -->
<!-- <script src="https://cdn.ravenjs.com/3.26.2/vue/raven.min.js" crossorigin="anonymous"></script> -->
<script> <script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install(); (function() {
var host = window.location.host;
document.write('<script src="//'+ (host.indexOf('localhost')>-1?'four.gicdev.com':host) + '/component-library/static/import-component.js?timestrap='+ new Date().getTime() +'"><\/script>')
})()
</script> </script>
</body> </body>
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
}, },
secondConfirm() { secondConfirm() {
const that = this; const that = this;
this.$confirm('<div>确定要删除吗?</div><div>删除任务后,会影响任务统计如已完成,完成率,待完成等,请知悉</div>', '', { this.$confirm('删除任务后,会影响任务统计如已完成,完成率,待完成等,请知悉', '确认要删除吗?', {
customClass: 'top-icon', customClass: 'top-icon',
closeOnClickModal: false, closeOnClickModal: false,
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
<el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="45" :class-name="selectRadio == 1 ? 'cell-disabled' : 'font-size-zero'"> </el-table-column> <el-table-column type="selection" width="45" :class-name="selectRadio == 1 ? 'cell-disabled' : 'font-size-zero'"> </el-table-column>
<el-table-column width="25"> <!-- <el-table-column width="25">
<template slot="header"> <template slot="header">
<el-dropdown style="line-height: 10px; padding: 0; margin-left: -15px; transform: translateY(4px); -webkit-transform: translateY(4px);" placement="bottom-start"> <el-dropdown style="line-height: 10px; padding: 0; margin-left: -15px; transform: translateY(4px); -webkit-transform: translateY(4px);" placement="bottom-start">
<span class="el-dropdown-link"><i class="iconfont icongengduo"></i> </span> <span class="el-dropdown-link"><i class="iconfont icongengduo"></i> </span>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</el-dropdown> </el-dropdown>
</template> </template>
<template slot-scope="scope">{{ scope ? ' ' : ' ' }}</template> <template slot-scope="scope">{{ scope ? ' ' : ' ' }}</template>
</el-table-column> </el-table-column> -->
<el-table-column label="任务名称" width="120" show-overflow-tooltip> <el-table-column label="任务名称" width="120" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.ecmName }}</template> <template slot-scope="scope">{{ scope.row.ecmName }}</template>
</el-table-column> </el-table-column>
......
...@@ -12,14 +12,14 @@ promise.polyfill(); ...@@ -12,14 +12,14 @@ promise.polyfill();
// import Vue from 'vue'; // import Vue from 'vue';
import App from './App'; import App from './App';
import router from './router'; import router from './router';
import ElementUI from 'element-ui'; //, { Message } // import ElementUI from 'element-ui'; //, { Message }
import VueAxios from 'vue-axios'; import VueAxios from 'vue-axios';
import axios from 'axios'; import axios from 'axios';
import store from './store/store'; import store from './store/store';
/* eslint-disable */ /* eslint-disable */
import * as types from './store/types'; import * as types from './store/types';
import '../static/css/index.less'; import '../static/css/index.less';
import 'element-ui/lib/theme-chalk/index.css'; // import 'element-ui/lib/theme-chalk/index.css';
import '../static/font/iconfont.css'; import '../static/font/iconfont.css';
import '../static/font//iconfont.js' import '../static/font//iconfont.js'
import '../theme/index.css'; import '../theme/index.css';
...@@ -55,7 +55,7 @@ Vue.use(vueOfficeAside); ...@@ -55,7 +55,7 @@ Vue.use(vueOfficeAside);
Vue.use(vueOfficeHeader); Vue.use(vueOfficeHeader);
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(ElementUI, { size: 'large' }); // Vue.use(ElementUI, { size: 'large' });
Vue.use(VueAxios, axios); Vue.use(VueAxios, axios);
Vue.axios.defaults.withCredentials = true; // cookie访问 Vue.axios.defaults.withCredentials = true; // cookie访问
......
...@@ -268,13 +268,7 @@ export default { ...@@ -268,13 +268,7 @@ export default {
}, },
// 改变同步状态 // 改变同步状态
changeSync(row) { changeSync(row) {
this.$confirm('<div>确认关闭同步?</div><div>此为敏感操作!关闭同步后,企微标签库中该标签将会被立即删除, “企微好友”身上所被打的该标签也会被清除,请再次确认您的操作!</div>', '', { this.$confirm('此为敏感操作!关闭同步后,企微标签库中该标签将会被立即删除, “企微好友”身上所被打的该标签也会被清除,请再次确认您的操作!', '确认关闭同步?')
customClass: 'top-icon',
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: 'warning'
})
.then(() => { .then(() => {
this.closeSync(row); this.closeSync(row);
}) })
...@@ -338,13 +332,7 @@ export default { ...@@ -338,13 +332,7 @@ export default {
this.cancelIds = []; this.cancelIds = [];
}, },
checkSync() { checkSync() {
this.$confirm('<div>确认开启同步?</div><div>由于数据量可能过大以及企微限制,系统执行较缓慢,请耐心等待</div>', '', { this.$confirm('由于数据量可能过大以及企微限制,系统执行较缓慢,请耐心等待', '确认开启同步?')
customClass: 'top-icon',
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: 'warning'
})
.then(() => { .then(() => {
this.handlePartSync(); this.handlePartSync();
}) })
......
...@@ -274,19 +274,11 @@ export default { ...@@ -274,19 +274,11 @@ export default {
} }
}); });
if (!flagTip) { if (!flagTip) {
this.$confirm('每日的权重不能为空,必须为数字,且不小于 0 ?', '提示', { this.$confirm('每日的权重不能为空,必须为数字,且不小于 0 ?', '提示').then(() => {});
confirmButtonText: '确定',
showCancelButton: false,
type: 'warning'
}).then(() => {});
return false; return false;
} }
that that
.$confirm(that.settingStatus == 0 ? '点击即下发门店月指标任务,请确认是否提交?' : '此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?', '提示', { .$confirm(that.settingStatus == 0 ? '点击即下发门店月指标任务,请确认是否提交?' : '此次提交只影响日指标值,不会触发月指标任务,请确认是否提交?', '提示')
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => { .then(() => {
that.postSave(that.myObject.days); that.postSave(that.myObject.days);
}) })
......
...@@ -380,11 +380,7 @@ export default { ...@@ -380,11 +380,7 @@ export default {
* 删除 * 删除
*/ */
handleDel(index, row) { handleDel(index, row) {
this.$confirm(`确认要删除吗?`, '提示', { this.$confirm(`确认要删除吗?`, '提示')
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => { .then(() => {
this.postDel(index, row); this.postDel(index, row);
}) })
......
...@@ -82,11 +82,7 @@ export default { ...@@ -82,11 +82,7 @@ export default {
const that = this; const that = this;
that.$refs.form.validate(value => { that.$refs.form.validate(value => {
if (value) { if (value) {
this.$confirm('是否确定修改欢迎语启用状态?', '提示', { this.$confirm('是否确认修改欢迎语启用状态?', '提示')
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => { .then(() => {
getRequest('/haoban-manage3-web/set-welcome', { openFlag: val }) getRequest('/haoban-manage3-web/set-welcome', { openFlag: val })
.then(res => { .then(res => {
......
...@@ -90,11 +90,7 @@ export default { ...@@ -90,11 +90,7 @@ export default {
const that = this; const that = this;
that.$refs.form.validate(value => { that.$refs.form.validate(value => {
if (value) { if (value) {
this.$confirm('是否保存此欢迎语?', '提示', { this.$confirm('确认保存此欢迎语?', '提示')
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => { .then(() => {
const para = { ...that.form }; const para = { ...that.form };
getRequest('/haoban-manage3-web/save-welcome', para) getRequest('/haoban-manage3-web/save-welcome', para)
......
...@@ -449,13 +449,7 @@ export default { ...@@ -449,13 +449,7 @@ export default {
}); });
return false; return false;
} }
this.$confirm('<div>确定要删除吗?</div><div>删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉</div>', '', { this.$confirm('删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉', '确认要删除吗?').then(res => {
customClass: 'top-icon',
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: 'warning'
}).then(res => {
that.postMultDel(); that.postMultDel();
}) })
}, },
...@@ -518,13 +512,7 @@ export default { ...@@ -518,13 +512,7 @@ export default {
*/ */
handleDel(index, row) { handleDel(index, row) {
const that = this; const that = this;
this.$confirm('<div>确定要删除吗?</div><div>删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉</div>', '', { this.$confirm('删除任务后,会影响任务统计如已完成,完成率,待完成以及销售线索收益等,请知悉', '确认要删除吗?')
customClass: 'top-icon',
closeOnClickModal: false,
dangerouslyUseHTMLString: true,
showClose: false,
type: 'warning'
})
.then(res => { .then(res => {
that.postDel(index, row); that.postDel(index, row);
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment