Commit ea445e57 by 无尘

feat: 增加素材上传

parent 85561373
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.2c854c167a23df830256bee305bdc976.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.8a8723a47c4d3480575d.js></script><script type=text/javascript src=./static/js/vendor.329cb88147b5a2d6f4c1.js></script><script type=text/javascript src=./static/js/app.f2b14b83772d5ad945c3.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.378bcf6b55c55936aacb2403724ea8d3.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.3f15aabf6456f5a51a1c.js></script><script type=text/javascript src=./static/js/vendor.329cb88147b5a2d6f4c1.js></script><script type=text/javascript src=./static/js/app.7796b5a13d0460a03675.js></script></body></html>
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(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={},f={99:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[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:"0c92ca6a177308e38600",1:"fe9dec1f31b04053fd7e",2:"91fc9939f46ed2248be2",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"2784801807ecd1469c27",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"9a6eed75cb81e8530491",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"23a459a61f756e5959c5",20:"1b54392e7af3a5224220",21:"6a4f413720f3f3c7b17c",22:"46bb0abdfbcd793fb3ee",23:"6586d8dbbc88ff9e7868",24:"ae973093bb8dd3a5b495",25:"590178a61c722c371e91",26:"2ac7a379669e2cb1bfb1",27:"156e3fe5ec1cf6bc1302",28:"4967b74d6bbb9e6cc702",29:"28ccae4d06ea6b595ca9",30:"fd04453caecf77de05a2",31:"320f1a0aa86ca13e4306",32:"5e1383bc5cac66f2999a",33:"61635e97ee430e22a19b",34:"50c83d54c676bdfa7dd4",35:"ac9cb6aa5dc9b6fc2b6f",36:"7674738e3017ed5fcc1c",37:"e223c4067dc6c2fd38ab",38:"eaa34f0904ef970709a7",39:"f4a6c4a1b3881e31a92c",40:"655877fc2e44168b8c1c",41:"89560c4643dfa5754a23",42:"5c09b508b0a58d47c09c",43:"7c7427290d655f79f005",44:"8c27aaae1582618d2ab0",45:"235e93346fe2b95897cb",46:"cc4d205e90682c5b93c0",47:"26a5ded2bad54156ad19",48:"67316f92922aa44a4689",49:"a8a17bd4a62cf533f17e",50:"1892aba5601ac79c8a77",51:"3b64bf9b851ae6715634",52:"600a530c5d3ecac3db2c",53:"f93433cfdb48cb98bb84",54:"e9011eb58ee8fb0165ad",55:"3aff1a161f4b3876181c",56:"bd1d8ffdf7749d7d6e7a",57:"77278d614a1fc68d5681",58:"f8d434e5d4758ae8626c",59:"b3e479223a01f87d8337",60:"c05387a974f25645ee7b",61:"b93d3f6b5ec653e5c4c6",62:"12ee3896f6851cd2cb4c",63:"ab6bd438d590a7aa1e85",64:"8f377047299728a7c625",65:"b9df0942284c0dbfdc27",66:"5433d9783d667005811b",67:"0f6d447133b1acbc532b",68:"7830c5679af6f8b2cb9d",69:"61cee4c7c7a26b880f84",70:"6f28138a852985cde574",71:"4cf18546d28a67295cf8",72:"fe9d1bbd12f4274225e1",73:"88e613d232847cb90be2",74:"ab208d1118bb1a9aa540",75:"b14512ee0a369c73d41f",76:"6143595e7025663becbc",77:"98f5d41a602eec297e70",78:"bd75ce697ff5a3211d53",79:"7ede10f0ba3b16700fc9",80:"4d61def8e6694657ea56",81:"e7670320995684cfa512",82:"4194ad3d53ad440bfb80",83:"44fd11f0fbdad5fdfe01",84:"1823d3e667816d0f2259",85:"779373ab4595fb2a48f9",86:"72fd057b1111acefbe95",87:"f616874d7e40fcf1caa1",88:"5e52821a3ece9ccdeb3f",89:"85a2bbd9554df0f81300",90:"6d7f539733951e52b9e1",91:"44545722d2e68c8f5b69",92:"b5b46350bd10a723b0b2",93:"0cf2ca11a7d3aa4b1ef3",94:"4eb1775c97e0c0097641",95:"d14fcdfe817ed45c25db",98:"4afc4e966f02914d8565"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={99:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"0c92ca6a177308e38600",1:"fe9dec1f31b04053fd7e",2:"91fc9939f46ed2248be2",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"2784801807ecd1469c27",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"9a6eed75cb81e8530491",14:"906484db655680062129",15:"dc1ca8ebc6cc47b86e2d",16:"2ee1cd09e02cae2867cf",17:"78c6d10043e3245cbd2a",18:"4b5e4ee96f2607285a8a",19:"0708fe2eb673bedaa970",20:"1b54392e7af3a5224220",21:"6a4f413720f3f3c7b17c",22:"1c7008ee04fe6b121232",23:"6586d8dbbc88ff9e7868",24:"ae973093bb8dd3a5b495",25:"0af7295ba7b1c6c894de",26:"13962bf105070352b110",27:"57f367dff6dc03b81aee",28:"4967b74d6bbb9e6cc702",29:"28ccae4d06ea6b595ca9",30:"fd04453caecf77de05a2",31:"320f1a0aa86ca13e4306",32:"5e1383bc5cac66f2999a",33:"61635e97ee430e22a19b",34:"50c83d54c676bdfa7dd4",35:"ac9cb6aa5dc9b6fc2b6f",36:"7674738e3017ed5fcc1c",37:"e223c4067dc6c2fd38ab",38:"eaa34f0904ef970709a7",39:"f4a6c4a1b3881e31a92c",40:"655877fc2e44168b8c1c",41:"89560c4643dfa5754a23",42:"5c09b508b0a58d47c09c",43:"7c7427290d655f79f005",44:"8c27aaae1582618d2ab0",45:"235e93346fe2b95897cb",46:"cc4d205e90682c5b93c0",47:"26a5ded2bad54156ad19",48:"67316f92922aa44a4689",49:"a8a17bd4a62cf533f17e",50:"1892aba5601ac79c8a77",51:"3b64bf9b851ae6715634",52:"600a530c5d3ecac3db2c",53:"f93433cfdb48cb98bb84",54:"e9011eb58ee8fb0165ad",55:"3aff1a161f4b3876181c",56:"bd1d8ffdf7749d7d6e7a",57:"77278d614a1fc68d5681",58:"f8d434e5d4758ae8626c",59:"b3e479223a01f87d8337",60:"c05387a974f25645ee7b",61:"b93d3f6b5ec653e5c4c6",62:"12ee3896f6851cd2cb4c",63:"ab6bd438d590a7aa1e85",64:"8f377047299728a7c625",65:"b9df0942284c0dbfdc27",66:"5433d9783d667005811b",67:"0f6d447133b1acbc532b",68:"7830c5679af6f8b2cb9d",69:"61cee4c7c7a26b880f84",70:"6f28138a852985cde574",71:"4cf18546d28a67295cf8",72:"fe9d1bbd12f4274225e1",73:"88e613d232847cb90be2",74:"ab208d1118bb1a9aa540",75:"b14512ee0a369c73d41f",76:"6143595e7025663becbc",77:"98f5d41a602eec297e70",78:"bd75ce697ff5a3211d53",79:"7ede10f0ba3b16700fc9",80:"4d61def8e6694657ea56",81:"e7670320995684cfa512",82:"4194ad3d53ad440bfb80",83:"44fd11f0fbdad5fdfe01",84:"1823d3e667816d0f2259",85:"779373ab4595fb2a48f9",86:"72fd057b1111acefbe95",87:"f616874d7e40fcf1caa1",88:"5e52821a3ece9ccdeb3f",89:"85a2bbd9554df0f81300",90:"6d7f539733951e52b9e1",91:"44545722d2e68c8f5b69",92:"b5b46350bd10a723b0b2",93:"0cf2ca11a7d3aa4b1ef3",94:"4eb1775c97e0c0097641",95:"d14fcdfe817ed45c25db",98:"4afc4e966f02914d8565"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-12-06 13:44:22 * @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:31:42 * @LastEditTime: 2019-12-10 11:45:40
--> -->
<!-- <!--
多个上传组件 多个上传组件
<mult-upload-image <mult-upload-image
:imageList="imageList"> :imageList="imageList"
@deleteImage="deleteImage">
</mult-upload-image> </mult-upload-image>
--> -->
<template> <template>
...@@ -36,7 +37,7 @@ ...@@ -36,7 +37,7 @@
</div> </div>
<!-- 图片上传部分 --> <!-- 图片上传部分 -->
<div :class="['img-upload', imageList.length >= 6 ? 'm-t-8' : '']" v-if="imageList && imageList.length < maxImageLength"> <div :class="['img-upload', imageList.length >= 6 ? 'm-t-8' : '']" v-if="imageList && imageList.length < maxImageLength">
<el-upload multiple class="loader" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp" :action="uploadUrl()" list-type="picture-card" :on-change="uploadOnChange" :before-upload="beforeAvatarUpload" :on-success="uploadOnSuccess" :on-error="uploadOnError" :on-progress="uploadOnProgress"> <el-upload multiple class="loader" accept="image/jpg,image/jpeg,image/png,image/gif,image/bmp" :action="uploadUrl()" list-type="picture-card" :limit="9" :on-exceed="handleExceed" :on-change="uploadOnChange" :before-upload="beforeAvatarUpload" :on-success="uploadOnSuccess" :on-error="uploadOnError" :on-progress="uploadOnProgress" :file-list="fileDatas">
<i class="el-icon-plus gic-upload-btn"></i> <i class="el-icon-plus gic-upload-btn"></i>
</el-upload> </el-upload>
</div> </div>
...@@ -103,6 +104,7 @@ export default { ...@@ -103,6 +104,7 @@ export default {
data() { data() {
return { return {
dragImageList: this.imageList, // 传递的图片数据 dragImageList: this.imageList, // 传递的图片数据
fileDatas: [],
initialImg: 0, // 初始索引 initialImg: 0, // 初始索引
progress: 0, // 上传进度 progress: 0, // 上传进度
pass: null, // 是否上传成功 pass: null, // 是否上传成功
...@@ -144,16 +146,16 @@ export default { ...@@ -144,16 +146,16 @@ export default {
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
const that = this; const that = this;
// const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/jpg'; // const isJPG = file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/jpg';
const isLt2M = file.size / 1024 / 1024 < 5; const isLt5M = file.size / 1024 / 1024 < 5;
// if (!isJPG) { // if (!isJPG) {
// that.$message.error('上传图片只能是 JPG/JPEG 格式!'); // that.$message.error('上传图片只能是 JPG/JPEG 格式!');
// } // }
if (!isLt2M) { if (!isLt5M) {
that.$message.error('上传图片大小不能超过 5MB!'); that.$message.error('上传图片大小不能超过 5MB!');
} }
return ( return (
isLt2M && isLt5M &&
new Promise(function(resolve, reject) { new Promise(function(resolve, reject) {
let reader = new FileReader(); let reader = new FileReader();
reader.onload = function(event) { reader.onload = function(event) {
...@@ -190,7 +192,7 @@ export default { ...@@ -190,7 +192,7 @@ export default {
that.pass = true; that.pass = true;
/* eslint-disable */ /* eslint-disable */
console.log(res, file); console.log(res, file);
if (res.errorCode == 0) { if (res.errorCode == 1) {
that.$message.success('上传成功'); that.$message.success('上传成功');
that.$emit('uploadOnSuccess', { res: res, file: file }); that.$emit('uploadOnSuccess', { res: res, file: file });
} else { } else {
...@@ -199,17 +201,24 @@ export default { ...@@ -199,17 +201,24 @@ export default {
}, },
// 开始上传 // 开始上传
uploadOnProgress(e, file) { uploadOnProgress(e, file) {
const that = this;
if (e && e.percent) { if (e && e.percent) {
this.progress = Math.floor(e.percent); that.progress = Math.floor(e.percent);
} }
}, },
uploadOnChange(file) { uploadOnChange(file, fileList) {
const that = this;
if (file.status === 'ready') { if (file.status === 'ready') {
this.pass = null; that.pass = null;
this.progress = 0; that.progress = 0;
} else if (file.status === 'fail') { } else if (file.status === 'fail') {
this.$message.error('图片上传失败,请重试!'); that.$message.error('图片上传失败,请重试!');
} }
/* eslint-disable */
console.log(fileList, that.fileDatas)
},
handleExceed(files, fileList) {
this.$message.warning(`当前限制选择 9 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
}, },
uploadOnError() { uploadOnError() {
this.$message.error('图片上传失败,请重试!'); this.$message.error('图片上传失败,请重试!');
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-09-18 15:25:12 * @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-09 15:20:21 * @LastEditTime: 2019-12-10 10:53:09
--> -->
<!-- <!--
...@@ -50,7 +50,7 @@ components: { ...@@ -50,7 +50,7 @@ components: {
<div>{{ scope.row.createTime | timeStampToHms }}</div> <div>{{ scope.row.createTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" width="219">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button> <el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button>
<el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button> <el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button>
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
toSetTop(materialId, topFlag) { toSetTop(materialId, topFlag) {
const that = this; const that = this;
that that
.$confirm(topFlag == 0 ? '置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能' : '确定「取消置顶」该条素材吗?', '提示', { .$confirm(topFlag == 0 ? '置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗' : '确定「取消置顶」该条素材吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
showMsg.showmsg('取消置顶成功', 'success'); showMsg.showmsg('取消置顶成功', 'success');
} }
that.currentPage = 1; that.currentPage = 1;
that.getNoticeList(); that.getTableList();
} }
}) })
.catch(function(error) { .catch(function(error) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-09-18 15:25:12 * @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-10 09:36:00 * @LastEditTime: 2019-12-10 10:53:02
--> -->
<!-- <!--
...@@ -57,7 +57,7 @@ components: { ...@@ -57,7 +57,7 @@ components: {
<div>{{ scope.row.createTime | timeStampToHms }}</div> <div>{{ scope.row.createTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" width="219">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button> <el-button @click="toSetTop(scope.row.materialId, scope.row.topFlag)" type="text">{{ scope.row.topFlag == 1 ? '取消置顶' : '置顶' }}</el-button>
<el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button> <el-button type="text" size="small" @click="showDetail(scope.$index, scope.row)">查看</el-button>
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
toSetTop(materialId, topFlag) { toSetTop(materialId, topFlag) {
const that = this; const that = this;
that that
.$confirm(topFlag == 0 ? '置顶次数超过限制次数,可关闭其他置顶素材再开启置顶置顶功能' : '确定「取消置顶」该条素材吗?', '提示', { .$confirm(topFlag == 0 ? '置顶后,该素材将出现在手机好办营销素材顶部,确认置顶该素材吗' : '确定「取消置顶」该条素材吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
...@@ -238,7 +238,7 @@ export default { ...@@ -238,7 +238,7 @@ export default {
showMsg.showmsg('取消置顶成功', 'success'); showMsg.showmsg('取消置顶成功', 'success');
} }
that.currentPage = 1; that.currentPage = 1;
that.getNoticeList(); that.getTableList();
} }
}) })
.catch(function(error) { .catch(function(error) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-09-18 15:25:12 * @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:28:46 * @LastEditTime: 2019-12-10 10:54:15
--> -->
<!-- <!--
...@@ -192,8 +192,8 @@ export default { ...@@ -192,8 +192,8 @@ export default {
topFlag: false // 置顶 topFlag: false // 置顶
}, },
rules: { rules: {
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'change' }], materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'blur' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'change' }], materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'blur' }],
rangeList: [{ validator: validRange, trigger: 'change' }] rangeList: [{ validator: validRange, trigger: 'change' }]
}, },
// 预览 // 预览
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-09-18 15:25:12 * @Date: 2019-09-18 15:25:12
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2019-12-10 10:26:49 * @LastEditTime: 2019-12-10 10:54:06
--> -->
<!-- <!--
...@@ -216,8 +216,8 @@ export default { ...@@ -216,8 +216,8 @@ export default {
}, },
rules: { rules: {
imageTextWechatId: [{ required: true, message: '请选择图文', trigger: 'change' }], imageTextWechatId: [{ required: true, message: '请选择图文', trigger: 'change' }],
materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'change' }], materialTitle: [{ required: true, message: '请请输入素材标题', trigger: 'blur' }],
materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'change' }], materialContent: [{ required: true, message: '请请输入发送内容', trigger: 'blur' }],
rangeList: [{ validator: validRange, trigger: 'change' }] rangeList: [{ validator: validRange, trigger: 'change' }]
}, },
// 预览 // 预览
......
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