Commit 4397d279 by crushh

update: dist

parent acdd2845
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,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.69.css" /> <link rel="stylesheet" type="text/css" href="//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.69.css" />
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_1628375_kcme8v8q3t.css" /> <!--好办后台3.0--> <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_1628375_5ghlvsafe8j.css" /> <!--好办后台3.0-->
<script src="//at.alicdn.com/t/font_1628375_kcme8v8q3t.js"></script> <script src="//at.alicdn.com/t/font_1628375_5ghlvsafe8j.js"></script>
</head> </head>
<body style="min-width: 1400px;" class="damolish"> <body style="min-width: 1400px;" class="damolish">
......
...@@ -39,7 +39,7 @@ VueAMap.initAMapApiLoader({ ...@@ -39,7 +39,7 @@ VueAMap.initAMapApiLoader({
plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'Geocoder', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor'], plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'Geocoder', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor'],
v: '1.4.4' v: '1.4.4'
}); });
window.ELEMENT.Dialog.props.closeOnClickModal.default = false; // 全局设置点击蒙层不关闭
Vue.use(htmlToPdf); Vue.use(htmlToPdf);
Vue.use(vueGicImgPreview); Vue.use(vueGicImgPreview);
Vue.use(vueOfficeUploadImage); Vue.use(vueOfficeUploadImage);
......
<template> <template>
<div> <div>
<div class="warp"> <!-- <div class="warp">
<h2>加好友配置</h2> <h2>加好友配置</h2>
<span class="echoData" v-show="friendSettingType">{{ echoFriendData }}</span> <span class="echoData" v-show="friendSettingType">{{ echoFriendData }}</span>
<el-button type="text" style="margin-left: 20px;" @click="openDialog">去配置</el-button> <el-button type="text" style="margin-left: 20px;" @click="openDialog">去配置</el-button>
</div> </div> -->
<div class="daily-set-wrap"> <div class="daily-set-wrap">
<div class="daily-set-content border-box"> <div class="daily-set-content border-box">
<div class="admin-tip-body"> <div class="admin-tip-body">
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<el-input placeholder="请输入标题" maxlength="50" v-model="title" class="w-264" style="width: 264px;" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input placeholder="请输入标题" maxlength="50" v-model="title" class="w-264" style="width: 264px;" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
<el-button type="primary" @click="changeRoute">新建欢迎语</el-button> <el-button type="primary" @click="changeRoute">新建欢迎语</el-button>
</div> </div>
<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }"> <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }" v-loading="loading">
<el-table-column prop="title" label="标题" width="200" show-overflow-tooltip> <el-table-column prop="title" label="标题" width="200" show-overflow-tooltip>
<template slot-scope="{ row }">{{ row.title }}</template> <template slot-scope="{ row }">{{ row.title }}</template>
</el-table-column> </el-table-column>
...@@ -70,13 +70,13 @@ ...@@ -70,13 +70,13 @@
<el-table-column label="操作" width="180"> <el-table-column label="操作" width="180">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" @click="changeRoute(row)">编辑</el-button> <el-button type="text" @click="changeRoute(row)">编辑</el-button>
<el-button type="text" @click="remove(row)" v-if="row.defaultWelcomeFlag != 1">删除</el-button> <el-button type="text" @click="remove(row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
<el-dialog title="加好友配置" :visible.sync="dialogVisible" width="590px" :before-close="handleClose"> <!-- <el-dialog title="加好友配置" :visible.sync="dialogVisible" width="590px" :before-close="handleClose">
<span class="tips">好办欢迎语支持文字、图片、视频、文件、链接</span> <span class="tips">好办欢迎语支持文字、图片、视频、文件、链接</span>
<el-form label-width="100px" style="margin-top:20px"> <el-form label-width="100px" style="margin-top:20px">
<el-form-item label="加好友配置"> <el-form-item label="加好友配置">
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<el-button @click="dialogVisible = false">取 消</el-button> <el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" :loading="btnLoading" @click="saveSetting">确 定</el-button> <el-button type="primary" :loading="btnLoading" @click="saveSetting">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -100,24 +100,25 @@ export default { ...@@ -100,24 +100,25 @@ export default {
props: {}, props: {},
data() { data() {
return { return {
friendSettingTypeOption: [ // friendSettingTypeOption: [
{ label: 2, content: '发送【好办欢迎语】+【带导购参数的公众号二维码】' }, // { label: 2, content: '发送【好办欢迎语】+【带导购参数的公众号二维码】' },
{ label: 1, content: '发送【好办欢迎语】+【带导购参数的会员小程序卡片】' } // { label: 1, content: '发送【好办欢迎语】+【带导购参数的会员小程序卡片】' }
], // ],
title: '', title: '',
wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '', wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '',
friendSettingType: '', // friendSettingType: '',
type: 1, type: 1,
friendSettingId: '', friendSettingId: '',
btnLoading: false, btnLoading: false,
dialogVisible: false, // dialogVisible: false,
iconType: { iconType: {
1: 'iconwenjianleixingtupian', 1: 'iconwenjianleixingtupian',
2: 'iconwenjianleixingshipin', 2: 'iconwenjianleixingshipin',
3: 'iconwenjianleixing-wenjian', 3: 'iconwenjianleixing-wenjian',
4: 'iconwenjianleixing-lianjie' 4: 'iconwenjianleixing-lianjie'
}, },
tableData: [] tableData: [],
loading: false
}; };
}, },
mounted() { mounted() {
...@@ -125,19 +126,19 @@ export default { ...@@ -125,19 +126,19 @@ export default {
that.$emit('showTab', 4); that.$emit('showTab', 4);
document.documentElement.style.backgroundColor = '#f0f2f5'; document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData(); that.getData();
this.getSetting(); // this.getSetting();
}, },
destroyed() { destroyed() {
document.documentElement.style.backgroundColor = '#fff'; document.documentElement.style.backgroundColor = '#fff';
}, },
computed: { computed: {
echoFriendData() { // echoFriendData() {
let content = ''; // let content = '';
if (this.friendSettingType) { // if (this.friendSettingType) {
content = this.friendSettingTypeOption.filter(item => item.label == this.friendSettingType)[0].content; // content = this.friendSettingTypeOption.filter(item => item.label == this.friendSettingType)[0].content;
} // }
return content; // return content;
} // }
}, },
methods: { methods: {
/** /**
...@@ -152,20 +153,20 @@ export default { ...@@ -152,20 +153,20 @@ export default {
clearSearch() { clearSearch() {
this.getData(); this.getData();
}, },
openDialog() { // openDialog() {
this.dialogVisible = true; // this.dialogVisible = true;
}, // },
getSetting() { // getSetting() {
getRequest('/haoban-manage3-web/welcome/get/friend-setting', { wxEnterpriseId: this.wxEnterpriseId }).then(res => { // getRequest('/haoban-manage3-web/welcome/get/friend-setting', { wxEnterpriseId: this.wxEnterpriseId }).then(res => {
let resData = res.data; // let resData = res.data;
if (resData.code == 0 && resData.result) { // if (resData.code == 0 && resData.result) {
const { friendSettingId, friendSettingType } = resData.result; // const { friendSettingId, friendSettingType } = resData.result;
this.friendSettingId = friendSettingId; // this.friendSettingId = friendSettingId;
this.type = friendSettingType ? friendSettingType : 1; // this.type = friendSettingType ? friendSettingType : 1;
this.friendSettingType = friendSettingType; // this.friendSettingType = friendSettingType;
} // }
}); // });
}, // },
saveSetting() { saveSetting() {
let data = { let data = {
friendSettingId: this.friendSettingId, friendSettingId: this.friendSettingId,
...@@ -179,8 +180,8 @@ export default { ...@@ -179,8 +180,8 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.code == 0 && resData.result) { if (resData.code == 0 && resData.result) {
this.$message.success(resData.message); this.$message.success(resData.message);
this.dialogVisible = false; // this.dialogVisible = false;
this.getSetting(); // this.getSetting();
} }
}) })
.finally(() => { .finally(() => {
...@@ -212,6 +213,7 @@ export default { ...@@ -212,6 +213,7 @@ export default {
* 获取数据 * 获取数据
*/ */
getData() { getData() {
this.loading = true;
postJsonRequest('/haoban-manage3-web/welcome/list', { title: this.title, wxEnterpriseId: this.wxEnterpriseId }) postJsonRequest('/haoban-manage3-web/welcome/list', { title: this.title, wxEnterpriseId: this.wxEnterpriseId })
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
...@@ -232,6 +234,9 @@ export default { ...@@ -232,6 +234,9 @@ export default {
duration: 1000, duration: 1000,
message: error.message message: error.message
}); });
})
.finally(() => {
this.loading = false;
}); });
} }
}, },
......
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