Commit ceb1ec23 by wang

update

parents aa8c15b5 2c5c7250
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>Vue Element Admin</title><link href=/static/css/chunk-libs.5cf311f0.css rel=stylesheet><link href=/static/css/app.1b85534f.css rel=stylesheet></head><body><div id=app></div><script src=/static/js/chunk-elementUI.d1ab7f65.js></script><script src=/static/js/chunk-libs.a49098e1.js></script><script>(function(e){function n(n){for(var r,c,a=n[0],i=n[1],d=n[2],f=0,h=[];f<a.length;f++)c=a[f],u[c]&&h.push(u[c][0]),u[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);l&&l(n);while(h.length)h.shift()();return o.push.apply(o,d||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var a=t[c];0!==u[a]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={runtime:0},u={runtime:0},o=[];function a(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-0575145a":"59e0ff0b","chunk-05a99c67":"be1a1e89","chunk-19593038":"e94b4705","chunk-2162b876":"65a3d33f","chunk-2d2105d3":"7106a610","chunk-2d230fe7":"446e67d8","chunk-4ed577de":"4aed5d59","chunk-556562e8":"04d70197","chunk-667d2d85":"2d4f045d","chunk-71ee0ac8":"de063288","chunk-bf0cb8b0":"7e5e9a4e"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-0575145a":1,"chunk-05a99c67":1,"chunk-19593038":1,"chunk-2162b876":1,"chunk-4ed577de":1,"chunk-556562e8":1,"chunk-667d2d85":1,"chunk-71ee0ac8":1,"chunk-bf0cb8b0":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-0575145a":"40f76b5c","chunk-05a99c67":"d0296c60","chunk-19593038":"40f76b5c","chunk-2162b876":"40f76b5c","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-4ed577de":"40f76b5c","chunk-556562e8":"b043920c","chunk-667d2d85":"d1c64e6f","chunk-71ee0ac8":"d1151f43","chunk-bf0cb8b0":"40f76b5c"}[e]+".css",u=i.p+r,o=document.getElementsByTagName("link"),a=0;a<o.length;a++){var d=o[a],f=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===r||f===u))return n()}var h=document.getElementsByTagName("style");for(a=0;a<h.length;a++){d=h[a],f=d.getAttribute("data-href");if(f===r||f===u)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var r=n&&n.target&&n.target.src||u,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.request=r,delete c[e],l.parentNode.removeChild(l),t(o)},l.href=u;var s=document.getElementsByTagName("head")[0];s.appendChild(l)})).then((function(){c[e]=0})));var r=u[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=u[e]=[n,t]}));n.push(r[2]=o);var d,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=a(e),d=function(n){f.onerror=f.onload=null,clearTimeout(h);var t=u[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");o.type=r,o.request=c,t[1](o)}u[e]=void 0}};var h=setTimeout((function(){d({type:"timeout",target:f})}),12e4);f.onerror=f.onload=d,document.head.appendChild(f)}return Promise.all(n)},i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],f=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var l=f;t()})([]);</script><script src=/static/js/app.c8396009.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=/favicon.ico><title>Vue Element Admin</title><link href=/static/css/chunk-libs.5cf311f0.css rel=stylesheet><link href=/static/css/app.1b85534f.css rel=stylesheet></head><body><div id=app></div><script src=/static/js/chunk-elementUI.d1ab7f65.js></script><script src=/static/js/chunk-libs.a49098e1.js></script><script>(function(e){function n(n){for(var r,c,a=n[0],i=n[1],d=n[2],f=0,h=[];f<a.length;f++)c=a[f],u[c]&&h.push(u[c][0]),u[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);l&&l(n);while(h.length)h.shift()();return o.push.apply(o,d||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var a=t[c];0!==u[a]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={runtime:0},u={runtime:0},o=[];function a(e){return i.p+"static/js/"+({}[e]||e)+"."+{"chunk-0575145a":"59e0ff0b","chunk-05a99c67":"be1a1e89","chunk-19593038":"e94b4705","chunk-1cc1e7b2":"cad4e853","chunk-2162b876":"65a3d33f","chunk-2d2105d3":"7106a610","chunk-2d230fe7":"446e67d8","chunk-4ed577de":"4aed5d59","chunk-556562e8":"04d70197","chunk-667d2d85":"2d4f045d","chunk-bf0cb8b0":"7e5e9a4e"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-0575145a":1,"chunk-05a99c67":1,"chunk-19593038":1,"chunk-1cc1e7b2":1,"chunk-2162b876":1,"chunk-4ed577de":1,"chunk-556562e8":1,"chunk-667d2d85":1,"chunk-bf0cb8b0":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-0575145a":"40f76b5c","chunk-05a99c67":"d0296c60","chunk-19593038":"40f76b5c","chunk-1cc1e7b2":"d3c6c5a3","chunk-2162b876":"40f76b5c","chunk-2d2105d3":"31d6cfe0","chunk-2d230fe7":"31d6cfe0","chunk-4ed577de":"40f76b5c","chunk-556562e8":"b043920c","chunk-667d2d85":"d1c64e6f","chunk-bf0cb8b0":"40f76b5c"}[e]+".css",u=i.p+r,o=document.getElementsByTagName("link"),a=0;a<o.length;a++){var d=o[a],f=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===r||f===u))return n()}var h=document.getElementsByTagName("style");for(a=0;a<h.length;a++){d=h[a],f=d.getAttribute("data-href");if(f===r||f===u)return n()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=n,l.onerror=function(n){var r=n&&n.target&&n.target.src||u,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.request=r,delete c[e],l.parentNode.removeChild(l),t(o)},l.href=u;var s=document.getElementsByTagName("head")[0];s.appendChild(l)})).then((function(){c[e]=0})));var r=u[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=u[e]=[n,t]}));n.push(r[2]=o);var d,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=a(e),d=function(n){f.onerror=f.onload=null,clearTimeout(h);var t=u[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src,o=new Error("Loading chunk "+e+" failed.\n("+r+": "+c+")");o.type=r,o.request=c,t[1](o)}u[e]=void 0}};var h=setTimeout((function(){d({type:"timeout",target:f})}),12e4);f.onerror=f.onload=d,document.head.appendChild(f)}return Promise.all(n)},i.m=e,i.c=r,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="/",i.oe=function(e){throw console.error(e),e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],f=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var l=f;t()})([]);</script><script src=/static/js/app.1757914b.js></script></body></html>
\ No newline at end of file
.pagination-container[data-v-6af373ef]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-6af373ef]{display:none}.contentInput[data-v-4ee43c7a]{min-height:200px}
\ No newline at end of file
.pagination-container[data-v-6af373ef]{background:#fff;padding:32px 16px}.pagination-container.hidden[data-v-6af373ef]{display:none}.contentInput[data-v-29af2088]{min-height:200px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,20 +2,20 @@
<div class="app-container">
<div class="filter-container">
<el-input v-model="listQuery.title" placeholder="名称" style="width: 200px;" class="filter-item" @keyup.enter.native="handleFilter" />
<!-- <el-select-->
<!-- v-model="listQuery.hour"-->
<!-- placeholder="请选择时段"-->
<!-- class="width-full filter-item"-->
<!-- filterable-->
<!-- clearable-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in hourList"-->
<!-- :key="item.value"-->
<!-- :label="item.value"-->
<!-- :value="item.value"-->
<!-- />-->
<!-- </el-select>-->
<!-- <el-select-->
<!-- v-model="listQuery.hour"-->
<!-- placeholder="请选择时段"-->
<!-- class="width-full filter-item"-->
<!-- filterable-->
<!-- clearable-->
<!-- >-->
<!-- <el-option-->
<!-- v-for="item in hourList"-->
<!-- :key="item.value"-->
<!-- :label="item.value"-->
<!-- :value="item.value"-->
<!-- />-->
<!-- </el-select>-->
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">
搜索
</el-button>
......@@ -125,10 +125,10 @@
</template>
<script>
import { getGroupList, importGroupCoupon, updateGroup, createGroup, deleteGood } from '@/api/groupGoods'
import Pagination from '@/components/Pagination'
import { getGroupList, importGroupCoupon, updateGroup, createGroup, deleteGood } from '@/api/groupGoods'
import Pagination from '@/components/Pagination'
export default {
export default {
name: 'Accounts',
components: { Pagination },
filters: {
......@@ -144,7 +144,7 @@
page: 1,
limit: 15,
title: '',
hour: [],
hour: []
},
hourList: [
{ value: 0 },
......@@ -169,7 +169,7 @@
{ value: 20 },
{ value: 21 },
{ value: 22 },
{ value: 23 },
{ value: 23 }
],
form: {
id: 0,
......@@ -187,7 +187,7 @@
types: [
'image/jpeg',
'image/jpg',
'image/png',
'image/png'
],
title: '新建'
}
......@@ -217,12 +217,12 @@
})
},
updateConfirm() {
if (this.title == '新建') {
if (this.title === '新建') {
createGroup(this.form).then(res => {
this.$message({
type: 'success',
message: '新建成功'
});
})
this.dialogTableVisible = false
this.fetchData()
})
......@@ -231,17 +231,19 @@
this.$message({
type: 'success',
message: '保存成功'
});
})
this.dialogTableVisible = false
this.fetchData()
})
}
},
createGroupGood() {
this.title = '新建'
this.form.id = 0
this.form.img_url = ''
this.form.content = ''
this.form.title = ''
this.form.hour = ''
this.fileList = []
this.dialogTableVisible = true
},
......@@ -268,19 +270,19 @@
inputPattern: /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,
inputErrorMessage: '格式不正确'
}).then(({ value }) => {
importGroupCoupon({url: value}).then(res => {
importGroupCoupon({ url: value }).then(res => {
this.$message({
type: 'info',
message: '更新成功'
});
})
this.fetchData()
})
}).catch(() => {
this.$message({
type: 'info',
message: '取消输入'
});
});
})
})
},
updateGood(obj) {
this.title = '编辑'
......@@ -290,6 +292,7 @@
this.form.title = obj.title
this.form.hour = obj.hour
const params = obj.img_url.split('/')
this.fileList = []
this.fileList[0] = { name: params.pop(), url: obj.img_url }
this.dialogTableVisible = true
},
......@@ -309,7 +312,7 @@
this.fetchData()
}
}
}
}
</script>
<style scoped>
......
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 sign in to comment