提交 471efb45 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [TrainSys,网页端]

上级 8e7663e7
...@@ -997,6 +997,12 @@ ...@@ -997,6 +997,12 @@
"name" : "UPDATE" "name" : "UPDATE"
} ], } ],
"getAllPSModelDatas" : [ { "getAllPSModelDatas" : [ {
"codeName" : "ButtonGridView",
"logicName" : "按钮样式",
"name" : "按钮样式",
"realModelSubType" : "DEGRIDVIEW",
"realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "MPickupView", "codeName" : "MPickupView",
"logicName" : "测试AAA实体数据多项选择视图", "logicName" : "测试AAA实体数据多项选择视图",
"modelTag" : "MPICKUPVIEW", "modelTag" : "MPICKUPVIEW",
...@@ -1057,6 +1063,13 @@ ...@@ -1057,6 +1063,13 @@
"name" : "new5", "name" : "new5",
"realModelSubType" : "EDITFORM", "realModelSubType" : "EDITFORM",
"realModelType" : "PSDEFORM" "realModelType" : "PSDEFORM"
}, {
"codeName" : "buttonStyle",
"logicName" : "按钮样式",
"modelTag2" : "0",
"name" : "按钮样式",
"realModelSubType" : "EDITFORM",
"realModelType" : "PSDEFORM"
} ], } ],
"codeName" : "Test_aaa", "codeName" : "Test_aaa",
"dEType" : 1, "dEType" : 1,
......
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "文本", "caption" : "文本",
"contentType" : "HTML", "contentType" : "HTML",
"htmlContent" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<br />\n<div>&lt;/head&gt;</div>\n<br /><br /><br /><br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<br /><br /><br />\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<div>&lt;/html&gt;</div>\n</div>", "htmlContent" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<br />\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<div>&lt;/head&gt;</div>\n<br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick2()\"&gt;log&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick2() {</div>\n<div>&nbsp; &nbsp; &nbsp; console.log('打印${data.bookname}', `测试内容${data.bookname}`);</div>\n<br />\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<br />\n<div>&lt;/html&gt;</div>\n</div>",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "RAWITEM", "itemType" : "RAWITEM",
"name" : "static_text1", "name" : "static_text1",
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
"layout" : "FLEX" "layout" : "FLEX"
}, },
"getPSRawItem" : { "getPSRawItem" : {
"content" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<br />\n<div>&lt;/head&gt;</div>\n<br /><br /><br /><br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<br /><br /><br />\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<div>&lt;/html&gt;</div>\n</div>", "content" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<br />\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<div>&lt;/head&gt;</div>\n<br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick2()\"&gt;log&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick2() {</div>\n<div>&nbsp; &nbsp; &nbsp; console.log('打印${data.bookname}', `测试内容${data.bookname}`);</div>\n<br />\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<br />\n<div>&lt;/html&gt;</div>\n</div>",
"contentType" : "HTML", "contentType" : "HTML",
"name" : "static_text1", "name" : "static_text1",
"predefinedType" : "HTML_PREVIEW" "predefinedType" : "HTML_PREVIEW"
......
...@@ -1007,10 +1007,138 @@ ...@@ -1007,10 +1007,138 @@
"requestPath" : "/select", "requestPath" : "/select",
"builtinMethod" : false "builtinMethod" : false
} ], } ],
"getAllPSAppDEUIActions" : [ {
"actionTarget" : "NONE",
"buttonStyle" : "INVERSE",
"caption" : "反向按钮",
"codeName" : "button",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_button",
"name" : "反向按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('反向按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "button",
"uIActionType" : "DEUIACTION",
"id" : "button@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "INFO",
"caption" : "信息按钮",
"codeName" : "infoButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_infoButton",
"name" : "信息按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('信息按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "infoButton",
"uIActionType" : "DEUIACTION",
"id" : "infoButton@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "PRIMARY",
"caption" : "主要按钮",
"codeName" : "primaryButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_primaryButton",
"name" : "主要按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('主要按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "primaryButton",
"uIActionType" : "DEUIACTION",
"id" : "primaryButton@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "SUCCESS",
"caption" : "成功按钮",
"codeName" : "successButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_successButton",
"name" : "成功按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('成功按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "successButton",
"uIActionType" : "DEUIACTION",
"id" : "successButton@Test_aaa"
}, {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
} ],
"getAllPSAppViews" : [ { "getAllPSAppViews" : [ {
"modelref" : true, "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaEditView.json", "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaEditView.json",
"viewType" : "DEEDITVIEW" "viewType" : "DEEDITVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaRedirectView.json",
"viewType" : "DEREDIRECTVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaButtonGridView.json",
"viewType" : "DEGRIDVIEW"
} ], } ],
"getAllPSDEOPPrivs" : [ { "getAllPSDEOPPrivs" : [ {
"logicName" : "建立", "logicName" : "建立",
...@@ -1071,5 +1199,63 @@ ...@@ -1071,5 +1199,63 @@
"enableUIModify" : true, "enableUIModify" : true,
"enableUIRemove" : true, "enableUIRemove" : true,
"enableWFActions" : false, "enableWFActions" : false,
"major" : true "major" : true,
"getAllPSAppDEUIActionGroups" : [ {
"codeName" : "Usr0305690964",
"name" : "按钮样式界面行为组",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"uniqueTag" : "Test_aaa__Usr0305690964",
"getPSUIActionGroupDetails" : [ {
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"detailType" : "DEUIACTION",
"name" : "u6ff5da4",
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true,
"getPSUIAction" : {
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"modelref" : true,
"id" : "warningButton@Test_aaa"
}
}, {
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"detailType" : "DEUIACTION",
"name" : "u64403e5",
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true,
"getPSUIAction" : {
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"modelref" : true,
"id" : "defaultButton@Test_aaa"
}
}, {
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"detailType" : "DEUIACTION",
"name" : "ua10d56a",
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true,
"getPSUIAction" : {
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"modelref" : true,
"id" : "dangerButton@Test_aaa"
}
} ]
} ]
} }
\ No newline at end of file
{
"codeName" : "ButtonStyle",
"controlType" : "FORM",
"getCreatePSControlAction" : {
"modelref" : true,
"id" : "create",
"actionName" : "Create",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "create",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Create"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"defaultLabelWidth" : 130,
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa/PSFORMS/ButtonStyle.json",
"getGetDraftFromPSControlAction" : {
"modelref" : true,
"id" : "loaddraftfrom",
"actionName" : "GETDRAFTFROM",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "loaddraftfrom",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"getGetDraftPSControlAction" : {
"modelref" : true,
"id" : "loaddraft",
"actionName" : "GetDraft",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "loaddraft",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "GetDraft"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"getGetPSControlAction" : {
"modelref" : true,
"id" : "load",
"actionName" : "Get",
"actionType" : "DEACTION",
"dataAccessAction" : "READ",
"name" : "load",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Get"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"logicName" : "按钮样式",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSDEFormItemUpdates" : [ {
"codeName" : "update",
"name" : "update",
"getPSDEFIUpdateDetails" : [ {
"name" : "test_aaaname"
} ],
"scriptCode" : "console.log('表单项更新')",
"customCode" : true
} ],
"getPSDEFormItems" : [ {
"id" : "srfupdatedate",
"hidden" : true,
"dataType" : 5,
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
}
}, {
"id" : "srforikey",
"hidden" : true,
"dataType" : 25
}, {
"id" : "srfkey",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
}
}, {
"id" : "srfmajortext",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
}
}, {
"id" : "srftempmode",
"hidden" : true,
"dataType" : 25
}, {
"id" : "srfuf",
"hidden" : true,
"dataType" : 25
}, {
"id" : "srfdeid",
"hidden" : true,
"dataType" : 25
}, {
"id" : "srfsourcekey",
"hidden" : true,
"dataType" : 25
}, {
"id" : "test_aaaname",
"dataType" : 25,
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
}
}, {
"id" : "test_aaaid",
"hidden" : true,
"dataType" : 25,
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
}
} ],
"getPSDEFormPages" : [ {
"caption" : "基本信息",
"codeName" : "formpage1",
"detailStyle" : "DEFAULT",
"detailType" : "FORMPAGE",
"name" : "formpage1",
"getPSDEFormDetails" : [ {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TEST_AAANAME"
},
"caption" : "测试AAA名称",
"codeName" : "test_aaaname",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"name" : "test_aaaname",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 200,
"name" : "test_aaaname"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"allowEmpty" : true,
"showCaption" : true
}, {
"caption" : "表单按钮",
"codeName" : "grouppanel1",
"detailStyle" : "DEFAULT",
"detailType" : "GROUPPANEL",
"name" : "grouppanel1",
"getPSDEFormDetails" : [ {
"actionType" : "UIACTION",
"caption" : "默认按钮",
"codeName" : "button1",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button1",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button1"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"tooltip" : "默认按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "INVERSE",
"caption" : "反向按钮",
"codeName" : "button2",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button2",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button2"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "INVERSE",
"caption" : "反向按钮",
"codeName" : "button",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_button",
"name" : "反向按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('反向按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "button",
"uIActionType" : "DEUIACTION",
"id" : "button@Test_aaa"
},
"tooltip" : "反向按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "PRIMARY",
"caption" : "主要按钮",
"codeName" : "button3",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button3",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button3"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "PRIMARY",
"caption" : "主要按钮",
"codeName" : "primaryButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_primaryButton",
"name" : "主要按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('主要按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "primaryButton",
"uIActionType" : "DEUIACTION",
"id" : "primaryButton@Test_aaa"
},
"tooltip" : "主要按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "INFO",
"caption" : "信息按钮",
"codeName" : "button6",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button6",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button6"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "INFO",
"caption" : "信息按钮",
"codeName" : "infoButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_infoButton",
"name" : "信息按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('信息按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "infoButton",
"uIActionType" : "DEUIACTION",
"id" : "infoButton@Test_aaa"
},
"tooltip" : "信息按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "SUCCESS",
"caption" : "成功按钮",
"codeName" : "button7",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button7",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button7"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "SUCCESS",
"caption" : "成功按钮",
"codeName" : "successButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_successButton",
"name" : "成功按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('成功按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "successButton",
"uIActionType" : "DEUIACTION",
"id" : "successButton@Test_aaa"
},
"tooltip" : "成功按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "button5",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button5",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button5"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
},
"tooltip" : "警告按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "button4",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button4",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_button4"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
},
"tooltip" : "危险按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "FIUPDATE",
"codeName" : "button8",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "button8",
"getPSDEFormItemUpdate" : {
"modelref" : true,
"id" : "update"
},
"getPSLayoutPos" : {
"colLG" : 8,
"colMD" : 8,
"colSM" : 8,
"colXS" : 8,
"layout" : "TABLE_24COL"
},
"uIActionTarget" : "NONE",
"showCaption" : true
} ],
"getPSLayout" : {
"childColLG" : 8,
"childColMD" : 8,
"childColSM" : 8,
"childColXS" : 8,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"infoGroupMode" : false,
"showCaption" : true
}, {
"caption" : "表单按钮组(行为组)",
"codeName" : "grouppanel2",
"detailStyle" : "DEFAULT",
"detailType" : "GROUPPANEL",
"name" : "grouppanel2",
"getPSDEFormDetails" : [ {
"actionGroupExtractMode" : "ITEM",
"codeName" : "buttonlist1",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTONLIST",
"name" : "buttonlist1",
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"getPSUIActionGroup" : {
"codeName" : "Usr0305690964",
"name" : "按钮样式界面行为组",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSUIActionGroupDetails" : [ {
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"detailType" : "DEUIACTION",
"name" : "u6ff5da4",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"detailType" : "DEUIACTION",
"name" : "u64403e5",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"detailType" : "DEUIACTION",
"name" : "ua10d56a",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
} ],
"uniqueTag" : "Test_aaa__Usr0305690964"
},
"showCaption" : true
}, {
"actionGroupExtractMode" : "ITEMS",
"codeName" : "buttonlist2",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTONLIST",
"name" : "buttonlist2",
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"getPSUIActionGroup" : {
"codeName" : "Usr0305690964",
"name" : "按钮样式界面行为组",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSUIActionGroupDetails" : [ {
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"detailType" : "DEUIACTION",
"name" : "u6ff5da4",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"detailType" : "DEUIACTION",
"name" : "u64403e5",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"detailType" : "DEUIACTION",
"name" : "ua10d56a",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
} ],
"uniqueTag" : "Test_aaa__Usr0305690964"
},
"showCaption" : true
}, {
"actionGroupExtractMode" : "ITEMX",
"codeName" : "buttonlist3",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTONLIST",
"name" : "buttonlist3",
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"getPSUIActionGroup" : {
"codeName" : "Usr0305690964",
"name" : "按钮样式界面行为组",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSUIActionGroupDetails" : [ {
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"detailType" : "DEUIACTION",
"name" : "u6ff5da4",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"detailType" : "DEUIACTION",
"name" : "u64403e5",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"detailType" : "DEUIACTION",
"name" : "ua10d56a",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
} ],
"uniqueTag" : "Test_aaa__Usr0305690964"
},
"showCaption" : true
}, {
"actionGroupExtractMode" : "ITEMS",
"buttonListType" : "BUTTONS",
"codeName" : "buttonlist4",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTONLIST",
"name" : "buttonlist4",
"getPSDEFormButtons" : [ {
"actionType" : "UIACTION",
"caption" : "默认按钮",
"codeName" : "default",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "default",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_default"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"tooltip" : "默认按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "UIACTION",
"buttonStyle" : "SUCCESS",
"caption" : "成功按钮",
"codeName" : "success",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "success",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "form_success"
},
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "SUCCESS",
"caption" : "成功按钮",
"codeName" : "successButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_successButton",
"name" : "成功按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('成功按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "successButton",
"uIActionType" : "DEUIACTION",
"id" : "successButton@Test_aaa"
},
"tooltip" : "成功按钮",
"uIActionTarget" : "NONE",
"showCaption" : true
}, {
"actionType" : "FIUPDATE",
"caption" : "表单项钢芯",
"codeName" : "formitemupdate",
"detailStyle" : "DEFAULT",
"detailType" : "BUTTON",
"name" : "formitemupdate",
"getPSDEFormItemUpdate" : {
"modelref" : true,
"id" : "update"
},
"tooltip" : "表单项钢芯",
"uIActionTarget" : "NONE",
"showCaption" : true
} ],
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"showCaption" : true
} ],
"getPSLayout" : {
"childColMD" : 24,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"infoGroupMode" : false,
"showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TEST_AAAID"
},
"caption" : "测试AAA标识",
"codeName" : "test_aaaid",
"dataType" : 25,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"name" : "test_aaaid",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "test_aaaid"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"allowEmpty" : true,
"hidden" : true
} ],
"getPSLayout" : {
"childColMD" : 24,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"infoGroupMode" : false
} ],
"getPSLayout" : {
"childColMD" : 24,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getRemovePSControlAction" : {
"modelref" : true,
"id" : "remove",
"actionName" : "Remove",
"actionType" : "DEACTION",
"dataAccessAction" : "DELETE",
"name" : "remove",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Remove"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"tabHeaderPos" : "TOP",
"getUpdatePSControlAction" : {
"modelref" : true,
"id" : "update",
"actionName" : "Update",
"actionType" : "DEACTION",
"dataAccessAction" : "UPDATE",
"name" : "update",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Update"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"noTabHeader" : true,
"modelid" : "8ECCB593-8C43-4100-B055-970B1041B624",
"modeltype" : "PSDEFORM_EDITFORM"
}
\ No newline at end of file
{
"aggMode" : "NONE",
"codeName" : "Main",
"columnEnableFilter" : 2,
"columnEnableLink" : 2,
"controlType" : "GRID",
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa/PSGRIDS/Main.json",
"getFetchPSControlAction" : {
"modelref" : true,
"id" : "fetch",
"actionType" : "DEDATASET",
"name" : "fetch",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "FetchDefault"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"groupMode" : "NONE",
"logicName" : "主表格",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSDEGridColumns" : [ {
"align" : "LEFT",
"cLConvertMode" : "NONE",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TEST_AAANAME"
},
"caption" : "测试AAA名称",
"codeName" : "test_aaaname",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "test_aaaname",
"excelCaption" : "测试AAA名称",
"name" : "test_aaaname",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
},
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
}, {
"align" : "LEFT",
"cLConvertMode" : "FRONT",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.UPDATEMAN"
},
"caption" : "更新人",
"codeName" : "updateman",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "updateman",
"excelCaption" : "更新人",
"name" : "updateman",
"noPrivDisplayMode" : 1,
"getPSAppCodeList" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPCODELISTS/SysOperator.json"
},
"getPSAppDEField" : {
"name" : "UPDATEMAN",
"codeName" : "UpdateMan"
},
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
}, {
"align" : "LEFT",
"cLConvertMode" : "NONE",
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.UPDATEDATE"
},
"caption" : "更新时间",
"codeName" : "updatedate",
"columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "updatedate",
"excelCaption" : "更新时间",
"name" : "updatedate",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
},
"valueFormat" : "YYYY-MM-DD HH:mm:ss",
"width" : 150,
"widthUnit" : "PX",
"enableSort" : true
} ],
"getPSDEGridDataItems" : [ {
"dataType" : 25,
"name" : "test_aaaname",
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
}
}, {
"dataType" : 25,
"name" : "updateman",
"getPSAppDEField" : {
"name" : "UPDATEMAN",
"codeName" : "UpdateMan"
}
}, {
"format" : "YYYY-MM-DD HH:mm:ss",
"dataType" : 5,
"name" : "updatedate",
"getPSAppDEField" : {
"name" : "UPDATEDATE",
"codeName" : "UpdateDate"
}
}, {
"dataType" : 25,
"name" : "srfkey",
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
}
}, {
"dataType" : 25,
"name" : "srfdataaccaction",
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
},
"dataAccessAction" : true
}, {
"dataType" : 25,
"name" : "srfmajortext",
"getPSAppDEField" : {
"name" : "TEST_AAANAME",
"codeName" : "Test_aaaName"
}
} ],
"getPSDEGridEditItems" : [ {
"caption" : "测试AAA标识",
"codeName" : "srfkey",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "srfkey",
"getPSAppDEField" : {
"name" : "TEST_AAAID",
"codeName" : "Test_aaaId"
},
"getPSEditor" : {
"editorType" : "HIDDEN",
"name" : "srfkey"
},
"allowEmpty" : true
} ],
"pagingMode" : 1,
"pagingSize" : 20,
"getRemovePSControlAction" : {
"actionName" : "Remove",
"actionType" : "DEACTION",
"dataAccessAction" : "DELETE",
"name" : "remove",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Remove"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
}
},
"sortMode" : "REMOTE",
"hasWFDataItems" : false,
"enableColFilter" : false,
"enableCustomized" : true,
"enableGroup" : false,
"enablePagingBar" : true,
"enableRowEdit" : false,
"enableRowEditOrder" : false,
"enableRowNew" : false,
"forceFit" : false,
"hideHeader" : false,
"noSort" : false,
"singleSelect" : false,
"modelid" : "5a37d3295068cbf66e3fe672bdb167b5",
"modeltype" : "PSDEGRID"
}
\ No newline at end of file
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "文本", "caption" : "文本",
"contentType" : "HTML", "contentType" : "HTML",
"htmlContent" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<br />\n<div>&lt;/head&gt;</div>\n<br /><br /><br /><br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<br /><br /><br />\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<div>&lt;/html&gt;</div>\n</div>", "htmlContent" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<br />\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<div>&lt;/head&gt;</div>\n<br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick2()\"&gt;log&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick2() {</div>\n<div>&nbsp; &nbsp; &nbsp; console.log('打印${data.bookname}', `测试内容${data.bookname}`);</div>\n<br />\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<br />\n<div>&lt;/html&gt;</div>\n</div>",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "RAWITEM", "itemType" : "RAWITEM",
"name" : "static_text1", "name" : "static_text1",
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
"layout" : "FLEX" "layout" : "FLEX"
}, },
"getPSRawItem" : { "getPSRawItem" : {
"content" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<br />\n<div>&lt;/head&gt;</div>\n<br /><br /><br /><br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<br /><br /><br />\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<div>&lt;/html&gt;</div>\n</div>", "content" : "<div>\n<div>&lt;!DOCTYPE html&gt;</div>\n<div>&lt;html lang=\"en\"&gt;</div>\n<br />\n<div>&lt;head&gt;</div>\n<div>&nbsp; &lt;meta charset=\"UTF-8\"&gt;</div>\n<div>&nbsp; &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;</div>\n<div>&nbsp; &lt;title&gt;HTML Template with Features&lt;/title&gt;</div>\n<div>&nbsp; &lt;style&gt;</div>\n<div>&nbsp; &nbsp; /* 外部样式 */</div>\n<div>&nbsp; &nbsp; button {</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 10px 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #007BFF;</div>\n<div>&nbsp; &nbsp; &nbsp; color: white;</div>\n<div>&nbsp; &nbsp; &nbsp; border: none;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; cursor: pointer;</div>\n<div>&nbsp; &nbsp; &nbsp; transition: background-color 0.3s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; button:hover {</div>\n<div>&nbsp; &nbsp; &nbsp; background-color: #0056b3;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; .book-info {</div>\n<div>&nbsp; &nbsp; &nbsp; border: 1px solid #ccc;</div>\n<div>&nbsp; &nbsp; &nbsp; width: 300px;</div>\n<div>&nbsp; &nbsp; &nbsp; height: auto;</div>\n<div>&nbsp; &nbsp; &nbsp; padding: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; margin-top: 20px;</div>\n<div>&nbsp; &nbsp; &nbsp; border-radius: 5px;</div>\n<div>&nbsp; &nbsp; &nbsp; animation: fadeIn 1s ease;</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; @keyframes fadeIn {</div>\n<div>&nbsp; &nbsp; &nbsp; from {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 0;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; &nbsp; to {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; opacity: 1;</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/style&gt;</div>\n<div>&lt;/head&gt;</div>\n<br />\n<div>&lt;body&gt;</div>\n<div>&nbsp; &lt;!-- 按钮,带有点击事件 --&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick()\"&gt;test&lt;/button&gt;</div>\n<div>&nbsp; &lt;button id=\"myButton\" onclick=\"handleClick2()\"&gt;log&lt;/button&gt;</div>\n<div>&nbsp; &lt;!-- 书籍信息容器 --&gt;</div>\n<div>&nbsp; &lt;div id=\"bookInfo\" class=\"book-info\" draggable=\"true\" ondragstart=\"dragStart(event)\" ondragover=\"dragOver(event)\"</div>\n<div>&nbsp; &nbsp; ondrop=\"drop(event)\"&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;名称:{{data.bookname}}&lt;/div&gt;</div>\n<div>&nbsp; &nbsp; &lt;div&gt;更新时间:{{data.updatedate}}&lt;/div&gt;</div>\n<div>&nbsp; &lt;/div&gt;</div>\n<div>&nbsp; &lt;script&gt;</div>\n<div>&nbsp; &nbsp; // 模拟数据</div>\n<div>&nbsp; &nbsp; const data = {</div>\n<div>&nbsp; &nbsp; &nbsp; bookname: '{{data.bookname}}',</div>\n<div>&nbsp; &nbsp; &nbsp; updatedate: '{{data.updatedate}}'</div>\n<div>&nbsp; &nbsp; };</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick() {</div>\n<div>&nbsp; &nbsp; &nbsp; // 获取书籍信息元素</div>\n<div>&nbsp; &nbsp; &nbsp; const bookInfo = document.getElementById('bookInfo');</div>\n<div>&nbsp; &nbsp; &nbsp; if (bookInfo) {</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; // 移除元素</div>\n<div>&nbsp; &nbsp; &nbsp; &nbsp; bookInfo.remove();</div>\n<div>&nbsp; &nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &nbsp; // 处理按钮点击事件</div>\n<div>&nbsp; &nbsp; function handleClick2() {</div>\n<div>&nbsp; &nbsp; &nbsp; console.log('打印${data.bookname}', `测试内容${data.bookname}`);</div>\n<br />\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽开始事件处理函数</div>\n<div>&nbsp; &nbsp; function dragStart(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.dataTransfer.setData('text/plain', event.target.id);</div>\n<div>&nbsp; &nbsp; &nbsp; // 添加内联样式,改变透明度</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.style.opacity = '0.5';</div>\n<div>&nbsp; &nbsp; }</div>\n<br /><br /><br />\n<div>&nbsp; &nbsp; // 拖拽经过事件处理函数</div>\n<div>&nbsp; &nbsp; function dragOver(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; }</div>\n<br />\n<div>&nbsp; &nbsp; // 拖拽放下事件处理函数</div>\n<div>&nbsp; &nbsp; function drop(event) {</div>\n<div>&nbsp; &nbsp; &nbsp; event.preventDefault();</div>\n<div>&nbsp; &nbsp; &nbsp; const data = event.dataTransfer.getData('text/plain');</div>\n<div>&nbsp; &nbsp; &nbsp; const draggedElement = document.getElementById(data);</div>\n<div>&nbsp; &nbsp; &nbsp; // 移除内联样式</div>\n<div>&nbsp; &nbsp; &nbsp; draggedElement.style.opacity = '1';</div>\n<div>&nbsp; &nbsp; &nbsp; // 将拖拽元素移动到新位置</div>\n<div>&nbsp; &nbsp; &nbsp; event.target.appendChild(draggedElement);</div>\n<div>&nbsp; &nbsp; }</div>\n<div>&nbsp; &lt;/script&gt;</div>\n<div>&lt;/body&gt;</div>\n<br />\n<div>&lt;/html&gt;</div>\n</div>",
"contentType" : "HTML", "contentType" : "HTML",
"name" : "static_text1", "name" : "static_text1",
"predefinedType" : "HTML_PREVIEW" "predefinedType" : "HTML_PREVIEW"
......
...@@ -1251,7 +1251,6 @@ ...@@ -1251,7 +1251,6 @@
"layoutPanel" : true, "layoutPanel" : true,
"useDefaultLayout" : true "useDefaultLayout" : true
}, },
"refFlag" : false,
"title" : "测试AAA编辑视图", "title" : "测试AAA编辑视图",
"getTitlePSLanguageRes" : { "getTitlePSLanguageRes" : {
"lanResTag" : "PAGE.TITLE.TEST_AAA.EDITVIEW" "lanResTag" : "PAGE.TITLE.TEST_AAA.EDITVIEW"
......
{
"accUserMode" : 2,
"getCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.TEST_AAA"
},
"caption" : "测试AAA",
"codeName" : "test_aaaRedirectView",
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaRedirectView.json",
"funcViewMode" : "REDIRECTVIEW",
"memo" : "系统自动添加",
"name" : "test_aaaRedirectView",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSAppModule" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPMODULES/Test.json"
},
"getPSControls" : [ {
"getCapPSLanguageRes" : {
"lanResTag" : "DE.LNAME.TEST_AAA"
},
"caption" : "测试AAA",
"codeName" : "RedirectViewcaptionbar",
"controlType" : "CAPTIONBAR",
"name" : "captionbar",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSControlParam" : { }
} ],
"getPSDEViewCodeName" : "RedirectView",
"getPSDEViewId" : "d591b27246997a5d3c61978cd5708c29",
"getPSViewLayoutPanel" : {
"codeName" : "Layoutpanel",
"controlStyle" : "APPDEREDIRECTVIEW",
"controlType" : "VIEWLAYOUTPANEL",
"name" : "layoutpanel",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSControlParam" : { },
"layoutBodyOnly" : true,
"layoutPanel" : true,
"useDefaultLayout" : true
},
"getRedirectPSAppViewRefs" : [ {
"name" : "TEST_AAA:EDITVIEW",
"realTitle" : "测试AAA编辑视图",
"getRealTitlePSLanguageRes" : {
"lanResTag" : "PAGE.TITLE.TEST_AAA.EDITVIEW"
},
"getRefPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaEditView.json",
"viewType" : "DEEDITVIEW"
}
}, {
"name" : "EDITVIEW",
"realTitle" : "测试AAA编辑视图",
"getRealTitlePSLanguageRes" : {
"lanResTag" : "PAGE.TITLE.TEST_AAA.EDITVIEW"
},
"getRefPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/test_aaaEditView.json",
"viewType" : "DEEDITVIEW"
}
} ],
"title" : "测试AAA数据重定向视图",
"getTitlePSLanguageRes" : {
"lanResTag" : "PAGE.TITLE.TEST_AAA.REDIRECTVIEW"
},
"viewStyle" : "DEFAULT",
"viewType" : "DEREDIRECTVIEW",
"enableCustomGetDataAction" : false,
"enableDP" : true,
"enableWorkflow" : true,
"redirectView" : true,
"modelid" : "c39209b0727509c7e9868d42580d177c",
"modeltype" : "PSAPPDEVIEW"
}
\ No newline at end of file
...@@ -7655,6 +7655,25 @@ ...@@ -7655,6 +7655,25 @@
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"tooltip" : "ai测试编辑视图" "tooltip" : "ai测试编辑视图"
}, {
"accUserMode" : 2,
"caption" : "按钮样式",
"itemType" : "MENUITEM",
"name" : "menuitem380",
"getPSAppFunc" : {
"modelref" : true,
"id" : "UsrAppFunc0305708469"
},
"getPSLayout" : {
"childColMD" : 24,
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"tooltip" : "按钮样式"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
"enableDEFieldPrivilege" : false, "enableDEFieldPrivilege" : false,
......
...@@ -3733,6 +3733,16 @@ ...@@ -3733,6 +3733,16 @@
"id" : "UsrAppFunc0228251663" "id" : "UsrAppFunc0228251663"
}, },
"tooltip" : "ai测试编辑视图" "tooltip" : "ai测试编辑视图"
}, {
"accUserMode" : 2,
"caption" : "按钮样式",
"itemType" : "MENUITEM",
"name" : "menuitem380",
"getPSAppFunc" : {
"modelref" : true,
"id" : "UsrAppFunc0305708469"
},
"tooltip" : "按钮样式"
} ], } ],
"name" : "appindex", "name" : "appindex",
"modelid" : "6A3E233F-FB4A-493B-B3C2-1860D5502904", "modelid" : "6A3E233F-FB4A-493B-B3C2-1860D5502904",
......
...@@ -1363,6 +1363,93 @@ ...@@ -1363,6 +1363,93 @@
"showIcon" : true "showIcon" : true
} ], } ],
"uniqueTag" : "Student__Usr0423242168" "uniqueTag" : "Student__Usr0423242168"
}, {
"codeName" : "Usr0305690964",
"name" : "按钮样式界面行为组",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"getPSUIActionGroupDetails" : [ {
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"detailType" : "DEUIACTION",
"name" : "u6ff5da4",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "WARNING",
"caption" : "警告按钮",
"codeName" : "warningButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_warningButton",
"name" : "警告按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('警告按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "warningButton",
"uIActionType" : "DEUIACTION",
"id" : "warningButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"detailType" : "DEUIACTION",
"name" : "u64403e5",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DEFAULT",
"caption" : "默认按钮",
"codeName" : "defaultButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_defaultButton",
"name" : "默认按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('默认按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "defaultButton",
"uIActionType" : "DEUIACTION",
"id" : "defaultButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
}, {
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"detailType" : "DEUIACTION",
"name" : "ua10d56a",
"getPSUIAction" : {
"actionTarget" : "NONE",
"buttonStyle" : "DANGER",
"caption" : "危险按钮",
"codeName" : "dangerButton",
"frontProcessType" : "OTHER",
"fullCodeName" : "Test_aaa_dangerButton",
"name" : "危险按钮",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Test_aaa.json"
},
"scriptCode" : "console.log('危险按钮')",
"uIActionMode" : "FRONT",
"uIActionTag" : "dangerButton",
"uIActionType" : "DEUIACTION",
"id" : "dangerButton@Test_aaa"
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : true
} ],
"uniqueTag" : "Test_aaa__Usr0305690964"
}, { }, {
"codeName" : "Usr1222188930", "codeName" : "Usr1222188930",
"name" : "测试表格支持行编辑列行为组", "name" : "测试表格支持行编辑列行为组",
......
...@@ -9497,7 +9497,8 @@ ...@@ -9497,7 +9497,8 @@
"defaultContent" : "测试AAA数据重定向视图", "defaultContent" : "测试AAA数据重定向视图",
"lanResTag" : "PAGE.TITLE.TEST_AAA.REDIRECTVIEW", "lanResTag" : "PAGE.TITLE.TEST_AAA.REDIRECTVIEW",
"lanResType" : "PAGE", "lanResType" : "PAGE",
"name" : "界面文本(PAGE.*)[TITLE.TEST_AAA.REDIRECTVIEW]" "name" : "界面文本(PAGE.*)[TITLE.TEST_AAA.REDIRECTVIEW]",
"refFlag" : true
}, { }, {
"defaultContent" : "树节点编辑视图", "defaultContent" : "树节点编辑视图",
"lanResTag" : "PAGE.TITLE.TREENODE.EDITVIEW2", "lanResTag" : "PAGE.TITLE.TREENODE.EDITVIEW2",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册