src/components/Image/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/Image/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/components/share/sourcecomponent/inputform/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/components/share/sourcecomponent/inputform/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/picturecontroller/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/menu/picturecontroller/index.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/billprint/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/login/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/sso/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/Image/index.jsx
File was deleted src/components/Image/index.scss
File was deleted src/index.js
@@ -122,6 +122,10 @@ GLOB.systemType = '' GLOB.upStatus = config.updateStatus + '' !== 'false' if (config.style_appkey) { GLOB.style_appkey = config.style_appkey } // GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars' GLOB.mainSystemApi = 'https://sso.mk9h.cn/cloud/webapi/dostars' src/menu/components/share/sourcecomponent/inputform/index.jsx
@@ -13,7 +13,6 @@ const { Search } = Input const FileUpload = asyncComponent(() => import('@/tabviews/zshare/fileupload')) const Video = asyncComponent(() => import('@/menu/picturecontroller/video')) const Image = asyncComponent(() => import('@/components/Image')) const EditForm = asyncComponent(() => import('@/menu/picturecontroller/editform')) class PopSource extends Component { @@ -24,6 +23,7 @@ state = { url: '', list: [], icons: [], searchKey: '', selectId: '', editvisible: false, @@ -84,7 +84,36 @@ } init = (originlist) => { this.setState({list: originlist, url: '', searchKey: ''}) const { type } = this.props this.setState({list: originlist, icons: window.GLOB.sIcons || [], url: '', searchKey: ''}) if (type !== 'video' && !window.GLOB.sIcons && sessionStorage.getItem('getIcons') !== 'fail') { fetch(window.GLOB.baseurl + 'Content/static/data.json') .then(response => response.json()) .catch(() => { sessionStorage.setItem('getIcons', 'fail') }) .then(res => { if (res && res.list) { let icons = [] res.list.forEach(item => { if (!item.url) return icons.push({ linkurl: window.GLOB.baseurl + 'Content/static/' + item.url, remark: item.remark || '', id: Utils.getuuid() }) }) window.GLOB.sIcons = icons this.setState({icons}) } else { sessionStorage.setItem('getIcons', 'fail') } }) } } changeValue = (e) => { @@ -96,8 +125,15 @@ } selectItem = (item) => { const { type } = this.props const { icons } = this.state if (item.linkurl) { if (type !== 'video' && icons.findIndex(n => n.id === item.id) > -1) { this.setState({url: item.linkurl.replace(window.GLOB.baseurl, '@mywebsite@/'), selectId: item.id}) } else { this.setState({url: item.linkurl, selectId: item.id}) } } } @@ -149,7 +185,7 @@ render () { const { type, keyword } = this.props const { list, url, searchKey, selectId, editvisible, card } = this.state const { list, icons, url, searchKey, selectId, editvisible, card } = this.state if (keyword === 'input') { return <div className="mk-source-pop-wrap"> @@ -171,9 +207,11 @@ } let pagelist = list let iconlist = icons if (searchKey) { pagelist = list.filter(item => item.remark && item.remark.indexOf(searchKey) > -1) iconlist = icons.filter(item => item.remark && item.remark.indexOf(searchKey) > -1) } return ( @@ -187,12 +225,22 @@ <Col span={3} key={item.id}> <div className={'image-video-box' + (selectId === item.id ? ' active' : '')} onClick={() => this.selectItem(item)}> <div className="image-video-box-body"> {type !== 'video' ? <Image url={item.linkurl} /> : <Video value={item.linkurl} />} {type !== 'video' ? <img src={item.linkurl} alt=""/> : <Video value={item.linkurl} />} </div> </div> </Col> ))} {!pagelist.length ? <Empty description={null}/> : null} {iconlist.length ? <div className="static-source">静态资源</div> : null} {iconlist.map(item => ( <Col span={3} key={item.id}> <div className={'image-video-box' + (selectId === item.id ? ' active' : '')} onClick={() => this.selectItem(item)}> <div className="image-video-box-body"> <img src={item.linkurl} alt=""/> </div> </div> </Col> ))} {!pagelist.length && !iconlist.length ? <Empty description={null}/> : null} </Row> <Modal title="新建" src/menu/components/share/sourcecomponent/inputform/index.scss
@@ -20,6 +20,12 @@ .video-react-control-bar { display: none; } img { width: 100%; height: 100%; object-fit: contain; object-position: center; } } .image-video-box-body::after { content: ''; @@ -60,6 +66,14 @@ min-height: 300px; max-height: calc(100vh - 250px); clear: both; .static-source { clear: both; padding-left: 10px; color: rgba(0, 0, 0, 0.85); border-bottom: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: 10px; } } } .picture-edit-model { src/menu/picturecontroller/index.jsx
@@ -16,7 +16,6 @@ const EditForm = asyncComponent(() => import('./editform')) const Video = asyncComponent(() => import('./video')) const Image = asyncComponent(() => import('@/components/Image')) class SourceController extends Component { state = { @@ -295,7 +294,7 @@ <Col span={4} key={item.id}> <div className="image-video-box"> <div className="image-video-box-body"> <Image url={item.linkurl.replace(/@mywebsite@\//ig, window.GLOB.baseurl)} /> <img src={item.linkurl.replace(/@mywebsite@\//ig, window.GLOB.baseurl)} alt=""/> </div> <div className="image-video-control"> <CopyOutlined onClick={() => this.copySource(item)}/> src/menu/picturecontroller/index.scss
@@ -23,6 +23,12 @@ .video-react-control-bar { display: none; } img { width: 100%; height: 100%; object-fit: contain; object-position: center; } } .image-video-control { position: absolute; src/views/billprint/index.jsx
@@ -190,6 +190,10 @@ LText: `select '${window.GLOB.appkey}'`, } if (window.GLOB.style_appkey) { _param.style_appkey = window.GLOB.style_appkey } _param.userid = result.UserID _param.LoginUID = result.LoginUID _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') src/views/login/index.jsx
@@ -558,6 +558,10 @@ appkey: appkey } if (window.GLOB.style_appkey) { _param.style_appkey = window.GLOB.style_appkey } _param.userid = result.UserID _param.LoginUID = result.LoginUID _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') src/views/sso/index.jsx
@@ -57,6 +57,10 @@ LText: `select '${window.GLOB.appkey}'`, } if (window.GLOB.style_appkey) { _param.style_appkey = window.GLOB.style_appkey } _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp)