學習markdown語法寫文章的第一課markdown
學習JavaScript語法寫文章的第一課JavaScript
這是第一個學習的案例example組件
<template>
<div class="box">
<div>這里邊要寫組件把DATA數據傳入進去</div>
<組件名 :data="dataArr" width="450px" height="250px">
</組件名>
</div>
</template>
引入組件
import 組件名 from '@/components/NengYuan/abnormalData';
@Component({
components: {
組件名, 注冊組件
},
})
export default class abnormalDataExample 類似于一個組件的名字 extends Vue {
dataArr = [ 數據內容 ]
這里是es6的繼承 類似于一個function
}
<style>超出不顯示折行顯示...
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
配置nginx
start nginx
nginx -s reload
# ny 是我自己起的路徑的名字
# alias 是我本地的項目目錄
# idtAppServiceV6 是服務名字
# 路徑地址/idtAppServiceV6/; 代理的服務路徑
# 修改配置文件后要nginx -s reload
# 任務管理器的nginx 要清空
# 在重新啟動
#市委機要保密局協同辦公系統
location /dlswjyjoa {
alias "D:/testWork/dlswjyjoa/dlswjyjoa";
index index.html index.htm;
## 當出現405錯誤時勺爱,將采用后面地址進行重新請求
error_page 405 =200 http://$host:$server_port$request_uri;
}
location /idtAppServiceV6 {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass 路徑地址/idtAppServiceV6/ 這個后邊的/不能加;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
export default class ProportionProjectStatus extends Vue
繼承類 里邊相當于一個function
方法可以返回一個對象/數組/any任意的類型數據
initXaxisData(lowEnd:number, highEnd:number) {
const xaxisData:any = [];
while (lowEnd <= highEnd) {
xaxisData.push(lowEnd += 1);
}
return xaxisData;
}
對象可以任意加屬性和方法 方法又可以返回一些不一樣的值 例如重組數組及對象
而對象中又可以以返回值的形式 傳遞給對象屬性的值 這樣就在elmentui中的cellstyle中獲取了一個對象的變化
gridCellStyle: function (obj) {
//init new styleObject
var styleObj = {
background: (obj.rowIndex % 2 != 0) && this.gridPageSetting.stripe ? this.gridPageSetting.stripeColor : '',
}
//判斷obj.row.USER_NAME是否有值 如果有值-代表已讀 如果沒有值-代表未讀
if(!obj.row.USER_NAME){
styleObj.color = parent.idtAppConfig.gridListFontColor
}
return styleObj
},
全局變量信息
平臺的所有全局變量 api 文件 sysconfig.js
平臺的列表文件為 vgrid.js