Commit cf0d050c by 无尘

fix: 修改新增公共

parent 33ec8a40
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.6ce8bcf1af51a31324940dcaa81f8be5.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><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>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.545ba86f7cc1252287b2.js></script><script type=text/javascript src=./static/js/vendor.928b68e48614c700460c.js></script><script type=text/javascript src=./static/js/app.4829cd62b645b96be9c9.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.2854223ab4e86ea993b8aadf34ea65d6.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><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>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.fbf442edf3e742dae333.js></script><script type=text/javascript src=./static/js/vendor.928b68e48614c700460c.js></script><script type=text/javascript src=./static/js/app.7945dc1a2ba2053dab49.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(f&&f(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},c={81:0};function b(f){if(a[f])return a[f].exports;var c=a[f]={i:f,l:!1,exports:{}};return e[f].call(c.exports,c,c.exports,b),c.l=!0,c.exports}b.e=function(e){var f=c[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var a=new Promise(function(a,b){f=c[e]=[a,b]});f[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"7eff119752216e94190e",1:"0ebe3ead93207dc78a78",2:"6c502a930cfc2e54a0d0",3:"d1cb661014b46f406cfb",4:"f2c2a60310f4374d2a71",5:"bf058fa04f7b2b11b1bc",6:"46dc7fc29e82e6e6c6e8",7:"8f462a353a2ce9c0c116",8:"e5372980f04518fa84ec",9:"860dbe8cf83334f9e3c0",10:"28e14270d70d6a29f157",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"02c1f318efb8ad51c2f2",14:"57dc313c4204fe387868",15:"b9ac3428fbf05e58374e",16:"c4ebe5ae46670e5c0754",17:"fa12cc3bf2181d16ef8c",18:"d56ca44284feb601117a",19:"6f5045aa6067b477873d",20:"75e0997b94e5d6294ec8",21:"6bd871faff9520219f01",22:"43ab9b5bfdc74ce6b20e",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"8bbfb062166705f83d11",27:"acda88d3c2aa77c9f51c",28:"0635cfc88ef2b2920961",29:"0d3db47f464a37be4a3e",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"a93521846789130a144e",34:"d7271b9c0396e2e0b343",35:"32cae9a3f9ba6b187945",36:"d31850464ea8bdf6593f",37:"31c143858551cadfe3a9",38:"7da020455236ec9cc0e6",39:"8d8a3b88d85b3220e296",40:"f4fd9d68a9e906649040",41:"9fcb9feb2cab7a8a2cbe",42:"47c4c30ceefa4af03de5",43:"2689bc2d619a26183b90",44:"deb9f07fde1e218414cf",45:"feeb9dd78b7b12f700d2",46:"a2f306cec3cdc3c685d3",47:"ad1d3e7f3e13e438bcbf",48:"ef7f29a451f2754469b0",49:"f6871122a1fa7e18f158",50:"07c4baa205f7e23b698d",51:"7fc0ff7b08a3b083ca59",52:"1d2a5ba0923414f73e06",53:"8802335b18fef4b4450b",54:"97a5f9645e47c9a491fd",55:"5af32707cdbeae957afc",56:"98caf4e5ee697f98808f",57:"a12e3dac3c8f19bf20ab",58:"4eca8a1ed0c691766a4e",59:"d90b9f9627f3c3832c23",60:"aeab9555497ec6593f72",61:"2f37d96bc91f0a637cad",62:"59294e07de6b496244cf",63:"6077852270b0c59eff8a",64:"071bad1248843a633c76",65:"a36bf94fdaed1ee1ee50",66:"3ba7e89277d851279c4d",67:"54211f408298416c6536",68:"510e6b0aa6ffadff566b",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"646f1b9348d1bb8cfbf7",75:"6b82dfb7f160db815f54",76:"5d50222646fc31640f30",77:"9f7ea81c191a5e1bbaa2",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,f,a){b.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,"a",f),f},b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},c={81:0};function b(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,b),c.l=!0,c.exports}b.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,b){a=c[e]=[f,b]});a[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"7eff119752216e94190e",1:"0ebe3ead93207dc78a78",2:"6c502a930cfc2e54a0d0",3:"5717c6a2ef64b58239ae",4:"f2c2a60310f4374d2a71",5:"bf058fa04f7b2b11b1bc",6:"46dc7fc29e82e6e6c6e8",7:"8f462a353a2ce9c0c116",8:"e5372980f04518fa84ec",9:"860dbe8cf83334f9e3c0",10:"28e14270d70d6a29f157",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"02c1f318efb8ad51c2f2",14:"5ab25e4baf23ecce8d73",15:"aeb8b94044cffbdddd39",16:"c4ebe5ae46670e5c0754",17:"fa12cc3bf2181d16ef8c",18:"d56ca44284feb601117a",19:"6f5045aa6067b477873d",20:"75e0997b94e5d6294ec8",21:"6bd871faff9520219f01",22:"43ab9b5bfdc74ce6b20e",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"8bbfb062166705f83d11",27:"acda88d3c2aa77c9f51c",28:"0635cfc88ef2b2920961",29:"0d3db47f464a37be4a3e",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"a93521846789130a144e",34:"d7271b9c0396e2e0b343",35:"32cae9a3f9ba6b187945",36:"d31850464ea8bdf6593f",37:"31c143858551cadfe3a9",38:"7da020455236ec9cc0e6",39:"8d8a3b88d85b3220e296",40:"f4fd9d68a9e906649040",41:"9fcb9feb2cab7a8a2cbe",42:"47c4c30ceefa4af03de5",43:"2689bc2d619a26183b90",44:"deb9f07fde1e218414cf",45:"feeb9dd78b7b12f700d2",46:"a2f306cec3cdc3c685d3",47:"ad1d3e7f3e13e438bcbf",48:"ef7f29a451f2754469b0",49:"f6871122a1fa7e18f158",50:"07c4baa205f7e23b698d",51:"7fc0ff7b08a3b083ca59",52:"1d2a5ba0923414f73e06",53:"8802335b18fef4b4450b",54:"97a5f9645e47c9a491fd",55:"5af32707cdbeae957afc",56:"98caf4e5ee697f98808f",57:"a12e3dac3c8f19bf20ab",58:"4eca8a1ed0c691766a4e",59:"d90b9f9627f3c3832c23",60:"aeab9555497ec6593f72",61:"2f37d96bc91f0a637cad",62:"59294e07de6b496244cf",63:"6077852270b0c59eff8a",64:"071bad1248843a633c76",65:"a36bf94fdaed1ee1ee50",66:"3ba7e89277d851279c4d",67:"54211f408298416c6536",68:"510e6b0aa6ffadff566b",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"646f1b9348d1bb8cfbf7",75:"6b82dfb7f160db815f54",76:"5d50222646fc31640f30",77:"9f7ea81c191a5e1bbaa2",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,a,f){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<div slot="footer" class="dialog-footer" style="padding-bottom: 10px;"> <div slot="footer" class="dialog-footer" style="padding-bottom: 10px;">
<el-button @click="customCancel">取 消</el-button> <el-button @click="customCancel">取 消</el-button>
<el-button type="primary" @click="customConfirm('classifyForm')">新 建</el-button> <el-button type="primary" @click="customConfirm('classifyForm')">{{ classifyName == '' ? '新 建' : '保 存' }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
</div> </div>
<div v-show="defaultStoreBool && defaultStoreList.length < 1" class="el-form-item__error">请选择发送范围</div> <div v-show="defaultStoreBool && defaultStoreList.length < 1" class="el-form-item__error">请选择发送范围</div>
</el-form-item> </el-form-item>
<el-form-item label="选择分类" prop="receiveType"> <el-form-item label="选择分类" prop="labelId">
<el-select v-model="ruleFormData.classify" placeholder="请选择" style="width:560px"> <el-option v-for="item in classifyOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select><el-button class="p-l-20" type="text" @click="newClassify">新建分类</el-button> <el-select v-model="ruleFormData.labelId" placeholder="请选择" style="width:560px"> <el-option v-for="item in classifyOptions" :key="item.value" :label="item.label" :value="item.value"> </el-option> </el-select><el-button class="p-l-20" type="text" @click="newClassify">新建分类</el-button>
</el-form-item> </el-form-item>
<el-form-item label="发送对象" prop="receiveType"> <el-form-item label="发送对象" prop="receiveType">
<el-radio-group v-model="ruleFormData.receiveType"> <el-radio-group v-model="ruleFormData.receiveType">
...@@ -59,6 +59,12 @@ ...@@ -59,6 +59,12 @@
<div slot="tip" class="el-upload__tip">支持.doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx类型文件,单个附件大小不超过5M,最多添加3个附件</div> <div slot="tip" class="el-upload__tip">支持.doc,.docx,.pdf,.xls,.xlsx,.ppt,.pptx类型文件,单个附件大小不超过5M,最多添加3个附件</div>
</el-upload> </el-upload>
</el-form-item> </el-form-item>
<el-form-item label="是否置顶" prop="pageTop">
<el-radio-group v-model="ruleFormData.pageTop">
<el-radio label="0"></el-radio>
<el-radio label="1"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item> <el-form-item>
<div class="btn-wrap"> <div class="btn-wrap">
<el-button @click="cancelSend" plain>取消</el-button> <el-button @click="cancelSend" plain>取消</el-button>
...@@ -121,12 +127,13 @@ export default { ...@@ -121,12 +127,13 @@ export default {
userId: JSON.parse(localStorage.getItem('userInfo')).userId, userId: JSON.parse(localStorage.getItem('userInfo')).userId,
ruleFormData: { ruleFormData: {
receiveType: '0', receiveType: '0',
classify: '', labelId: '',
title: '', title: '',
img: '', img: '',
content: '', content: '',
sendType: '0', sendType: '0',
attachment: [] attachment: [],
pageTop: '0'
}, },
rules: { rules: {
receiveType: [{ required: true, message: '请选择发送对象', trigger: 'change' }], receiveType: [{ required: true, message: '请选择发送对象', trigger: 'change' }],
...@@ -170,16 +177,26 @@ export default { ...@@ -170,16 +177,26 @@ export default {
* 确定新增分类 * 确定新增分类
* *
*/ */
hideDialog(name) { hideDialog(name, id) {
const that = this; const that = this;
that.showDialog = false; if (name == '') {
that.classifyName = ''; that.showDialog = false;
let para = {}; that.classifyName = '';
getRequest('/haoban-app-tel-task-web/', para) return false;
}
let para = {
enterpriseId: that.enterpriseId,
brandId: that.activeBrand,
labelName: name
};
getRequest('/haoban-app-announcement-web/create-label', para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('创建成功', 'success'); showMsg.showmsg('新建成功', 'success');
that.showDialog = false;
that.classifyName = '';
that.getClassifyData();
return; return;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -402,6 +419,7 @@ export default { ...@@ -402,6 +419,7 @@ export default {
groupIds: groupIds.join(','), groupIds: groupIds.join(','),
storeIds: storeIds.join(','), storeIds: storeIds.join(','),
receiveType: that.ruleFormData.receiveType, receiveType: that.ruleFormData.receiveType,
labelId: that.ruleFormData.labelId,
title: that.ruleFormData.title, title: that.ruleFormData.title,
imgUrl: that.ruleFormData.img, imgUrl: that.ruleFormData.img,
content: that.ruleFormData.content, content: that.ruleFormData.content,
...@@ -410,6 +428,7 @@ export default { ...@@ -410,6 +428,7 @@ export default {
brandId: that.brandId, brandId: that.brandId,
userId: that.userId, userId: that.userId,
enterpriseId: that.enterpriseId, enterpriseId: that.enterpriseId,
pageTop: that.ruleFormData.pageTop,
attachment: that.fileDatas.length? JSON.stringify(that.fileDatas.map(item => item.response.result)): '' attachment: that.fileDatas.length? JSON.stringify(that.fileDatas.map(item => item.response.result)): ''
}; };
if (this.saveDataBool) { if (this.saveDataBool) {
...@@ -427,7 +446,29 @@ export default { ...@@ -427,7 +446,29 @@ export default {
return false; return false;
} }
}); });
} },
/**
* 获取公告分类列表
*/
getClassifyData() {
const that = this;
let para = {
brandId: that.activeBrand
};
getRequest('/haoban-app-announcement-web/list-label', para)
.then(res => {
let data = res.data;
if (data.errorCode == 1) {
that.classifyList = data.result || [];
}
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
},
}, },
watch: { watch: {
brandId: function(newData, oldData) { brandId: function(newData, oldData) {
......
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('建成功', 'success'); showMsg.showmsg('建成功', 'success');
that.classifyList.push({ that.classifyList.push({
labelId: resData.result, labelId: resData.result,
labelName: labelName, labelName: labelName,
...@@ -378,6 +378,10 @@ export default { ...@@ -378,6 +378,10 @@ export default {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
showMsg.showmsg('重命名成功', 'success'); showMsg.showmsg('重命名成功', 'success');
that.showDialog = false;
that.classifyName = '';
that.classifyId = '';
that.classifyIndex = '';
that.classifyList[that.classifyIndex].labelName = labelName; that.classifyList[that.classifyIndex].labelName = labelName;
return; return;
} }
......
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